-
Notifications
You must be signed in to change notification settings - Fork 3
Publishing a new Funzo based app
Brad Smith edited this page Feb 5, 2017
·
22 revisions
- Create a Google developer account
- Create a developer key called
funzo-app
and store it in a.keystore
file - Install Java
- Install the
zipalign
command-line utility (usually included with Java) - Install the Android developer tools (go here, then either install the full Android Studio IDE or scroll down to "Get just the command line tools")
- Run the Android SDK Manager (
Android/tools/android
) and install the following packages:
- Android SDK Tools
- Android SDK Platform Tools
- Android 6.0 (API 23)
- In the
Extras
category...- Android Support Repository
- Google Repository
- Clone this repository and install its dependencies, following the instructions in README.md
- Create a copy of the template file in
config/custom/
calledconfig/custom/default.js
- Edit your
default.js
, and set all the variables to something appropriate for your app
Before you begin, make sure you have a copy of your keystore, and know the name and password of your key.
- Open a command-line terminal in your
funzo-app
directory - Edit
config/custom/default.js
and increment theapp.version
value - Run the following:
ember build &&(cd cordova && cordova build android --release)
- This should print a list of two
.apk
files when it completes (if it didn't, something went wrong and you should fix that before proceeding). Paste these into the next command...
- Change the
.keystore
location in the following command, paste the filenames output by the last command at the end of it, and run it:./scripts/sign_apk.sh /PATH/TO/MY.keystore PASTE_APK_FILENAMES_HERE
- If your key is called something other than
funzo-app
, you can specify it as an argument after the keystore.
- You should now see two
.apk
files when you runls *.apk
- Log into the Play Developer Console
- Select your app
- On the left menu, click APK
- Click the Upload new APK button
- Upload both of the signed APKs
- Select a publishing option
- Follow any other prompts you get, and soon your app should appear in the Play store!