Skip to content

Commit 8d97e41

Browse files
committed
feat: 인앱 브라우저에서 구글 플레이 스토어 리다이렉트 URL 동적 수정
- Android 패키지 이름을 상수로 관리하여 구글 플레이 스토어 리다이렉트 URL을 동적으로 생성하도록 수정함 - 코드 유지보수성을 향상시키기 위한 작업임
1 parent a071d1a commit 8d97e41

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/web/src/hooks/useInAppBrowserDetect.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const BROWSER_PATTERNS: BrowserPattern[] = [
3434
];
3535

3636
const MEMEWIKI_APP_INFO = {
37-
androidPackage: 'com.mimu_bird_meme',
37+
androidPackage: 'com.mimu_bird.meme',
3838
iosAppId: '6751053974',
3939
};
4040

@@ -63,7 +63,7 @@ const useInAppBrowserDetect = () => {
6363

6464
const moveToStore = useCallback(() => {
6565
if (isAndroid) {
66-
window.location.href = `https://play.google.com/store/apps/details?id=com.mimu_bird.meme`;
66+
window.location.href = `https://play.google.com/store/apps/details?id=${MEMEWIKI_APP_INFO.androidPackage}`;
6767
} else if (isIOS) {
6868
window.location.href = `itms-apps://itunes.apple.com/app/id${MEMEWIKI_APP_INFO.iosAppId}`;
6969
} else {

0 commit comments

Comments
 (0)