8000
@OnlyUsedBy and @BindingIdentifier in dagger.pruning for pruning unused component entry point methods (see https://dagger.dev/dev-guide/basic-usage#prunable-component-methods). (e685d0859)-Adagger.mapMultibindingDuplicateDetectionFix=ENABLED). To temporarily restore the legacy lenient behavior, pass -Adagger.mapMultibindingDuplicateDetectionFix=DISABLED. See Compiler Options for more details. (13241a926)@AssistedInject validation by default (-Adagger.strictAssistedInjectValidation=ENABLED), failing compilation if a library defining an @AssistedInject class did not run the Dagger annotation processor (which previously compiled by chance in fastInit mode). To temporarily opt out, pass -Adagger.strictAssistedInjectValidation=DISABLED. (7ef8c54c0)@LazyClassKey and @HiltViewModel classes. (2d7cea474)@ActivityRetainedSavedState SavedStateHandle fails to restore if accessed for the first time after a configuration change. (b3dc7eee1)com.android.kotlin.multiplatform.library) in the Hilt Gradle plugin. (6dd848a5b)HiltGradlePlugin so unit test variants respect Gradle module exclusions and dependency substitutions on unit test classpaths. (dc8ce1db1)fastInit mode for @AssistedFactory types whose declarations, members, or signature types are package-private or Kotlin internal by generating a public [FactoryName]_Proxy interface in the factory's package. (962495001)-Adagger.nullableTypeAnnotations=enabled.-Pdagger.hilt.fastInit=false. For more details see https://dagger.dev/hilt/flags#fast-init. (0f7642b)@Binds methods to explicitly bind @Inject constructors. For more details see https://dagger.dev/dev-guide/#parameterless-binds. (4c81e94)-Adagger.mapMultibindingDuplicateDetectionFix=ENABLED. This option is DISABLED by default to maintain backward compatibility. See Compiler Options for more details. (504397e)(If you do not use Hilt or the Hilt Gradle plugin, this change does not affect you.)
This release adds AGP 9 support for the Hilt Gradle plugin. This means that if you use the Hilt Gradle Plugin, AGP 9 is now a requirement along with AGP 9’s own requirements like Gradle 9.1+ (https://developer.android.com/build/releases/agp-9-0-0-release-notes).
Note: AGP 9 also seems to cause issues with enableJetifier=true (see #5099). This will be fixed in a follow-up release.
Note: AGP 9 support was held back from this release (0a5b42c) because it forces users onto AGP 9. It will be available in the next Dagger release (e92e3f3).
dagger.useBindingGraphFix to enabled (d41e836).@Provides so that it is installed into the correct component (e.g. the ActivityComponent instead of SingletonComponent). You can also set dagger.useBindingGraphFix=disabled but note that this flag is only temporary and will eventually be removed.abstract var in components is now banned in super types.abstract var property creates both a getter and a setter on the component which is almost always unintentional.abstract val foo: Foo if you need a getter or abstract fun inject(foo: Foo) if you need an inject method. Note that abstract var is already banned if it is declared directly on the @Component class/interface, but this change fixes the check so that it’s banned even if it’s inherited from a super type.The generated Factory/MembersInjector constructors have changed from public to private. This shouldn’t affect most users since these classes are only meant to be called by Dagger’s other generated code. If you do happen to be broken by this change, you should avoid calling Dagger’s generated Factory/MembersInjector classes directly. For a temporary solution, you can also switch to using the public static methods to create an instance. (165cf20)
Fixes #4779. Unshades the Kotlinx Metadata to support Kotlin 2.2.0 (bfa88b9)