-
Notifications
You must be signed in to change notification settings - Fork 0
Kyh #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Kyh #1
Changes from all commits
9e62125
c8ef2a8
dd1e0b4
0e0cdb1
fc9d8cf
c14c636
3205923
19ca701
5a9729d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,8 @@ | ||
| { | ||
| "devices": [] | ||
| "devices": [ | ||
| { | ||
| "installationId": "F0B2F989-D042-4D9B-BE7C-8D09B00BD4C5", | ||
| "lastUsed": 1758012043849 | ||
| } | ||
| ] | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| { | ||
| "hostType": "lan", | ||
| "lanType": "ip", | ||
| "dev": true, | ||
| "minify": false, | ||
| "urlRandomness": null, | ||
| "https": false | ||
| } | ||
|
Comment on lines
+1
to
+8
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ๐งฉ Analysis chain๊ฐ๋ฐ ํ๊ฒฝ ์ค์ ํ์ผ ์ปค๋ฐ ํ์ธ ์ด ํ์ผ์ ๋ก์ปฌ ๊ฐ๋ฐ ํ๊ฒฝ ์ค์ ์ ํฌํจํ๊ณ ์์ต๋๋ค ( ํ๋ก์ ํธ์ ๐ Script executed: #!/bin/bash
# .gitignore์ .expo๊ฐ ํฌํจ๋์ด ์๋์ง ํ์ธ
if [ -f ".gitignore" ]; then
if grep -q "\.expo" .gitignore; then
echo ".gitignore์ .expo๊ฐ ํฌํจ๋์ด ์์ต๋๋ค"
else
echo "๊ฒฝ๊ณ : .gitignore์ .expo๊ฐ ์์ต๋๋ค"
fi
else
echo ".gitignore ํ์ผ์ ์ฐพ์ ์ ์์ต๋๋ค"
fiLength of output: 27 .expo/settings.json ํ์ผ์ .gitignore์ ์ถ๊ฐํ์ธ์
๐ค Prompt for AI Agents |
||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,38 +1,186 @@ | ||||||||||||||||||||||||||||||||||||||||||||
| import 'react-native-gesture-handler'; | ||||||||||||||||||||||||||||||||||||||||||||
| import React, { useEffect, useRef } from 'react'; | ||||||||||||||||||||||||||||||||||||||||||||
| import { NavigationContainer } from '@react-navigation/native'; | ||||||||||||||||||||||||||||||||||||||||||||
| import StackNavigator from './src/navigation/StackNavigator'; | ||||||||||||||||||||||||||||||||||||||||||||
| import { setupNotificationListeners } from './src/services/PushNotificationService'; | ||||||||||||||||||||||||||||||||||||||||||||
| // App.js | ||||||||||||||||||||||||||||||||||||||||||||
| import "react-native-gesture-handler"; | ||||||||||||||||||||||||||||||||||||||||||||
| import React, { useEffect, useRef } from "react"; | ||||||||||||||||||||||||||||||||||||||||||||
| import { Platform } from "react-native"; | ||||||||||||||||||||||||||||||||||||||||||||
| import { NavigationContainer } from "@react-navigation/native"; | ||||||||||||||||||||||||||||||||||||||||||||
| import * as Device from "expo-device"; | ||||||||||||||||||||||||||||||||||||||||||||
| import * as Notifications from "expo-notifications"; | ||||||||||||||||||||||||||||||||||||||||||||
| import StackNavigator from "./src/navigation/StackNavigator"; | ||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
| // Push ์๋น์ค | ||||||||||||||||||||||||||||||||||||||||||||
| import { | ||||||||||||||||||||||||||||||||||||||||||||
| setupNotificationListeners, | ||||||||||||||||||||||||||||||||||||||||||||
| registerExpoPushToken, | ||||||||||||||||||||||||||||||||||||||||||||
| } from "./src/services/PushNotificationService"; | ||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
| // ๐จ ThemeProvider ์ถ๊ฐ | ||||||||||||||||||||||||||||||||||||||||||||
| import { ThemeProvider } from "./src/utils/ThemeContext"; | ||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
| const SHOW_WELCOME_ON_LAUNCH = true; | ||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
| // ============================================ | ||||||||||||||||||||||||||||||||||||||||||||
| // ์ ์ญ Notification Handler | ||||||||||||||||||||||||||||||||||||||||||||
| // ============================================ | ||||||||||||||||||||||||||||||||||||||||||||
| console.log("[Push] setNotificationHandler: init"); | ||||||||||||||||||||||||||||||||||||||||||||
| Notifications.setNotificationHandler({ | ||||||||||||||||||||||||||||||||||||||||||||
| handleNotification: async () => { | ||||||||||||||||||||||||||||||||||||||||||||
| console.log("[Push] handleNotification called (foreground display enabled)"); | ||||||||||||||||||||||||||||||||||||||||||||
| return { | ||||||||||||||||||||||||||||||||||||||||||||
| shouldShowBanner: true, | ||||||||||||||||||||||||||||||||||||||||||||
| shouldShowList: true, | ||||||||||||||||||||||||||||||||||||||||||||
| shouldPlaySound: true, | ||||||||||||||||||||||||||||||||||||||||||||
| shouldSetBadge: true, | ||||||||||||||||||||||||||||||||||||||||||||
| }; | ||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||
| }); | ||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+25
to
+35
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. expo-notifications Notification Handler ํค ์ฌ์ฉ ์ค๋ฅ Expo๋ shouldShowAlert/shouldPlaySound/shouldSetBadge๋ฅผ ๊ธฐ๋ํฉ๋๋ค. shouldShowBanner/shouldShowList๋ ๋ฌด์๋ ์ ์์ต๋๋ค. Notifications.setNotificationHandler({
handleNotification: async () => {
- console.log("[Push] handleNotification called (foreground display enabled)");
- return {
- shouldShowBanner: true,
- shouldShowList: true,
- shouldPlaySound: true,
- shouldSetBadge: true,
- };
+ console.log("[Push] handleNotification (fg alert enabled)");
+ return {
+ shouldShowAlert: true,
+ shouldPlaySound: true,
+ shouldSetBadge: true,
+ };
},
});๐ Committable suggestion
Suggested change
๐ค Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
| export default function App() { | ||||||||||||||||||||||||||||||||||||||||||||
| const navigationRef = useRef(); | ||||||||||||||||||||||||||||||||||||||||||||
| const cleanupRef = useRef(); | ||||||||||||||||||||||||||||||||||||||||||||
| const navigationRef = useRef(null); | ||||||||||||||||||||||||||||||||||||||||||||
| const cleanupRef = useRef(null); | ||||||||||||||||||||||||||||||||||||||||||||
| const localListeners = useRef({ received: null, response: null }); | ||||||||||||||||||||||||||||||||||||||||||||
| const shownWelcomeRef = useRef(false); | ||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
| useEffect(() => { | ||||||||||||||||||||||||||||||||||||||||||||
| let timer; | ||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
| const initializeNotifications = async () => { | ||||||||||||||||||||||||||||||||||||||||||||
| console.log("[Push] initializeNotifications: start"); | ||||||||||||||||||||||||||||||||||||||||||||
| console.log("[Push] Platform:", Platform.OS); | ||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
| if (Platform.OS !== "ios") { | ||||||||||||||||||||||||||||||||||||||||||||
| console.log("[Push] (skipped) iOS ์ ์ฉ ๋ก์ง. ํ์ฌ:", Platform.OS); | ||||||||||||||||||||||||||||||||||||||||||||
| return; | ||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
| if (!Device.isDevice) { | ||||||||||||||||||||||||||||||||||||||||||||
| console.log("[Push][WARN] ์๋ฎฌ๋ ์ดํฐ๋ ์๊ฒฉ ํธ์ ์์ ๋ถ๊ฐ. ์ค๊ธฐ๊ธฐ ํ์."); | ||||||||||||||||||||||||||||||||||||||||||||
| return; | ||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
| const initializeNotifications = () => { | ||||||||||||||||||||||||||||||||||||||||||||
| if (navigationRef.current) { | ||||||||||||||||||||||||||||||||||||||||||||
| console.log('expo ํธ์์๋ฆผ ๋ฆฌ์ค๋ ์ด๊ธฐํ'); | ||||||||||||||||||||||||||||||||||||||||||||
| const cleanup = setupNotificationListeners(navigationRef.current); | ||||||||||||||||||||||||||||||||||||||||||||
| cleanupRef.current = cleanup; | ||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
| return cleanup; | ||||||||||||||||||||||||||||||||||||||||||||
| // ===== ๊ถํ ํ์ธ ===== | ||||||||||||||||||||||||||||||||||||||||||||
| try { | ||||||||||||||||||||||||||||||||||||||||||||
| const existing = await Notifications.getPermissionsAsync(); | ||||||||||||||||||||||||||||||||||||||||||||
| console.log("[Push] permissions(existing):", existing?.status, existing); | ||||||||||||||||||||||||||||||||||||||||||||
| if (existing.status !== "granted") { | ||||||||||||||||||||||||||||||||||||||||||||
| const { status } = await Notifications.requestPermissionsAsync({ | ||||||||||||||||||||||||||||||||||||||||||||
| ios: { allowAlert: true, allowSound: true, allowBadge: true }, | ||||||||||||||||||||||||||||||||||||||||||||
| }); | ||||||||||||||||||||||||||||||||||||||||||||
| console.log("[Push] permission after request:", status); | ||||||||||||||||||||||||||||||||||||||||||||
| if (status !== "granted") { | ||||||||||||||||||||||||||||||||||||||||||||
| console.warn("[Push] permission denied; skip token"); | ||||||||||||||||||||||||||||||||||||||||||||
| return; | ||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||
| } catch (e) { | ||||||||||||||||||||||||||||||||||||||||||||
| console.log("[Push][ERR] getPermissionsAsync failed:", e?.message || e); | ||||||||||||||||||||||||||||||||||||||||||||
| return; | ||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
| // ===== ๋ฆฌ์ค๋ ๋ฑ๋ก ===== | ||||||||||||||||||||||||||||||||||||||||||||
| console.log("[Push] setupNotificationListeners() ํธ์ถ"); | ||||||||||||||||||||||||||||||||||||||||||||
| const serviceCleanup = setupNotificationListeners?.(); | ||||||||||||||||||||||||||||||||||||||||||||
| cleanupRef.current = serviceCleanup; | ||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
| try { | ||||||||||||||||||||||||||||||||||||||||||||
| if (!localListeners.current.received) { | ||||||||||||||||||||||||||||||||||||||||||||
| localListeners.current.received = | ||||||||||||||||||||||||||||||||||||||||||||
| Notifications.addNotificationReceivedListener((n) => { | ||||||||||||||||||||||||||||||||||||||||||||
| try { | ||||||||||||||||||||||||||||||||||||||||||||
| console.log( | ||||||||||||||||||||||||||||||||||||||||||||
| "[Push][recv] (fg) notification:", | ||||||||||||||||||||||||||||||||||||||||||||
| JSON.stringify(n, null, 2) | ||||||||||||||||||||||||||||||||||||||||||||
| ); | ||||||||||||||||||||||||||||||||||||||||||||
| } catch { | ||||||||||||||||||||||||||||||||||||||||||||
| console.log("[Push][recv] (fg) notification received"); | ||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||
| }); | ||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||
| if (!localListeners.current.response) { | ||||||||||||||||||||||||||||||||||||||||||||
| localListeners.current.response = | ||||||||||||||||||||||||||||||||||||||||||||
| Notifications.addNotificationResponseReceivedListener((r) => { | ||||||||||||||||||||||||||||||||||||||||||||
| try { | ||||||||||||||||||||||||||||||||||||||||||||
| console.log("[Push][tap] response:", JSON.stringify(r, null, 2)); | ||||||||||||||||||||||||||||||||||||||||||||
| } catch { | ||||||||||||||||||||||||||||||||||||||||||||
| console.log("[Push][tap] notification tapped"); | ||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||
| }); | ||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||
| } catch (e) { | ||||||||||||||||||||||||||||||||||||||||||||
| console.log("[Push][ERR] add listeners failed:", e?.message || e); | ||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
| // ===== ํ ํฐ ๋ฐ๊ธ + ์๋ฒ ์ ์ํธ ===== | ||||||||||||||||||||||||||||||||||||||||||||
| try { | ||||||||||||||||||||||||||||||||||||||||||||
| console.log("[Push] registerExpoPushToken() ํธ์ถ"); | ||||||||||||||||||||||||||||||||||||||||||||
| const res = await registerExpoPushToken(); | ||||||||||||||||||||||||||||||||||||||||||||
| console.log("[Push] registerExpoPushToken() result:", res); | ||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
| if (res?.success && res?.expoPushToken) { | ||||||||||||||||||||||||||||||||||||||||||||
| console.log("โ [Push] ExpoPushToken:", res.expoPushToken); | ||||||||||||||||||||||||||||||||||||||||||||
| } else { | ||||||||||||||||||||||||||||||||||||||||||||
| console.warn("โ [Push] Expo ํ ํฐ ๋ฐ๊ธ ์คํจ:", res?.error); | ||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||
| } catch (e) { | ||||||||||||||||||||||||||||||||||||||||||||
| console.warn("[Push][ERR] registerExpoPushToken error:", e?.message || e); | ||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
| // ===== ํ์ ๋ฐฐ๋ ===== | ||||||||||||||||||||||||||||||||||||||||||||
| if (SHOW_WELCOME_ON_LAUNCH && !shownWelcomeRef.current) { | ||||||||||||||||||||||||||||||||||||||||||||
| shownWelcomeRef.current = true; | ||||||||||||||||||||||||||||||||||||||||||||
| try { | ||||||||||||||||||||||||||||||||||||||||||||
| const now = new Date(); | ||||||||||||||||||||||||||||||||||||||||||||
| const time = new Intl.DateTimeFormat("ko-KR", { | ||||||||||||||||||||||||||||||||||||||||||||
| hour: "2-digit", | ||||||||||||||||||||||||||||||||||||||||||||
| minute: "2-digit", | ||||||||||||||||||||||||||||||||||||||||||||
| }).format(now); | ||||||||||||||||||||||||||||||||||||||||||||
| await Notifications.scheduleNotificationAsync({ | ||||||||||||||||||||||||||||||||||||||||||||
| content: { | ||||||||||||||||||||||||||||||||||||||||||||
| title: "๐ ํ์ํฉ๋๋ค!", | ||||||||||||||||||||||||||||||||||||||||||||
| body: `${time} ์ ์ํ์ต๋๋ค.`, | ||||||||||||||||||||||||||||||||||||||||||||
| data: { _meta: "welcome" }, | ||||||||||||||||||||||||||||||||||||||||||||
| sound: "default", | ||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||
| trigger: null, | ||||||||||||||||||||||||||||||||||||||||||||
| }); | ||||||||||||||||||||||||||||||||||||||||||||
| } catch (e) { | ||||||||||||||||||||||||||||||||||||||||||||
| console.log("[Push][ERR] schedule welcome failed:", e?.message || e); | ||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
| console.log("[Push] initializeNotifications: done"); | ||||||||||||||||||||||||||||||||||||||||||||
| }; | ||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
| const timer = setTimeout(initializeNotifications, 1000); | ||||||||||||||||||||||||||||||||||||||||||||
| timer = setTimeout(initializeNotifications, 500); | ||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
| return () => { | ||||||||||||||||||||||||||||||||||||||||||||
| clearTimeout(timer); | ||||||||||||||||||||||||||||||||||||||||||||
| if (cleanupRef.current) { | ||||||||||||||||||||||||||||||||||||||||||||
| cleanupRef.current(); | ||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||
| try { | ||||||||||||||||||||||||||||||||||||||||||||
| cleanupRef.current?.(); | ||||||||||||||||||||||||||||||||||||||||||||
| } catch {} | ||||||||||||||||||||||||||||||||||||||||||||
| try { | ||||||||||||||||||||||||||||||||||||||||||||
| if (localListeners.current.received) { | ||||||||||||||||||||||||||||||||||||||||||||
| Notifications.removeNotificationSubscription(localListeners.current.received); | ||||||||||||||||||||||||||||||||||||||||||||
| localListeners.current.received = null; | ||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||
| if (localListeners.current.response) { | ||||||||||||||||||||||||||||||||||||||||||||
| Notifications.removeNotificationSubscription(localListeners.current.response); | ||||||||||||||||||||||||||||||||||||||||||||
| localListeners.current.response = null; | ||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||
| } catch {} | ||||||||||||||||||||||||||||||||||||||||||||
| console.log("[Push] cleanup completed"); | ||||||||||||||||||||||||||||||||||||||||||||
| }; | ||||||||||||||||||||||||||||||||||||||||||||
| }, []); | ||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
| return ( | ||||||||||||||||||||||||||||||||||||||||||||
| <NavigationContainer ref={navigationRef}> | ||||||||||||||||||||||||||||||||||||||||||||
| <StackNavigator /> | ||||||||||||||||||||||||||||||||||||||||||||
| </NavigationContainer> | ||||||||||||||||||||||||||||||||||||||||||||
| <ThemeProvider> | ||||||||||||||||||||||||||||||||||||||||||||
| <NavigationContainer | ||||||||||||||||||||||||||||||||||||||||||||
| ref={(r) => { | ||||||||||||||||||||||||||||||||||||||||||||
| navigationRef.current = r; | ||||||||||||||||||||||||||||||||||||||||||||
| if (r) console.log("[Nav] navigationRef ready"); | ||||||||||||||||||||||||||||||||||||||||||||
| }} | ||||||||||||||||||||||||||||||||||||||||||||
| > | ||||||||||||||||||||||||||||||||||||||||||||
| <StackNavigator /> | ||||||||||||||||||||||||||||||||||||||||||||
| </NavigationContainer> | ||||||||||||||||||||||||||||||||||||||||||||
| </ThemeProvider> | ||||||||||||||||||||||||||||||||||||||||||||
| ); | ||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,8 @@ | ||
| { | ||
| "expo": { | ||
| "name": "Doodook", | ||
| "name": "๋๋", | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ๐ ๏ธ Refactor suggestion | ๐ Major ๐งฉ Analysis chain์ฑ ์ด๋ฆ ํ์งํ ํ์ธ ์ฑ ์ด๋ฆ์ด "Doodook"์์ "๋๋"์ผ๋ก ํ๊ธ๋ก ๋ณ๊ฒฝ๋์์ต๋๋ค. App Store ๋ฐ Play Store์์์ ํ์ ์ด๋ฆ์ด ์๋๋๋ก ๋ณ๊ฒฝ๋๋์ง ํ์ธํ์ธ์. ๐ Script executed: #!/bin/bash
# ์ฑ ์ด๋ฆ์ด ๋ค๋ฅธ ๊ตฌ์ฑ ํ์ผ์์๋ ์ผ๊ด๋๊ฒ ์ฌ์ฉ๋๋์ง ํ์ธ
rg -n "Doodook" --type json --type js -g '!node_modules/**'Length of output: 131 ์ฑ ์ด๋ฆ ์ผ๊ด์ฑ ์์ ์์ฒญ ๐ค Prompt for AI Agents |
||
| "slug": "doodook", | ||
| "owner": "yehyeon", | ||
| "version": "1.0.0", | ||
| "orientation": "portrait", | ||
| "icon": "./src/assets/images/logo-d-app-icon-1500.png", | ||
|
|
@@ -18,7 +19,7 @@ | |
| ], | ||
| "ios": { | ||
| "bundleIdentifier": "com.lipeuoo.doodook", | ||
| "buildNumber": "7", | ||
| "buildNumber": "22", | ||
| "supportsTablet": true, | ||
| "infoPlist": { | ||
| "UIBackgroundModes": [ | ||
|
|
@@ -46,7 +47,11 @@ | |
| "color": "#F074BA" | ||
| } | ||
| ] | ||
| ] | ||
|
|
||
| ], | ||
| "extra": { | ||
| "eas": { | ||
| "projectId": "57b0a621-af5d-4605-b6e0-cc46a6c474ec" | ||
| } | ||
| } | ||
|
Comment on lines
+51
to
+55
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ๐งฉ Analysis chainEAS ํ๋ก์ ํธ ID ์ถ๊ฐ ํ์ธ
๐ Script executed: #!/bin/bash
# EAS ๊ตฌ์ฑ ํ์ผ์ด ์กด์ฌํ๊ณ ํ๋ก์ ํธ ID๊ฐ ์ผ์นํ๋์ง ํ์ธ
if [ -f "eas.json" ]; then
cat eas.json | jq -r '.cli.projectId'
else
echo "eas.json ํ์ผ์ ์ฐพ์ ์ ์์ต๋๋ค"
fiLength of output: 4 eas.json ํ์ผ ๋ด์ ๐ Script executed: #!/bin/bash
rg -n '"projectId"' -C2 eas.json || echo "projectId ํค๋ฅผ ์ฐพ์ ์ ์์ต๋๋ค."Length of output: 23 EAS ๊ตฌ์ฑ ํ์ผ์ projectId ์ถ๊ฐ ํ์ eas.json์ ๐ค Prompt for AI Agents |
||
| } | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
๐ ๏ธ Refactor suggestion | ๐ Major
๐งฉ Analysis chain
๋ก์ปฌ ๋๋ฐ์ด์ค ์ถ์ ๋ฐ์ดํฐ ์ปค๋ฐ ํ์ธ
์ด ํ์ผ์ ๊ฐ๋ฐ์์ ๋ก์ปฌ ๋๋ฐ์ด์ค ์ ๋ณด๋ฅผ ์ถ์ ํฉ๋๋ค. ์ผ๋ฐ์ ์ผ๋ก
.expo/๋๋ ํ ๋ฆฌ๋ ๊ฐ๋ฐ์๋ณ ๋ก์ปฌ ๋ฐ์ดํฐ๋ฅผ ํฌํจํ๋ฏ๋ก ๋ฒ์ ๊ด๋ฆฌ์์ ์ ์ธ๋์ด์ผ ํฉ๋๋ค.๋ํ,
lastUsedํ์์คํฌํ(1758012043849)๊ฐ 2025๋ 10์ ์ดํ์ ๋ฏธ๋ ๋ ์ง๋ฅผ ๋ํ๋ด๋ ๊ฒ์ผ๋ก ๋ณด์ด๋๋ฐ, ์ด๋ ํ์ฌ ๋ ์ง(2025๋ 10์)์ ์ผ์นํ์ง ์์ ์ ์์ต๋๋ค. ํ ์คํธ ๋ฐ์ดํฐ์ธ์ง ํ์ธํ์ธ์.๐ Script executed:
Length of output: 27
.expo/๋๋ ํ ๋ฆฌ ๋ฒ์ ๊ด๋ฆฌ ์ ์ธ ๋ฐ devices.json ์ ๊ฑฐ ํ์.gitignore์.expo/์ถ๊ฐ.expo/devices.jsonํ์ผ ์ญ์ lastUsedํ์์คํฌํ(1758012043849)๊ฐ ๋ฏธ๋ ๋ ์ง์ด๋ฏ๋ก ํ ์คํธ ๋ฐ์ดํฐ์ธ์ง ํ์ธ ๋ฐ ์์ ๐ค Prompt for AI Agents