feat: Настройка ProGuard/R8 для release-сборок

Включает минификацию, обфускацию и оптимизацию кода для release-сборок, установив minifyEnabled в true.
• Добавлены правила ProGuard для OkHttp, чтобы предотвратить ошибки во время выполнения, связанные с рефлексией.
• Добавлено правило -keep для классов моделей, чтобы гарантировать корректный парсинг JSON.
This commit is contained in:
2026-01-17 02:43:31 +03:00
parent a46ca548f6
commit 924d445c45
2 changed files with 10 additions and 2 deletions

View File

@@ -18,4 +18,12 @@
# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
#-renamesourcefileattribute SourceFile
# OkHttp rules
-keep,allowobfuscation,allowshrinking class okhttp3.**
-keep,allowobfuscation,allowshrinking class okio.**
-dontwarn org.conscrypt.**
# Keep models (data classes)
-keep class com.anabasis.vkchatmanager.models.** { *; }