Coder Social home page Coder Social logo

Comments (5)

tmurakami avatar tmurakami commented on June 3, 2024

Thank you for reporting!
Could you share your reproducible project?

from dexopener.

gefilte avatar gefilte commented on June 3, 2024

I don't think so, would take too long to redact. Any ideas on what settings I might have that would effect this?

from dexopener.

tmurakami avatar tmurakami commented on June 3, 2024

Recently we have released a new version 0.9.7.
We fixed some bugs and improved the performance.
Could you please try this version?

Also, if you specify a package you want to mock like the following, performance may be improved.

public class YourAndroidJUnitRunner extends AndroidJUnitRunner {

    @Override
    public Application newApplication(ClassLoader cl, String className, Context context) 
            throws InstantiationException, IllegalAccessException, ClassNotFoundException {
        DexOpener.builder(context)
                .openIf(name -> name.startsWith("package.you.want.to.mock."))
                .build()
                .installTo(cl);
        return super.newApplication(cl, className, context);
    }

}

And enabling code shrinking may be effective.
https://developer.android.com/studio/build/shrink-code.html#gradle-shrinker

from dexopener.

gefilte avatar gefilte commented on June 3, 2024

This worked like a charm. Didn't need the shrinking business either, just updating to the latest and filtering per your example code was all that was needed. Thanks so much!
Now to remove all those // FIXME comments... :)

from dexopener.

tmurakami avatar tmurakami commented on June 3, 2024

Since the problem seems to be solved, now I will close this issue.

from dexopener.

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.