Skip to content

Commit

Permalink
Add dev flavor
Browse files Browse the repository at this point in the history
  • Loading branch information
AhsanSarwar45 committed Dec 17, 2023
1 parent f93a416 commit f518b35
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 28 deletions.
12 changes: 3 additions & 9 deletions .github/workflows/android-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:

- uses: actions/setup-java@v3
with:
distribution: 'zulu'
distribution: 'adopt'
java-version: "17"
cache: 'gradle'

Expand All @@ -43,14 +43,8 @@ jobs:
- name: Pub Get Packages
run: flutter pub get

- name: Build arm APK
run: flutter build apk --release --split-per-abi --target-platform="android-arm"

- name: Build arm64 APK
run: flutter build apk --release --split-per-abi --target-platform="android-arm64"

- name: Build x64 APK
run: flutter build apk --release --split-per-abi --target-platform="android-x64"
- name: Build APK
run: flutter build apk --release --split-per-abi --flavor dev

- name: Save APKs to Artifacts
uses: actions/upload-artifact@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/android-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
with:
distribution: 'adopt'
java-version: "17"
# cache: 'gradle'
cache: 'gradle'

- uses: subosito/flutter-action@v2
with:
Expand Down
28 changes: 10 additions & 18 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -128,24 +128,16 @@ android {
}
}

// flavorDimensions "app"

// productFlavors {
// dev {
// dimension "app"
// resValue "string", "app_name","Chrono Dev"
// versionNameSuffix "-dev"
// }

// fdroid {
// dimension "app"
// resValue "string", "app_name","Chrono"
// versionName "0.2.5"
// versionCode 1

// }

// }
flavorDimensions "app"

productFlavors {
dev {
dimension "app"
resValue "string", "app_name","Chrono Dev"
versionNameSuffix "-dev",
applicationIdSuffix ".free"
}
}
}

flutter {
Expand Down

0 comments on commit f518b35

Please sign in to comment.