shop: fix all lint findings
- Commit
e125bf1e309406538c98a20275e2d2019b418030- Author
- Vayun Mathur <[email protected]>
- When
- 2026-11-17 05:16 UTC (19 days ago)
- Parents
13729ab
Fix every lint warning reported for the shop module's own sources by :shop:lintDev, now 0 errors / 0 warnings for shop/** (remaining report entries are transitive library findings owned by other clusters). MissingOnRenderProcessGone: CheckoutClient now implements onRenderProcessGone — it reports failure and returns true so a dead renderer does not kill the app. PackageStructure: the navigation entry builders moved from Navigation.kt into ui/NavigationEntries.kt. UseKtx (4): String.toUri(), with dead Uri imports removed. UnusedResources (4) and ExtraTranslation (2): place_order and checkout_handoff_notice verified unreferenced and deleted from default + et, and the Et-only orphans store_domain/store_domain_hint deleted. AutoboxingStateCreation hints (3): mutableIntStateOf. Side effect handled in code: the added imports pushed ProductScreen.kt past the fatal 350-line FileLength lint, so VariantPicker split into ui/VariantPicker.kt (316-line remainder). No suppressions added; no lint config or baseline changed. Verified: ./gradlew :shop:lintDev (0 own-module errors/warnings) and :shop:testDevUnitTest green.
Diff
shop/src/main/java/com/vayunmathur/shop/Navigation.kt
diff --git a/shop/src/main/java/com/vayunmathur/shop/Navigation.kt b/shop/src/main/java/com/vayunmathur/shop/Navigation.ktindex 75bd70ec18..e3eabf2d8d 100644--- a/shop/src/main/java/com/vayunmathur/shop/Navigation.kt+++ b/shop/src/main/java/com/vayunmathur/shop/Navigation.kt@@ -17,56 +17,12 @@ import com.vayunmathur.library.ui.IconShoppingCart import com.vayunmathur.library.ui.RouteTab import com.vayunmathur.library.ui.TabbedPagerScaffold import com.vayunmathur.library.util.MainNavigation-import com.vayunmathur.library.util.NavBackStack-import com.vayunmathur.library.util.SiblingPage import com.vayunmathur.library.util.rememberNavBackStack import com.vayunmathur.shop.platform.ShopViewModel-import com.vayunmathur.shop.ui.CartScreen-import com.vayunmathur.shop.ui.EmbeddedCheckoutScreen-import com.vayunmathur.shop.ui.OrdersScreen-import com.vayunmathur.shop.ui.ProductScreen-import com.vayunmathur.shop.ui.ProfileScreen-import com.vayunmathur.shop.ui.SearchScreen--/** Graph root for the current profile state: the gate until the profile validates, then Search. */-internal fun shopStartRoute(profileComplete: Boolean): Route =- if (profileComplete) Route.Search else Route.ProfileSetup--/**- * Lifts the profile gate. Only fires once the profile has loaded and validates,- * and only while [Route.ProfileSetup] is still on the stack — later edits via- * the Profile tab (which also keep the profile complete) must not reset the- * user's stack. reset() rather than add(): there is no going back to the gate.- * Returns true when the stack was reset.- */-internal fun applyShopProfileGate(- backStack: NavBackStack<Route>,- profileLoaded: Boolean,- profileComplete: Boolean,-): Boolean {- if (!profileLoaded || !profileComplete) return false- if (Route.ProfileSetup !in backStack.backStack) return false- backStack.reset(Route.Search)- return true-}---/**- * Applies a resolved deep-link route. While the profile is incomplete the- * route is left unconsumed (returns false) so it still applies after the gate- * lifts; the caller re-runs this when completeness changes. Returns true when- * the route was applied and can be consumed.- */-internal fun applyShopPendingRoute(- backStack: NavBackStack<Route>,- pendingRoute: Route?,- profileComplete: Boolean,-): Boolean {- val route = pendingRoute ?: return false- if (!profileComplete) return false- if (route == Route.Search) backStack.reset(Route.Search) else backStack.reset(Route.Search, route)- return true-}+import com.vayunmathur.shop.ui.applyShopPendingRoute+import com.vayunmathur.shop.ui.applyShopProfileGate+import com.vayunmathur.shop.ui.shopEntries+import com.vayunmathur.shop.ui.shopStartRoute @Composable fun Navigation(@@ -151,49 +107,3 @@ fun Navigation( MainNavigation(backStack) { shopEntries(backStack, viewModel, context) } } }--private fun com.vayunmathur.library.util.EntryProviderScope<Route>.shopEntries(- backStack: NavBackStack<Route>,- viewModel: ShopViewModel,- context: android.content.Context,-) {- entry<Route.ProfileSetup> {- // Still inside the graph while loading: nothing renders until the- // repository emits, matching the previous blank-until-loaded gate,- // then the same required profile form as before.- if (viewModel.profileLoaded) ProfileScreen(viewModel, required = true)- }- entry<Route.Search>(metadata = SiblingPage()) {- SearchScreen(- viewModel = viewModel,- onProductClick = { variantId, platformId, shopDomain ->- backStack.add(Route.ProductDetail(variantId, platformId, shopDomain))- },- )- }- entry<Route.Cart>(metadata = SiblingPage()) {- CartScreen(viewModel, onPayInApp = { backStack.add(Route.EmbeddedCheckout) })- }- entry<Route.Orders>(metadata = SiblingPage()) {- LaunchedEffect(Unit) { viewModel.refreshTracking(context) }- OrdersScreen(viewModel = viewModel)- }- entry<Route.Profile>(metadata = SiblingPage()) {- ProfileScreen(viewModel, required = false)- }- entry<Route.ProductDetail> { route ->- ProductScreen(- viewModel = viewModel,- variantId = route.variantId,- platformId = route.platformId,- shopDomain = route.shopDomain,- onBack = { backStack.pop() },- onPayInApp = { backStack.add(Route.EmbeddedCheckout) },- )- }- entry<Route.EmbeddedCheckout> {- EmbeddedCheckoutScreen(viewModel = viewModel, onClose = {- if (backStack.backStack.lastOrNull() == Route.EmbeddedCheckout) backStack.pop()- })- }-}
shop/src/main/java/com/vayunmathur/shop/platform/LinkDefaults.kt
diff --git a/shop/src/main/java/com/vayunmathur/shop/platform/LinkDefaults.kt b/shop/src/main/java/com/vayunmathur/shop/platform/LinkDefaults.ktindex f5d7b7d55c..d80de0f10f 100644--- a/shop/src/main/java/com/vayunmathur/shop/platform/LinkDefaults.kt+++ b/shop/src/main/java/com/vayunmathur/shop/platform/LinkDefaults.kt@@ -5,7 +5,7 @@ import android.content.Context import android.content.Intent import android.content.pm.verify.domain.DomainVerificationManager import android.content.pm.verify.domain.DomainVerificationUserState-import android.net.Uri+import androidx.core.net.toUri import android.provider.Settings import androidx.core.content.edit @@ -27,7 +27,7 @@ object LinkDefaults { fun openSettings(context: Context) { dismiss(context)- val packageUri = Uri.parse("package:${context.packageName}")+ val packageUri = "package:${context.packageName}".toUri() val openByDefault = Intent(Settings.ACTION_APP_OPEN_BY_DEFAULT_SETTINGS, packageUri) val appDetails = Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS, packageUri) try {
shop/src/main/java/com/vayunmathur/shop/platform/ShopViewModel.kt
diff --git a/shop/src/main/java/com/vayunmathur/shop/platform/ShopViewModel.kt b/shop/src/main/java/com/vayunmathur/shop/platform/ShopViewModel.ktindex a449e57d28..c56eca92b2 100644--- a/shop/src/main/java/com/vayunmathur/shop/platform/ShopViewModel.kt+++ b/shop/src/main/java/com/vayunmathur/shop/platform/ShopViewModel.kt@@ -3,6 +3,7 @@ package com.vayunmathur.shop.platform import android.content.Context import androidx.compose.runtime.getValue import androidx.compose.runtime.mutableIntStateOf+import androidx.compose.runtime.mutableIntStateOf import androidx.compose.runtime.mutableStateOf import androidx.compose.runtime.setValue import androidx.lifecycle.ViewModel@@ -45,7 +46,7 @@ class ShopViewModel( private set var scopeName by mutableStateOf<String?>(null) private set- var focusSearchRequest by mutableStateOf(0)+ var focusSearchRequest by mutableIntStateOf(0) private set var refreshingTracking by mutableStateOf(false) private set
shop/src/main/java/com/vayunmathur/shop/ui/CartScreen.kt
diff --git a/shop/src/main/java/com/vayunmathur/shop/ui/CartScreen.kt b/shop/src/main/java/com/vayunmathur/shop/ui/CartScreen.ktindex 0dc98e4895..e6735108e2 100644--- a/shop/src/main/java/com/vayunmathur/shop/ui/CartScreen.kt+++ b/shop/src/main/java/com/vayunmathur/shop/ui/CartScreen.kt@@ -1,7 +1,7 @@ package com.vayunmathur.shop.ui import android.content.Context-import android.net.Uri+import androidx.core.net.toUri import androidx.browser.customtabs.CustomTabColorSchemeParams import androidx.browser.customtabs.CustomTabsIntent import androidx.compose.foundation.isSystemInDarkTheme@@ -203,12 +203,12 @@ fun openContinueUrl(context: Context, url: String) { .setShowTitle(true) .setShareState(CustomTabsIntent.SHARE_STATE_OFF) .build()- intent.launchUrl(context, Uri.parse(url))+ intent.launchUrl(context, url.toUri()) }.onFailure { runCatching { val view = android.content.Intent( android.content.Intent.ACTION_VIEW,- Uri.parse(url),+ url.toUri(), ).addFlags(android.content.Intent.FLAG_ACTIVITY_NEW_TASK) context.startActivity(view) }.onFailure {
shop/src/main/java/com/vayunmathur/shop/ui/EmbeddedCheckoutScreen.kt
diff --git a/shop/src/main/java/com/vayunmathur/shop/ui/EmbeddedCheckoutScreen.kt b/shop/src/main/java/com/vayunmathur/shop/ui/EmbeddedCheckoutScreen.ktindex bf65149860..0f21e624c3 100644--- a/shop/src/main/java/com/vayunmathur/shop/ui/EmbeddedCheckoutScreen.kt+++ b/shop/src/main/java/com/vayunmathur/shop/ui/EmbeddedCheckoutScreen.kt@@ -3,12 +3,13 @@ package com.vayunmathur.shop.ui import android.annotation.SuppressLint import android.content.ActivityNotFoundException import android.content.Intent-import android.net.Uri+import androidx.core.net.toUri import android.webkit.CookieManager import android.webkit.WebResourceError import android.webkit.WebResourceRequest import android.webkit.WebView import android.webkit.WebViewClient+import android.webkit.RenderProcessGoneDetail import androidx.activity.compose.BackHandler import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Box@@ -164,7 +165,7 @@ private fun CheckoutWebView( private fun bridgeOrigins(request: EmbeddedCheckoutRequest): Set<String> { val hosts = buildSet { MerchantUrls.domain(request.shopDomain)?.let { add(it.removePrefix("www.")) }- Uri.parse(request.browserUrl).host?.let { add(it.removePrefix("www.")) }+ request.browserUrl.toUri().host?.let { add(it.removePrefix("www.")) } } return hosts.flatMap { listOf("https://$it", "https://*.$it") }.toSet() + "https://shop.app" }@@ -193,6 +194,13 @@ private class CheckoutClient(private val onLoaded: () -> Unit, private val onFai override fun onPageFinished(view: WebView, url: String?) = onLoaded() + override fun onRenderProcessGone(view: WebView, detail: RenderProcessGoneDetail): Boolean {+ // Renderer died (crash/OOM): surface as a failed load and consume the event so+ // the app process is not killed with the renderer.+ onFailed()+ return true+ }+ override fun onReceivedError(view: WebView, request: WebResourceRequest, error: WebResourceError) { if (request.isForMainFrame) onFailed() }
shop/src/main/java/com/vayunmathur/shop/ui/NavigationEntries.kt
diff --git a/shop/src/main/java/com/vayunmathur/shop/ui/NavigationEntries.kt b/shop/src/main/java/com/vayunmathur/shop/ui/NavigationEntries.ktnew file mode 100644index 0000000000..245ec88abf--- /dev/null+++ b/shop/src/main/java/com/vayunmathur/shop/ui/NavigationEntries.kt@@ -0,0 +1,97 @@+package com.vayunmathur.shop.ui++import androidx.compose.runtime.Composable+import androidx.compose.runtime.LaunchedEffect+import androidx.compose.ui.res.stringResource+import com.vayunmathur.library.util.EntryProviderScope+import com.vayunmathur.library.util.NavBackStack+import com.vayunmathur.library.util.SiblingPage+import com.vayunmathur.shop.R+import com.vayunmathur.shop.Route+import com.vayunmathur.shop.platform.ShopViewModel++/** Graph root for the current profile state: the gate until the profile validates, then Search. */+internal fun shopStartRoute(profileComplete: Boolean): Route =+ if (profileComplete) Route.Search else Route.ProfileSetup++/**+ * Lifts the profile gate. Only fires once the profile has loaded and validates,+ * and only while [Route.ProfileSetup] is still on the stack — later edits via+ * the Profile tab (which also keep the profile complete) must not reset the+ * user's stack. reset() rather than add(): there is no going back to the gate.+ * Returns true when the stack was reset.+ */+internal fun applyShopProfileGate(+ backStack: NavBackStack<Route>,+ profileLoaded: Boolean,+ profileComplete: Boolean,+): Boolean {+ if (!profileLoaded || !profileComplete) return false+ if (Route.ProfileSetup !in backStack.backStack) return false+ backStack.reset(Route.Search)+ return true+}+++/**+ * Applies a resolved deep-link route. While the profile is incomplete the+ * route is left unconsumed (returns false) so it still applies after the gate+ * lifts; the caller re-runs this when completeness changes. Returns true when+ * the route was applied and can be consumed.+ */+internal fun applyShopPendingRoute(+ backStack: NavBackStack<Route>,+ pendingRoute: Route?,+ profileComplete: Boolean,+): Boolean {+ val route = pendingRoute ?: return false+ if (!profileComplete) return false+ if (route == Route.Search) backStack.reset(Route.Search) else backStack.reset(Route.Search, route)+ return true+}++internal fun EntryProviderScope<Route>.shopEntries(+ backStack: NavBackStack<Route>,+ viewModel: ShopViewModel,+ context: android.content.Context,+) {+ entry<Route.ProfileSetup> {+ // Still inside the graph while loading: nothing renders until the+ // repository emits, matching the previous blank-until-loaded gate,+ // then the same required profile form as before.+ if (viewModel.profileLoaded) ProfileScreen(viewModel, required = true)+ }+ entry<Route.Search>(metadata = SiblingPage()) {+ SearchScreen(+ viewModel = viewModel,+ onProductClick = { variantId, platformId, shopDomain ->+ backStack.add(Route.ProductDetail(variantId, platformId, shopDomain))+ },+ )+ }+ entry<Route.Cart>(metadata = SiblingPage()) {+ CartScreen(viewModel, onPayInApp = { backStack.add(Route.EmbeddedCheckout) })+ }+ entry<Route.Orders>(metadata = SiblingPage()) {+ LaunchedEffect(Unit) { viewModel.refreshTracking(context) }+ OrdersScreen(viewModel = viewModel)+ }+ entry<Route.Profile>(metadata = SiblingPage()) {+ ProfileScreen(viewModel, required = false)+ }+ entry<Route.ProductDetail> { route ->+ ProductScreen(+ viewModel = viewModel,+ variantId = route.variantId,+ platformId = route.platformId,+ shopDomain = route.shopDomain,+ onBack = { backStack.pop() },+ onPayInApp = { backStack.add(Route.EmbeddedCheckout) },+ )+ }+ entry<Route.EmbeddedCheckout> {+ EmbeddedCheckoutScreen(viewModel = viewModel, onClose = {+ if (backStack.backStack.lastOrNull() == Route.EmbeddedCheckout) backStack.pop()+ })+ }+}
shop/src/main/java/com/vayunmathur/shop/ui/ProductScreen.kt
diff --git a/shop/src/main/java/com/vayunmathur/shop/ui/ProductScreen.kt b/shop/src/main/java/com/vayunmathur/shop/ui/ProductScreen.ktindex 6b94b7b8ca..fb21cbbc07 100644--- a/shop/src/main/java/com/vayunmathur/shop/ui/ProductScreen.kt+++ b/shop/src/main/java/com/vayunmathur/shop/ui/ProductScreen.kt@@ -19,6 +19,7 @@ import androidx.compose.foundation.lazy.items import androidx.compose.runtime.Composable import androidx.compose.runtime.LaunchedEffect import androidx.compose.runtime.getValue+import androidx.compose.runtime.mutableIntStateOf import androidx.compose.runtime.mutableStateOf import androidx.compose.runtime.remember import androidx.compose.runtime.setValue@@ -78,8 +79,8 @@ fun ProductScreen( }) } var selectedVariant by remember(variantId, platformId, shopDomain) { mutableStateOf(variantId) }- var quantity by remember(variantId, platformId, shopDomain) { mutableStateOf(1) }- var retry by remember(variantId, platformId, shopDomain) { mutableStateOf(0) }+ var quantity by remember(variantId, platformId, shopDomain) { mutableIntStateOf(1) }+ var retry by remember(variantId, platformId, shopDomain) { mutableIntStateOf(0) } var refreshing by remember(variantId, platformId, shopDomain) { mutableStateOf(true) } var activeKey by remember(variantId, platformId, shopDomain) { mutableStateOf<Pair<String, String>?>(null) } var verifiedKey by remember(variantId, platformId, shopDomain) { mutableStateOf<Pair<String, String>?>(null) }@@ -313,37 +314,3 @@ internal fun ProductDetailContent( } } -@Composable-private fun VariantPicker(- variants: List<ProductVariant>,- selectedId: String,- onSelect: (String) -> Unit,-) {- Column(verticalArrangement = Arrangement.spacedBy(8.dp)) {- variants.forEach { variant ->- val selected = variant.id == selectedId- Row(- modifier = Modifier.fillMaxWidth(),- horizontalArrangement = Arrangement.SpaceBetween,- verticalAlignment = Alignment.CenterVertically,- ) {- Column(Modifier.weight(1f)) {- Text(variant.title.ifBlank { "Default" }, style = MaterialTheme.typography.bodyMedium)- if (!variant.available) {- Text("Out of stock", style = MaterialTheme.typography.bodySmall, color = MaterialTheme.colorScheme.error)- }- }- Spacer(Modifier.width(8.dp))- Text(- MoneyFormat.format(variant.price),- style = MaterialTheme.typography.bodyMedium,- color = if (selected) MaterialTheme.colorScheme.primary else MaterialTheme.colorScheme.onSurfaceVariant,- )- Spacer(Modifier.width(8.dp))- Button(onClick = { onSelect(variant.id) }, enabled = variant.available && !selected) {- Text(if (selected) "Selected" else "Select")- }- }- }- }-}
shop/src/main/java/com/vayunmathur/shop/ui/VariantPicker.kt
diff --git a/shop/src/main/java/com/vayunmathur/shop/ui/VariantPicker.kt b/shop/src/main/java/com/vayunmathur/shop/ui/VariantPicker.ktnew file mode 100644index 0000000000..26c2bb3018--- /dev/null+++ b/shop/src/main/java/com/vayunmathur/shop/ui/VariantPicker.kt@@ -0,0 +1,91 @@+package com.vayunmathur.shop.ui+import androidx.compose.foundation.isSystemInDarkTheme+import androidx.compose.foundation.layout.Arrangement+import androidx.compose.foundation.layout.Box+import androidx.compose.foundation.layout.Column+import androidx.compose.foundation.layout.PaddingValues+import androidx.compose.foundation.layout.Row+import androidx.compose.foundation.layout.Spacer+import androidx.compose.foundation.layout.fillMaxSize+import androidx.compose.foundation.layout.fillMaxWidth+import androidx.compose.foundation.layout.height+import androidx.compose.foundation.layout.padding+import androidx.compose.foundation.layout.size+import androidx.compose.foundation.layout.width+import androidx.compose.foundation.lazy.LazyColumn+import androidx.compose.foundation.lazy.LazyRow+import androidx.compose.foundation.lazy.items+import androidx.compose.runtime.Composable+import androidx.compose.runtime.LaunchedEffect+import androidx.compose.runtime.getValue+import androidx.compose.runtime.mutableIntStateOf+import androidx.compose.runtime.mutableStateOf+import androidx.compose.runtime.remember+import androidx.compose.runtime.setValue+import androidx.compose.ui.Alignment+import androidx.compose.ui.Modifier+import androidx.compose.ui.layout.ContentScale+import androidx.compose.ui.platform.LocalContext+import androidx.compose.ui.res.stringResource+import androidx.compose.ui.text.AnnotatedString+import androidx.compose.ui.text.LinkAnnotation+import androidx.compose.ui.text.LinkInteractionListener+import androidx.compose.ui.text.fromHtml+import androidx.compose.ui.unit.dp+import com.vayunmathur.library.image.compose.AsyncImage+import com.vayunmathur.library.ui.AppScaffold+import com.vayunmathur.library.ui.Button+import com.vayunmathur.library.ui.CircularProgressIndicator+import com.vayunmathur.library.ui.DetailSection+import com.vayunmathur.library.ui.MaterialTheme+import com.vayunmathur.library.ui.Text+import com.vayunmathur.library.ui.appBarScrollBehavior+import com.vayunmathur.library.ui.rememberMessenger+import com.vayunmathur.shop.R+import com.vayunmathur.shop.data.CatalogOptionSelection+import com.vayunmathur.shop.data.ProductVariant+import com.vayunmathur.shop.data.UcpProduct+import com.vayunmathur.shop.data.message+import com.vayunmathur.shop.domain.MerchantUrls+import com.vayunmathur.shop.domain.MoneyFormat+import com.vayunmathur.shop.network.ShopBackend+import com.vayunmathur.shop.network.ShopBackendException+import com.vayunmathur.shop.network.ShopHttpBackend+import com.vayunmathur.shop.platform.AppInit+import com.vayunmathur.shop.platform.ShopViewModel+import kotlinx.coroutines.CancellationException++@Composable+internal fun VariantPicker(+ variants: List<ProductVariant>,+ selectedId: String,+ onSelect: (String) -> Unit,+) {+ Column(verticalArrangement = Arrangement.spacedBy(8.dp)) {+ variants.forEach { variant ->+ val selected = variant.id == selectedId+ Row(+ modifier = Modifier.fillMaxWidth(),+ horizontalArrangement = Arrangement.SpaceBetween,+ verticalAlignment = Alignment.CenterVertically,+ ) {+ Column(Modifier.weight(1f)) {+ Text(variant.title.ifBlank { "Default" }, style = MaterialTheme.typography.bodyMedium)+ if (!variant.available) {+ Text("Out of stock", style = MaterialTheme.typography.bodySmall, color = MaterialTheme.colorScheme.error)+ }+ }+ Spacer(Modifier.width(8.dp))+ Text(+ MoneyFormat.format(variant.price),+ style = MaterialTheme.typography.bodyMedium,+ color = if (selected) MaterialTheme.colorScheme.primary else MaterialTheme.colorScheme.onSurfaceVariant,+ )+ Spacer(Modifier.width(8.dp))+ Button(onClick = { onSelect(variant.id) }, enabled = variant.available && !selected) {+ Text(if (selected) "Selected" else "Select")+ }+ }+ }+ }+}
shop/src/main/res/values-et/strings.xml
diff --git a/shop/src/main/res/values-et/strings.xml b/shop/src/main/res/values-et/strings.xmlindex 322e169c81..da79ab7cc7 100644--- a/shop/src/main/res/values-et/strings.xml+++ b/shop/src/main/res/values-et/strings.xml@@ -11,12 +11,8 @@ <string name="orders">Tellimused</string> <string name="no_orders_yet">Tellimuste ajalugu veel pole</string> <string name="continue_in_browser">Jätka veebibrauseris</string>- <string name="place_order">Valmistu maksma</string>- <string name="store_domain">Kaupmehe domeen (kui tahad lisada)</string>- <string name="store_domain_hint">Shopify otsingu jaoks jäta tühjaks, muul juhul sisesta UCP registris oleva kaupmehe domeen.</string> <string name="estimated_subtotal">Hinnanguline vahesumma</string> <string name="checkout_pending">Makse pole kinnitatud</string>- <string name="checkout_handoff_notice">Vaata lõplikke hindu, saatmiskulusid ja makseviise müüja veebilehel. Ostukorvi tooted jäävad sinna, kuni sa need sealt eemaldad.</string> <string name="buy_now">Osta kohe</string> <string name="add_to_cart">Lisa ostukorvi</string> </resources>
shop/src/main/res/values/strings.xml
diff --git a/shop/src/main/res/values/strings.xml b/shop/src/main/res/values/strings.xmlindex 83443eab0c..9ea029f79d 100644--- a/shop/src/main/res/values/strings.xml+++ b/shop/src/main/res/values/strings.xml@@ -11,7 +11,6 @@ <string name="orders">Orders</string> <string name="no_orders_yet">No orders yet</string> <string name="continue_in_browser">Continue in browser</string>- <string name="place_order">Prepare checkout</string> <string name="estimated_subtotal">Estimated subtotal</string> <string name="checkout_pending">Payment not confirmed</string> <string name="order_placed">Order placed</string>@@ -28,7 +27,6 @@ <string name="tracking_refunded">Refunded %1$s</string> <string name="delivery_updates_channel">Delivery updates</string> <string name="order_update_title">%1$s order%2$s</string>- <string name="checkout_handoff_notice">Review final prices, shipping and payment on the merchant site. Cart items remain until you remove them.</string> <string name="buy_now">Buy now</string> <string name="add_to_cart">Add to cart</string> </resources>
shop/src/test/java/com/vayunmathur/shop/ShopProfileGateTest.kt
diff --git a/shop/src/test/java/com/vayunmathur/shop/ShopProfileGateTest.kt b/shop/src/test/java/com/vayunmathur/shop/ShopProfileGateTest.ktindex a0838cfb15..138eb2cee2 100644--- a/shop/src/test/java/com/vayunmathur/shop/ShopProfileGateTest.kt+++ b/shop/src/test/java/com/vayunmathur/shop/ShopProfileGateTest.kt@@ -1,5 +1,11 @@ package com.vayunmathur.shop +import com.vayunmathur.shop.ui.applyShopPendingRoute++import com.vayunmathur.shop.ui.applyShopProfileGate++import com.vayunmathur.shop.ui.shopStartRoute+ import com.vayunmathur.library.util.NavBackStack import kotlin.test.Test import kotlin.test.assertEquals