Skip to content

Commit cca794a

Browse files
authored
Require AGP 8.3+ and special flag if minSdk < 26 (#2363)
## Goal Require AGP workaround for desugaring when minSdk < 26
2 parents c51cc7c + 618b13e commit cca794a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

embrace-gradle-plugin/src/main/java/io/embrace/android/gradle/plugin/EmbraceGradlePluginDelegate.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,14 +109,14 @@ class EmbraceGradlePluginDelegate {
109109
private fun verifySemConvWorkaround(project: Project, agpWrapper: AgpWrapper) {
110110
val minSdk = agpWrapper.minSdk ?: return
111111

112-
if (minSdk < 24) {
112+
if (minSdk < 26) {
113113
if (agpWrapper.version <= AgpVersion.AGP_8_3_0 ||
114114
project.getProperty("android.useFullClasspathForDexingTransform").orNull != "true"
115115
) {
116116
error(
117-
"To use the Embrace SDK when your minSdk is lower than 24 " +
117+
"To use the Embrace SDK when your minSdk is lower than 26 " +
118118
"you must use AGP 8.3.0+ and add android.useFullClasspathForDexingTransform=true to " +
119-
"gradle.properties.\nAlternatively you can set your minSdk to 24 or higher.\n" +
119+
"gradle.properties.\nAlternatively you can set your minSdk to 26 or higher.\n" +
120120
"This avoids a desugaring bug in old AGP versions that will lead to runtime crashes on old devices.\n" +
121121
"For the full context for this workaround, please see the following issue:" +
122122
" https://issuetracker.google.com/issues/230454566#comment18"

0 commit comments

Comments
 (0)