Skip to content

build(gradle): remove obsolete AGP 9 compatibility properties#44

Merged
Zibete merged 1 commit intomainfrom
build/agp9-property-cleanup
Mar 12, 2026
Merged

build(gradle): remove obsolete AGP 9 compatibility properties#44
Zibete merged 1 commit intomainfrom
build/agp9-property-cleanup

Conversation

@Zibete
Copy link
Copy Markdown
Owner

@Zibete Zibete commented Mar 12, 2026

🧹 build(gradle): remove obsolete AGP 9 compatibility properties

🔧 Qué cambió

  • Se removieron de gradle.properties:
    • android.sdk.defaultTargetSdkToCompileSdkIfUnset=false
    • android.usesSdkInManifest.disallowed=false
    • android.defaults.buildfeatures.resvalues=true
  • Se movió resValues al DSL explícito de app/build.gradle.kts con buildFeatures { resValues = true }

💡 Por qué

  • app ya declara targetSdk = 34, así que android.sdk.defaultTargetSdkToCompileSdkIfUnset=false no preservaba nada relevante
  • No hay <uses-sdk> en los manifests del repo, por lo que android.usesSdkInManifest.disallowed=false era compatibilidad vieja sin uso actual
  • android.defaults.buildfeatures.resvalues=true quedó obsoleta como property global; se explicitó en app para mantener el comportamiento actual de resValue(...)

▶️ Cómo validar

./gradlew help --warning-mode all
./gradlew :app:generateDebugAndroidTestLintModel
./gradlew testDebugUnitTest
./gradlew lintDebug :app:assembleDebug :app:compileReleaseKotlin

🔭 Fuera de alcance

  • Flags restantes con impacto de comportamiento, como android.enableAppCompileTimeRClass=false y android.r8.optimizedResourceShrinking=false
  • Evaluación de android.builtInKotlin=false, android.newDsl=false y android.enableJetifier=true

@Zibete Zibete merged commit 1f68aa3 into main Mar 12, 2026
1 check passed
@Zibete Zibete deleted the build/agp9-property-cleanup branch March 12, 2026 17:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant