diff --git a/.gitignore b/.gitignore index c58de696..089a8f9d 100644 --- a/.gitignore +++ b/.gitignore @@ -51,3 +51,5 @@ vendor/ # Build logs build_logs/ +# PWA icon files generated by capacitor-assets +icons diff --git a/BUILDING.md b/BUILDING.md index cc8f77b2..184e2a0d 100644 --- a/BUILDING.md +++ b/BUILDING.md @@ -187,7 +187,11 @@ Prerequisites: macOS with Xcode installed 3. Copy the assets: ```bash + # It makes no sense why capacitor-assets will not run without these but it actually changes the contents. mkdir -p ios/App/App/Assets.xcassets/AppIcon.appiconset + echo '{"images":[]}' > ios/App/App/Assets.xcassets/AppIcon.appiconset/Contents.json + mkdir -p ios/App/App/Assets.xcassets/Splash.imageset + echo '{"images":[]}' > ios/App/App/Assets.xcassets/Splash.imageset/Contents.json npx capacitor-assets generate --ios ``` diff --git a/android/.gitignore b/android/.gitignore index acab7f87..932ce96f 100644 --- a/android/.gitignore +++ b/android/.gitignore @@ -102,3 +102,8 @@ app/src/main/assets/public app/src/main/assets/capacitor.config.json app/src/main/assets/capacitor.plugins.json app/src/main/res/xml/config.xml + +# Generated Icons from capacitor-assets +app/src/main/res/drawable/*.png +app/src/main/res/drawable-*/*.png +app/src/main/res/mipmap-*/*.png 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 new file mode 100644 index 00000000..0aa82aa1 --- /dev/null +++ b/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml @@ -0,0 +1,9 @@ + + + + + + + + + \ 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 new file mode 100644 index 00000000..0aa82aa1 --- /dev/null +++ b/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/assets/icon.png b/assets/icon.png new file mode 100644 index 00000000..bc653c83 Binary files /dev/null and b/assets/icon.png differ diff --git a/ios/.gitignore b/ios/.gitignore index 6dea0152..6e686690 100644 --- a/ios/.gitignore +++ b/ios/.gitignore @@ -21,3 +21,7 @@ fastlane/report.xml fastlane/Preview.html fastlane/screenshots fastlane/test_output + +# Generated Icons from capacitor-assets +App/App/Assets.xcassets/AppIcon.appiconset/*.png +App/App/Assets.xcassets/Splash.imageset/*.png diff --git a/ios/App/App/Assets.xcassets/AppIcon.appiconset/Contents.json b/ios/App/App/Assets.xcassets/AppIcon.appiconset/Contents.json deleted file mode 100644 index b1a84833..00000000 --- a/ios/App/App/Assets.xcassets/AppIcon.appiconset/Contents.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "images": [ - { - "idiom": "universal", - "size": "1024x1024", - "filename": "AppIcon-512@2x.png", - "platform": "ios" - } - ], - "info": { - "author": "xcode", - "version": 1 - } -} \ No newline at end of file diff --git a/ios/App/App/Assets.xcassets/Splash.imageset/Contents.json b/ios/App/App/Assets.xcassets/Splash.imageset/Contents.json deleted file mode 100644 index d7d96a67..00000000 --- a/ios/App/App/Assets.xcassets/Splash.imageset/Contents.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "images" : [ - { - "idiom" : "universal", - "filename" : "splash-2732x2732-2.png", - "scale" : "1x" - }, - { - "idiom" : "universal", - "filename" : "splash-2732x2732-1.png", - "scale" : "2x" - }, - { - "idiom" : "universal", - "filename" : "splash-2732x2732.png", - "scale" : "3x" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file