Skip to content

Releases: ansman/auto-dagger

1.5.0

30 Nov 15:43
630d94a
Compare
Choose a tag to compare

Changes

Support for Kotlin 2.1.0

The biggest change in this release is support for Kotlin 2.1.0. As of Hilt 1.2.0, Kotlin 2.1.0 is not supported (see issue) so to upgrade set the language version to 2.1.

Details

Full Changelog: 1.4.0...1.5.0

1.4.0

21 Sep 20:15
7027409
Compare
Choose a tag to compare

New features

Kotlin 2.0

auto-dagger now uses 2.0.20 and KSP 2.0.20-1.0.25.
K2/KSP2 is however not supported yet due to Dagger not supporting K2/KSP2.

Min SDK 21

The AndroidX libraries now require a minimum SDK version of 21. This matches what AndroidX now requires.

@Generated annotation

All generated types now add the @Generated annotation. This means that you must target Java 9 or higher to use auto-dagger.

Bug fixes

Fix a bug with room processing

If your Room database class contained anything except Daos, auto-dagger would incorrectly generate providers for them and if the return type was generic, then the class would fail to process. This has been fixed and only Daos will be provided.

Details

Full Changelog: 1.3.0...1.4.0

1.3.0

20 Aug 00:48
c609f2e
Compare
Choose a tag to compare

What's Changed

OptionallyProvided

A new annotation, @OptionallyProvided, has been added. This new annotation generated @BindsOptionalOf bindings.

See the docs for more info.

Details

New Contributors

Full Changelog: 1.2.1...1.3.0

1.2.1

08 May 17:47
7daf8e8
Compare
Choose a tag to compare

Changes

Fix for invalid manifest for android-api

The android-api module accidentally included the startup provider which would lead to issues.

Details

  • Remove the AndroidManifest from the android-api module by @ansman in #164

Full Changelog: 1.2.0...1.2.1

1.2.0

08 May 15:25
09d0c53
Compare
Choose a tag to compare

Changes

Kotlin 1.9.24

The library has now been tested with Kotlin 1.9.24

Adding the android-api artifact

The android artifact pulls in AndroidX startup which can cause issues for android tests in feature modules. A new artifact, android-api, has been introduced that can be added to Android library modules.

Details

  • Bump de.jensklingenberg.ktorfit:ktorfit-lib from 1.12.0 to 1.13.0 by @dependabot in #155
  • Bump com.willowtreeapps.assertk:assertk-jvm from 0.28.0 to 0.28.1 by @dependabot in #157
  • Bump com.android.tools.build:gradle from 8.3.2 to 8.4.0 by @dependabot in #158
  • Bump ru.vyarus.mkdocs from 3.0.0 to 4.0.1 by @dependabot in #154
  • Bump de.jensklingenberg.ktorfit:ktorfit-lib from 1.13.0 to 1.14.0 by @dependabot in #156
  • Split the Android module into api and impl by @ansman in #163
  • Update to Kotlin 1.9.24 by @ansman in #162

Full Changelog: 1.1.0...1.2.0

1.1.0

15 Apr 13:05
399dac6
Compare
Choose a tag to compare

What's new

Ktorfit support

Ktorfit, a multiplatform version of Retrofit, is now supported.

Check out the docs for info on how to get started.

Min SDK 19

Just like AndroidX, the min SDK required is now 19.

Dagger 2.51 support

auto-dagger has now been tested with Dagger 2.51.

Kotlin 1.9.23

Using auto-dagger now requires Kotlin 1.9.23 or later.

Details

New Contributors

Full Changelog: 1.0.0...1.1.0

1.0.0

31 Dec 16:23
46c9c88
Compare
Choose a tag to compare

This is the first API stable release of auto dagger 🎉

Changes since 0.11.0

Kotlin 1.9.22

Auto dagger has now been compiled and tested with Kotlin 1.9.22 and KSP 1.9.22-1.0.16

Dagger 2.50

Auto dagger has now been tested with 2.50

Details

Full Changelog: 0.11.0...1.0.0

0.11.0

07 Nov 13:53
0a9d4ef
Compare
Choose a tag to compare

Changes

Kotlin 1.9.20

Kotlin has been bumped to 1.9.20 and KSP to 1.9.20-1.0.14.

Compile SDK 34

The project is now compiled against Android 34

Dagger 2.48.1

Dagger has been bumped to 2.48.1

Details

Full Changelog: 0.10.0...0.11.0

0.10.0

01 Oct 02:59
5c4750b
Compare
Choose a tag to compare

Changes

⚠️ Breaking: Rename of BindGenericAs entries ⚠️

BindGenericAs.Type has been renamed to BindGenericAs.ExactType and BindGenericAs.TypeAndWildcard has been renamed to BindGenericAs.ExactTypeAndWildcard.

These names are much clearer as Type wasn't really indicative of what it did.

BindGenericAs.Default

There is now a new annotation called @BindGenericAs.Default which can be placed on the target type to set the default value for BindGenericAs.

As a quick example:

@BindGenericAs.Default(BindGenericAs.Wildcard)
interface Resource<T>

// This will be bound as Resource<*> since the default has been set to wildcard for Resource.
@AutoBindIntoSet
class SomeResource @Inject constructor() : Resource<Something>

See the documentation for more information.

Details

  • Remove the deprecated typealiases by @ansman in #85
  • Bump androidx.lifecycle:lifecycle-viewmodel from 2.6.1 to 2.6.2 by @dependabot in #87
  • Add a way to change the default BindGenericAs. by @ansman in #90

Full Changelog: 0.9.1...0.10.0

0.9.1

07 Sep 00:45
5994394
Compare
Choose a tag to compare

Changes

Change of an invalid package name

The code for the AndroidX ViewModel and Room extensions had accidentally been added to the co.ansman namespace instead of se.ansman. These files have been moved and new deprecated type aliases have been added. These type aliases will be removed in the next release.

Details

  • Bump dokka from 1.8.20 to 1.9.0 by @dependabot in #83
  • Fix the package name of AutoProvideDaos and the ViewModel code by @ansman in #84

Full Changelog: 0.9.0...0.9.1