SafeBite/app/proguard-rules.pro
Bruno Charest bd9d01a6ee feat: add catalog domain/category browsing with seed data, implement navigation from shopping lists to catalog UI, add ProGuard rules for Moshi/Room
- Add `ShoppingDomainEntity`, `CategoryEntity`, `CatalogItemEntity`, `ItemCategoryCrossRef` tables to database
- Increment database version to 8 with migration from v7
- Create `CatalogDao` with queries for domains, categories, items, and search
- Implement `CatalogSeedManager` to parse and insert JSON seed data on first launch
- Add catalog navigation routes
2026-04-29 08:52:19 -04:00

38 lines
1.2 KiB
Prolog

# SafeBite proguard rules
-keepattributes *Annotation*, Signature, Exceptions, InnerClasses
# Moshi runtime + codegen generated adapters + reflection fallback
-keep class com.squareup.moshi.** { *; }
-keep class kotlin.reflect.jvm.internal.** { *; }
-keepclassmembers class ** {
@com.squareup.moshi.FromJson *;
@com.squareup.moshi.ToJson *;
}
# Conserver les adapters générés par Moshi codegen (ClassName + "JsonAdapter")
-keep,allowobfuscation,allowshrinking class **JsonAdapter {
<init>(...);
<fields>;
}
-keep,allowobfuscation class kotlin.Metadata
# Catalogue : modèles de seed JSON + adapters générés
-keep class com.safebite.app.data.local.seed.** { *; }
-keep class com.safebite.app.data.local.seed.*JsonAdapter { *; }
# Room entities : conserver les noms de champs pour la réflexion Room
-keep class com.safebite.app.data.local.database.entity.** { *; }
-keep class com.safebite.app.data.local.database.relation.** { *; }
# Retrofit
-keep class retrofit2.** { *; }
-keepattributes Exceptions
# Kotlin metadata
-keep class kotlin.Metadata { *; }
# DTOs
-keep class com.safebite.app.data.remote.dto.** { *; }
# ML Kit
-keep class com.google.mlkit.** { *; }