File tree Expand file tree Collapse file tree 4 files changed +18
-8
lines changed
app/src/androidTest/java/com/google/samples/apps/nowinandroid/ui Expand file tree Collapse file tree 4 files changed +18
-8
lines changed Original file line number Diff line number Diff line change @@ -183,7 +183,7 @@ class NiaAppStateTest {
183183@Composable
184184private fun rememberTestNavController (): TestNavHostController {
185185 val context = LocalContext .current
186- val navController = remember {
186+ return remember< TestNavHostController > {
187187 TestNavHostController (context).apply {
188188 navigatorProvider.addNavigator(ComposeNavigator ())
189189 graph = createGraph(startDestination = " a" ) {
@@ -193,5 +193,4 @@ private fun rememberTestNavController(): TestNavHostController {
193193 }
194194 }
195195 }
196- return navController
197196}
Original file line number Diff line number Diff line change @@ -52,6 +52,13 @@ protobuf {
5252 }
5353}
5454
55+ androidComponents.beforeVariants {
56+ android.sourceSets.register(it.name) {
57+ java.srcDir(buildDir.resolve(" generated/source/proto/${it.name} /java" ))
58+ kotlin.srcDir(buildDir.resolve(" generated/source/proto/${it.name} /kotlin" ))
59+ }
60+ }
61+
5562dependencies {
5663 implementation(project(" :core:common" ))
5764 implementation(project(" :core:model" ))
Original file line number Diff line number Diff line change @@ -38,3 +38,7 @@ android.nonTransitiveRClass=true
3838# https://developer.android.com/build/releases/gradle-plugin#default-changes
3939android.defaults.buildfeatures.resvalues =false
4040android.defaults.buildfeatures.shaders =false
41+
42+ # Use newer lint version to support Kotlin 1.9 and corresponding kotlinx-metadata-jvm
43+ # https://googlesamples.github.io/android-custom-lint-rules/usage/newer-lint.md.html
44+ android.experimental.lint.version =8.1.0-rc01
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ androidxActivity = "1.7.0"
66androidxAppCompat = " 1.5.1"
77androidxBrowser = " 1.4.0"
88androidxComposeBom = " 2023.06.01"
9- androidxComposeCompiler = " 1.4.8 "
9+ androidxComposeCompiler = " 1.5.0 "
1010androidxComposeRuntimeTracing = " 1.0.0-alpha03"
1111androidxCore = " 1.9.0"
1212androidxCoreSplashscreen = " 1.0.0"
@@ -34,18 +34,18 @@ firebasePerfPlugin = "1.4.2"
3434gmsPlugin = " 4.3.14"
3535googleOss = " 17.0.1"
3636googleOssPlugin = " 0.10.6"
37- hilt = " 2.46.1 "
37+ hilt = " 2.47 "
3838hiltExt = " 1.0.0"
3939jacoco = " 0.8.7"
4040junit4 = " 4.13.2"
41- kotlin = " 1.8.22 "
41+ kotlin = " 1.9.0 "
4242kotlinxCoroutines = " 1.6.4"
4343kotlinxDatetime = " 0.4.0"
4444kotlinxSerializationJson = " 1.5.1"
45- ksp = " 1.8.22 -1.0.11"
46- lint = " 30.3.1 "
45+ ksp = " 1.9.0 -1.0.11"
46+ lint = " 31.0.2 "
4747okhttp = " 4.10.0"
48- protobuf = " 3.23.0 "
48+ protobuf = " 3.23.4 "
4949protobufPlugin = " 0.9.3"
5050retrofit = " 2.9.0"
5151retrofitKotlinxSerializationJson = " 1.0.0"
You can’t perform that action at this time.
0 commit comments