-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Proguard warning about AtomicFU#setInterceptor() #1116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
* Update to atomicfu 0.12.4, which fixes plugin operation with kotlin-multiplatform * Remove explicit dependencies (plugins adds them automatically) Fixes #1116
strill getting warning Warning: kotlinx.coroutines.flow.FlowKt__MergeKt: can't find referenced class kotlinx.atomicfu.AtomicBoolean `buildscript {
} //project.ext {
// manifestPlaceholders = [applicationId:android.defaultConfig.applicationId + ".dev"]
// manifestPlaceholders = [applicationId:android.defaultConfig.applicationId +".dev"]
// manifestPlaceholders = [applicationId:android.defaultConfig.applicationId ] dependencies {
// implementation 'com.appsee:appsee-android:+'
// Room components // Lifecycle components // Coroutines
} kotlin { ### proguard rules ` -keep class com.google.gson.** { ; } -dontwarn com.google.errorprone.annotations.** -keepclassmembers class * implements java.io.Serializable { -keepnames class com.facebook.FacebookActivity -keep class com.facebook.login.Login -keepattributes Signature, InnerClasses -keepattributes Annotation -keepclassmembers enum android.arch.lifecycle.Lifecycle$Event { -keep class * implements android.arch.lifecycle.LifecycleObserver { -keep class * implements android.arch.lifecycle.GeneratedAdapter { -keepclassmembers class ** { -keep class com.crashlytics.** { ; } -keep class * extends java.util.ListResourceBundle { -keep public class com.google.android.gms.common.internal.safeparcel.SafeParcelable { -keepnames @com.google.android.gms.common.annotation.KeepName class * -keepnames class * implements android.os.Parcelable { -keep interface org.parceler.Parcel -keepclassmembers class fqcn.of.javascript.interface.for.webview { -keepattributes SourceFile,LineNumberTable -keep class org.apache.** { ; } -keep class com.shaded.fasterxml.jackson.** { *; } -dontwarn kotlin.** -keep public class com.google.android.gms.* { public ; } -keep class * extends java.util.ListResourceBundle { -keep public class com.google.android.gms.common.internal.safeparcel.SafeParcelable { -keepnames @com.google.android.gms.common.annotation.KeepName class * -keepnames class * implements android.os.Parcelable { -dontwarn org.conscrypt.** -dontwarn com.google.gson.Gson$6 -keep class com.appsee.** { ; } -dontwarn com.clevertap.android.sdk.** -keepnames class kotlinx.coroutines.internal.MainDispatcherFactory {} -keepclassmembernames class kotlinx.** { -keep class com.google.android.gms.internal.** { *; } -dontwarn kotlin.** -keep class kotlin.Metadata { ; } -keepclassmembers class **$WhenMappings { -dontwarn android.arch.util.paging.CountedDataSource -keep class com.facebook.stetho.** { ; } project build.gradle`// Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript {
} allprojects { subprojects { |
After updating to 1.2.0 I got
Warning: kotlinx.atomicfu.AtomicFU: can't find referenced method 'void setInterceptor(kotlinx.atomicfu.AtomicOperationInterceptor)' in program class kotlinx.atomicfu.InterceptorKt
from ProGuard, version 6.0.3.
I solved it by adding
-dontwarn kotlinx.atomicfu.AtomicFU
in proguard rules, but I'm in doubt if it's a safe way to fix it and even if it is. It's probably required to add this line to coroutines.pro file.The text was updated successfully, but these errors were encountered: