proguard-rules.pro 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. # Add project specific ProGuard rules here.
  2. # You can control the set of applied configuration files using the
  3. # proguardFiles setting in build.gradle.
  4. #
  5. # For more details, see
  6. # http://developer.android.com/guide/developing/tools/proguard.html
  7. # If your project uses WebView with JS, uncomment the following
  8. # and specify the fully qualified class name to the JavaScript interface
  9. # class:
  10. #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
  11. # public *;
  12. #}
  13. # Uncomment this to preserve the line number information for
  14. # debugging stack traces.
  15. -keepattributes SourceFile,LineNumberTable
  16. # If you keep the line number information, uncomment this to
  17. # hide the original source file name.
  18. #-renamesourcefileattribute SourceFile
  19. # Keep all common module classes
  20. -keep class com.codeskraps.feature.common.** { *; }
  21. -keep class com.codeskraps.feature.common.di.** { *; }
  22. -keep class com.codeskraps.feature.common.dispatcher.** { *; }
  23. -keep class com.codeskraps.feature.common.mvi.** { *; }
  24. -keep class com.codeskraps.feature.common.navigation.** { *; }
  25. # Keep specifically the problematic classes
  26. -keep class com.codeskraps.feature.common.di.FeatureModule_ProvidesDispatcherProviderFactory { *; }
  27. -keep class com.codeskraps.feature.common.di.FeatureModule_ProvidesResourcesFactory { *; }
  28. -keep class com.codeskraps.feature.common.dispatcher.DispatcherProvider { *; }
  29. -keep class com.codeskraps.feature.common.mvi.StateReducerFlow { *; }
  30. -keep class com.codeskraps.feature.common.navigation.Screen$Geocoding { *; }
  31. -keep class com.codeskraps.feature.common.navigation.Screen$Map { *; }
  32. -keep class com.codeskraps.feature.common.navigation.Screen$Weather { *; }
  33. # Keep Koin module classes
  34. -keep class com.codeskraps.feature.common.di.** { *; }
  35. -keep class com.codeskraps.feature.common.di.FeatureModuleKt { *; }
  36. # Keep Compose-related classes
  37. -keep class androidx.compose.** { *; }
  38. -keep class androidx.compose.runtime.** { *; }
  39. -keep class androidx.compose.ui.** { *; }
  40. -keep class androidx.compose.foundation.** { *; }
  41. -keep class androidx.compose.material.** { *; }
  42. -keep class androidx.compose.material3.** { *; }
  43. # Less aggressive obfuscation
  44. -keepnames class com.codeskraps.feature.common.** { *; }
  45. -keepnames class com.codeskraps.feature.common.di.** { *; }
  46. -keepnames class com.codeskraps.feature.common.dispatcher.** { *; }
  47. -keepnames class com.codeskraps.feature.common.mvi.** { *; }
  48. -keepnames class com.codeskraps.feature.common.navigation.** { *; }
  49. # Keep Kotlin metadata
  50. -keepattributes RuntimeVisibleAnnotations, RuntimeVisibleParameterAnnotations, RuntimeVisibleTypeAnnotations
  51. -keepattributes *Annotation*
  52. -keepattributes Signature
  53. -keepattributes InnerClasses
  54. -keepattributes EnclosingMethod
  55. # Keep Kotlin coroutines
  56. -keepnames class kotlinx.coroutines.internal.MainDispatcherFactory {}
  57. -keepnames class kotlinx.coroutines.CoroutineExceptionHandler {}
  58. # Java language APIs
  59. -dontwarn java.lang.invoke.StringConcatFactory