Skip to content

jasonnathan/app

 
 

Repository files navigation

Part-up mobile app

This app uses Meteor's DDP.connect() to manually connect to the server hosted at the part-up/part-up repository.

Join the chat at https://gitter.im/part-up/part-up

OS Prerequisites

Nothing but Meteor

Getting started

Before contributing, please read CONTRIBUTING.md carefully.

$ cd app
$ meteor npm install
$ cd ..
$ ./start

In another terminal, start the app from the part-up/part-up repository.

$ ./start

Visit the app at http://localhost:4000.

Running on iOS and Android

iOS

$ ./run-ios

Android

$ ./run-android

Adding an npm package

$ cd app
$ meteor npm install --save some-package

Adding a Cordova plugin

$ cd app
$ meteor add cordova:<cordova-plugin-name>@<version>

Releasing

iOS

  1. $ cd app
  2. $ meteor npm install
  3. $ meteor build ../output --mobile-settings ../config/<environment>/settings.json --server <partup-url> (replace with acceptance or production and with the part-up server url)
  4. Open the project /output/ios/project/Part-up.xcodeproj in Xcode.
    • If Xcode asks Convert to Current Swift Syntax?, click Convert and select Convert to Swift 3.
    • Next
    • Check only Part-up.app
    • After converting Xcode should tell you No source changes necessary
    • Click Update
  5. Go to Part-up's General settings
    • Select "8.0" (under Deployment Info > Deployment Target)
    • Select "iPhone" (under Deployment Info > Devices)
    • Uncheck "Upside Down" (under Deployment Info > Device Orientation)
    • Select "Light" (under Deployment Info > Status Bar Style)
    • Check "Hide status bar" (under Deployment Info > Status Bar Style)
  6. Go to Part-up's Capabilities settings
    • Enable Push Notifications for Part-up B.V.
  7. Make sure you increase the version number in General settings
  8. Since iOS 10 and Xcode 8, it is no longer possible to test the production version of the app by building it directly to a device. In step 11 after archiving we will do this the new way.
  9. From the top menu, select "Product > Archive" and wait untill the process completes
  10. An archives window should pop up.
  11. Before submitting to the App Store, test the build on an iPhone.
    • In the archiver, select the archived build you wish to test
    • Click Export... under the upload to appstore button
    • Select Save for Ad Hoc Deployment
    • Choose Part-up BV
    • Select Export one app for all compatible devices
    • Important: Under Binary and Entitlements Make sure aps-environment says production. Then click Next
    • Export to a location you can easily find in finder
    • Open Itunes
    • Connect the device you wish to test on
    • In the top-left, select Apps
    • Drag the exported Part-up.ipa into Itunes
    • Click on the device icon next to the top-left selector
    • Go to Apps
    • Click on Install next to Part-up
    • On the bottom-right click Done and apply
    • Voilla, Itunes will install the app on your device
    • Test the app and pray Apple won't make our lives more difficult when iOS 11 comes out
  12. Select the latest version and hit "Upload to App Store..."
  13. When asked, choose the correct Development Team.
  14. Check the Binary and Entitlements and hit Upload.
  15. Wait until the build is processed by Apple at itunesconnect.apple.com.
  16. Release the build for internal testing, external testing or production.

Android

  • Obtain the android-keystore file from a colleague, put it in the repo root and ask for the passphrase.
  • To create the final APK before publishment, you have to sign and align it.
    • $ cd app
    • $ meteor npm install
    • $ meteor build ../output --mobile-settings ../config/<environment>/settings.json --server <partup-url> (replace with acceptance or production and with the part-up server url)
    • $ cd ..
    • $ jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore android-keystore output/android/project/build/outputs/apk/android-armv7-release-unsigned.apk part-up-android
    • $ANDROID_HOME/build-tools//zipalign 4 output/android/project/build/outputs/apk/android-armv7-release-unsigned.apk part-up.apk
  • Test your build by running it on an Android device:
    • Connect an Android device.
    • Remove the app from the Android device if the app already exists.
    • Install the app using adb install -r part-up.apk (-r takes care of previously installed versions).
    • Start the app.
  • If you are satisfied with the APK, publish it to Google Play:
    • Go to Google Play's Developer Console: https://play.google.com/apps/publish
    • Click on Alpha / Beta / Production.
    • Upload your new APK using the upload button.
    • After a few hours, the new version should be available to everyone.

About

Meteor1.3+React Cordova app

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • CSS 51.9%
  • JavaScript 47.9%
  • Other 0.2%