From 26314bfc2a920eb9f735755756524633bb7366e2 Mon Sep 17 00:00:00 2001 From: chanho0908 Date: Thu, 21 May 2026 14:14:22 +0900 Subject: [PATCH 1/3] =?UTF-8?q?=F0=9F=90=9B=20Fix:=20=EC=B4=88=EB=8C=80=20?= =?UTF-8?q?=EA=B3=B5=EC=9C=A0=20=EB=8F=84=EB=A9=94=EC=9D=B8=20=EB=B3=80?= =?UTF-8?q?=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/AndroidManifest.xml | 2 +- .../src/main/res/values/strings.xml | 2 +- .../InviteLaunchDispatcherAndroidTest.kt | 28 +++++++++++++++++++ .../com/twix/share/InviteLaunchDispatcher.kt | 2 +- .../twix/share/InviteLaunchDispatcherTest.kt | 17 +++++++++++ .../onboarding/couple/CoupleConnectScreen.kt | 2 -- 6 files changed, 48 insertions(+), 5 deletions(-) create mode 100644 core/share/src/androidTest/java/com/twix/share/InviteLaunchDispatcherAndroidTest.kt create mode 100644 core/share/src/test/java/com/twix/share/InviteLaunchDispatcherTest.kt diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 80e418263..1be65511f 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -52,7 +52,7 @@ diff --git a/core/design-system/src/main/res/values/strings.xml b/core/design-system/src/main/res/values/strings.xml index 235114872..1f388ce85 100644 --- a/core/design-system/src/main/res/values/strings.xml +++ b/core/design-system/src/main/res/values/strings.xml @@ -207,7 +207,7 @@ 커플 연결 요청에 실패했어요 자신의 초대 코드는 사용할 수 없어요 - [키피럽 함께 시작해요]\n함께 시작하고 일상 속 시너지를!\n\n1. \'키피럽\'을 설치해 주세요.\n%3$s\n\n2. 회원가입을 해 주세요.\n\n3. 아래 링크를 통해 연결하거나, 연결 코드를 메이트와 공유하세요!\n\n연결 코드: %1$s\n%2$s + [키피럽 함께 시작해요]\n함께 시작하고 일상 속 시너지를!\n\n1. \'키피럽\'을 설치해 주세요.\n\n2. 회원가입을 해 주세요.\n\n3. 아래 링크를 통해 연결하거나, 연결 코드를 메이트와 공유하세요!\n\n연결 코드: %1$s\n%2$s 짝꿍에게 받은\n초대 코드를 써주세요 내 초대 코드 diff --git a/core/share/src/androidTest/java/com/twix/share/InviteLaunchDispatcherAndroidTest.kt b/core/share/src/androidTest/java/com/twix/share/InviteLaunchDispatcherAndroidTest.kt new file mode 100644 index 000000000..799a623f0 --- /dev/null +++ b/core/share/src/androidTest/java/com/twix/share/InviteLaunchDispatcherAndroidTest.kt @@ -0,0 +1,28 @@ +package com.twix.share + +import android.content.Intent +import android.net.Uri +import androidx.test.ext.junit.runners.AndroidJUnit4 +import org.junit.Assert.assertEquals +import org.junit.Test +import org.junit.runner.RunWith + +@RunWith(AndroidJUnit4::class) +class InviteLaunchDispatcherAndroidTest { + @Test + fun teamTwixInviteUrlIntentDispatchesInviteCode() { + val dispatcher = InviteLaunchDispatcher() + val intent = + Intent(Intent.ACTION_VIEW).apply { + data = Uri.parse("https://keepiluv.teamtwix.com/invite?code=$INVITE_CODE") + } + + dispatcher.dispatchFromIntent(intent) + + assertEquals(INVITE_CODE, dispatcher.pendingInviteCode.value) + } + + private companion object { + const val INVITE_CODE = "KP77DEPR" + } +} diff --git a/core/share/src/main/java/com/twix/share/InviteLaunchDispatcher.kt b/core/share/src/main/java/com/twix/share/InviteLaunchDispatcher.kt index 9593499e4..34185c2ab 100644 --- a/core/share/src/main/java/com/twix/share/InviteLaunchDispatcher.kt +++ b/core/share/src/main/java/com/twix/share/InviteLaunchDispatcher.kt @@ -39,7 +39,7 @@ class InviteLaunchDispatcher : InviteLaunchEventSource { private const val INVITE_SCHEME = "twix" private const val INVITE_HOST = "invite" private const val INVITE_CODE_PARAM = "code" - private const val INVITE_WEB_HOST = "keepiluv.jiyong.xyz" + private const val INVITE_WEB_HOST = "keepiluv.teamtwix.com" private const val HTTP_SCHEME = "http" private const val HTTPS_SCHEME = "https" diff --git a/core/share/src/test/java/com/twix/share/InviteLaunchDispatcherTest.kt b/core/share/src/test/java/com/twix/share/InviteLaunchDispatcherTest.kt new file mode 100644 index 000000000..44f8e9349 --- /dev/null +++ b/core/share/src/test/java/com/twix/share/InviteLaunchDispatcherTest.kt @@ -0,0 +1,17 @@ +package com.twix.share + +import org.assertj.core.api.Assertions.assertThat +import org.junit.jupiter.api.Test + +class InviteLaunchDispatcherTest { + @Test + fun `초대 딥링크는 팀트윅스 도메인의 invite URL로 생성된다`() { + val deepLink = InviteLaunchDispatcher.buildInviteDeepLink(INVITE_CODE) + + assertThat(deepLink).isEqualTo("https://keepiluv.teamtwix.com/invite?code=$INVITE_CODE") + } + + private companion object { + const val INVITE_CODE = "KP77DEPR" + } +} diff --git a/feature/onboarding/src/main/java/com/twix/onboarding/couple/CoupleConnectScreen.kt b/feature/onboarding/src/main/java/com/twix/onboarding/couple/CoupleConnectScreen.kt index eb6b8fd05..c6616328b 100644 --- a/feature/onboarding/src/main/java/com/twix/onboarding/couple/CoupleConnectScreen.kt +++ b/feature/onboarding/src/main/java/com/twix/onboarding/couple/CoupleConnectScreen.kt @@ -47,7 +47,6 @@ import com.twix.designsystem.theme.CommonColor import com.twix.designsystem.theme.GrayColor import com.twix.designsystem.theme.TwixTheme import com.twix.domain.model.enums.AppTextStyle -import com.twix.navigation_contract.Constants import com.twix.onboarding.OnBoardingViewModel import com.twix.onboarding.contract.OnBoardingIntent import com.twix.onboarding.contract.OnBoardingSideEffect @@ -90,7 +89,6 @@ fun CoupleConnectRoute( R.string.onboarding_invite_share_message, sideEffect.inviteCode, deepLink, - Constants.PLAY_STORE_URL, ) val sendIntent = Intent(Intent.ACTION_SEND).apply { From d0e8be702261276abb3fc4b7d4a5916497c13e18 Mon Sep 17 00:00:00 2001 From: chanho0908 Date: Thu, 21 May 2026 18:47:05 +0900 Subject: [PATCH 2/3] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20Refactor:=20navigation?= =?UTF-8?q?-contract=20=EB=82=B4=20Constants.kt=20=EC=82=AD=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/twix/navigation_contract/Constants.kt | 5 ----- 1 file changed, 5 deletions(-) delete mode 100644 core/navigation-contract/src/main/java/com/twix/navigation_contract/Constants.kt diff --git a/core/navigation-contract/src/main/java/com/twix/navigation_contract/Constants.kt b/core/navigation-contract/src/main/java/com/twix/navigation_contract/Constants.kt deleted file mode 100644 index 464ba0224..000000000 --- a/core/navigation-contract/src/main/java/com/twix/navigation_contract/Constants.kt +++ /dev/null @@ -1,5 +0,0 @@ -package com.twix.navigation_contract - -object Constants { - const val PLAY_STORE_URL = "https://play.google.com/store/apps/details?id=com.yapp.twix" -} From 5da9199dede8be29ae0eac48bb59ca350d72256e Mon Sep 17 00:00:00 2001 From: chanho0908 Date: Thu, 21 May 2026 18:47:28 +0900 Subject: [PATCH 3/3] =?UTF-8?q?=F0=9F=94=A5=20Remove:=20InviteLaunchDispat?= =?UTF-8?q?cher=20=EA=B4=80=EB=A0=A8=20=ED=85=8C=EC=8A=A4=ED=8A=B8=20?= =?UTF-8?q?=ED=8C=8C=EC=9D=BC=20=EC=82=AD=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../InviteLaunchDispatcherAndroidTest.kt | 28 ------------------- .../twix/share/InviteLaunchDispatcherTest.kt | 17 ----------- 2 files changed, 45 deletions(-) delete mode 100644 core/share/src/androidTest/java/com/twix/share/InviteLaunchDispatcherAndroidTest.kt delete mode 100644 core/share/src/test/java/com/twix/share/InviteLaunchDispatcherTest.kt diff --git a/core/share/src/androidTest/java/com/twix/share/InviteLaunchDispatcherAndroidTest.kt b/core/share/src/androidTest/java/com/twix/share/InviteLaunchDispatcherAndroidTest.kt deleted file mode 100644 index 799a623f0..000000000 --- a/core/share/src/androidTest/java/com/twix/share/InviteLaunchDispatcherAndroidTest.kt +++ /dev/null @@ -1,28 +0,0 @@ -package com.twix.share - -import android.content.Intent -import android.net.Uri -import androidx.test.ext.junit.runners.AndroidJUnit4 -import org.junit.Assert.assertEquals -import org.junit.Test -import org.junit.runner.RunWith - -@RunWith(AndroidJUnit4::class) -class InviteLaunchDispatcherAndroidTest { - @Test - fun teamTwixInviteUrlIntentDispatchesInviteCode() { - val dispatcher = InviteLaunchDispatcher() - val intent = - Intent(Intent.ACTION_VIEW).apply { - data = Uri.parse("https://keepiluv.teamtwix.com/invite?code=$INVITE_CODE") - } - - dispatcher.dispatchFromIntent(intent) - - assertEquals(INVITE_CODE, dispatcher.pendingInviteCode.value) - } - - private companion object { - const val INVITE_CODE = "KP77DEPR" - } -} diff --git a/core/share/src/test/java/com/twix/share/InviteLaunchDispatcherTest.kt b/core/share/src/test/java/com/twix/share/InviteLaunchDispatcherTest.kt deleted file mode 100644 index 44f8e9349..000000000 --- a/core/share/src/test/java/com/twix/share/InviteLaunchDispatcherTest.kt +++ /dev/null @@ -1,17 +0,0 @@ -package com.twix.share - -import org.assertj.core.api.Assertions.assertThat -import org.junit.jupiter.api.Test - -class InviteLaunchDispatcherTest { - @Test - fun `초대 딥링크는 팀트윅스 도메인의 invite URL로 생성된다`() { - val deepLink = InviteLaunchDispatcher.buildInviteDeepLink(INVITE_CODE) - - assertThat(deepLink).isEqualTo("https://keepiluv.teamtwix.com/invite?code=$INVITE_CODE") - } - - private companion object { - const val INVITE_CODE = "KP77DEPR" - } -}