Skip to content

Commit c2b6343

Browse files
authored
Added build platform steps of the example to detect configuration issues (#620)
* Added CI step to build the example for Android and iOS (to proactively detect any issues) * Upgraded Android build tools (for example)
1 parent 218cd66 commit c2b6343

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

.github/workflows/main.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,13 @@ jobs:
4040
flutter format --dry-run --set-exit-if-changed .
4141
flutter analyze --no-pub
4242
flutter test --no-pub --coverage
43+
44+
- name: Build Example
45+
run: |
46+
pushd example
47+
flutter build appbundle --no-pub --debug
48+
flutter build ios --no-pub --debug --no-codesign
49+
4350
- name: Upload coverage to Codecov
4451
if: ${{ matrix.channel == 'stable' }}
4552
uses: codecov/codecov-action@v1

example/android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ buildscript {
66
}
77

88
dependencies {
9-
classpath 'com.android.tools.build:gradle:3.5.0'
9+
classpath 'com.android.tools.build:gradle:4.1.1'
1010
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
1111
}
1212
}

example/android/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.2-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-all.zip

0 commit comments

Comments
 (0)