1.4.0
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
- Bump androidx.lifecycle:lifecycle-viewmodel from 2.8.4 to 2.8.5 by @dependabot in #216
- Bump com.android.tools.build:gradle from 8.5.2 to 8.6.0 by @dependabot in #214
- Update Gradle Wrapper from 8.10 to 8.10.1 by @ansman-gradle-wrapper-update in #218
- Bump com.squareup.okio:okio from 3.9.0 to 3.9.1 by @dependabot in #219
- Bump com.android.tools.build:gradle from 8.6.0 to 8.6.1 by @dependabot in #220
- Bump androidx.lifecycle:lifecycle-viewmodel from 2.8.5 to 2.8.6 by @dependabot in #222
- Downgrade to Gradle 8.10 by @ansman in #226
- Update android min SDK to 21 by @ansman in #228
- Bump androidx.startup:startup-runtime from 1.1.1 to 1.2.0 by @dependabot in #223
- Update to Kotlin 2.0.20 by @ansman in #227
- Add
@Generated
to all generated classes by @ansman in #225 - Fix processing RoomDatabases with non dao functions and properties by @ansman in #229
Full Changelog: 1.3.0...1.4.0