File tree Expand file tree Collapse file tree 6 files changed +15
-6
lines changed
sample-compose/app/src/main/java/co/nimblehq/sample/compose Expand file tree Collapse file tree 6 files changed +15
-6
lines changed Original file line number Diff line number Diff line change 1+ @file:Suppress(" MatchingDeclarationName" )
2+
13package co.nimblehq.sample.compose.ui.screens.main.home
24
35import android.Manifest.permission.CAMERA
Original file line number Diff line number Diff line change 1+ @file:Suppress(" MatchingDeclarationName" , " UnusedPrivateMember" )
2+
13package co.nimblehq.sample.compose.ui.screens.main.second
24
35import androidx.compose.foundation.layout.Box
@@ -25,7 +27,6 @@ import kotlinx.serialization.Serializable
2527@Serializable
2628data class Second (val id : String ) : NavKey
2729
28- @Suppress(" UnusedPrivateMember" )
2930@Composable
3031fun SecondScreen (
3132 id : String ,
Original file line number Diff line number Diff line change 1+ @file:Suppress(" MatchingDeclarationName" , " UnusedPrivateMember" )
2+
13package co.nimblehq.sample.compose.ui.screens.main.third
24
35import androidx.compose.foundation.layout.Box
@@ -24,7 +26,6 @@ import kotlinx.serialization.Serializable
2426@Serializable
2527data class Third (val model : UiModel ) : NavKey
2628
27- @Suppress(" UnusedPrivateMember" )
2829@Composable
2930fun ThirdScreen (
3031 model : UiModel ? ,
Original file line number Diff line number Diff line change 1+ @file:Suppress(" ComplexMethod" , " ReturnCount" )
2+
13package co.nimblehq.sample.compose.util
24
35import kotlinx.serialization.KSerializer
Original file line number Diff line number Diff line change 1+ @file:Suppress(" ComplexMethod" )
2+ @file:OptIn(ExperimentalSerializationApi ::class )
3+
14package co.nimblehq.sample.compose.util
25
36import android.net.Uri
@@ -9,7 +12,7 @@ import java.io.Serializable
912
1013/* *
1114 * Parse a supported deeplink and stores its metadata as a easily readable format
12- *
15+ *ø
1316 * The following notes applies specifically to this particular sample implementation:
1417 *
1518 * The supported deeplink is expected to be built from a serializable backstack key [T] that
@@ -36,7 +39,6 @@ import java.io.Serializable
3639 * @param serializer the serializer of [T]
3740 * @param uriPattern the supported deeplink's uri pattern, i.e. "abc.com/home/{pathArg}"
3841 */
39- @OptIn(ExperimentalSerializationApi ::class )
4042internal class DeepLinkPattern <T : Any >(
4143 val serializer : KSerializer <T >,
4244 val uriPattern : Uri ,
@@ -100,7 +102,7 @@ internal class DeepLinkPattern<T : Any>(
100102 */
101103private typealias TypeParser = (String ) -> Serializable
102104
103- @OptIn( ExperimentalSerializationApi :: class )
105+
104106private fun getTypeParser (kind : SerialKind ): TypeParser {
105107 return when (kind) {
106108 PrimitiveKind .STRING -> Any ::toString
Original file line number Diff line number Diff line change 1+ @file:OptIn(ExperimentalSerializationApi ::class )
2+
13package co.nimblehq.sample.compose.util
24
35import kotlinx.serialization.ExperimentalSerializationApi
@@ -12,7 +14,6 @@ import kotlinx.serialization.modules.SerializersModule
1214 *
1315 * **IMPORTANT** This decoder assumes that all argument types are Primitives.
1416 */
15- @OptIn(ExperimentalSerializationApi ::class )
1617internal class KeyDecoder (
1718 private val arguments : Map <String , Any >,
1819) : AbstractDecoder() {
You can’t perform that action at this time.
0 commit comments