aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-05-12Merge "Revert "Merge commit 'upstream/dagger-2.35.1^'"" am: 5882ce8935 am: ↵android-12.1.0_r9android-12.1.0_r8android-12.1.0_r7android-12.1.0_r22android-12.1.0_r21android-12.1.0_r20android-12.1.0_r19android-12.1.0_r11android-12.1.0_r10android-12.0.0_r32android-12.0.0_r29android-12.0.0_r28android-12.0.0_r27android-12.0.0_r26android-12.0.0_r21android-12.0.0_r20android-12.0.0_r19android-12.0.0_r18android-12.0.0_r16android12L-devandroid12-qpr3-s7-releaseandroid12-qpr3-s6-releaseandroid12-qpr3-s5-releaseandroid12-qpr3-s4-releaseandroid12-qpr3-s3-releaseandroid12-qpr3-s2-releaseandroid12-qpr3-s1-releaseandroid12-qpr3-releaseandroid12-qpr1-releaseandroid12-qpr1-d-s3-releaseandroid12-qpr1-d-s2-releaseandroid12-qpr1-d-s1-releaseandroid12-qpr1-d-releaseandroid12-devAurimas Liutikas
5480a6c05f am: 8630738d0a Original change: https://android-review.googlesource.com/c/platform/external/dagger2/+/1705751 Change-Id: I41842348fb1a8f2595da4a7bd2a0b6792341b26a
2021-05-12Merge "Revert "Add additional files to hilt_android"" am: 3ba66ad179 am: ↵Aurimas Liutikas
72dacad246 am: 0cd6a85513 Original change: https://android-review.googlesource.com/c/platform/external/dagger2/+/1705750 Change-Id: I0cb7d4ba52423d1f2522a7e8d7363e4c6acbedf4
2021-05-12Revert "Update dagger2 lint baseline" am: 4ac6123492 am: c1245a750b am: ↵Aurimas Liutikas
4e30e8532c Original change: https://android-review.googlesource.com/c/platform/external/dagger2/+/1705749 Change-Id: I290a0a015662d38d52507af9053c825b0f8a7a59
2021-05-12Merge "Revert "Merge commit 'upstream/dagger-2.35.1^'"" am: 5882ce8935 am: ↵Aurimas Liutikas
5480a6c05f Original change: https://android-review.googlesource.com/c/platform/external/dagger2/+/1705751 Change-Id: I2f7a4d61b9f48965273925620a8dc0afc43c9bef
2021-05-12Merge "Revert "Add additional files to hilt_android"" am: 3ba66ad179 am: ↵Aurimas Liutikas
72dacad246 Original change: https://android-review.googlesource.com/c/platform/external/dagger2/+/1705750 Change-Id: Ic21482fd8880d52260f02692cf97cebe287e2693
2021-05-12Revert "Update dagger2 lint baseline" am: 4ac6123492 am: c1245a750bAurimas Liutikas
Original change: https://android-review.googlesource.com/c/platform/external/dagger2/+/1705749 Change-Id: Ib1faf26dc78ff583958fb92b0f1b0b0e8d9062d8
2021-05-12Merge "Revert "Merge commit 'upstream/dagger-2.35.1^'"" am: 5882ce8935Aurimas Liutikas
Original change: https://android-review.googlesource.com/c/platform/external/dagger2/+/1705751 Change-Id: Ib7e2626f78a92f44600c3074db8de9467e50441d
2021-05-12Merge "Revert "Add additional files to hilt_android"" am: 3ba66ad179Aurimas Liutikas
Original change: https://android-review.googlesource.com/c/platform/external/dagger2/+/1705750 Change-Id: I6f534e1cc31ae3509207fa41e450a28f51d7634f
2021-05-12Revert "Update dagger2 lint baseline" am: 4ac6123492Aurimas Liutikas
Original change: https://android-review.googlesource.com/c/platform/external/dagger2/+/1705749 Change-Id: I21ffc36ef81592bbdf173759c980f8b95ed50ce0
2021-05-12Merge "Revert "Merge commit 'upstream/dagger-2.35.1^'""android-s-beta-2android-s-beta-1Aurimas Liutikas
2021-05-12Merge "Revert "Add additional files to hilt_android""Aurimas Liutikas
2021-05-12Revert "Merge commit 'upstream/dagger-2.35.1^'"Aurimas Liutikas
This reverts commit 399f4f61132f363e9479e59c550a7bcf005922d8. Reason for revert: b/187908823 Change-Id: I81f7cd3672e65ce1f7e1fa846b6c3e2f87147a26
2021-05-12Revert "Add additional files to hilt_android"Aurimas Liutikas
This reverts commit 32aa1bafc970a6cac00451656ff81c7a3d7e35fc. Reason for revert: b/187908823 Change-Id: I370d3374e101984a447a55f7c8728443a5b5f846
2021-05-12Revert "Update dagger2 lint baseline"Aurimas Liutikas
This reverts commit 8c81cc68b461029c2c36acd68eea554d933a7f2a. Reason for revert: b/187908823 Change-Id: I9b377a9aa620639ae3e42e07027eee695b344a9d
2021-05-11Update dagger2 lint baseline am: 8c81cc68b4 am: b4ce7f404f am: 37ecf50779Colin Cross
Original change: https://android-review.googlesource.com/c/platform/external/dagger2/+/1701935 Change-Id: I594b5b9f8d7910e192ea31aadd34355baf6c686d
2021-05-11Add additional files to hilt_android am: 32aa1bafc9 am: 1fe92647fe am: ↵Colin Cross
7b5035a409 Original change: https://android-review.googlesource.com/c/platform/external/dagger2/+/1700250 Change-Id: I8514f6c2900e996e3e75ed319e973712d294aab0
2021-05-11Merge commit 'upstream/dagger-2.35.1^' am: 399f4f6113 am: c6f4971ee0 am: ↵Colin Cross
849b6a83fd Original change: https://android-review.googlesource.com/c/platform/external/dagger2/+/1697792 Change-Id: Ia01e07630936422c79285469a18be9a3db4181ab
2021-05-11Update dagger2 lint baseline am: 8c81cc68b4 am: b4ce7f404fColin Cross
Original change: https://android-review.googlesource.com/c/platform/external/dagger2/+/1701935 Change-Id: I98af72cc3986a8896f60cffcfdf58071c249eac2
2021-05-11Add additional files to hilt_android am: 32aa1bafc9 am: 1fe92647feColin Cross
Original change: https://android-review.googlesource.com/c/platform/external/dagger2/+/1700250 Change-Id: Iccc62e1b1efffefd1e0eb0d35dc51ea029be31d3
2021-05-11Merge commit 'upstream/dagger-2.35.1^' am: 399f4f6113 am: c6f4971ee0Colin Cross
Original change: https://android-review.googlesource.com/c/platform/external/dagger2/+/1697792 Change-Id: I546060e6e2320d3cf6496ce143201e6d7e11e10b
2021-05-11Update dagger2 lint baseline am: 8c81cc68b4Colin Cross
Original change: https://android-review.googlesource.com/c/platform/external/dagger2/+/1701935 Change-Id: I5c4b116dba84b5cf2109994aee98eff5ec9af782
2021-05-11Add additional files to hilt_android am: 32aa1bafc9Colin Cross
Original change: https://android-review.googlesource.com/c/platform/external/dagger2/+/1700250 Change-Id: Ia5d9b3890b64bc7eb4fc3b9b2789d584b1262335
2021-05-11Merge commit 'upstream/dagger-2.35.1^' am: 399f4f6113Colin Cross
Original change: https://android-review.googlesource.com/c/platform/external/dagger2/+/1697792 Change-Id: I41c1910967e433167c61f616937dd1d34582825b
2021-05-10Update dagger2 lint baselineColin Cross
Update the lint baseline for the update to dagger-2.35.1. Test: m out/soong/.intermediates/external/dagger2/hilt_android_testing/android_common/lint/lint-report.xml Change-Id: I5e1cfe9967a0e58f4b5716ccc20020c312883e8a
2021-05-07Add additional files to hilt_androidColin Cross
Add some new files to hilt_android that were added by the upgrade to dagger-2.35.1. Test: mmma external/dagger2 Change-Id: I27de9d28658429a20577d6c268dde119eac52e24
2021-05-05Merge commit 'upstream/dagger-2.35.1^'Colin Cross
Test: mmma external/dagger2 Change-Id: I6a39541864134734ba50591ad5b82dd090bfa2fa
2021-04-27Make the generated Provider for component dependency types final.Eric Chang
RELNOTES=n/a PiperOrigin-RevId: 370721981
2021-04-26Add flag to disable cross-compilation root validation.Brad Corso
Fixes #2577 RELNOTES=Fixes #2577: Add flag to disable cross-compilation root validation. PiperOrigin-RevId: 370573954
2021-04-23Fix some remaining references to betaEric Chang
RELNOTES=n/a PiperOrigin-RevId: 370124486
2021-04-23Detach CtClass instances from the ClassPool as they are inspected by the ↵Daniel Santiago
Javassist transform. It is not necessary to keep them in the ClassPool and detaching them can reduce memory consumption and avoid out of memory errors. Note that this only affects users with AGP older than 4.2.0 since the HiltTransformTestClassesTask was replaced by the ASM pipeline. Fixes: https://github.com/google/dagger/issues/2567 RELNOTES=Reduce the possibility of OOMs in the local unit test transform task that is executed for users with AGP older than 4.2.0. PiperOrigin-RevId: 370120877
2021-04-22Remove the references to beta in preparation for the upcoming stable release.Eric Chang
RELNOTES=n/a PiperOrigin-RevId: 369963385
2021-04-21Fix an issue where internal Kotlin objects were not properly being ↵Eric Chang
processed. Consolidate logic to figure out if a module requires an instance. RELNOTES=Fixes an issue where internal Kotlin object modules were incorrectly depended on directly by the component. PiperOrigin-RevId: 369743121
2021-04-20Remove defaultRootComponentName and pass in default root directly.Brad Corso
RELNOTES=N/A PiperOrigin-RevId: 369482450
2021-04-20Share aggregating metadata logic in a utility class.Brad Corso
RELNOTES=N/A PiperOrigin-RevId: 369466974
2021-04-20Use reflection for obtaining the AGP version since the Version class was ↵Daniel Santiago
moved between 3.5 and 3.6 Fixes: https://github.com/google/dagger/issues/2547 RELNOTES=Fix an issue in the Hilt Gradle Plugin where determining AGP version failed if the AGP version being used was older than 3.6. PiperOrigin-RevId: 369441551
2021-04-19Add aggregating data for roots. Also add tests to verify illegal combinations.Brad Corso
This CL adds AggregatedRoot for each root found and AggregatedRootSentinel for each root processed. We can then use this information to determine if the roots from past and current compilation units are valid. RELNOTES=N/A PiperOrigin-RevId: 369316983
2021-04-19Allow ProcessorErrors.checkState without an associated elementBrad Corso
RELNOTES=N/A PiperOrigin-RevId: 369306095
2021-04-19Make aggregated deps public and prepend "_" to the name to obfuscate it from ↵Brad Corso
auto suggest tools. RELNOTES=N/A PiperOrigin-RevId: 369243374
2021-04-16Merge ViewModel/ActivityRetained targets into the main targets.Eric Chang
RELNOTES=n/a PiperOrigin-RevId: 368944879
2021-04-16Internal changeBrad Corso
RELNOTES=N/A PiperOrigin-RevId: 368922638
2021-04-16Internal changeBrad Corso
RELNOTES=N/A PiperOrigin-RevId: 368911475
2021-04-16Internal changeBrad Corso
RELNOTES=N/A PiperOrigin-RevId: 368872818
2021-04-15[automerger skipped] Add lint baseline to address NewApi errors am: ↵Pedro Loureiro
b3210fa649 am: 18181dab9b am: ba52860ec2 -s ours am skip reason: skip tag Change-Id I2700e10dae256a3f944ccddbef0c871b0cf52b9d with SHA-1 299000a15d is already in history Original change: https://android-review.googlesource.com/c/platform/external/dagger2/+/1675526 Change-Id: Ib0003a74f0a2e48c186554ac42be1a049418c596
2021-04-15Add lint baseline to address NewApi errors am: b3210fa649 am: 18181dab9bPedro Loureiro
Original change: https://android-review.googlesource.com/c/platform/external/dagger2/+/1675526 Change-Id: Ib674e4e48bad453219ca86f4b0af40ffaa982f22
2021-04-15Add lint baseline to address NewApi errors am: b3210fa649Pedro Loureiro
Original change: https://android-review.googlesource.com/c/platform/external/dagger2/+/1675526 Change-Id: I0255bee0ed2cc7d394d8012d14d5f8d0af1bcfc1
2021-04-13Add AggregatedEarlyEntryPointMetadata to aggregate information about ↵Brad Corso
@EarlyEntryPoints. Note: this is a breaking change in the rare case that an app that upgrades Hilt is relying on an @EarlyEntryPoint usage in a library that is not also updated. To fix, all usages of @EarlyEntryPoint must be using the upgraded version of Hilt or later. Otherwise, they may miss the @EarlyEntryPoint usage and fail at runtime during a test. RELNOTES=This is a breaking change in the rare case that an app that upgrades Hilt is relying on an @EarlyEntryPoint usage in a library that is not also updated. To fix, all usages of @EarlyEntryPoint must be using the upgraded version of Hilt or later. Otherwise, they may miss the @EarlyEntryPoint usage and fail at runtime during a test. PiperOrigin-RevId: 368322897
2021-04-13Add lint baseline to address NewApi errorsPedro Loureiro
We are enabling a new lint check where the min sdk != compile sdk. It has produced a lot of errors and adding the baseline file(s) allows us to continue work without introducing more problems. Bug: 150847901 Test: m lint-check Change-Id: I2700e10dae256a3f944ccddbef0c871b0cf52b9d Merged-In: I2700e10dae256a3f944ccddbef0c871b0cf52b9d
2021-04-09Fix leak in FragmentContextWrapper by releasing the baseInflator if it exists.Brad Corso
Fixes https://github.com/google/dagger/issues/2070 RELNOTES=Fix leak in FragmentContextWrapper by releasing the baseInflator if it exists. PiperOrigin-RevId: 367725173
2021-04-09Add a private constructor to the generated @HiltViewModel module.Eric Chang
RELNOTES=n/a PiperOrigin-RevId: 367674245
2021-04-09Generate a separate TestComponentDataSupplier for each root.Brad Corso
The name generated class will be based on the enclosed name of the root, e.g. `foo.FooTest` will generate `foo.FooTest_TestComponentDataSupplier`. RELNOTES=N/A PiperOrigin-RevId: 367637090