Skip to content

Releases: ansman/auto-dagger

0.8.0

22 Aug 00:25
d6c3c93
Compare
Choose a tag to compare

Changes

AndroidX Room Support

AutoDagger can now automatically provide all DAOs in a Room Database by annotating your database with @AutoProvideDaos. See the documentation for information on how to get set up.

Details

  • Add support for automatically providing Room databases by @ansman in #77

Full Changelog: 0.7.0...0.8.0

0.7.0

19 Aug 02:32
a42c208
Compare
Choose a tag to compare

Changes

Retrofit service contribution

There is now a new annotation, @AutoProvideService, which can be added to Retrofit services in order to automatically contribute them to the dependency graph. See the documentation for more information.

ViewModel CoroutineScope

If you use Kotlin Coroutines with ViewModels you can now inject a CoroutineScope into your view models. See the documentation for more information.

Details

  • Implement support for automatically providing retrofit services by @ansman in #75
  • Add an integration with ViewModel by @ansman in #76

Full Changelog: 0.6.5...0.7.0

0.6.5

16 Aug 11:16
b73e0e4
Compare
Choose a tag to compare

Changes

Fix for out of order compilation

All AutoDagger annotations have now been correctly marked as @GeneratesRootInput meaning Hilt will wait for AutoDagger before building the components.

Thanks @burntcookie90 for finding this.

Details

  • Bump com.squareup.okio:okio from 3.3.0 to 3.4.0 by @dependabot in #62
  • Bump org.jetbrains.kotlinx:kotlinx-metadata-jvm from 0.6.2 to 0.7.0 by @dependabot in #64
  • Bump dagger from 2.46.1 to 2.47 by @dependabot in #65
  • Bump ksp from 1.9.0-1.0.11 to 1.9.0-1.0.12 by @dependabot in #66
  • Bump org.junit.jupiter:junit-jupiter from 5.9.3 to 5.10.0 by @dependabot in #67
  • bump com.squareup.okio:okio from 3.4.0 to 3.5.0 by @dependabot in #68
  • bump ksp from 1.9.0-1.0.12 to 1.9.0-1.0.13 by @dependabot in #69
  • Annotate all module generating annotations with @GeneratesRootInput by @ansman in #72

Full Changelog: 0.6.4...0.6.5

0.6.4

12 Jul 02:04
4011f36
Compare
Choose a tag to compare

Changes

Kotlin 1.9 support

With 0.6.4, auto-dagger now supports Kotlin 1.9

Details

Full Changelog: 0.6.3...0.6.4

0.6.3

05 Jun 14:33
5303827
Compare
Choose a tag to compare

What's Changed

  • Fix a bug in the component validation by @ansman in #54

Full Changelog: 0.6.2...0.6.3

0.6.2

03 Jun 11:18
7fbee69
Compare
Choose a tag to compare

Features

Validation of component

The target installComponent will now be validated against the scope of the object.

Experimental Kotlin 2.0 support

WIth the release of kotlinx-metadata 0.6.2, there is limited support for Kotlin 2.0

What's Changed

  • Bump kotlinpoet from 1.13.2 to 1.14.2 by @dependabot in #49
  • Bump autoService from 1.0.1 to 1.1.0 by @dependabot in #47
  • Bump org.jetbrains.kotlinx:kotlinx-metadata-jvm from 0.6.0 to 0.6.2 by @dependabot in #51
  • Validate that the target component is a parent of the scope by @ansman in #52

Full Changelog: 0.6.1...0.6.2

0.6.1

23 May 15:40
875538c
Compare
Choose a tag to compare

Changes

Auto binding qualified things

A bug has been fixed that prevented binding objects that also had a qualifier.

Easier binding of initializable objects

You no longer need to specify asTypes if an auto bind object also implements Initializable and is annotated with @AutoInitialize.

PRs

  • Bump dagger from 2.46 to 2.46.1 by @dependabot in #42
  • Bump com.willowtreeapps.assertk:assertk-jvm from 0.25 to 0.26 by @dependabot in #41
  • Make it easier to use @autoBind with @AutoInitialize by @ansman in #43
  • Bump org.robolectric:robolectric from 4.10.2 to 4.10.3 by @dependabot in #44
  • Bump com.willowtreeapps.assertk:assertk-jvm from 0.26 to 0.26.1 by @dependabot in #45
  • Fix auto binding qualified objects by @ansman in #46

Full Changelog: 0.6.0...0.6.1

0.6.0

09 May 15:04
a52c4f5
Compare
Choose a tag to compare

New Features

Wildcard multi bindings

When using multi bindings, such as @AutoBindIntoSet, you can now specify that generic types should be bound as the exact type, a wildcard type, or both.

kotlinx.metadata shaded

To prevent conflicts with other libraries such as Dagger or Room, Auto Dagger now shades kotlinx-metadata.

What's Changed

  • Support binding generic types as wildcard types by @ansman in #39
  • Shade kotlinx.metadata by @ansman in #40

Full Changelog: 0.5.1...0.6.0

0.5.1

07 May 21:57
05096f4
Compare
Choose a tag to compare

Features

Kotlin 1.8.21

Kotlin 1.8.21 is now supported.

Dagger 2.46

Dagger is now bumped to 2.46.

What's Changed

Full Changelog: 0.5.0...0.5.1

0.5.0

12 Apr 23:47
dc7496a
Compare
Choose a tag to compare

New Features

@AutoBind supports @Reusable

The @AutoBind annotation now supports the @Reusable scope and treats it as if it was a singleton.

All changes

Full Changelog: 0.4.0...0.5.0