luqmanrom / wappuapp-client

Android and iOS clients for the Futurice Whappu app!

Home Page:http://wappu.futurice.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Whappu app

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.

Download the App

Features:

  • Low-effort user registration
  • Feed with images and text
  • Radio streaming
  • Event Calendar
  • Event Map
  • Vibe Meter and Charts
  • Scoreboard
  • Event links

Short facts:

  • React Native + Redux
  • iOS and Android
  • Whappu 2017 architectural updates
    • Selectors with reselect to access store
    • Redux architecture using ducks. See /app/concepts
    • Data processing in concepts and minimize logic in views

Release

iOS

  • 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) and Product > Archive
  • Go to Window > Organizer, select latest build with correct version and press Upload to App Store

Android

Local development

BEFORE JUMPING TO IOS OR ANDROID GUIDE, FOLLOW THESE GUIDES:

iOS

The xcode-project is expecting that you have nvm installed. It can be reconfigured in Build Phases > Bundle React Native code and images.

  • Install Cocoapods

  • cd ios && pod install

  • open wappuapp.xcworkspace

    Note: Use the .xworkspace instead of .xcodeproj!

Android

  • Android Emulator suggestion: install and start Genymotion
  • Or connect your Android device with usb cable
  • react-native run-android

Common problems

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
  • Cmd + R

Could not connect to development server

Make sure:

Loading from :8081...

Stuck at the white screen? It may take even minutes to do the initial load..

Error: Naming collision detected

Try to run npm dedupe.

Can't find 'node' binary to build React Native bundle

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

Websocket connection failed

Setup your IP address for debugging https://facebook.github.io/react-native/docs/debugging.html#content

jsSchedulingOverhead (-48ms) should be positive

Issue: facebook/react-native#1598 Do this: facebook/react-native#1598 (comment)

Contributing

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.

About

Android and iOS clients for the Futurice Whappu app!

http://wappu.futurice.com/

License:Other


Languages

Language:JavaScript 98.0%Language:Objective-C 0.9%Language:Java 0.6%Language:Python 0.4%Language:Shell 0.1%Language:Ruby 0.0%