Files
AnabasisChatManager-android/app/proguard-rules.pro
benya 924d445c45 feat: Настройка ProGuard/R8 для release-сборок
Включает минификацию, обфускацию и оптимизацию кода для release-сборок, установив minifyEnabled в true.
• Добавлены правила ProGuard для OkHttp, чтобы предотвратить ошибки во время выполнения, связанные с рефлексией.
• Добавлено правило -keep для классов моделей, чтобы гарантировать корректный парсинг JSON.
2026-01-17 02:43:31 +03:00

30 lines
987 B
Prolog

# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}
# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable
# If you keep the line number information, uncomment this to
# hide the original source file name.
#-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.** { *; }