mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
Upgrade module template AGP version (#151675)
Follow up to https://github.com/flutter/flutter/pull/151433.
This commit is contained in:
parent
bae42ade17
commit
814e49be49
@ -28,7 +28,7 @@ import 'android_sdk.dart';
|
||||
// Please see the README before changing any of these values.
|
||||
const String templateDefaultGradleVersion = '8.3';
|
||||
const String templateAndroidGradlePluginVersion = '8.1.0';
|
||||
const String templateAndroidGradlePluginVersionForModule = '7.3.0';
|
||||
const String templateAndroidGradlePluginVersionForModule = '8.1.0';
|
||||
const String templateKotlinGradlePluginVersion = '1.8.22';
|
||||
|
||||
// The Flutter Gradle Plugin is only applied to app projects, and modules that
|
||||
|
@ -47,6 +47,22 @@ android {
|
||||
}
|
||||
}
|
||||
|
||||
android.buildTypes.all {buildType ->
|
||||
if (!android.productFlavors.isEmpty()) {
|
||||
android.productFlavors.all{productFlavor ->
|
||||
android.publishing.singleVariant(productFlavor.name + buildType.name.capitalize()) {
|
||||
withSourcesJar()
|
||||
withJavadocJar()
|
||||
}
|
||||
}
|
||||
} else {
|
||||
android.publishing.singleVariant(buildType.name) {
|
||||
withSourcesJar()
|
||||
withJavadocJar()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
flutter {
|
||||
source = "../.."
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user