diff --git a/.gitignore b/.gitignore index f631d65f..1af5e59d 100644 --- a/.gitignore +++ b/.gitignore @@ -55,7 +55,23 @@ build_logs/ icons *.log -android/app/src/main/res/ + +# Generated Android assets and resources (should be generated during build) +android/app/src/main/assets/public/ + +# Generated Android resources (icons, splash screens, etc.) +android/app/src/main/res/drawable*/ +android/app/src/main/res/mipmap*/ +android/app/src/main/res/values/ic_launcher_background.xml + +# Keep these Android configuration files in version control: +# - android/app/src/main/assets/capacitor.plugins.json +# - android/app/src/main/res/values/strings.xml +# - android/app/src/main/res/values/styles.xml +# - android/app/src/main/res/layout/activity_main.xml +# - android/app/src/main/res/xml/config.xml +# - android/app/src/main/res/xml/file_paths.xml + sql-wasm.wasm # Temporary and generated files diff --git a/android/app/src/main/res/drawable-v24/ic_launcher_foreground.xml b/android/app/src/main/res/drawable-v24/ic_launcher_foreground.xml deleted file mode 100644 index c7bd21db..00000000 --- a/android/app/src/main/res/drawable-v24/ic_launcher_foreground.xml +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - - - - - diff --git a/android/app/src/main/res/drawable/ic_launcher_background.xml b/android/app/src/main/res/drawable/ic_launcher_background.xml deleted file mode 100644 index d5fccc53..00000000 --- a/android/app/src/main/res/drawable/ic_launcher_background.xml +++ /dev/null @@ -1,170 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml deleted file mode 100644 index 0aa82aa1..00000000 --- a/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - \ No newline at end of file diff --git a/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml deleted file mode 100644 index 0aa82aa1..00000000 --- a/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - \ No newline at end of file diff --git a/capacitor-assets.config.json b/capacitor-assets.config.json new file mode 100644 index 00000000..d56533f4 --- /dev/null +++ b/capacitor-assets.config.json @@ -0,0 +1,36 @@ +{ + "icon": { + "ios": { + "source": "resources/ios/icon/icon.png", + "target": "ios/App/App/Assets.xcassets/AppIcon.appiconset" + }, + "android": { + "source": "resources/android/icon/icon.png", + "target": "android/app/src/main/res" + }, + "web": { + "source": "resources/web/icon/icon.png", + "target": "public/img/icons" + } + }, + "splash": { + "ios": { + "source": "resources/ios/splash/splash.png", + "target": "ios/App/App/Assets.xcassets/Splash.imageset" + }, + "android": { + "source": "resources/android/splash/splash.png", + "target": "android/app/src/main/res" + } + }, + "splashDark": { + "ios": { + "source": "resources/ios/splash/splash_dark.png", + "target": "ios/App/App/Assets.xcassets/SplashDark.imageset" + }, + "android": { + "source": "resources/android/splash/splash_dark.png", + "target": "android/app/src/main/res" + } + } +} \ No newline at end of file diff --git a/resources/README.md b/resources/README.md new file mode 100644 index 00000000..a3b9f803 --- /dev/null +++ b/resources/README.md @@ -0,0 +1,79 @@ +# TimeSafari Resources Directory + +This directory contains source assets for the TimeSafari application across all platforms. + +## Directory Structure + +``` +resources/ +├── android/ +│ ├── icon/ +│ │ └── icon.png +│ └── splash/ +│ ├── splash.png +│ └── splash_dark.png +├── ios/ +│ ├── icon/ +│ │ └── icon.png +│ └── splash/ +│ ├── splash.png +│ └── splash_dark.png +└── web/ + ├── icon/ + │ └── icon.png + └── images/ +``` + +## Asset Requirements + +### Icon Requirements +- **Format**: PNG +- **Size**: 1024x1024 pixels minimum +- **Background**: Transparent or solid color +- **Content**: App logo/icon + +### Splash Screen Requirements +- **Format**: PNG +- **Size**: 1242x2688 pixels (iPhone 11 Pro Max size) +- **Background**: Solid color or gradient +- **Content**: App logo centered + +## Asset Generation + +Assets are automatically generated during the build process using `capacitor-assets`: + +```bash +# Generate assets for all platforms +npx capacitor-assets generate + +# Generate assets for specific platform +npx capacitor-assets generate --ios +npx capacitor-assets generate --android +npx capacitor-assets generate --web +``` + +## Configuration + +Asset generation is configured in `capacitor-assets.config.json` at the project root. + +## Version Control + +- **Source assets** (this directory): ✅ In version control +- **Generated assets**: ❌ Not in version control (excluded by `.gitignore`) + +## Updating Assets + +1. Replace the source asset files in the appropriate platform directory +2. Run the build process to regenerate platform-specific assets +3. Test the generated assets on target platforms + +## Build Integration + +Assets are automatically generated as part of the build process: +- `npm run build:android` - Generates Android assets +- `npm run build:ios` - Generates iOS assets +- `npm run build:web` - Generates web assets + +**Author**: Matthew Raymer +**Date**: 2025-01-27 +**Status**: ✅ **ACTIVE** - Asset management system implemented \ No newline at end of file diff --git a/resources/android/icon/icon.png b/resources/android/icon/icon.png new file mode 100644 index 00000000..f7b4d9d2 Binary files /dev/null and b/resources/android/icon/icon.png differ diff --git a/resources/android/splash/splash.png b/resources/android/splash/splash.png new file mode 100644 index 00000000..5a29ffdd Binary files /dev/null and b/resources/android/splash/splash.png differ diff --git a/resources/android/splash/splash_dark.png b/resources/android/splash/splash_dark.png new file mode 100644 index 00000000..d5d24209 Binary files /dev/null and b/resources/android/splash/splash_dark.png differ diff --git a/resources/ios/icon/icon.png b/resources/ios/icon/icon.png new file mode 100644 index 00000000..f7b4d9d2 Binary files /dev/null and b/resources/ios/icon/icon.png differ diff --git a/resources/ios/splash/splash.png b/resources/ios/splash/splash.png new file mode 100644 index 00000000..5a29ffdd Binary files /dev/null and b/resources/ios/splash/splash.png differ diff --git a/resources/ios/splash/splash_dark.png b/resources/ios/splash/splash_dark.png new file mode 100644 index 00000000..d5d24209 Binary files /dev/null and b/resources/ios/splash/splash_dark.png differ diff --git a/resources/web/icon/icon.png b/resources/web/icon/icon.png new file mode 100644 index 00000000..f7b4d9d2 Binary files /dev/null and b/resources/web/icon/icon.png differ