Coder Social home page Coder Social logo

Comments (7)

JakeWharton avatar JakeWharton commented on July 24, 2024

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.

dave-r12 avatar dave-r12 commented on July 24, 2024

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.

JakeWharton avatar JakeWharton commented on July 24, 2024

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.

JakeWharton avatar JakeWharton commented on July 24, 2024

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.

JakeWharton avatar JakeWharton commented on July 24, 2024

Also, Android Bootstrap just updated to support Dagger.

from dagger.

JakeWharton avatar JakeWharton commented on July 24, 2024

#223

from dagger.

codefromthecrypt avatar codefromthecrypt commented on July 24, 2024

thank you!

from dagger.

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.