Pushing to master
or develop
will deploy the app into playstore as described below:
- Do not push directly to
master
branch as master branch is ment for releasing directly to playstore. - Pushing with
v.*.*
tag todevelop
branch will makebeta
release to playstore
- Change versionName as shown below
- Put release notes inside
whatsnew/whatsnew-en-US
file. This will be shown in playstore inWhat's new
section of the release
If you are getting error such as:
Error: APK specifies a version code that has already been used.
Then change versionName
in ./android/app/build.gradle
file
...
android {
...
defaultConfig {
applicationId "com.dduconnect.dduconnect"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 110 // change this
versionName "1.1.0" // change this
}
...
}
...
cd app/build/outputs/bundle/release
bundletool build-apks --bundle=app-release.aab --output=converted_zip.apks --mode=universal --overwrite \
--ks=../../../../release.keystore \
--ks-pass=pass:$STORE_PASSWORD \
--ks-key-alias=$KEY_ALIAS \
--key-pass=pass:$KEY_PASSWORD
unzip -p converted_zip.apks universal.apk > final_universal.apk
keytool -printcert -jarfile app-release.apk
keytool -list -v -keystore keyStore.jks -alias $KEY_ALIAS