diff --git a/.gitignore b/.gitignore index 55785d81..5ccaf46a 100644 --- a/.gitignore +++ b/.gitignore @@ -12,6 +12,8 @@ dist dist-ssr *.local .ai-history/ +.tmp.webmanifest +public/icons/ # Editor directories and files .idea diff --git a/android/.gitignore b/android/.gitignore index e4d7b463..45a5d626 100644 --- a/android/.gitignore +++ b/android/.gitignore @@ -101,4 +101,4 @@ app/src/main/assets/capacitor.plugins.json app/src/main/res/xml/config.xml # Generated assets -android/app/src/main/res/*/*.png \ No newline at end of file +app/src/main/res/*/*.png \ No newline at end of file diff --git a/assets/icon-background.png b/assets/icon-background.png new file mode 100644 index 00000000..916289d4 Binary files /dev/null and b/assets/icon-background.png differ diff --git a/assets/icon-foreground.png b/assets/icon-foreground.png new file mode 100644 index 00000000..3b3e56c6 Binary files /dev/null and b/assets/icon-foreground.png differ diff --git a/assets/icon-only.png b/assets/icon-only.png new file mode 100644 index 00000000..3b3e56c6 Binary files /dev/null and b/assets/icon-only.png differ diff --git a/assets/splash-dark.png b/assets/splash-dark.png new file mode 100644 index 00000000..9e93b02f Binary files /dev/null and b/assets/splash-dark.png differ diff --git a/assets/splash.png b/assets/splash.png new file mode 100644 index 00000000..916289d4 Binary files /dev/null and b/assets/splash.png differ diff --git a/package.json b/package.json index 3522d43c..198c5c62 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,8 @@ "android:apk": "npm run android:sync && cd android && ./gradlew assembleRelease", "android:open": "npx cap open android", "android:sync": "npm run build && npx cap sync android", - "android:run": "npm run android:sync && npx cap run android" + "android:run": "npm run android:sync && npx cap run android", + "android:icons": "npx -y @capacitor/assets generate --pwaManifestPath=.tmp.webmanifest && rm .tmp.webmanifest && mv icons public/icons" }, "dependencies": { "@capacitor/android": "^7.4.3", diff --git a/public/manifest.webmanifest b/public/manifest.webmanifest index 499a9bdd..ee6e58b1 100644 --- a/public/manifest.webmanifest +++ b/public/manifest.webmanifest @@ -7,20 +7,54 @@ "background_color": "#ffffff", "theme_color": "#8b5cf6", "orientation": "portrait-primary", - "categories": ["productivity", "developer", "utilities"], + "categories": [ + "productivity", + "developer", + "utilities" + ], "lang": "en", "icons": [ { - "src": "/shakespeare.png", - "sizes": "192x192", + "src": "/icons/icon-48.webp", "type": "image/png", + "sizes": "48x48", "purpose": "any maskable" }, { - "src": "/shakespeare.png", - "sizes": "512x512", + "src": "/icons/icon-72.webp", "type": "image/png", + "sizes": "72x72", + "purpose": "any maskable" + }, + { + "src": "/icons/icon-96.webp", + "type": "image/png", + "sizes": "96x96", + "purpose": "any maskable" + }, + { + "src": "/icons/icon-128.webp", + "type": "image/png", + "sizes": "128x128", + "purpose": "any maskable" + }, + { + "src": "/icons/icon-192.webp", + "type": "image/png", + "sizes": "192x192", + "purpose": "any maskable" + }, + { + "src": "/icons/icon-256.webp", + "type": "image/png", + "sizes": "256x256", + "purpose": "any maskable" + }, + { + "src": "/icons/icon-512.webp", + "type": "image/png", + "sizes": "512x512", "purpose": "any maskable" } ] -} \ No newline at end of file +}