GithubHelp home page GithubHelp logo

Comments (5)

ZacSweers avatar ZacSweers commented on July 28, 2024 1

we are just keeping rxdogtag2's package entirely for now. The library is only a few classes so it's not terrible to keep it. I'd like to find a more precise rule but haven't had time to look more into it yet

from rxdogtag.

mrmike avatar mrmike commented on July 28, 2024

Hi Zac

Did you find any workaround for this? I've found a similar issue in my project. Is disabling method inlining an only option for now?

from rxdogtag.

lukaciko avatar lukaciko commented on July 28, 2024

How do the stack traces look if the class is inlined? We're seeing Observable.subscribe() and Flowable.subscribe() as first elements in the stack trace, could that be caused by R8? It looks like the ProGuard rules shipped with the library (-keeppackagenames) work as expected when looking at the decompiled app.

from rxdogtag.

ZacSweers avatar ZacSweers commented on July 28, 2024

the line numbers will just look odd or confusing in the tag. keeppackagenames does protected the package names but it doesn't protect against inlining

from rxdogtag.

lukaciko avatar lukaciko commented on July 28, 2024

Yep you are right, package names are not kept for inlined methods. Turns out that in our case the problem wasn't with RxDogClass being inlined but rather RxJava's subscribe() methods being inlined. We had crash reports like these:

Caused by java.lang.NullPointerException
throw with null exception
io.reactivex.Observable.subscribe (Observable.java:12172)
com.spotify.SomeClass (SomeClass.java:29)
[[ ↑↑ Inferred subscribe point ↑↑ ]]. ([[ ↑↑ Inferred subscribe point ↑↑ ]].java)
...

Solved most of the cases with the following rule which produced the same trace without the first stack trace element:

-keepclassmembers class io.reactivex.* { io.reactivex.disposables.Disposable subscribe*; }

(RxJava 2, ignoring blockingSubscribe(), subscribeWith()...)

from rxdogtag.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.