Giter Site home page Giter Site logo

Comments (7)

miguelslemos avatar miguelslemos commented on May 9, 2024

And also leaking activities, any suggestion to better approach?

from just-another-android-app.

athkalia avatar athkalia commented on May 9, 2024

Hey there,

I made this when playing around with https://github.com/fabioCollini/DaggerMock , couldn't come up with anything else. Maybe the dagger 2 latest version that has some android specific injectors can solve this problem better (see https://google.github.io/dagger//android.html). I've not managed to have a look at those yet. Btw, what leaks are you referring to?

from just-another-android-app.

Thomas-Vos avatar Thomas-Vos commented on May 9, 2024

Hello @miguelslemos,
Did you make any progress? If so, could you let me know how you implemented this? I'm working on an app with a LOT of presenters/views (single activity, many fragments, it's an all-in-one app) and am not sure what the best method to implement this is.
Thanks, Thomas

from just-another-android-app.

miguelslemos avatar miguelslemos commented on May 9, 2024

@SuperThomasLab not yet, maybe @athkalia has any idea?

from just-another-android-app.

athkalia avatar athkalia commented on May 9, 2024

Nothing yet, but I am planning to integrate this https://github.com/google/dagger/releases/tag/dagger-2.11 into the project and then re-evaluate the approach with testing. Can't guarantee with dates.

from just-another-android-app.

miguelslemos avatar miguelslemos commented on May 9, 2024

migrate to dagger 2.11 looks great, hope come in soon

from just-another-android-app.

athkalia avatar athkalia commented on May 9, 2024

Created PR for dagger 2.11
#88

Also got rid of dagger mock overall. Not compatible with the new android stuff and also feels like just too much work only to run some tests. Will revisit this decision in a few months, hopefully something else will make it easier to inject some mocks to the dagger graph

from just-another-android-app.

Related Issues (9)

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.