A Kotlin compiler plugin to make dependency injection with Dagger 2 easier.
APACHE-2.0 License
Bot releases are hidden (Show)
Published by vRallev almost 4 years ago
generateDaggerFactoriesOnly
flag, see #164.Published by vRallev almost 4 years ago
1.4.20
. Note that this version no longer works with Kotlin 1.4.10
or older, see #159.Published by vRallev almost 4 years ago
1.4.10
. Note that this release is not compatible with Kotlin 1.4.20
.KotlinGradleSubplugin
class, see #30.:annotations
artifact.Published by vRallev almost 4 years ago
Published by vRallev almost 4 years ago
Published by vRallev about 4 years ago
Published by vRallev about 4 years ago
Published by vRallev about 4 years ago
Ignore, this release was built with Kotlin 1.4.20 accidentally.
Published by vRallev about 4 years ago
@MergeModules
is used and a Kotlin object uses @ContributesBinding
in the dependency graph.Published by vRallev about 4 years ago
@ContributesBinding
for objects and generate a @Provides
rather than a @Binds
function.@Subcomponent
, see #74@Generated
annotation. This leads to issues on Android where this annotation doesn't exist, see #75Published by vRallev about 4 years ago
@ContributesBinding
annotation binds a generic type.Published by vRallev about 4 years ago
replaces
attribute from a single class to an array. This gives the API more flexibility and avoids redundant classes. E.g. one Dagger module with several binding and provider methods may wish to replace multiple other Dagger modules.@ContributesBinding
annotation. This annotation allows you to contribute binding methods without actually writing a Dagger module.
interface Authenticator
@ContributesBinding(AppScope::class)
class RealAuthenticator @Inject constructor() : Authenticator
// The generated and automatically included Dagger module would look similar like this:
@Module
@ContributesTo(AppScope::class)
abstract class AuthenticatorModule {
@Binds abstract fun bindRealAuthenticator(authenticator: RealAuthenticator): Authenticator
}
Published by vRallev about 4 years ago
implementation
dependency instead of api
#40.Note: This version is compatible with Kotlin 1.3.72
and 1.4.0-rc
. The bug that required special builds for the 1.4 milestone releases was fixed.
Published by vRallev about 4 years ago
1.0.5
, only built with Kotlin 1.4-M3.Published by vRallev about 4 years ago
Published by vRallev about 4 years ago
1.0.4
, only built with Kotlin 1.4-M3.Published by vRallev about 4 years ago
Published by vRallev over 4 years ago
1.0.3
, only built with Kotlin 1.4-M3.Published by vRallev over 4 years ago
Published by vRallev over 4 years ago
Discarded