From 5c595836327701d715e59fb7c0fe7187f67a5a00 Mon Sep 17 00:00:00 2001 From: Fabian Freund Date: Sun, 15 Jun 2025 13:12:13 +0200 Subject: [PATCH] fix build --- .github/workflows/build.yml | 16 ++++++++-------- app/android/app/build.gradle | 11 ++++++++++- 2 files changed, 18 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 89a0979d..343f196e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,4 +1,4 @@ -name: Flutter CICD # action name +name: Flutter CICD on: push: @@ -6,9 +6,9 @@ on: - "v*" jobs: - build: # job's name - runs-on: ubuntu-latest # container os - env: # ADD environment variables + build: + runs-on: ubuntu-latest + env: KEY_JKS: ${{ secrets.KEY_JKS }} KEY_PATH: ${{ github.workspace }}/key.jks KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }} @@ -23,8 +23,8 @@ jobs: java-version: '17' - uses: ruby/setup-ruby@v1 with: - ruby-version: '3.4' # Not needed with a .ruby-version, .tool-versions or mise.toml - bundler-cache: true # runs 'bundle install' and caches installed gems automatically + ruby-version: '3.4' + bundler-cache: true - uses: actions/setup-node@v4 with: node-version: 20 @@ -52,14 +52,13 @@ jobs: - name: Bootstrap melos working-directory: app run: melos bs - # - run: flutter test - name: Build APK working-directory: app run: flutter build apk --verbose --release --split-per-abi --no-tree-shake-icons - name: Build App Bundle working-directory: app run: flutter build appbundle - - name: Create github artifact release # disable this to save storage + - name: Create github artifact release uses: ncipollo/release-action@v1 with: artifacts: "app/build/app/outputs/apk/release/*.apk,app/build/app/outputs/bundle/release/app-release.aab" @@ -69,6 +68,7 @@ jobs: name: appbundle path: app/build/app/outputs/bundle/release/app-release.aab - name: Release to Google Play (alpha) + working-directory: app env: SUPPLY_PACKAGE_NAME: ${{ secrets.ANDROID_PACKAGE_NAME }} SUPPLY_JSON_KEY_DATA: ${{ secrets.GOOGLE_SERVICE_ACCOUNT_KEY }} diff --git a/app/android/app/build.gradle b/app/android/app/build.gradle index 212c1e30..16374c4e 100644 --- a/app/android/app/build.gradle +++ b/app/android/app/build.gradle @@ -84,6 +84,15 @@ android { shrinkResources false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' + + splits { + abi { + enable true + reset() + include 'armeabi-v7a', 'arm64-v8a', 'x86_64' + universalApk false + } + } } } @@ -127,4 +136,4 @@ android.applicationVariants.all { variant -> output.versionCodeOverride = variant.versionCode * 10 + abiVersionCode } } -} \ No newline at end of file +}