- Backend repository here: https://github.com/futurice/wappuapp-backend
An event app similar to a festival app, which helps students of TTY(Tampere University of Technology) and Otaniemi to find events and celebrate between 19th April - 1st May.
- Low-effort user registration
- Feed with images and text
- Radio streaming
- Event Calendar
- Event Map
- Vibe Meter and Charts
- Scoreboard
- Event links
- React Native + Redux
- iOS and Android
- Whappu 2017 architectural updates
- Make sure you have latest App Store provisioning profile installed
- Package production script bundle with
npm run release:ios
- In XCode project settings, bump Version field
- Choose
Generic iOS Device
(or a connected iPhone) as build target - Run
Product > Clean
(for paranoia) andProduct > Archive
- Go to
Window > Organizer
, select latest build with correct version and press Upload to App Store
- Setup Android environment: https://facebook.github.io/react-native/docs/android-setup.html#content
- Copy
whappu-release.keystore
underandroid/app
if it's not there already. - Bump
versionCode
andversionName
inandroid/app/build.gradle
cd android && ./gradlew assembleRelease --no-daemon
- Built .apk is saved to
android/app/build/outputs/apk
BEFORE JUMPING TO IOS OR ANDROID GUIDE, FOLLOW THESE GUIDES:
- https://facebook.github.io/react-native/docs/getting-started.html
- (Optional) https://facebook.github.io/react-native/docs/debugging.html#content
npm install
(you might need to use npm@2 version)npm dedupe
(maybe necessary if you encounter Namespace collision error)cp env.example.js env.js
and fill in the blank secrets in the file
The xcode-project is expecting that you have nvm installed. It can be reconfigured in
Build Phases > Bundle React Native code and images
.
-
cd ios && pod install
-
open wappuapp.xcworkspace
Note: Use the .xworkspace instead of .xcodeproj!
- Android Emulator suggestion: install and start Genymotion
- Or connect your Android device with usb cable
react-native run-android
Try these:
- Google: e.g.
react native Naming collision detected
almost always provides useful resources to fix problems - Search react-native issues
- Search from the react native component's issues
error: /Users/user/code/wappuapp/wappuapp-client/node_modules/react-native-vector-icons/Fonts/MaterialCommunityIcons.ttf: No such file or directory
- Download the from here and move it to
/node_modules/react-native-vector-icons/Fonts
- Download the from here and move it to
- Cmd + R
Make sure:
- React native packager is running (
npm start
) - You have configured React native correctly: https://facebook.github.io/react-native/docs/getting-started.html
- Your mobile phone is connected to same wifi as your computer
Stuck at the white screen? It may take even minutes to do the initial load..
Try to run npm dedupe
.
At least nvm
causes this. Change Build Phases -> Bundle React Native code and images to:
export NODE_BINARY=node
. ~/.nvm/nvm.sh # add this
nvm use 4 # add this (or whatever node version you are using)
../node_modules/react-native/packager/react-native-xcode.sh
Setup your IP address for debugging https://facebook.github.io/react-native/docs/debugging.html#content
Issue: facebook/react-native#1598 Do this: facebook/react-native#1598 (comment)
Found a bug? Can't live without a feature? Submit a pull request, or if you want to get paid, apply for a job at Futurice in Tampere, Helsinki, Stockholm, London, Berlin, or Munich.