#!/bin/bash

# Clean the public directory
rm -rf android/app/src/main/assets/public/*

# Copy web assets
cp -r dist/* android/app/src/main/assets/public/

# Ensure the directory structure exists
mkdir -p android/app/src/main/assets/public/assets

# Copy the main index file
cp dist/index.html android/app/src/main/assets/public/

# Copy all assets
cp -r dist/assets/* android/app/src/main/assets/public/assets/

# Copy other necessary files
cp dist/favicon.ico android/app/src/main/assets/public/
cp dist/robots.txt android/app/src/main/assets/public/

echo "Web assets copied successfully!" 