From fff79e02f7c98f67b766d390b72201379253ccbb Mon Sep 17 00:00:00 2001 From: Marius456 Date: Thu, 11 Apr 2024 13:04:47 +0300 Subject: [PATCH 1/3] add manifest for kaios 3.0 --- .../kaios/public/manifest.webmanifest | 31 +++++++++++++++++++ packages/sdk-kaios/src/runner.ts | 9 ++++++ 2 files changed, 40 insertions(+) create mode 100644 packages/engine-rn-web/templates/platforms/kaios/public/manifest.webmanifest diff --git a/packages/engine-rn-web/templates/platforms/kaios/public/manifest.webmanifest b/packages/engine-rn-web/templates/platforms/kaios/public/manifest.webmanifest new file mode 100644 index 000000000..4a905e067 --- /dev/null +++ b/packages/engine-rn-web/templates/platforms/kaios/public/manifest.webmanifest @@ -0,0 +1,31 @@ +{ + "name": "{{APP_TITLE}}", + "description": "{{APP_DESCRIPTION}}", + "start_url": "/index.html", + "icons": [ + { + "src": "/icons/icon16x16.png", + "type": "image/png", + "sizes": "56x56" + }, + { + "src": "/icons/icon48x48.png", + "type": "image/png", + "sizes": "56x56" + }, + { + "src": "/icons/icon60x60.png", + "type": "image/png", + "sizes": "56x56" + }, + { + "src": "/icons/icon128x128.png", + "type": "image/png", + "sizes": "56x56" + } + ], + "developer": { + "name": "{{AUTHOR_NAME}}", + "url": "{{AUTHOR_URL}}" + } +} diff --git a/packages/sdk-kaios/src/runner.ts b/packages/sdk-kaios/src/runner.ts index b542aad76..b7a8e953b 100644 --- a/packages/sdk-kaios/src/runner.ts +++ b/packages/sdk-kaios/src/runner.ts @@ -56,6 +56,15 @@ const _configureProject = () => fsWriteFileSync(manifestFilePath, JSON.stringify(manifestFile, null, 2)); + const manifestFilePath0 = path.join(appFolder!, 'public/manifest.webmanifest'); + const manifestFile0 = JSON.parse(fsReadFileSync(manifestFilePath0).toString()); + + manifestFile0.name = `${getAppTitle()}`; + manifestFile0.description = `${getAppDescription()}`; + manifestFile0.developer = getAppAuthor(); + + fsWriteFileSync(manifestFilePath0, JSON.stringify(manifestFile0, null, 2)); + resolve(); }); From 620d28450413f47a5bbd2f38ed3ac39b1c410424 Mon Sep 17 00:00:00 2001 From: Marius456 Date: Fri, 12 Apr 2024 08:57:47 +0300 Subject: [PATCH 2/3] fix androidtv --- packages/app-harness/renative.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/app-harness/renative.json b/packages/app-harness/renative.json index b64e4ef39..cbc166101 100644 --- a/packages/app-harness/renative.json +++ b/packages/app-harness/renative.json @@ -36,7 +36,9 @@ }, "plugins": { "react-native-safe-area-context": "source:rnv", - "react-native-splash-screen": "source:rnv", + "react-native-splash-screen": { + "supportedPlatforms": ["android", "ios"] + }, "rn-fetch-blob": "source:rnv", "react-native-carplay": "source:rnv", "@react-native-community/push-notification-ios": "source:rnv", From 902f0a0338cd6b85b3a4a98df046e074164a62ca Mon Sep 17 00:00:00 2001 From: Pavel Jacko Date: Tue, 16 Apr 2024 22:18:05 +0200 Subject: [PATCH 3/3] pr fixes --- packages/app-harness/renative.json | 4 +--- packages/sdk-kaios/src/runner.ts | 4 ++-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/packages/app-harness/renative.json b/packages/app-harness/renative.json index cbc166101..b64e4ef39 100644 --- a/packages/app-harness/renative.json +++ b/packages/app-harness/renative.json @@ -36,9 +36,7 @@ }, "plugins": { "react-native-safe-area-context": "source:rnv", - "react-native-splash-screen": { - "supportedPlatforms": ["android", "ios"] - }, + "react-native-splash-screen": "source:rnv", "rn-fetch-blob": "source:rnv", "react-native-carplay": "source:rnv", "@react-native-community/push-notification-ios": "source:rnv", diff --git a/packages/sdk-kaios/src/runner.ts b/packages/sdk-kaios/src/runner.ts index b7a8e953b..fff312016 100644 --- a/packages/sdk-kaios/src/runner.ts +++ b/packages/sdk-kaios/src/runner.ts @@ -59,8 +59,8 @@ const _configureProject = () => const manifestFilePath0 = path.join(appFolder!, 'public/manifest.webmanifest'); const manifestFile0 = JSON.parse(fsReadFileSync(manifestFilePath0).toString()); - manifestFile0.name = `${getAppTitle()}`; - manifestFile0.description = `${getAppDescription()}`; + manifestFile0.name = getAppTitle(); + manifestFile0.description = getAppDescription(); manifestFile0.developer = getAppAuthor(); fsWriteFileSync(manifestFilePath0, JSON.stringify(manifestFile0, null, 2));