diff --git a/g-play-release.sh b/g-play-release.sh new file mode 100755 index 0000000..8668703 --- /dev/null +++ b/g-play-release.sh @@ -0,0 +1,24 @@ +#!/data/data/com.termux/files/usr/bin/bash + +cd mobile + +INTERNAL_STORAGE=/data/data/com.termux/files/home/storage/downloads/.. + +echo -n 'keystore key for signing: ' +read kskey + +echo 'building the release bundle' + +gradle bundleRelease + +mkdir -p $INTERNAL_STORAGE/solon-bin/ + +cp $SOLON/mobile/app/build/outputs/bundle/release/app-release.aab $INTERNAL_STORAGE/solon-bin/ + +echo 'app-bundle.aab copied to \$INTERNAL_STORAGE/solon-bin' + +apksigner sign --ks $INTERNAL_STORAGE/Documents/android-keystore.jks --ks-pass pass:$kskey --min-sdk-version=28 $INTERNAL_STORAGE/solon-bin/app-release.aab + +echo 'aab signed with default android keystore' + +cd .. diff --git a/mobile/app/build.gradle.kts b/mobile/app/build.gradle.kts index 30e075d..142efca 100644 --- a/mobile/app/build.gradle.kts +++ b/mobile/app/build.gradle.kts @@ -12,7 +12,7 @@ tasks.register("printVersionName") { tasks.register("deploy") { dependsOn("assembleDebug") - dependsOn("installDebug") + //dependsOn("installDebug") doLast { exec { commandLine("adb", "shell", "am", "start", "-n", "com.odweta.solon/.MainActivity")