Upgrade module template AGP version (#151675)

Follow up to https://github.com/flutter/flutter/pull/151433.
This commit is contained in:
Gray Mackall
2024-08-12 11:17:41 -07:00
committed by GitHub
parent bae42ade17
commit 814e49be49
2 changed files with 17 additions and 1 deletions

View File

@@ -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 = "../.."
}