Skip to content

Commit

Permalink
Update build.gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
AhsanSarwar45 committed Dec 15, 2023
1 parent 7efe9d1 commit 299467f
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 8 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/android-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,23 @@ jobs:
- name: Extract version from tag
uses: damienaicheh/extract-version-from-tag-action@v1.1.0

- name: Turn off analytics
run: flutter config --no-analytics

- name: Pub Get Packages
run: "flutter pub get"
run: flutter pub get

- name: Build APPBUNDLE
run: "flutter build appbundle"
run: flutter build appbundle

- 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 APK
run: "flutter build apk --split-per-abi"
- name: Build x64 APK
run: flutter build apk --release --split-per-abi --target-platform="android-x64"

- name: Build Changelog
id: github_release
Expand Down
6 changes: 3 additions & 3 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ android {
targetSdkVersion rootProject.ext.targetSdkVersion
// def abiCodes = ['armeabi-v7a':1, 'arm64-v8a':2, x86_64:3]
// def abi = project.hasProperty('flutterBuildAbi') ? project.flutterBuildAbi : 'armeabi-v7a'
versionCode 22
versionName "0.2.6"
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
multiDexEnabled true
}
signingConfigs {
Expand Down Expand Up @@ -124,7 +124,7 @@ android {
def abi = output.getFilter(OutputFile.ABI)
if (abi != null) { // null for the universal-debug, universal-release variants
output.versionCodeOverride =
2 * 10 + versionCodes.get(abi)}
variant.versionCode * 10 + versionCodes.get(abi)}
}
}

Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ publish_to: "none" # Remove this line if you wish to publish to pub.dev
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
# In Windows, build-name is used as the major, minor, and patch parts
# of the product and file versions while build-number is used as the build suffix.
version: 0.2.6+2
version: 0.2.7+3

environment:
sdk: ">=2.18.6 <3.0.0"
Expand Down

0 comments on commit 299467f

Please sign in to comment.