Add the google-service.json file for the mainnet environment in the folder /android/app/. It will result in /android/app/google-services.json. After add the file rebuild the project.
The following files must be updated:
android/app/build.gradleios/HathorMobile.xcodeproj/project.pbxprojpackage.jsonpackage-lock.json
In the package.json and package-lock.json:
- Update the
versionfield accordingly with the bump version
In the android/app/build.gradle:
-
Increase the field
versionCodeandversionNameThe
versionCodemust always be increased because Google Play uses it to uniquely identify the release.
In the ios/HathorMobile.xcodeproj/project.pbxproj:
-
Increase the field
MARKETING_VERSIONNotice that there are two places to update the
MARKETING_VERSIONfield, one for debug and another for release.App Store uses the pair
(CFBundleShortVersionString, CFBundleVersion)to identify a release. They are both fromios/HathorMobile/Info.plist. -
Set the
CURRENT_PROJECT_VERSIONto a valid build versionIf the version is the first release candidate, the
CURRENT_PROJECT_VERSIONshould be0.1.0and we should increase the minor version for each new release candidate, i.e. v1.0.0-rc5 would give usCURRENT_PROJECT_VERSION = 0.5.0. The major version should be 0 for release candidates and 1 for releases. The patch (last digit) of theCURRENT_PROJECT_VERSIONwill be used to number the builds of the same version starting from0.
To execute these steps automatically, run the makefile command:
make bump updateType=<updateType>Where <updateType> can be major, minor, patch, rc or release. Using rc will increment the release candidate count, while using release will reset it.
Create a git tag and a new release on GitHub.
First, open the project in the XCode and Archive a new version. Then, upload this version to the App Store. Finally, go to the AppStoreConnect [1] to submit the new version to the TestFlight and to the App Store.
When writing the version number in the AppStoreConnect, we should supress the prefix v. So, v0.4.1 becomes 0.4.1.
We need to request the App review for both the FlightTest and the App Store. The reviews are independent processes.
When submitting for the App Store, in the Version Release section, "Manually release this version" should be checked.
First, open the project in Android Studio and Generate a Signed Bundle (Android App Bundle). Then, go to the Google Play Console [2] and generate the new release. Finally, upload the .aab to the release and do the rollout.
Usually, we first rollout to the Open track, and, after testing, we rollout to the Production track.