Comments (7)
And also leaking activities, any suggestion to better approach?
from just-another-android-app.
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.
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.
@SuperThomasLab not yet, maybe @athkalia has any idea?
from just-another-android-app.
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.
migrate to dagger 2.11 looks great, hope come in soon
from just-another-android-app.
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)
- While app launch: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/facebook/stetho/Stetho HOT 4
- [q] how to add on click to RecycleView (to detect when images are clicked) HOT 2
- Create a details Activity HOT 5
- Was very tricky to integrate React-native into the app HOT 2
- gradlew test fails HOT 2
- Change orientation change while loading HOT 4
- Question: Why not using RxBinding? HOT 2
- Suggestion: Use Dagger 2.11 with AndroidInjector HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from just-another-android-app.