This app uses Meteor's DDP.connect()
to manually connect to the server hosted at the part-up/part-up repository.
Nothing but Meteor
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.
iOS
$ ./run-ios
Android
$ ./run-android
$ cd app
$ meteor npm install --save some-package
$ cd app
$ meteor add cordova:<cordova-plugin-name>@<version>
$ 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)- 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
- 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)
- Go to Part-up's Capabilities settings
- Enable Push Notifications for Part-up B.V.
- Make sure you increase the version number in General settings
- 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.
- From the top menu, select "Product > Archive" and wait untill the process completes
- An archives window should pop up.
- 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
- Select the latest version and hit "Upload to App Store..."
- When asked, choose the correct Development Team.
- Check the Binary and Entitlements and hit Upload.
- Wait until the build is processed by Apple at itunesconnect.apple.com.
- Release the build for internal testing, external testing or production.
- 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.