Migrate to new AGP DSL and remove android.newDsl=false opt-out
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 55/100
- Tipo de issue
- Refactorización
- Claridad
- Bien especificado
- Estado de actividad
- Tranquilo
- Stack tecnológico
- android, kotlin
- Área
- build-system, mobile
Línea de trabajo
Comienza con el archivo root build.gradle.kts alrededor de las líneas 174-180 e inspecciona la configuración del módulo de biblioteca usando BaseExtension. Después, revisa sentry-samples/sentry-samples-android/build.gradle.kts para localizar su import de VariantImpl interno, elimina android.newDsl=false de gradle.properties y confirma que el build se complete correctamente con la nueva DSL de AGP.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Follow-up to the AGP 8.13.1 → 9.2.1 bump (getsentry/sentry-java#5777). To land AGP 9 without a large refactor, the bump added a temporary opt-out in gradle.properties:
# AGP 9+ migration opt-outs until we remove kotlin-android plugin and adopt built-in Kotlin.
android.newDsl=false
Why this matters: android.newDsl=false opts out of AGP 9's new DSL. If Google removes this flag in a future AGP release, we will be unable to upgrade until the migration is done.
Current state:
- The root
build.gradle.kts(around lines 174-180) still configures library modules via the legacycom.android.build.gradle.BaseExtensioninsideplugins.withId("com.android.library") { ... }. This is what depends on the old DSL. - Runtime modules already use the new
androidComponentsVariant API (beforeVariants/onVariants); the oldlibraryVariants/applicationVariants/BaseVariantAPI is not used anywhere. Good starting position. - Fragility to address:
sentry-samples/sentry-samples-android/build.gradle.ktsimports the internalcom.android.build.api.variant.impl.VariantImpl(a non-stable.impl.class), a likely future break point.
Scope:
- Replace the
BaseExtension-based configuration in the root build with the new DSL. - Remove the internal
VariantImplusage in the Android sample. - Remove
android.newDsl=falsefromgradle.propertiesand confirm the build passes.
Done when: android.newDsl=false is removed and the build works on the new AGP DSL.
Should be picked up after the AGP bump PRs merge.
- Lenguaje dominante
- Kotlin
- Estrellas
- 1.4k
- Forks
- 478
- Merge medio
- 2 d 20 h
- PR fusionados (30 d)
- 71
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de getsentry/sentry-java
-
Improvement Java Platform: Android Platform: Java
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
getsentry/sentry-java#6145 · 1 comentario · 1 asignado ·
-
Bug Java Platform: Android Platform: Java
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
getsentry/sentry-java#6138 · 1 comentario ·
-
Feature Java Platform: Java Spans
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
getsentry/sentry-java#5984 · 1 comentario ·
-
Android Task Traces
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
getsentry/sentry-java#5376 · 1 comentario ·
-
Android Docs Errors
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
getsentry/sentry-java#5375 · 1 comentario ·
Todos los issues de getsentry/sentry-java
Issues similares
-
[Bug] 统计页面无法重置token和汇率 Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
AAswordman/Operit#1265 · 3 comentarios ·
-
The extension stopped working. AbiertoSource is down
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
keiyoushi/extensions-source#19317 ·
-
Tambahkan bahasa Indonesia Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
acristescu/OnlineGo#216 ·
-
Remove custom segment colors Abiertoenhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
libre-tube/LibreTube#8803 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100