File tree Expand file tree Collapse file tree 3 files changed +10
-9
lines changed
app/src/main/java/com/android/developers/androidify/navigation Expand file tree Collapse file tree 3 files changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -32,9 +32,11 @@ import androidx.compose.runtime.setValue
32
32
import androidx.compose.ui.graphics.TransformOrigin
33
33
import androidx.compose.ui.unit.IntOffset
34
34
import androidx.lifecycle.viewmodel.navigation3.ViewModelStoreNavEntryDecorator
35
+ import androidx.lifecycle.viewmodel.navigation3.rememberViewModelStoreNavEntryDecorator
35
36
import androidx.navigation3.runtime.SavedStateNavEntryDecorator
36
37
import androidx.navigation3.runtime.entry
37
38
import androidx.navigation3.runtime.entryProvider
39
+ import androidx.navigation3.runtime.rememberSavedStateNavEntryDecorator
38
40
import androidx.navigation3.ui.NavDisplay
39
41
import androidx.navigation3.ui.SceneSetupNavEntryDecorator
40
42
import com.android.developers.androidify.camera.CameraPreviewScreen
@@ -73,9 +75,8 @@ fun MainNavigation() {
73
75
backStack = backStack,
74
76
onBack = { backStack.removeLastOrNull() },
75
77
entryDecorators = listOf (
76
- SceneSetupNavEntryDecorator ,
77
- SavedStateNavEntryDecorator ,
78
- ViewModelStoreNavEntryDecorator ,
78
+ rememberSavedStateNavEntryDecorator(),
79
+ rememberViewModelStoreNavEntryDecorator(),
79
80
),
80
81
transitionSpec = {
81
82
ContentTransform (
Original file line number Diff line number Diff line change @@ -16,9 +16,9 @@ appcompat = "1.7.0"
16
16
baselineprofile = " 1.3.4"
17
17
benchmarkMacroJunit4 = " 1.3.4"
18
18
camerax = " 1.5.0-SNAPSHOT"
19
- coilCompose = " 3.1 .0"
20
- coilGif = " 3.1 .0"
21
- composeBom = " 2025.04.01 "
19
+ coilCompose = " 3.2 .0"
20
+ coilGif = " 3.2 .0"
21
+ composeBom = " 2025.05.00 "
22
22
concurrent = " 1.2.0"
23
23
converterGson = " 2.11.0"
24
24
coreKtx = " 1.15.0"
@@ -43,7 +43,7 @@ lifecycleViewmodelNavigation3 = "1.0.0-SNAPSHOT"
43
43
loggingInterceptor = " 5.0.0-alpha.14"
44
44
material = " 1.12.0"
45
45
media3 = " 1.6.1"
46
- navigation3 = " 0.1 .0-SNAPSHOT"
46
+ navigation3 = " 1.0 .0-SNAPSHOT"
47
47
okhttp = " 4.12.0"
48
48
poseDetection = " 18.0.0-beta5"
49
49
profileinstaller = " 1.4.1"
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ pluginManagement {
12
12
maven {
13
13
// You can find the maven URL for other artifacts (e.g. KMP, METALAVA) on their
14
14
// build pages.
15
- url = uri(" https://androidx.dev/snapshots/builds/13467503 /artifacts/repository" )
15
+ url = uri(" https://androidx.dev/snapshots/builds/13496591 /artifacts/repository" )
16
16
}
17
17
18
18
}
@@ -23,7 +23,7 @@ dependencyResolutionManagement {
23
23
google()
24
24
mavenCentral()
25
25
maven {
26
- url = uri(" https://androidx.dev/snapshots/builds/13467503 /artifacts/repository" )
26
+ url = uri(" https://androidx.dev/snapshots/builds/13496591 /artifacts/repository" )
27
27
}
28
28
}
29
29
}
You can’t perform that action at this time.
0 commit comments