diff --git a/.github/workflows/github-release.yml b/.github/workflows/github-release.yml index 458861c..56c301e 100644 --- a/.github/workflows/github-release.yml +++ b/.github/workflows/github-release.yml @@ -39,17 +39,18 @@ jobs: echo "keyPassword=${{ secrets.KEY_PASSWORD }}" >> android/key.properties echo "keyAlias=${{ secrets.KEY_ALIAS }}" >> android/key.properties - name: Build APK (split per ABI) - run: flutter build apk --split-per-abi + run: flutter build apk --split-per-abi --flavor prod - name: Build App Bundle - run: flutter build appbundle + run: flutter build appbundle --flavor prod - name: Archive build artifacts uses: actions/upload-artifact@v2 with: name: build-artifacts path: | - build/app/outputs/flutter-apk/app-arm64-v8a-release.apk - build/app/outputs/flutter-apk/app-armeabi-v7a-release.apk - build/app/outputs/flutter-apk/app-x86_64-release.apk + build/app/outputs/flutter-apk/app-arm64-v8a-prod-release.apk + build/app/outputs/flutter-apk/app-armeabi-v7a-prod-release.apk + build/app/outputs/flutter-apk/app-x86_64-prod-release.apk + build/app/outputs/bundle/prodRelease/app-prod-release.aab release: name: Create GitHub Release @@ -68,5 +69,6 @@ jobs: app-arm64-v8a-release.apk app-armeabi-v7a-release.apk app-x86_64-release.apk + app-prod-release.aab env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/google-play-release.yml b/.github/workflows/google-play-release.yml index 60d77e2..e610bdc 100644 --- a/.github/workflows/google-play-release.yml +++ b/.github/workflows/google-play-release.yml @@ -77,13 +77,13 @@ jobs: run: flutter pub get - name: Start Android Release Build - run: flutter build appbundle + run: flutter build appbundle --flavor prod - name: Upload Android Release uses: actions/upload-artifact@v2 with: name: android-release - path: build/app/outputs/bundle/release/app-release.aab + path: build/app/outputs/bundle/prodRelease/app-prod-release.aab deploy: name: Deploy Android Build diff --git a/android/app/build.gradle b/android/app/build.gradle index fc7ad00..150098c 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -82,6 +82,10 @@ android { flavorDimensions "default" productFlavors { + prod { + dimension "default" + } + dbg { dimension "default" applicationIdSuffix ".dbg" diff --git a/pubspec.yaml b/pubspec.yaml index f50bd91..c500903 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -11,7 +11,7 @@ description: A new Flutter project. # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. # Read more about iOS versioning at # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html -version: 1.3.3+32 +version: 1.3.3+33 environment: sdk: ">=3.4.0 <4.0.0"