proguard-rules.pro 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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 local domain models and repositories
  20. -keep class com.codeskraps.core.local.data.repository.** { *; }
  21. -keep class com.codeskraps.core.local.di.** { *; }
  22. -keep class com.codeskraps.core.local.domain.model.** { *; }
  23. -keep class com.codeskraps.core.local.domain.repository.** { *; }
  24. # Keep specifically problematic classes
  25. -keep class com.codeskraps.core.local.data.repository.LocalGeocodingRepositoryImpl { *; }
  26. -keep class com.codeskraps.core.local.data.repository.LocalResourceRepositoryImpl { *; }
  27. -keep class com.codeskraps.core.local.di.LocalModule_ProvidesGeocodingDBFactory { *; }
  28. -keep class com.codeskraps.core.local.domain.model.GeoLocation { *; }
  29. -keep class com.codeskraps.core.local.domain.repository.LocalGeocodingRepository { *; }
  30. -keep class com.codeskraps.core.local.domain.repository.LocalResourceRepository { *; }
  31. # Java language APIs
  32. -dontwarn java.lang.invoke.StringConcatFactory
  33. # Less aggressive obfuscation
  34. -keepnames class com.codeskraps.core.local.** { *; }
  35. -keepnames class com.codeskraps.core.local.data.** { *; }
  36. -keepnames class com.codeskraps.core.local.domain.** { *; }
  37. -keepnames class com.codeskraps.core.local.di.** { *; }
  38. # Keep Kotlin metadata
  39. -keepattributes RuntimeVisibleAnnotations, RuntimeVisibleParameterAnnotations, RuntimeVisibleTypeAnnotations
  40. -keepattributes *Annotation*
  41. -keepattributes Signature
  42. -keepattributes InnerClasses
  43. -keepattributes EnclosingMethod
  44. # Keep Kotlin coroutines
  45. -keepnames class kotlinx.coroutines.internal.MainDispatcherFactory {}
  46. -keepnames class kotlinx.coroutines.CoroutineExceptionHandler {}