You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
903 B
39 lines
903 B
#!/bin/bash
|
|
|
|
# iOS Test App Setup Script
|
|
echo "🚀 Setting up iOS Test App..."
|
|
|
|
cd ios-test
|
|
|
|
# Install dependencies
|
|
echo "📦 Installing dependencies..."
|
|
npm install
|
|
|
|
# Install Capacitor CLI globally if not present
|
|
if ! command -v cap &> /dev/null; then
|
|
echo "🔧 Installing Capacitor CLI globally..."
|
|
npm install -g @capacitor/cli
|
|
fi
|
|
|
|
# Initialize Capacitor
|
|
echo "⚡ Initializing Capacitor..."
|
|
npx cap init "Daily Notification iOS Test" "com.timesafari.dailynotification.iostest"
|
|
|
|
# Add iOS platform
|
|
echo "🍎 Adding iOS platform..."
|
|
npx cap add ios
|
|
|
|
# Build web assets
|
|
echo "🔨 Building web assets..."
|
|
npm run build
|
|
|
|
# Sync to native
|
|
echo "🔄 Syncing to native..."
|
|
npx cap sync ios
|
|
|
|
echo "✅ iOS test app setup complete!"
|
|
echo ""
|
|
echo "Next steps:"
|
|
echo "1. Open Xcode: npx cap open ios"
|
|
echo "2. Run on device/simulator: npx cap run ios"
|
|
echo "3. Or build web version: npm run dev"
|
|
|