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
959 B

#!/bin/bash
# Android Test App Setup Script
echo "🚀 Setting up Android Test App..."
cd android-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 Android Test" "com.timesafari.dailynotification.androidtest"
# Add Android platform
echo "📱 Adding Android platform..."
npx cap add android
# Build web assets
echo "🔨 Building web assets..."
npm run build
# Sync to native
echo "🔄 Syncing to native..."
npx cap sync android
echo "✅ Android test app setup complete!"
echo ""
echo "Next steps:"
echo "1. Open Android Studio: npx cap open android"
echo "2. Run on device/emulator: npx cap run android"
echo "3. Or build web version: npm run dev"