Skip to content

Commit 46a9ebf

Browse files
authoredFeb 1, 2021
[All] Update to alpha11
[All] Update to alpha11
2 parents 87f862e + 0d0e390 commit 46a9ebf

File tree

127 files changed

+1381
-987
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

127 files changed

+1381
-987
lines changed
 

‎Crane/README.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,14 @@ interact with the `MapView` seamlessly.
3434

3535
## Hilt
3636

37-
Crane uses [Hilt][hilt] to manage its dependencies. The Hilt's ViewModel extension (with the
38-
`@ViewModelInject` annotation) works perfectly with Compose's ViewModel integration (`viewModel()`
37+
Crane uses [Hilt][hilt] to manage its dependencies. Hilt's ViewModel (with the
38+
`@HiltViewModel` annotation) works perfectly with Compose's ViewModel integration (`viewModel()`
3939
composable function) as you can see in the following snippet of code. `viewModel()` will
4040
automatically use the factory that Hilt creates for the ViewModel:
4141

4242
```
43-
class MainViewModel @ViewModelInject constructor(
43+
@HiltViewModel
44+
class MainViewModel @Inject constructor(
4445
private val destinationsRepository: DestinationsRepository,
4546
@DefaultDispatcher private val defaultDispatcher: CoroutineDispatcher,
4647
datesRepository: DatesRepository

‎Crane/app/build.gradle

-8
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ android {
9191
}
9292

9393
composeOptions {
94-
kotlinCompilerVersion Libs.Kotlin.version
9594
kotlinCompilerExtensionVersion Libs.AndroidX.Compose.version
9695
}
9796

@@ -120,11 +119,7 @@ dependencies {
120119

121120
implementation Libs.AndroidX.Lifecycle.viewModelKtx
122121
implementation Libs.Hilt.android
123-
implementation Libs.Hilt.AndroidX.viewModel
124-
compileOnly Libs.AssistedInjection.dagger
125122
kapt Libs.Hilt.compiler
126-
kapt Libs.Hilt.AndroidX.compiler
127-
kapt Libs.AssistedInjection.processor
128123

129124
androidTestImplementation Libs.JUnit.junit
130125
androidTestImplementation Libs.AndroidX.Test.runner
@@ -134,9 +129,6 @@ dependencies {
134129
androidTestImplementation Libs.Kotlin.Coroutines.test
135130
androidTestImplementation Libs.AndroidX.Compose.uiTest
136131
androidTestImplementation Libs.Hilt.android
137-
androidTestImplementation Libs.Hilt.AndroidX.viewModel
138132
androidTestImplementation Libs.Hilt.testing
139133
kaptAndroidTest Libs.Hilt.compiler
140-
kaptAndroidTest Libs.Hilt.AndroidX.compiler
141-
kaptAndroidTest Libs.AssistedInjection.processor
142134
}

0 commit comments

Comments
 (0)
Please sign in to comment.