aboutsummaryrefslogtreecommitdiff
path: root/WORKSPACE
diff options
context:
space:
mode:
authorDaniel Santiago <danysantiago@google.com>2021-02-16 16:24:06 -0800
committerDagger Team <dagger-dev+copybara@google.com>2021-02-16 16:38:22 -0800
commit623d3a61e0554954a0a18351a3f425320aea2122 (patch)
treef5db9487e45a77a3b924891f37ae0ba09e2f9236 /WORKSPACE
parent6778a01ae5142ca25a07946250d008cfb8df216a (diff)
downloaddagger2-623d3a61e0554954a0a18351a3f425320aea2122.tar.gz
Perform Hilt Activity injection on a OnContextAvailableListener.
Delay Hilt activity injection to a OnContextAvailableListener to enable member injecting ViewModels with SavedStateHandle. Note that this means base Hilt classes should not rely on their fields being injected before their onCreate() since injection is moved into super.onCreate() as opposed to before. RELNOTES=Delay Hilt activity injection to a OnContextAvailableListener to enable member injecting ViewModels with SavedStateHandle. To use the ContextAware APIs androidx.activity, androidx.fragment and androidx.lifecycle dependencies are updated across the Dagger libraries. PiperOrigin-RevId: 357829271
Diffstat (limited to 'WORKSPACE')
-rw-r--r--WORKSPACE8
1 files changed, 4 insertions, 4 deletions
diff --git a/WORKSPACE b/WORKSPACE
index 6c2b6b0ea..07724c996 100644
--- a/WORKSPACE
+++ b/WORKSPACE
@@ -104,10 +104,10 @@ maven_install(
artifacts = [
"androidx.annotation:annotation:1.1.0",
"androidx.appcompat:appcompat:1.2.0",
- "androidx.activity:activity:1.1.0",
- "androidx.fragment:fragment:1.2.5",
- "androidx.lifecycle:lifecycle-viewmodel:2.2.0",
- "androidx.lifecycle:lifecycle-viewmodel-savedstate:2.2.0",
+ "androidx.activity:activity:1.2.0",
+ "androidx.fragment:fragment:1.3.0",
+ "androidx.lifecycle:lifecycle-viewmodel:2.3.0",
+ "androidx.lifecycle:lifecycle-viewmodel-savedstate:2.3.0",
"androidx.multidex:multidex:2.0.1",
"androidx.savedstate:savedstate:1.0.0",
"androidx.test:monitor:1.1.1",