From 871291d69fb0e1e3219241da08eb839e6097af64 Mon Sep 17 00:00:00 2001 From: Sadturtleman Date: Fri, 23 Oct 2026 18:43:17 +0900 Subject: [PATCH] =?UTF-8?q?fix(onboarding):=20debug=20=EC=95=B1=EC=9D=98?= =?UTF-8?q?=20=EA=B0=95=EC=A0=9C=20=EC=97=85=EB=8D=B0=EC=9D=B4=ED=8A=B8?= =?UTF-8?q?=EA=B0=80=20=EB=B3=B8=20=EC=95=B1=20=EC=8A=A4=ED=86=A0=EC=96=B4?= =?UTF-8?q?=20=EC=83=81=EC=84=B8=EB=A1=9C=20=EA=B0=80=EA=B2=8C=20=ED=95=9C?= =?UTF-8?q?=EB=8B=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit debug 빌드는 패키지에 .debug 가 붙어(#632) 존재하지 않는 스토어 상세로 갔다. 스토어 주소는 .debug 를 뗀 패키지로 만든다. release 는 변화 없음. Closes #635 Co-Authored-By: Claude Opus 5.5 (1M context) --- .../ruleup/onboarding/presentation/splash/SplashScreen.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/onboarding/presentation/src/main/kotlin/com/ruleup/onboarding/presentation/splash/SplashScreen.kt b/onboarding/presentation/src/main/kotlin/com/ruleup/onboarding/presentation/splash/SplashScreen.kt index 6dabdae8..fe315922 100644 --- a/onboarding/presentation/src/main/kotlin/com/ruleup/onboarding/presentation/splash/SplashScreen.kt +++ b/onboarding/presentation/src/main/kotlin/com/ruleup/onboarding/presentation/splash/SplashScreen.kt @@ -201,13 +201,15 @@ internal fun updateMessage(minAppVersion: String?): String = /** Play 스토어 상세로 이동. */ private fun Context.openPlayStore() { - val market = Intent(Intent.ACTION_VIEW, "market://details?id=$packageName".toUri()) + // debug 빌드는 패키지에 .debug 가 붙지만 스토어에는 본 앱만 있다 + val storePackage = packageName.removeSuffix(".debug") + val market = Intent(Intent.ACTION_VIEW, "market://details?id=$storePackage".toUri()) runCatching { startActivity(market) }.onFailure { if (it is ActivityNotFoundException) { startActivity( Intent( Intent.ACTION_VIEW, - "https://play.google.com/store/apps/details?id=$packageName".toUri(), + "https://play.google.com/store/apps/details?id=$storePackage".toUri(), ), ) }