Age | Commit message (Collapse) | Author |
|
to BroadcastReceivers as well.
RELNOTES=n/a
PiperOrigin-RevId: 356800754
|
|
Actually, there was a usage in DefineComponents, but I removed it since it wasn't really necessary.
RELNOTES=N/A
PiperOrigin-RevId: 356736330
|
|
Usages of project.properties is not allowed to support Gradle's configuration caching features.
RELNOTES=Fix an issue where Hilt's Gradle plugin was incompatible with Configuration Caching when `enableExperimentalClasspathAggregation` was turned ON.
PiperOrigin-RevId: 356553564
|
|
RELNOTES=N/A
PiperOrigin-RevId: 356504954
|
|
can create build conflicts by appending a unique suffix.
RELNOTES=Fix issue with @DefineComponent classes with same name
PiperOrigin-RevId: 356363930
|
|
plugin during classpath aggregation to avoid interfering with kotlinc's classpath configuration to the modude's classes. This avoids a situation where `internal` members would seem to not be accessible from local host unit tests in an Android library.
Fixes: https://github.com/google/dagger/issues/2306
RELNOTES=Fix an issue where internal Kotlin classes where not accessible with `enableExperimentalClasspathAggregation` turned ON.
PiperOrigin-RevId: 356243936
|
|
RELNOTES=Removes the deprecated ApplicationComponent.
PiperOrigin-RevId: 355956593
|
|
fail. This is done by moving where we filter builder-less components further to when we generate components as oppposed to immediately after finding all of the @DefineComponent classes.
RELNOTES=Fix an issue where a module referencing a component without a builder would fail
PiperOrigin-RevId: 355880849
|
|
called multiple times.
RELNOTES=HiltAndroidRule now enforces that inject() is only called at most once per test case.
PiperOrigin-RevId: 355877394
|
|
RELNOTES=N/A
PiperOrigin-RevId: 355752966
|
|
that uses HiltAndroidRule#delayComponentReady().
RELNOTES=Fixes HiltAndroidRule#delayComponentState() for gradle tests
PiperOrigin-RevId: 355744007
|
|
RELNOTES=n/a
PiperOrigin-RevId: 355283763
|
|
RELNOTES=n/a
PiperOrigin-RevId: 354631986
|
|
ASM transform.
Fixes https://github.com/google/dagger/issues/2337
RELNOTES=Fix an incompatibility issue between the Hilt Gradle Plugin and AGP 4.2.0-beta04. Note that this fix makes it so that earlier versions of AGP 4.2.0 are incompatible with Hilt's Plugin.
PiperOrigin-RevId: 354610640
|
|
RELNOTES=A new deferBinds() method on HiltAndroidRule allows deferring component initialization in tests until after test execution has started. This allows modifying the @BindValue field values before they are used by an OnComponentReadyRunner.
PiperOrigin-RevId: 354557513
|
|
RELNOTES=n/a
PiperOrigin-RevId: 354348146
|
|
aggregation so that kotlinc invocations use the processed jar in the '-friend-path' such that internal members are accessible.
Fixes: https://github.com/google/dagger/issues/2306
RELNOTES=Fix an issue where internal Kotlin classes where not accessible with `enableExperimentalClasspathAggregation` turned ON.
PiperOrigin-RevId: 354151797
|
|
Closes https://github.com/google/dagger/pull/2128
RELNOTES=n/a
PiperOrigin-RevId: 354147061
|
|
RELNOTES=N/A
PiperOrigin-RevId: 353987663
|
|
optimization issues.
This CL is a partial rollback of changes made in CL/351213437 when introducing TestInstallIn. Making these classes pkg-private was mostly just a precaution. Making these public again should be fine since AggeregatedDepsProcessor prevents using TestInstallIn from replacing dagger.hilt modules.
See https://github.com/google/dagger/issues/2291
RELNOTES=Partially Fixes 2291: Reverts Hilt internal entry point and modules back to public to avoid r8 optimization issues. The full fix on our side (until r8 bug is fixed) will be to ship a proguard config that keeps the HiltWrapper_ classes. This will be done in a future release.
PiperOrigin-RevId: 353064986
|
|
PiperOrigin-RevId: 353057330
|
|
still uses it.
RELNOTES=Add back the deprecated ApplicationComponent.
PiperOrigin-RevId: 352671220
|
|
release.
I'll roll this forward before the next minor release.
RELNOTES=N/A
PiperOrigin-RevId: 352656750
|
|
This CL uses the fragment Lifecycle to clear the fragment instance from the FragmentContextWrapper after onDestroy.
Fixes: #2070
See https://github.com/google/dagger/issues/2070
RELNOTES=Fixes #2070: clears Fragment reference in FragmentContextWrapper after Fragment#onDestroy()
PiperOrigin-RevId: 352579115
|
|
RELNOTES=n/a
PiperOrigin-RevId: 352108269
|
|
RELNOTES=n/a
PiperOrigin-RevId: 352100147
|
|
the generated inject() method.
RELNOTES=n/a
PiperOrigin-RevId: 351255476
|
|
This feature allows users to replace @InstallIn modules with a @TestInstallIn module. For example, you can replace FooModule with FakeFooModule with the following:
```
@Module
@TestInstallIn(
components = SingletonComponent.class,
replaces = FooModule.class)
interface FakeFooModule {
...
}
```
Note that @TestInstallIn only replaces @InstallIn when using @HiltAndroidTest, it does not apply in @HiltAndroidApp.
RELNOTES=Adds @TestInstallIn feature to Hilt
PiperOrigin-RevId: 351213437
|
|
RELNOTES=N/A
PiperOrigin-RevId: 350666988
|
|
This CL adds a new Hilt option called 'enableClasspathAggregation' that will configure the compile classpath of the project (for app modules and tests) to use the runtime classpath. This means that transitive dependencies will be available during compilation which in turn will allow Dagger to traverse the classes along the dependency tree and will allow for Hilt's aggregating classes to be discovered.
The classpath configuration is done by resolving the runtime configuration with an artifact view and adding it to the 'CompileOnly' config. This solution is inefficient and will cause build performance impact, but it is a starting point that can be further optimized by using a smarter transform that can extract the necessary classes required by Dagger and Hilt.
Fixes: https://github.com/google/dagger/issues/1991
RELNOTES=Use runtime classpath at root to workaround Dagger/Hilt API vs Impl issue.
PiperOrigin-RevId: 350239023
|
|
RELNOTES=n/a
PiperOrigin-RevId: 350193163
|
|
https://github.com/google/dagger/commit/ce6cf6114c2301d174debcc93afc2a6bc01d6eb5
PiperOrigin-RevId: 349576136
|
|
the generated inject() method.
RELNOTES=n/a
PiperOrigin-RevId: 349489978
|
|
@HiltViewModel has an @Inject constructor, it is possible to erroneously inject it instead of accessing it via the Android APIs. This check should prevent that from happening.
RELNOTES=Injections of @HiltViewModel types now cause an error
PiperOrigin-RevId: 349480648
|
|
RELNOTES=N/A
PiperOrigin-RevId: 349443733
|
|
@HiltViewModel has an @Inject constructor, it is possible to erroneously inject it instead of accessing it via the Android APIs. This check should prevent that from happening.
RELNOTES=Injections of @HiltViewModel types now cause an error
PiperOrigin-RevId: 349357974
|
|
@HiltViewModel has an @Inject constructor, it is possible to erroneously inject it instead of accessing it via the Android APIs. This check should prevent that from happening.
RELNOTES=Injections of @HiltViewModel types now cause an error
PiperOrigin-RevId: 349339906
|
|
transformation.
Updates the HiltGradlePlugin to use AGP's new ASM pipeline if the developer is on AGP 4.2.0+, otherwise the plugin will use the older transform APIs. Using the new APIs allows for the plugin to not need a custom task to transform local tests as this is now supported with the new pipeline. If the developer is using AGP 4.2.0 then having 'enableTransformForLocalTests' is no longer needed and a warning will be shown with the hopes of migrating user away and once 4.2 is stable completely removing and deprecating the option. AGP's new transform pipeline is available in AGP 4.2.0 which is currently in beta.
Fixes: https://github.com/google/dagger/issues/2118
RELNOTES=Use AGP's new transform pipeline when developer is on AGP 4.2.0+.
PiperOrigin-RevId: 348818076
|
|
requires newer Gradle version, so bumping the wrapper to 6.7. Robolectric also had tro be updates to 4.5-alpha which supports API 30.
RELNOTES=N/A
PiperOrigin-RevId: 347443545
|
|
HiltViewModelFactory moved to internal as it isn't meant to be used directly as a public interface and it groups better with the internal helper methods, avoiding a circular dependency.
RELNOTES=n/a
PiperOrigin-RevId: 346827298
|
|
RELNOTES=Remove the deprecated ApplicationComponent and handling for it. Users should migrate to SingletonComponent.
PiperOrigin-RevId: 346656300
|
|
class.
RELNOTES=n/a
PiperOrigin-RevId: 346455327
|
|
constructor annotation. This solidifies the relationship between Hilt/Dagger and ViewModels and will allow Dagger to generated the factories that will construction inject and member inject the ViewModels.
RELNOTES=Update @ViewModelInject API to @HiltViewModel
PiperOrigin-RevId: 346245747
|
|
RELNOTES=N/A
PiperOrigin-RevId: 345035431
|
|
Additional changes compared to the original CL:
* An additional Module per @ViewModelInject-annotated ViewModel class will be created to bind the class name to a Set<String>.
* The Set<String> of injected view models class names will be used by the HiltViewModelFactory to determine whether the view model to create should come from the ViewModelComponent or not.
By filtering out non-injected view models the factory can avoid eagerly creating a SavedStateHandle for a view model that will not be created via the ViewModelComponent.
PiperOrigin-RevId: 344909991
|
|
RELNOTES=n/a
PiperOrigin-RevId: 344859215
|
|
RELNOTES=n/a
PiperOrigin-RevId: 343809078
|
|
RELNOTES=Remove the erroneous JSR250 dep from the Hilt runtime.
PiperOrigin-RevId: 343393037
|
|
RELNOTES=Deprecate ApplicationComponent
PiperOrigin-RevId: 343333212
|
|
Breaks users member injecting ViewModels without SavedStateHandle.
PiperOrigin-RevId: 342057045
|