Skip to content

Commit

Permalink
fix ci, update gradle (#10)
Browse files Browse the repository at this point in the history
* update gradle

* update ci
  • Loading branch information
josxha authored Jan 31, 2024
1 parent a1f2427 commit f42425e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/build-android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: Build Android
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build-android:
runs-on: ubuntu-latest
Expand All @@ -13,13 +16,11 @@ jobs:
uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: '19'
java-version: '21'
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: '3.x'
- name: Get Flutter dependencies
run: flutter pub get
- name: Build APK
working-directory: example
run: flutter build apk
Expand Down
3 changes: 3 additions & 0 deletions example/android/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
org.gradle.jvmargs=-Xmx4G
android.useAndroidX=true
android.enableJetifier=true
android.defaults.buildfeatures.buildconfig=true
android.nonTransitiveRClass=false
android.nonFinalResIds=false
2 changes: 1 addition & 1 deletion example/android/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-all.zip
2 changes: 1 addition & 1 deletion example/android/settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ pluginManagement {

plugins {
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
id "com.android.application" version "7.3.0" apply false
id "com.android.application" version '8.2.0' apply false
}

include ":app"

0 comments on commit f42425e

Please sign in to comment.