Create Git tag with name pattern "release-X.Y.Z":
git tag -a -m "Tagging for next release" release-0.1.16
It is important to set a Git tag prior to creating a new APK since the tag name is used as version number of the app. This is the app version number shown in Google Play (the app store).
Create APK file suitable for release using terminal:
- Put this in C:\Users\USERNAME.gradle\gradle.properties: AKTIVITETSBANKEN_APP_STORE_PASSWORD=**************** AKTIVITETSBANKEN_APP_KEY_PASSWORD=****************
- $ gradle clean
- $ gradle assembleStaging
- Location APK files in app/build/outputs/apk
Create APK file suitable for release using Android Studio:
- Build > Generate Signed APK...
- Choose the app/keys.keystore key store. Use the same password for both keystore and the key itself.
- Build "production" or "staging" flavor. Build type "release".
One or more "build-related files", like google-play-services_lib\build.xml, may be missing (or specify incorrect paths). If so, try running this command:
$ android update lib-project --target android-15 --path .
Updated project.properties
Updated local.properties
No project name specified, using project folder name 'google-play-services_lib'.
If you wish to change it, edit the first line of build.xml.
Added file ...\google-play-services_lib\build.xml
Added file ...\google-play-services_lib\proguard-project.txt
Finally, you upload app-FLAVOR-release.apk to Google Play using the Developer Console.