chore(gradle): fix code-review findings on app module setup

- Restore 4-space indent on kotlin-compose plugin alias (regression from
  the previous cleanup commit)
- Fix invalid ProGuard rule: HiltAndroidApp is an annotation type, not
  a class - use '-keep @dagger.hilt.android.HiltAndroidApp class *' to
  actually retain the @HiltAndroidApp-annotated Application
- Remove vectorDrawables.useSupportLibrary - dead config since minSdk 29
  (native VectorDrawable support since API 21)

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Jean-Luc Makiola
2026-06-08 15:22:07 +02:00
parent 5e2cee1147
commit 8312bc6e0c
3 changed files with 2 additions and 3 deletions

View File

@@ -17,7 +17,6 @@ android {
versionName = "0.1.0" versionName = "0.1.0"
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables { useSupportLibrary = true }
} }
buildTypes { buildTypes {

View File

@@ -1,6 +1,6 @@
# Keep Hilt-generated classes # Keep Hilt-generated classes
-keep class dagger.hilt.** { *; } -keep class dagger.hilt.** { *; }
-keep class * extends dagger.hilt.android.HiltAndroidApp -keep @dagger.hilt.android.HiltAndroidApp class *
# Compose Compiler may keep its own; defaults are fine # Compose Compiler may keep its own; defaults are fine
-dontwarn org.jetbrains.annotations.** -dontwarn org.jetbrains.annotations.**