Skip to content

Commit

Permalink
Bump required min SDK and add CI check
Browse files Browse the repository at this point in the history
* required due to `meta: ^1.7.0` dependency
* required due to invalid plugin registrations prior to Flutter 2.8.0
  • Loading branch information
kuhnroyal committed Dec 26, 2022
1 parent a24514a commit 5ea8cea
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 11 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,16 @@ jobs:
- run: flutter pub get
- run: flutter format -o show -l 200 --set-exit-if-changed .
- run: flutter analyze --no-pub --no-congratulate
checks_min_sdk_on_update_available:
name: Checks Min SDK on update_available
runs-on: ubuntu-latest
defaults:
run:
working-directory: update_available
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
version: '2.8.0'
channel: 'stable'
- run: flutter pub get
4 changes: 2 additions & 2 deletions update_available/example/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ apply plugin: 'kotlin-android'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"

android {
compileSdkVersion 29
compileSdkVersion 31

sourceSets {
main.java.srcDirs += 'src/main/kotlin'
Expand All @@ -40,7 +40,7 @@ android {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "com.example.example"
minSdkVersion 21
targetSdkVersion 29
targetSdkVersion 31
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
}
Expand Down
4 changes: 2 additions & 2 deletions update_available/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ repository: https://github.com/mateusfccp/update_available/tree/master/update_av
publish_to: none

environment:
sdk: ">=2.12.0 <3.0.0"
flutter: ">=2.0.0"
sdk: ">=2.15.0 <3.0.0"
flutter: ">=2.8.0"

dependencies:
update_available:
Expand Down
4 changes: 2 additions & 2 deletions update_available/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ version: 2.2.0-dev.1
repository: https://github.com/mateusfccp/update_available/tree/master/update_available

environment:
sdk: ">=2.12.0 <3.0.0"
flutter: ">=2.0.0"
sdk: ">=2.15.0 <3.0.0"
flutter: ">=2.8.0"

dependencies:
flutter:
Expand Down
4 changes: 2 additions & 2 deletions update_available_android/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ version: 2.2.0-dev.1
repository: https://github.com/mateusfccp/update_available/tree/master/update_available_android

environment:
sdk: ">=2.12.0 <3.0.0"
flutter: ">=2.0.0"
sdk: ">=2.15.0 <3.0.0"
flutter: ">=2.8.0"

dependencies:
flutter:
Expand Down
4 changes: 2 additions & 2 deletions update_available_ios/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ version: 2.2.0-dev.1
repository: https://github.com/mateusfccp/update_available/tree/master/update_available_ios

environment:
sdk: ">=2.12.0 <3.0.0"
flutter: ">=2.0.0"
sdk: ">=2.15.0 <3.0.0"
flutter: ">=2.8.0"

dependencies:
flutter:
Expand Down
2 changes: 1 addition & 1 deletion update_available_platform_interface/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version: 2.2.0-dev.1
repository: https://github.com/mateusfccp/update_available/tree/master/update_available_platform_interface

environment:
sdk: '>=2.12.0 <3.0.0'
sdk: ">=2.15.0 <3.0.0"

dependencies:
meta: ^1.7.0
Expand Down

0 comments on commit 5ea8cea

Please sign in to comment.