MAN-3278: правила

This commit is contained in:
Strekalov Sergey
2026-05-14 22:42:12 +03:00
parent e04131eefe
commit a9310567c7
2 changed files with 24 additions and 0 deletions
+1
View File
@@ -6,6 +6,7 @@
-include rules/glide.pro
-include rules/kaspersky.pro
-include rules/appsflyer.pro
-include rules/appmetrica.pro
-include rules/moshi.pro
-include rules/androidx_security.pro
-include rules/kotlinx_serialization.pro
+23
View File
@@ -0,0 +1,23 @@
# AppMetrica SDK (io.appmetrica.analytics:analytics 8.x)
# https://appmetrica.yandex.ru/docs/mobile-sdk-dg/android/quickstart.html
# https://github.com/appmetrica/appmetrica-sdk-android
# Сохраняем все классы SDK внутри активно используется reflection
# (генерация ID, сериализация событий, нативные крэш-репорты).
-keep class io.appmetrica.analytics.** { *; }
-keep interface io.appmetrica.analytics.** { *; }
-dontwarn io.appmetrica.analytics.**
# Старый namespace Yandex.Metrica (до миграции в io.appmetrica).
# В transitive-зависимостях ещё может встречаться держим на всякий случай.
-keep class com.yandex.metrica.** { *; }
-keep interface com.yandex.metrica.** { *; }
-dontwarn com.yandex.metrica.**
# AppMetrica использует OkHttp internal через свой shaded-вариант, плюс GMS
# (Google Advertising ID, Play Install Referrer) gms-классы могут отсутствовать
# в huawei/rustore-flavor'ах.
-dontwarn com.google.android.gms.ads.identifier.**
-dontwarn com.google.android.gms.common.**
-dontwarn com.huawei.hms.ads.identifier.**
-dontwarn com.android.installreferrer.**