Skip to content

Commit

Permalink
Merge pull request #2027 from get10101/feat/apk-bundle
Browse files Browse the repository at this point in the history
feat: build android fat bundle and split bundles
  • Loading branch information
bonomat authored Feb 13, 2024
2 parents 8bac958 + 5f16d51 commit e9a2984
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/android-fastlane.yml
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,10 @@ jobs:
ORACLE_PUBKEY: ${{ inputs.oracle_pubkey }}
RGS_SERVER_URL: ${{ inputs.rgs_server_url }}

- name: Build Android APK
id: build-android-apk
- name: Build Android APK for each platform
run: |
NETWORK=$NETWORK just build-android-app-apk --split-per-abi
- name: Build Android APK fat bundle
run: |
NETWORK=$NETWORK just build-android-app-apk
env:
Expand Down
4 changes: 2 additions & 2 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ build-android-app-bundle:
--dart-define="RGS_SERVER_URL=${RGS_SERVER_URL}" \
"${flavor_arg[@]}"

build-android-app-apk:
build-android-app-apk args="":
#!/usr/bin/env bash
BUILD_NAME=$(yq -r .version {{pubspec}})
BUILD_NUMBER=$(git rev-list HEAD --count)
Expand All @@ -597,7 +597,7 @@ build-android-app-apk:
os={{os()}}
echo "building on '$os' for '$NETWORK'"

cd mobile && flutter build apk --split-per-abi \
cd mobile && flutter build apk {{args}} \
--build-name=${BUILD_NAME} \
--build-number=${BUILD_NUMBER} \
--release \
Expand Down

0 comments on commit e9a2984

Please sign in to comment.