question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Proguard warnings on 1.3.0-M1 with flows

See original GitHub issue

Proguard rules applied from coroutines.pro After upgrating to 1.3.0-M1 I got these warnings:

Warning: kotlinx.coroutines.flow.ChannelFlowMerge$mergeImpl$$inlined$collect$1$1: can’t find enclosing method ‘java.lang.Object emit$$forInline(java.lang.Object,kotlin.coroutines.Continuation)’ in program class kotlinx.coroutines.flow.ChannelFlowMerge$mergeImpl$$inlined$collect$1 Warning: kotlinx.coroutines.flow.FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$1$1: can’t find enclosing method ‘java.lang.Object collect$$forInline(kotlinx.coroutines.flow.FlowCollector,kotlin.coroutines.Continuation)’ in program class kotlinx.coroutines.flow.FlowKt__BuildersKt$asFlow$$inlined$unsafeFlow$1 Warning: kotlinx.coroutines.flow.FlowKt__ContextKt$$special$$inlined$collect$1$1: can’t find referenced class kotlinx.coroutines.flow.FlowKt__ContextKt$$special$$inlined$collect$

Are they safe to ignore?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:4
  • Comments:32 (16 by maintainers)

github_iconTop GitHub Comments

16reactions
shmuelrcommented, Sep 5, 2019

I think you can be more specific with the proguard rule. I believe the only issues here are the inlined functions. -dontwarn kotlinx.coroutines.flow.**inlined**

7reactions
ZakTaccardicommented, Sep 10, 2019

5 months without a fix for https://youtrack.jetbrains.com/issue/KT-31242 is pretty painful.

@elizarov - any chance you could apply some pressure to get the timeline for fixing this sped up? It has the unfortunate side effect of making Coroutines/Flow look bad (flow heavily uses inline/crossinline), even though this is not the fault of the Coroutines lib

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to fix these proguard warnings - Stack Overflow
I am using a third party library in my project, since then proguard is issuing me these warnings, which I can't relate to...
Read more >
sbt Reference Manual — Combined Pages
sbt:foo-build> help run Runs a main class, passing along arguments provided on ... such as :cnext and :cprev to nagivate through the errors...
Read more >
Effective ProGuard keep rules for smaller applications (Google ...
ProGuard keep rules are the super power in reducing application size. Correctly specified, they allow tools to remove unneeded code and ...
Read more >
ProGuard Manual: Usage - Guardsquare
ProGuard will print out warnings if it can't find classes due to this option being set. ... the option -useuniqueclassmembernames in both obfuscation...
Read more >
Shrink, obfuscate, and optimize your app - Android Developers
In fact, R8 works with all of your existing ProGuard rules files, so updating the ... Java bytecode into the DEX format that...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found