diff --git a/.github/workflows/shorebird_patch.yaml b/.github/workflows/shorebird_patch.yaml index 9b5fa3e..29f1989 100644 --- a/.github/workflows/shorebird_patch.yaml +++ b/.github/workflows/shorebird_patch.yaml @@ -18,5 +18,9 @@ jobs: - name: Create Patch env: SHOREBIRD_TOKEN: ${{ secrets.SHOREBIRD_TOKEN }} + SIGNING_KEYSTORE_BASE64: ${{ secrets.SIGNING_KEYSTORE_BASE64 }} + SIGNING_PROPERTIES: ${{ secrets.SIGNING_PROPERTIES }} run: | + echo "$SIGNING_KEYSTORE_BASE64" | base64 --decode > android/app/experiment.jks + echo "$SIGNING_PROPERTIES" > android/signing.properties echo y | shorebird patch --platforms=android --release-version=${{ github.event.inputs.version_to_patch }} \ No newline at end of file diff --git a/README.md b/README.md index bcfd97d..fba0172 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,19 @@ Basic app to try out Shorebird, contains a build and a patch. ## APK +Created the APK from the release's aab via +``` +java -jar bundletool-all-1.17.0.jar build-apks --bundle=my_app.aab --output=my_app.apks \ +--ks=keystore.jks \ +--ks-pass= \ +--ks-key-alias= \ +--key-pass= +``` +Download via: +![QR Code for APK](download_qr.jpg) + +First launch you should see an incorrect text. Second launch it should update to the correct patched version. ## Local development diff --git a/android/app/build.gradle b/android/app/build.gradle index 3c43ba9..3f89347 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -59,7 +59,7 @@ android { keyPassword 'android' } release { - storeFile file(signingProperties.getProperty("keystore_path")) + storeFile file(signingProperties.getProperty("keystore_path", "debug.keystore")) keyAlias signingProperties.getProperty("key_alias") keyPassword signingProperties.getProperty("key_password") storePassword signingProperties.getProperty("store_password") diff --git a/android/app/debug.keystore b/android/app/debug.keystore new file mode 100644 index 0000000..364e105 Binary files /dev/null and b/android/app/debug.keystore differ diff --git a/download_qr.jpg b/download_qr.jpg new file mode 100644 index 0000000..dd5d47a Binary files /dev/null and b/download_qr.jpg differ diff --git a/lib/main.dart b/lib/main.dart index 8b4ee5b..b706416 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -49,8 +49,8 @@ class _MyHomePageState extends State { mainAxisAlignment: MainAxisAlignment.center, children: [ const Text( - // 'You have pushed the button this many times:', - 'You have times:', + 'You have pushed the button this many times:', + // 'You have times:', ), Text( '$_counter', diff --git a/release.apk b/release.apk new file mode 100644 index 0000000..4aa9271 Binary files /dev/null and b/release.apk differ