Comments (5)
Im not sure what you are talking about. Are you just talking about the dependency declaration:
compile 'javax.annotation:javax.annotation-api:1.2'
or why im using @Singleton
instead of defining things like @ActivityScope
?
Regarding the second one: I'm just lazy :)
Btw. The mail sample will get a huge dagger2 update.
from mosby.
What I am talking about is what Jake Wharton used in his u2020 project for Dagger. You can also see usages of this for Dagger 2 here: https://github.com/LiveTyping/u2020-mvp
from mosby.
Does @Singleton
replace @ActivityScope
?
from mosby.
@Singleton
is just an @Scope
like @ActivityScope
or @ApplicationScope
is.
You could say that @Singleton extends Scope
and @ActivityScope extends Scope
...
@ActivityScope
is defined in the u2020 project, it's nothing already provided by dagger2, while @Singleton
is officially part of javax.inject
package. As I already said before, I was supper lazy and use @Singleton
since there is just one single scope and one component in this demo app.
Overall, this demo is not a Dagger2 demo at all ...
from mosby.
I see. I guess I'll stick to your simpler implementations 😄
from mosby.
Related Issues (20)
- Logo/Icon Proposal
- How can I use it by extents Activity rather than AppCompatActivity? HOT 2
- [SOLVED?] `sample-mvi` crashes on Start HOT 17
- There is an NPE in MenuPresenter if i try to start the sample mail app (but not only there) HOT 3
- Add androidx support HOT 1
- Stop accessing non-public fields in Fragment HOT 25
- Each use of ifViewAttached adds a lot of redundant code HOT 2
- View should load it's content after reusing retained fragment after screen is back on HOT 1
- MVI + LocationProvider HOT 1
- Can ifViewAttached return result of last statement in its scope? HOT 2
- the doubt of MVI in actual projects
- MVP ViewState, restoreInstanceState is not called
- MvpNullObjectBasePresenter + R8 = ClassCastException HOT 3
- java.lang.IllegalAccessError: Method 'boolean androidx.fragment.app.Fragment.isInBackStack()' is inaccessible to class 'androidx.core.app.BackstackAccessor' HOT 1
- Kotlin - Flow - possibly Multiplatform impl HOT 1
- Mosby V4 - AndroidX support HOT 10
- Accessibility talkback approach with MVI
- MviConductorLifecycleListener : call destroy on null presenter
- Synthetic MviPresenter generated classes instances not GC cleared after Activity/fragment destruction HOT 12
- Fatal Exception: java.lang.IllegalArgumentException: The generic type <V extends MvpView> must be the first generic type argument of class HOT 3
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 mosby.