From 918698680dc61329f5302cb42829ab9759643f21 Mon Sep 17 00:00:00 2001 From: Paul Miller Date: Wed, 1 Nov 2023 12:22:43 -0500 Subject: [PATCH] add index html shell --- android/app/capacitor.build.gradle | 2 +- android/capacitor.settings.gradle | 6 ++-- index.html | 51 ++++++++++++++++++++++++++++++ insertHead.js | 17 ---------- package.json | 2 +- 5 files changed, 56 insertions(+), 22 deletions(-) create mode 100644 index.html delete mode 100644 insertHead.js diff --git a/android/app/capacitor.build.gradle b/android/app/capacitor.build.gradle index fd577e3..7c398dd 100644 --- a/android/app/capacitor.build.gradle +++ b/android/app/capacitor.build.gradle @@ -13,8 +13,8 @@ dependencies { implementation project(':capacitor-browser') implementation project(':capacitor-clipboard') implementation project(':capacitor-filesystem') - implementation project(':capacitor-share') implementation project(':capacitor-haptics') + implementation project(':capacitor-share') implementation project(':capacitor-toast') implementation project(':mutinywallet-barcode-scanner') diff --git a/android/capacitor.settings.gradle b/android/capacitor.settings.gradle index e2511c2..6a16b75 100644 --- a/android/capacitor.settings.gradle +++ b/android/capacitor.settings.gradle @@ -14,12 +14,12 @@ project(':capacitor-clipboard').projectDir = new File('../node_modules/.pnpm/@ca include ':capacitor-filesystem' project(':capacitor-filesystem').projectDir = new File('../node_modules/.pnpm/@capacitor+filesystem@5.1.4_@capacitor+core@5.2.2/node_modules/@capacitor/filesystem/android') -include ':capacitor-share' -project(':capacitor-share').projectDir = new File('../node_modules/.pnpm/@capacitor+share@5.0.6_@capacitor+core@5.2.2/node_modules/@capacitor/share/android') - include ':capacitor-haptics' project(':capacitor-haptics').projectDir = new File('../node_modules/.pnpm/@capacitor+haptics@5.0.6_@capacitor+core@5.2.2/node_modules/@capacitor/haptics/android') +include ':capacitor-share' +project(':capacitor-share').projectDir = new File('../node_modules/.pnpm/@capacitor+share@5.0.6_@capacitor+core@5.2.2/node_modules/@capacitor/share/android') + include ':capacitor-toast' project(':capacitor-toast').projectDir = new File('../node_modules/.pnpm/@capacitor+toast@5.0.6_@capacitor+core@5.2.2/node_modules/@capacitor/toast/android') diff --git a/index.html b/index.html new file mode 100644 index 0000000..e73a233 --- /dev/null +++ b/index.html @@ -0,0 +1,51 @@ + + + + Mutiny Wallet + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/insertHead.js b/insertHead.js deleted file mode 100644 index 5f33b61..0000000 --- a/insertHead.js +++ /dev/null @@ -1,17 +0,0 @@ -import { readFile, writeFile } from 'fs/promises'; -import { join } from 'path'; - -const insertHeadTag = async () => { - const filePath = join(process.cwd(), 'dist', 'public', 'index.html'); - try { - let data = await readFile(filePath, 'utf8'); - const lines = data.split('\n'); - lines.splice(2, 0, ''); - data = lines.join('\n'); - await writeFile(filePath, data); - } catch (err) { - console.error(`Error: ${err}`); - } -}; - -insertHeadTag(); diff --git a/package.json b/package.json index 64dd81b..5f205f1 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "scripts": { "dev": "solid-start dev", "host": "solid-start dev --host", - "build": "solid-start build && node insertHead.js", + "build": "solid-start build", "start": "solid-start start", "check-types": "tsc --noemit", "eslint": "eslint src",