From f9140b6ec93eaf7a09726ea55c726c481de30aed Mon Sep 17 00:00:00 2001 From: Vansh Gandhi Date: Wed, 31 Jan 2024 15:16:43 -0800 Subject: [PATCH] Default to Prod (#304) --- .../com/smileidentity/sample/compose/MainScreen.kt | 11 ----------- .../com/smileidentity/sample/compose/RootScreen.kt | 4 ++-- 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/sample/src/main/java/com/smileidentity/sample/compose/MainScreen.kt b/sample/src/main/java/com/smileidentity/sample/compose/MainScreen.kt index 21f5531e1..5b1d4d1e3 100644 --- a/sample/src/main/java/com/smileidentity/sample/compose/MainScreen.kt +++ b/sample/src/main/java/com/smileidentity/sample/compose/MainScreen.kt @@ -8,7 +8,6 @@ import androidx.compose.foundation.layout.wrapContentHeight import androidx.compose.material.icons.Icons import androidx.compose.material.icons.filled.ArrowBack import androidx.compose.material.icons.filled.Delete -import androidx.compose.material.icons.filled.Warning import androidx.compose.material3.AlertDialog import androidx.compose.material3.Badge import androidx.compose.material3.BadgedBox @@ -372,16 +371,6 @@ private fun TopBar( FilterChip( selected = uiState.isProduction, onClick = viewModel::toggleEnvironment, - leadingIcon = { - if (uiState.isProduction) { - Icon( - imageVector = Icons.Filled.Warning, - contentDescription = stringResource( - R.string.production, - ), - ) - } - }, label = { Text(stringResource(id = uiState.environmentName)) }, ) if (isJobsScreenSelected) { diff --git a/sample/src/main/java/com/smileidentity/sample/compose/RootScreen.kt b/sample/src/main/java/com/smileidentity/sample/compose/RootScreen.kt index 67e9904bf..dc42d4e30 100644 --- a/sample/src/main/java/com/smileidentity/sample/compose/RootScreen.kt +++ b/sample/src/main/java/com/smileidentity/sample/compose/RootScreen.kt @@ -56,7 +56,7 @@ fun RootScreen( SmileID.initialize( context = context, config = runtimeConfig!!, - useSandbox = true, + useSandbox = false, enableCrashReporting = !BuildConfig.DEBUG, okHttpClient = client, ) @@ -68,7 +68,7 @@ fun RootScreen( initialized = false SmileID.initialize( context = context, - useSandbox = true, + useSandbox = false, enableCrashReporting = !BuildConfig.DEBUG, okHttpClient = client, )