Comments (7)
I added an example to Tape yesterday which includes Dagger (http://github.com/square/tape). While it doesn't use the Android-specific manifest features, I do have an internal implementation that does. We currently use the maven-exec-plugin to trigger the manifest parsing during the generate-sources phase.
I was hoping to amend the manifest module to allow it to operate as both a standalone jar or as a maven plugin itself. Doing so would allow it to require no configuration whereas using it with the maven-exec-plugin requires you to specify a few things.
I'll try to get something in this week.
from dagger.
Hi, not sure if this fits with the issue described, but is the tape project demonstrating the idiom for doing injection within Android? I notice you extend the Application class to build the ObjectGraph, and then the onCreate you do the injection for the activity
from dagger.
It represents one strategy. The application is effectively a singleton on Android and is instantiated before anything else which requires injection which is why we use it to construct the object graph. Also, optionally, you could lazily create the object graph using a singleton managed by the traditional standalone pattern.
We are still working on providing a means for using Dagger on Android whose API is less abrasive to consume (even if behind the scenes it does the same thing).
from dagger.
I'm calling this blocked until Travis CI fixes their support for Android. I don't want to inhibit development of this problem by breaking the awesomeness of branch builds via Travis.
from dagger.
Also, Android Bootstrap just updated to support Dagger.
from dagger.
from dagger.
thank you!
from dagger.
Related Issues (20)
- java.lang.NoClassDefFoundError: dagger.internal.Preconditions HOT 2
- java.lang.NoClassDefFoundError: dagger.internal.Preconditions HOT 1
- android.app.Application does not implement dagger.android.HasActivityInjector HOT 3
- --
- Android Context HOT 1
- Subcomponent inside subcomponent HOT 1
- Error when a component is trying to include bindings with different scopes could be more informative HOT 1
- Constructor injection cannot find symbol method inject members dagger2 2.14 HOT 1
- how can i run the example of CoffeeApp.java HOT 1
- Why do Singletons need an empty default constructor? HOT 2
- dagger-compiler
- dagger.android.DispatchingAndroidInjector cannot be provided without an @Provides HOT 1
- 每次修改完java代码都需要clean项目 才能运行, HOT 1
- did u consider this kind of case: ChildFragment needs to reuse ParentFragment's object instead of creating a new one。hilt may not support this kind of case
- duplicate Nullable HOT 2
- cannot generate
- Support extending base builder classes HOT 2
- The Hilt Android Gradle plugin is applied but no com.google.dagger:hilt-android dependency was found. HOT 1
- Issue with enableAggregatingTask flag / AGP 7.0 / oss-licenses HOT 1
- after add hilt { enableAggregatingTask = true } dependencies tasks faild
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 dagger.