가상매매 시간봉 제거

This commit is contained in:
Macbook
2026-05-28 20:48:28 +09:00
parent 7e3644cb62
commit 15160f7d2c
45 changed files with 996 additions and 405 deletions
+21
View File
@@ -0,0 +1,21 @@
#!/usr/bin/env bash
# app/google-services.json → app/android/app/ (Gradle google-services 플러그인)
set -euo pipefail
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
SRC="$ROOT/app/google-services.json"
DEST="$ROOT/app/android/app/google-services.json"
if [[ ! -f "$SRC" ]]; then
echo "[FCM] google-services.json 없음: $SRC"
echo " Firebase Console → com.goldenchart.app → json 다운로드 후 app/ 에 두세요."
exit 1
fi
if ! grep -q '"package_name": "com.goldenchart.app"' "$SRC" 2>/dev/null; then
echo "[FCM] $SRC 에 com.goldenchart.app 패키지가 없습니다."
exit 1
fi
mkdir -p "$(dirname "$DEST")"
cp "$SRC" "$DEST"
echo "[FCM] ✓ $DEST"
+2 -1
View File
@@ -24,8 +24,9 @@ if [[ -f "$DEST" ]]; then
fi
if [[ -n "${1:-}" && -f "$1" ]]; then
cp "$1" "$ROOT/app/google-services.json"
cp "$1" "$DEST"
echo "✓ 복사: $1$DEST"
echo "✓ 복사: $1 app/google-services.json 및 $DEST"
exit 0
fi
+7
View File
@@ -166,6 +166,13 @@ build_apk_locally() {
exit 1
fi
echo -e "${CYAN}[빌드] google-services.json → android/app${NC}"
"$ROOT/scripts/ensure-android-google-services.sh"
if [[ ! -f "$ROOT/app/.env" ]] || ! grep -q 'VITE_API_BASE_URL=http' "$ROOT/app/.env" 2>/dev/null; then
echo -e "${YELLOW}⚠ app/.env 에 VITE_API_BASE_URL=http://exdev.co.kr/api 확인 (HTTPS 아님)${NC}"
fi
echo -e "${CYAN}[빌드] npm run cap:sync${NC}"
npm run cap:sync