From 2eef9361addca3a4bb516f4bc27be53146acc376 Mon Sep 17 00:00:00 2001 From: Camille Simon <43054281+camsim99@users.noreply.github.com> Date: Tue, 6 Jun 2023 14:14:00 -0700 Subject: [PATCH] [Android] Update plugin and module templates to use Flutter constant for `compileSdkVersion` (#128073) Updates plugin and module templates to use Flutter constant for `compileSdkVersion`. --- .../module/android/deferred_component/build.gradle.tmpl | 2 +- .../templates/plugin/android-kotlin.tmpl/build.gradle.tmpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/flutter_tools/templates/module/android/deferred_component/build.gradle.tmpl b/packages/flutter_tools/templates/module/android/deferred_component/build.gradle.tmpl index bde8ac7833..502aa70449 100644 --- a/packages/flutter_tools/templates/module/android/deferred_component/build.gradle.tmpl +++ b/packages/flutter_tools/templates/module/android/deferred_component/build.gradle.tmpl @@ -19,7 +19,7 @@ if (flutterVersionName == null) { apply plugin: "com.android.dynamic-feature" android { - compileSdkVersion 31 + compileSdkVersion flutter.compileSdkVersion compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 diff --git a/packages/flutter_tools/templates/plugin/android-kotlin.tmpl/build.gradle.tmpl b/packages/flutter_tools/templates/plugin/android-kotlin.tmpl/build.gradle.tmpl index b466c607ee..fbde25d5c0 100644 --- a/packages/flutter_tools/templates/plugin/android-kotlin.tmpl/build.gradle.tmpl +++ b/packages/flutter_tools/templates/plugin/android-kotlin.tmpl/build.gradle.tmpl @@ -29,7 +29,7 @@ android { namespace '{{androidIdentifier}}' } - compileSdkVersion 31 + compileSdkVersion {{compileSdkVersion}} compileOptions { sourceCompatibility JavaVersion.VERSION_1_8