This commit is contained in:
Gergely Hegedus 2024-07-15 21:21:52 +03:00
parent c63298b02f
commit a02fd6c430
7 changed files with 19 additions and 3 deletions

View file

@ -18,5 +18,9 @@ jobs:
- name: Create Patch - name: Create Patch
env: env:
SHOREBIRD_TOKEN: ${{ secrets.SHOREBIRD_TOKEN }} SHOREBIRD_TOKEN: ${{ secrets.SHOREBIRD_TOKEN }}
SIGNING_KEYSTORE_BASE64: ${{ secrets.SIGNING_KEYSTORE_BASE64 }}
SIGNING_PROPERTIES: ${{ secrets.SIGNING_PROPERTIES }}
run: | 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 }} echo y | shorebird patch --platforms=android --release-version=${{ github.event.inputs.version_to_patch }}

View file

@ -4,7 +4,19 @@ Basic app to try out Shorebird, contains a build and a patch.
## APK ## 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=<keystorepass> \
--ks-key-alias=<keyalias> \
--key-pass=<keypass>
```
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 ## Local development

View file

@ -59,7 +59,7 @@ android {
keyPassword 'android' keyPassword 'android'
} }
release { release {
storeFile file(signingProperties.getProperty("keystore_path")) storeFile file(signingProperties.getProperty("keystore_path", "debug.keystore"))
keyAlias signingProperties.getProperty("key_alias") keyAlias signingProperties.getProperty("key_alias")
keyPassword signingProperties.getProperty("key_password") keyPassword signingProperties.getProperty("key_password")
storePassword signingProperties.getProperty("store_password") storePassword signingProperties.getProperty("store_password")

BIN
android/app/debug.keystore Normal file

Binary file not shown.

BIN
download_qr.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

View file

@ -49,8 +49,8 @@ class _MyHomePageState extends State<MyHomePage> {
mainAxisAlignment: MainAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[ children: <Widget>[
const Text( const Text(
// 'You have pushed the button this many times:', 'You have pushed the button this many times:',
'You have times:', // 'You have times:',
), ),
Text( Text(
'$_counter', '$_counter',

BIN
release.apk Normal file

Binary file not shown.