proguard-rules.pro 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. -dontobfuscate
  20. -assumenosideeffects class kotlin.jvm.internal.Intrinsics {
  21. public static void checkNotNull(...);
  22. public static void checkExpressionValueIsNotNull(...);
  23. public static void checkNotNullExpressionValue(...);
  24. public static void checkReturnedValueIsNotNull(...);
  25. public static void checkFieldIsNotNull(...);
  26. public static void checkParameterIsNotNull(...);
  27. public static void checkNotNullParameter(...);
  28. }
  29. # Kotlin Coroutine
  30. # Allow R8 to optimize away the FastServiceLoader.
  31. # Together with ServiceLoader optimization in R8
  32. # this results in direct instantiation when loading Dispatchers.Main
  33. -assumenosideeffects class kotlinx.coroutines.internal.MainDispatcherLoader {
  34. boolean FAST_SERVICE_LOADER_ENABLED return false;
  35. }
  36. -assumenosideeffects class kotlinx.coroutines.internal.FastServiceLoaderKt {
  37. boolean ANDROID_DETECTED return true;
  38. }
  39. -keep class kotlinx.coroutines.android.AndroidDispatcherFactory {*;}
  40. # Disable support for "Missing Main Dispatcher", since we always have Android main dispatcher
  41. -assumenosideeffects class kotlinx.coroutines.internal.MainDispatchersKt {
  42. boolean SUPPORT_MISSING return false;
  43. }
  44. # Statically turn off all debugging facilities and assertions
  45. -assumenosideeffects class kotlinx.coroutines.DebugKt {
  46. boolean getASSERTIONS_ENABLED() return false;
  47. boolean getDEBUG() return false;
  48. boolean getRECOVER_STACK_TRACES() return false;
  49. }