- 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
38 lines
1.2 KiB
Prolog
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.** { *; }
|