File tree 2 files changed +17
-1
lines changed
templates/module/android/library_new_embedding/Flutter.tmpl
2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ import 'android_sdk.dart';
28
28
// Please see the README before changing any of these values.
29
29
const String templateDefaultGradleVersion = '8.3' ;
30
30
const String templateAndroidGradlePluginVersion = '8.1.0' ;
31
- const String templateAndroidGradlePluginVersionForModule = '7.3 .0' ;
31
+ const String templateAndroidGradlePluginVersionForModule = '8.1 .0' ;
32
32
const String templateKotlinGradlePluginVersion = '1.8.22' ;
33
33
34
34
// The Flutter Gradle Plugin is only applied to app projects, and modules that
Original file line number Diff line number Diff line change @@ -47,6 +47,22 @@ android {
47
47
}
48
48
}
49
49
50
+ android.buildTypes.all {buildType ->
51
+ if (!android.productFlavors.isEmpty()) {
52
+ android.productFlavors.all{productFlavor ->
53
+ android.publishing.singleVariant(productFlavor.name + buildType.name.capitalize()) {
54
+ withSourcesJar()
55
+ withJavadocJar()
56
+ }
57
+ }
58
+ } else {
59
+ android.publishing.singleVariant(buildType.name) {
60
+ withSourcesJar()
61
+ withJavadocJar()
62
+ }
63
+ }
64
+ }
65
+
50
66
flutter {
51
67
source = "../.."
52
68
}
You can’t perform that action at this time.
0 commit comments