Release v3 with high-res splash screen. More details in web, app manifest

- Add 512, 192 Khoj maskable icons to web app manifest for android rendering
- Add id, categories etc suggested by pwabuilder
- Use higher quality icon images for splash screen than what
  bubblewrap creates by default
This commit is contained in:
Debanjum
2024-11-29 11:18:59 -08:00
parent fdf69b7049
commit 147c8e9115
11 changed files with 39 additions and 10 deletions

View File

@@ -47,7 +47,7 @@ def twaManifest = [
// 'customtabs' and 'webview'. // 'customtabs' and 'webview'.
fallbackType: 'customtabs', fallbackType: 'customtabs',
enableSiteSettingsShortcut: 'true', enableSiteSettingsShortcut: 'true',
orientation: 'default', orientation: 'any',
] ]
android { android {
@@ -57,8 +57,8 @@ android {
applicationId "dev.khoj.app" applicationId "dev.khoj.app"
minSdkVersion 19 minSdkVersion 19
targetSdkVersion 35 targetSdkVersion 35
versionCode 2 versionCode 3
versionName "2" versionName "3"
// The name for the application // The name for the application
resValue "string", "appName", twaManifest.name resValue "string", "appName", twaManifest.name

Binary file not shown.

Before

Width:  |  Height:  |  Size: 70 KiB

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 37 KiB

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 112 KiB

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 217 KiB

After

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 348 KiB

After

Width:  |  Height:  |  Size: 65 KiB

View File

@@ -1 +1 @@
5a05aa3ca4ff01dd9ca67642c5844a5fa3784939 ca4c5316752147e8b87265a4b558b10917d38cbd

View File

@@ -19,9 +19,8 @@
"path": "android.keystore", "path": "android.keystore",
"alias": "android" "alias": "android"
}, },
"appVersionName": "2", "appVersionName": "3",
"appVersionCode": 2, "appVersionCode": 3,
"shortcuts": [],
"generatorApp": "bubblewrap-cli", "generatorApp": "bubblewrap-cli",
"webManifestUrl": "https://app.khoj.dev/static/khoj.webmanifest", "webManifestUrl": "https://app.khoj.dev/static/khoj.webmanifest",
"fallbackType": "customtabs", "fallbackType": "customtabs",
@@ -38,7 +37,7 @@
"isMetaQuest": false, "isMetaQuest": false,
"fullScopeUrl": "https://app.khoj.dev/", "fullScopeUrl": "https://app.khoj.dev/",
"minSdkVersion": 19, "minSdkVersion": 19,
"orientation": "default", "orientation": "any",
"fingerprints": [ "fingerprints": [
{ {
"name": "signing", "name": "signing",
@@ -51,5 +50,5 @@
], ],
"additionalTrustedOrigins": [], "additionalTrustedOrigins": [],
"retainedBundles": [], "retainedBundles": [],
"appVersion": "2" "appVersion": "3"
} }

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

View File

@@ -1,12 +1,18 @@
{ {
"name": "Khoj", "id": "dev.khoj.app",
"name": "Khoj AI",
"short_name": "Khoj", "short_name": "Khoj",
"display": "standalone", "display": "standalone",
"start_url": "/", "start_url": "/",
"scope": "/", "scope": "/",
"description": "The open, personal AI for your digital brain. You can ask Khoj to draft a message, paint your imagination, find information on the internet and even answer questions from your documents.", "description": "The open, personal AI for your digital brain. You can ask Khoj to draft a message, paint your imagination, find information on the internet and even answer questions from your documents.",
"categories": ["productivity", "utilities", "personalization", "education"],
"theme_color": "#ffffff", "theme_color": "#ffffff",
"background_color": "#ffffff", "background_color": "#ffffff",
"orientation": "any",
"launch_handler": {
"client_mode": ["navigate-existing", "auto"]
},
"icons": [ "icons": [
{ {
"src": "/static/assets/icons/khoj_lantern_128x128.png", "src": "/static/assets/icons/khoj_lantern_128x128.png",
@@ -17,6 +23,30 @@
"src": "/static/assets/icons/khoj_lantern_256x256.png", "src": "/static/assets/icons/khoj_lantern_256x256.png",
"sizes": "256x256", "sizes": "256x256",
"type": "image/png" "type": "image/png"
},
{
"src": "/static/assets/icons/khoj_lantern_192x192.png",
"sizes": "192x192",
"type": "image/png",
"purpose": "any"
},
{
"src": "/static/assets/icons/khoj_lantern_192x192.png",
"sizes": "192x192",
"type": "image/png",
"purpose": "maskable"
},
{
"src": "/static/assets/icons/khoj_lantern_512x512.png",
"sizes": "512x512",
"type": "image/png",
"purpose": "any"
},
{
"src": "/static/assets/icons/khoj_lantern_512x512.png",
"sizes": "512x512",
"type": "image/png",
"purpose": "maskable"
} }
], ],
"screenshots": [ "screenshots": [