- Replace manual ImageMagick scripts with official capacitor-assets toolchain - Consolidate duplicate asset sources to single resources/ directory - Implement comprehensive asset configuration schema and validation - Add CI safeguards for asset validation and platform asset detection - Convert capacitor.config.json to TypeScript format - Pin Node.js version for deterministic builds - Remove legacy manual asset generation scripts: * generate-icons.sh, generate-ios-assets.sh, generate-android-icons.sh * check-android-resources.sh, check-ios-resources.sh * purge-generated-assets.sh - Add new asset management commands: * assets:config - generate/update configurations * assets:validate - validate configurations * assets:clean - clean generated assets (dev only) * build:native - build with asset generation - Create GitHub Actions workflow for asset validation - Update documentation with new asset management workflow This standardization eliminates asset duplication, improves build reliability, and provides a maintainable asset management system using Capacitor defaults. Breaking Changes: Manual asset generation scripts removed Migration: Assets now sourced from resources/ directory only CI: Automated validation prevents committed platform assets
33 lines
720 B
JSON
33 lines
720 B
JSON
{
|
|
"icon": {
|
|
"android": {
|
|
"adaptive": {
|
|
"background": "#121212",
|
|
"foreground": "resources/icon.png",
|
|
"monochrome": "resources/icon.png"
|
|
},
|
|
"target": "android/app/src/main/res"
|
|
},
|
|
"ios": {
|
|
"padding": 0,
|
|
"target": "ios/App/App/Assets.xcassets/AppIcon.appiconset"
|
|
},
|
|
"source": "resources/icon.png",
|
|
"web": {
|
|
"target": "public/img/icons"
|
|
}
|
|
},
|
|
"splash": {
|
|
"android": {
|
|
"scale": "cover",
|
|
"target": "android/app/src/main/res"
|
|
},
|
|
"darkSource": "resources/splash_dark.png",
|
|
"ios": {
|
|
"target": "ios/App/App/Assets.xcassets",
|
|
"useStoryBoard": true
|
|
},
|
|
"source": "resources/splash.png"
|
|
}
|
|
}
|