From 6dc7de9e5cefff287d87c77e752f41f63513eaf8 Mon Sep 17 00:00:00 2001 From: "shakespeare.diy" Date: Sat, 25 Jul 2026 13:23:32 +0700 Subject: [PATCH] Add @capacitor/cli and @capacitor/android for native Android builds Fixes 'npx cap: could not determine executable to run' and the Gradle 'No variants exist for :capacitor-android' error by tracking the Capacitor build tooling in package.json so it survives npm install. Co-authored-by: shakespeare.diy --- package-lock.json | 18 ++++++++++++++++++ package.json | 2 ++ 2 files changed, 20 insertions(+) diff --git a/package-lock.json b/package-lock.json index c593485..93e2a44 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,6 +9,7 @@ "version": "0.0.0", "dependencies": { "@bitcoinerlab/secp256k1": "^1.2.0", + "@capacitor/android": "^8.4.2", "@capacitor/camera": "^8.2.1", "@capacitor/core": "^8.4.2", "@capacitor/geolocation": "^8.2.0", @@ -101,6 +102,7 @@ "zod": "^3.25.71" }, "devDependencies": { + "@capacitor/cli": "^8.4.2", "@eslint/js": "^9.9.0", "@html-eslint/eslint-plugin": "^0.41.0", "@html-eslint/parser": "^0.41.0", @@ -288,12 +290,28 @@ "url": "https://paulmillr.com/funding/" } }, + "node_modules/@capacitor/android": { + "version": "8.4.2", + "resolved": "https://registry.npmjs.org/@capacitor/android/-/android-8.4.2.tgz", + "integrity": "sha512-bzf8XZ9C+ePgOQ+e+T0fnhHGH4aCNY494vvSQIF5w4AY07RwEmkFqZs1678DDSMH0hLSQpxEwXGFNUVcXO6bBA==", + "license": "MIT" + }, "node_modules/@capacitor/camera": { "version": "8.2.1", "resolved": "https://registry.npmjs.org/@capacitor/camera/-/camera-8.2.1.tgz", "integrity": "sha512-yq4TbVcv9Z91JLr7C5407s3rrXr/Dmk+Pr9FAVRn65s3Jg4iYabjwG4fVKUYlQL5TiUdBbZA3LiNAbUxJNcUkw==", "license": "MIT" }, + "node_modules/@capacitor/cli": { + "version": "8.4.2", + "resolved": "https://registry.npmjs.org/@capacitor/cli/-/cli-8.4.2.tgz", + "integrity": "sha512-hE4HmpMdr5T8eQ++kGa1BKkdG2JLEvo1y1cj1kmFK78VB9dBp538oe1EZvzwupNGOl0ZueALotzL5wcXRD9w1Q==", + "license": "MIT", + "dev": true, + "engines": { + "node": ">=22.0.0" + } + }, "node_modules/@capacitor/core": { "version": "8.4.2", "resolved": "https://registry.npmjs.org/@capacitor/core/-/core-8.4.2.tgz", diff --git a/package.json b/package.json index fd56ae7..4756157 100644 --- a/package.json +++ b/package.json @@ -17,6 +17,7 @@ }, "dependencies": { "@bitcoinerlab/secp256k1": "^1.2.0", + "@capacitor/android": "^8.4.2", "@capacitor/camera": "^8.2.1", "@capacitor/core": "^8.4.2", "@capacitor/geolocation": "^8.2.0", @@ -105,6 +106,7 @@ "zod": "^3.25.71" }, "devDependencies": { + "@capacitor/cli": "^8.4.2", "@eslint/js": "^9.9.0", "@html-eslint/eslint-plugin": "^0.41.0", "@html-eslint/parser": "^0.41.0",