We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2c735dd commit e60954eCopy full SHA for e60954e
gradle-plugin/src/main/kotlin/com/google/devtools/ksp/gradle/utils/agpUtils.kt
@@ -34,6 +34,10 @@ fun checkMinimumAgpVersion(pluginVersion: AndroidPluginVersion) {
34
fun Project.useLegacyVariantApi(): Boolean {
35
val agpVersion = project.getAgpVersion() ?: return true
36
37
+ if (providers.gradleProperty("force.legacy.variant.api").orNull == "true") {
38
+ return true
39
+ }
40
+
41
// Fall back to using the legacy Variant API if the AGP version can't be determined for now.
42
return agpVersion < AndroidPluginVersion(8, 10, 0).alpha(3)
43
}
0 commit comments