Skip to content

Commit

Permalink
1.3.3+33: Update build config
Browse files Browse the repository at this point in the history
  • Loading branch information
felipebueno committed Jun 9, 2024
1 parent 13fefb5 commit 152fe64
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 8 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/github-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}
4 changes: 2 additions & 2 deletions .github/workflows/google-play-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ android {

flavorDimensions "default"
productFlavors {
prod {
dimension "default"
}

dbg {
dimension "default"
applicationIdSuffix ".dbg"
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 152fe64

Please sign in to comment.