diff --git a/example/build.gradle.kts b/example/build.gradle.kts index 2c1a1a2..940f8b6 100644 --- a/example/build.gradle.kts +++ b/example/build.gradle.kts @@ -12,8 +12,8 @@ android { applicationId = "com.spruceid.mobilesdkexample" minSdk = 26 targetSdk = 34 - versionCode = 1 - versionName = "1.0" + versionCode = 3 + versionName = "1.0.0+3" testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" vectorDrawables { diff --git a/example/src/main/java/com/spruceid/mobilesdkexample/wallet/AchievementCredentialItem.kt b/example/src/main/java/com/spruceid/mobilesdkexample/wallet/AchievementCredentialItem.kt index 41dd83f..08d1cbd 100644 --- a/example/src/main/java/com/spruceid/mobilesdkexample/wallet/AchievementCredentialItem.kt +++ b/example/src/main/java/com/spruceid/mobilesdkexample/wallet/AchievementCredentialItem.kt @@ -60,7 +60,7 @@ class AchievementCredentialItem { @Composable fun listComponent() { - val achievementName = keyPathFinder(credential, mutableListOf("achievement", "name")).toString() + val achievementName = keyPathFinder(credential, mutableListOf("name")).toString() val issuerName = keyPathFinder(credential, mutableListOf("issuer", "name")).toString() Row( diff --git a/example/src/main/java/com/spruceid/mobilesdkexample/wallet/AddToWalletView.kt b/example/src/main/java/com/spruceid/mobilesdkexample/wallet/AddToWalletView.kt index 63f3dc8..ad29996 100644 --- a/example/src/main/java/com/spruceid/mobilesdkexample/wallet/AddToWalletView.kt +++ b/example/src/main/java/com/spruceid/mobilesdkexample/wallet/AddToWalletView.kt @@ -22,6 +22,7 @@ import androidx.compose.ui.unit.sp import androidx.navigation.NavHostController import androidx.navigation.compose.rememberNavController import com.spruceid.mobilesdkexample.db.RawCredentials +import com.spruceid.mobilesdkexample.navigation.Screen import com.spruceid.mobilesdkexample.ui.theme.CTAButtonGreen import com.spruceid.mobilesdkexample.ui.theme.Inter import com.spruceid.mobilesdkexample.ui.theme.MobileSdkTheme @@ -75,7 +76,10 @@ fun AddToWalletView( rawCredentialsViewModel.saveRawCredential(RawCredentials( rawCredential = rawCredential )) - navController.popBackStack() + + navController.navigate(Screen.HomeScreen.route) { + popUpTo(0) + } } }, shape = RoundedCornerShape(5.dp), @@ -119,7 +123,7 @@ fun AddToWalletView( @Preview(showBackground = true) @Composable fun AddToWalletPreview() { - var navController: NavHostController = rememberNavController() + val navController: NavHostController = rememberNavController() MobileSdkTheme { AddToWalletView( diff --git a/example/src/main/java/com/spruceid/mobilesdkexample/wallet/WalletHomeView.kt b/example/src/main/java/com/spruceid/mobilesdkexample/wallet/WalletHomeView.kt index 6e3f685..ca8d1cf 100644 --- a/example/src/main/java/com/spruceid/mobilesdkexample/wallet/WalletHomeView.kt +++ b/example/src/main/java/com/spruceid/mobilesdkexample/wallet/WalletHomeView.kt @@ -97,11 +97,11 @@ fun WalletHomeBody(rawCredentialsViewModel: IRawCredentialsViewModel) { items(rawCredentials) { rawCredential -> AchievementCredentialItem(rawCredential.rawCredential).component() } - item { - vcs.map { vc -> - GenericCredentialListItems(vc = vc) - } - ShareableCredentialListItems(mdocBase64 = mdocBase64) - } +// item { +// vcs.map { vc -> +// GenericCredentialListItems(vc = vc) +// } +// ShareableCredentialListItems(mdocBase64 = mdocBase64) +// } } }