Skip to content

Proguard warning about kotlinx.atomicfu.AtomicBoolean #1155

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

Closed
neugartf opened this issue Apr 29, 2019 · 6 comments
Closed

Proguard warning about kotlinx.atomicfu.AtomicBoolean #1155

neugartf opened this issue Apr 29, 2019 · 6 comments
Labels

Comments

@neugartf
Copy link

Might be related to #1116.
Coroutines v1.2.1, ProGuard v.6.0.3

I'm getting Warning: kotlinx.coroutines.flow.FlowKt__MergeKt: can't find referenced class kotlinx.atomicfu.AtomicBoolean when building the app.

@qwwdfsad qwwdfsad added the bug label Apr 29, 2019
@qwwdfsad
Copy link
Collaborator

qwwdfsad commented Apr 29, 2019

Please ignore this warning.
I've verified, these symbols are left by atomicfu on unused code paths. I will file a separate issue in atomicfu for that

elizarov added a commit that referenced this issue May 6, 2019
* Updated to 0.12.7 version of atmoicfu with fixes.
* Added test that that is no references to atomicfu in any of the
  resulting class files.

Fixes #1155
@utkarshGithub
Copy link

cannot build my release apk , please help

elizarov added a commit that referenced this issue May 7, 2019
* Updated to 0.12.7 version of atmoicfu with fixes.
* Added test that that is no references to atomicfu in any of the
  resulting class files.

Fixes #1155
@qwwdfsad
Copy link
Collaborator

qwwdfsad commented May 8, 2019

cannot build my release apk , please help

You can use dontwarn directive for atomicfu to workaround this issue

@steve-the-edwards
Copy link
Contributor

I am still getting this Gradle Plugin error:

kotlinx.atomicfu.AtomicFU: can't find referenced method 'void setInterceptor(kotlinx.atomicfu.AtomicOperationInterceptor)' in program class kotlinx.atomicfu.InterceptorKt

This is while using kotlinx-coroutines-core and kotlinx-coroutines-android in both shared Kotlin library included as .aar and in application project itself.

I tried explicit includes like the following:

implementation "org.jetbrains.kotlinx:kotlinx-serialization-runtime:$serialization_version"
implementation "org.jetbrains.kotlinx:atomicfu:0.12.4"
implementation "org.jetbrains.kotlinx:atomicfu-common:0.12.4"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.2.1"
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.2.1'
Still no luck

@elizarov
Copy link
Contributor

The fix is in develop branch but not released yet.

@calvarez-ov
Copy link

More specifically, the rule to get past this is:
-dontwarn kotlinx.atomicfu.AtomicBoolean

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants