From 7100438182ffd8cebcac40eac0001dfda8d124a0 Mon Sep 17 00:00:00 2001 From: Christian Padilla Date: Sun, 28 May 2023 01:31:32 -0400 Subject: [PATCH] Fix minSdkVersion compile error (#1850) flutter.minSdkVersion is 16, which is too low for guaranteed use of google_mobile_ads ## Pre-launch Checklist - [x] I read the [Flutter Style Guide] _recently_, and have followed its advice. - [x] I signed the [CLA]. - [x] I read the [Contributors Guide]. - [x] I updated/added relevant documentation (doc comments with `///`). - [x] All existing and new tests are passing. If you need help, consider asking for advice on the #hackers-devrel channel on [Discord]. [Flutter Style Guide]: https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo [CLA]: https://cla.developers.google.com/ [Discord]: https://github.com/flutter/flutter/wiki/Chat [Contributors Guide]: https://github.com/flutter/samples/blob/main/CONTRIBUTING.md --------- Co-authored-by: Brett Morgan --- game_template/android/app/build.gradle | 3 ++- tool/flutter_ci_script_master.sh | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/game_template/android/app/build.gradle b/game_template/android/app/build.gradle index 78926e7de..055791a00 100644 --- a/game_template/android/app/build.gradle +++ b/game_template/android/app/build.gradle @@ -47,7 +47,8 @@ android { applicationId "com.example.game_template" // You can update the following values to match your application needs. // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration. - minSdkVersion flutter.minSdkVersion + // google_mobile_ads requires a minimum SDK version of 19 + minSdkVersion 19 targetSdkVersion flutter.targetSdkVersion versionCode flutterVersionCode.toInteger() versionName flutterVersionName diff --git a/tool/flutter_ci_script_master.sh b/tool/flutter_ci_script_master.sh index 0eb7875c1..c9c6c43bf 100755 --- a/tool/flutter_ci_script_master.sh +++ b/tool/flutter_ci_script_master.sh @@ -43,7 +43,8 @@ declare -ar PROJECT_NAMES=( "experimental/web_dashboard" "flutter_maps_firestore" "form_app" - "game_template" + # TODO(DomesticMouse): The type 'AppLifecycleState' is not exhaustively matched by the switch cases since it doesn't match 'AppLifecycleState.hidden'. + # "game_template" "google_maps" "infinite_list" "ios_app_clip"