Skip to content
Wrapper around Dagger 2 with the Maven Shade Plugin so we can have Dagger 1 and Dagger 2 living together
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
dagger2-shaded-compiler First commit with everything for Dagger 2.24 Oct 11, 2019
dagger2-shaded-library
.gitignore First commit with everything for Dagger 2.24 Oct 11, 2019
LICENSE
README.md
pom.xml Update Dagger version to 2.25.2 Oct 28, 2019

README.md

Release

Dagger 2 Shaded 🕶

  1. Add this to your build:
repositories {
  maven { url "https://jitpack.io" }
}

dependencies {
  implementation 'com.github.blinkist.dagger2-shaded:dagger2-shaded-library:2.25.2'
  kapt 'com.github.blinkist.dagger2-shaded:dagger2-shaded-compiler:2.25.2'
}
  1. Play with Dagger 1 and Dagger 2 at the same time:
class MyClass @Inject @Inject2 constructor() {
  ...
}
  1. ???

  2. Profit.


📚 You can read more about it here: https://proandroiddev.com/dagger-1-and-dagger-2-together-917f082b3dd9

And you might also be interested in this: https://github.com/blinkist/AssistedInject

Updating and building

  • Change the dagger.version property in the parent POM to the desired value.
  • Run mvn package to generate the JARs and use them directly in your project.
  • ...or make the changes in a fork and use JitPack. And open a PR if it's a new version!
You can’t perform that action at this time.