From c64c7e0ea022bd139ad1c6e4f73aae218db84659 Mon Sep 17 00:00:00 2001 From: taoya7 <569781231@qq.com> Date: Mon, 16 Dec 2024 21:06:03 +0800 Subject: [PATCH] feat: Plugins --- config.xml | 13 ++-- package-lock.json | 166 ++++++++++++++++++++++++++++++++++++++++++++++ package.json | 22 +++++- 3 files changed, 196 insertions(+), 5 deletions(-) diff --git a/config.xml b/config.xml index 1233dc6..52cfce5 100644 --- a/config.xml +++ b/config.xml @@ -4,6 +4,7 @@ app + @@ -20,9 +21,13 @@ - - - - + + + + + + + + diff --git a/package-lock.json b/package-lock.json index 9f0769c..17e56f0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -19,6 +19,17 @@ "consola": "^3.2.3", "cordova": "^12.0.0", "cordova-android": "^13.0.0", + "cordova-plugin-app-version": "^0.1.14", + "cordova-plugin-battery-status": "^2.0.3", + "cordova-plugin-camera": "^2.4.1", + "cordova-plugin-compat": "^1.2.0", + "cordova-plugin-device": "^2.1.0", + "cordova-plugin-file": "^4.3.3", + "cordova-plugin-geolocation": "^2.4.3", + "cordova-plugin-media": "^2.4.1", + "cordova-plugin-screen-orientation": "^3.0.4", + "cordova-plugin-statusbar": "^3.0.0", + "cordova-plugin-vibration": "^3.1.1", "es6-promise-plugin": "^4.2.2", "eslint": "^9.17.0", "picocolors": "^1.1.1", @@ -2825,6 +2836,161 @@ "node": "^14.17.0 || ^16.13.0 || >=18.0.0" } }, + "node_modules/cordova-plugin-app-version": { + "version": "0.1.14", + "resolved": "https://registry.npmmirror.com/cordova-plugin-app-version/-/cordova-plugin-app-version-0.1.14.tgz", + "integrity": "sha512-HN6Yz6IIdRO+iMvCHN/qMe8/O4miOpHH/pDtWNjIYTjV3MzP+XdzFJoFnq2zxlNNXFz0Zn8REGQhFY77vV4AWQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/cordova-plugin-battery-status": { + "version": "2.0.3", + "resolved": "https://registry.npmmirror.com/cordova-plugin-battery-status/-/cordova-plugin-battery-status-2.0.3.tgz", + "integrity": "sha512-H1vSLWbDb/qivGPVV/sjAaDnF8VEoa1uOYdrTJpYrs9vRAe3S37y8Fa5LoBuKkspWiQ5P3D8q+iTnsPF0UAO7g==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "cordovaDependencies": { + "3.0.0": { + "cordova": ">100" + } + } + } + }, + "node_modules/cordova-plugin-camera": { + "version": "2.4.1", + "resolved": "https://registry.npmmirror.com/cordova-plugin-camera/-/cordova-plugin-camera-2.4.1.tgz", + "integrity": "sha512-sBahi2iZ1pNc2xarpoHmuIWL6jrf2NmSG27JajUXJ5C7+zEkiJIi2Lf5e4RPwSFf7Xeg9k6mLdmmIvvhI/6RLg==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "cordovaDependencies": { + "3.0.0": { + "cordova": ">100" + } + } + } + }, + "node_modules/cordova-plugin-compat": { + "version": "1.2.0", + "resolved": "https://registry.npmmirror.com/cordova-plugin-compat/-/cordova-plugin-compat-1.2.0.tgz", + "integrity": "sha512-TYN/aPjuU845R+7l2vUxmLji3Y4Y1kJrvPvi+GlPQ+jTIsfiVSL//PMvKEr9SC7m6b7t0LUMoJN3Fng0s8giGQ==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "cordovaDependencies": { + "<1.2.0": { + "cordova": ">=5.0.0" + }, + ">=1.2.0": { + "cordova": ">=5.0.0", + "cordova-android": "<6.3.0" + } + } + } + }, + "node_modules/cordova-plugin-device": { + "version": "2.1.0", + "resolved": "https://registry.npmmirror.com/cordova-plugin-device/-/cordova-plugin-device-2.1.0.tgz", + "integrity": "sha512-FU0Lw1jZpuKOgG4v80LrfMAOIMCGfAVPumn7AwaX9S1iU/X3OPZUyoKUgP09q4bxL35IeNPkqNWVKYduAXZ1sg==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "cordovaDependencies": { + "3.0.0": { + "cordova": ">100", + "cordova-electron": ">=3.0.0" + } + } + } + }, + "node_modules/cordova-plugin-file": { + "version": "4.3.3", + "resolved": "https://registry.npmmirror.com/cordova-plugin-file/-/cordova-plugin-file-4.3.3.tgz", + "integrity": "sha512-VrmBcB+oKHYill481tdXkTV+7pkzSyKmVs6EFd+DT0qjDnztDs/7Taz04Nol5cqzFShaS1dIXCHT5x5MGl8dxQ==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "cordovaDependencies": { + "5.0.0": { + "cordova": ">100" + } + } + } + }, + "node_modules/cordova-plugin-geolocation": { + "version": "2.4.3", + "resolved": "https://registry.npmmirror.com/cordova-plugin-geolocation/-/cordova-plugin-geolocation-2.4.3.tgz", + "integrity": "sha512-Dii/K85KtFHXGgjqCtv1439lqVjSeV6oRBgVYu0scpq6sHiJ4nbYT4ZHeIPjTF0t8ydpOrtq3BR7DuAXgxjj4A==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "cordovaDependencies": { + "3.0.0": { + "cordova": ">100" + } + } + } + }, + "node_modules/cordova-plugin-media": { + "version": "2.4.1", + "resolved": "https://registry.npmmirror.com/cordova-plugin-media/-/cordova-plugin-media-2.4.1.tgz", + "integrity": "sha512-oL27OZbKLTB9/JczQ2mepl2KpgPie2SLFPT6Ry083e+7XPjgKMhtsBQn0N7AlBiifjSEryRy6MAWMnhRwegbVw==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "cordovaDependencies": { + "3.0.0": { + "cordova": ">100" + } + } + } + }, + "node_modules/cordova-plugin-screen-orientation": { + "version": "3.0.4", + "resolved": "https://registry.npmmirror.com/cordova-plugin-screen-orientation/-/cordova-plugin-screen-orientation-3.0.4.tgz", + "integrity": "sha512-AswRuUKJ8J3HycUilTJsIB50aa9TLrwndPNBFG+wfAPhHEqIBF0HaD0q3HbAK7ypgmaj0cvbzk84qP51IcTfrQ==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "cordovaDependencies": { + "4.0.0": { + "cordova": ">100" + } + } + } + }, + "node_modules/cordova-plugin-statusbar": { + "version": "3.0.0", + "resolved": "https://registry.npmmirror.com/cordova-plugin-statusbar/-/cordova-plugin-statusbar-3.0.0.tgz", + "integrity": "sha512-nzkeWeyLA6+1FryzO0aeB6NS8MZ45gnBYeq2VZqfdNbddZEgtpI4XPYdBVxvm9NhcVoJ3tdA1OBnQD9JryoV0Q==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "cordovaDependencies": { + "0.1.0": { + "cordova": ">=3.0.0" + }, + "4.0.0": { + "cordova": ">100" + } + } + } + }, + "node_modules/cordova-plugin-vibration": { + "version": "3.1.1", + "resolved": "https://registry.npmmirror.com/cordova-plugin-vibration/-/cordova-plugin-vibration-3.1.1.tgz", + "integrity": "sha512-qgv67Rueo4Pydfant3TwnXeFiN9dl+6lKMM6h5jYg9XewiGAGOr8vfWsTvQssC3m3xMKGS1ap3xPNH+BzZ4RMA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "cordovaDependencies": { + "4.0.0": { + "cordova": ">100" + } + } + } + }, "node_modules/cordova-serve": { "version": "4.0.1", "resolved": "https://registry.npmmirror.com/cordova-serve/-/cordova-serve-4.0.1.tgz", diff --git a/package.json b/package.json index 7af31d2..3a3273d 100644 --- a/package.json +++ b/package.json @@ -25,6 +25,17 @@ "consola": "^3.2.3", "cordova": "^12.0.0", "cordova-android": "^13.0.0", + "cordova-plugin-app-version": "^0.1.14", + "cordova-plugin-battery-status": "^2.0.3", + "cordova-plugin-camera": "^2.4.1", + "cordova-plugin-compat": "^1.2.0", + "cordova-plugin-device": "^2.1.0", + "cordova-plugin-file": "^4.3.3", + "cordova-plugin-geolocation": "^2.4.3", + "cordova-plugin-media": "^2.4.1", + "cordova-plugin-screen-orientation": "^3.0.4", + "cordova-plugin-statusbar": "^3.0.0", + "cordova-plugin-vibration": "^3.1.1", "es6-promise-plugin": "^4.2.2", "eslint": "^9.17.0", "picocolors": "^1.1.1", @@ -37,7 +48,16 @@ "browser", "android" ], - "plugins": {} + "plugins": { + "cordova-plugin-app-version": {}, + "cordova-plugin-battery-status": {}, + "cordova-plugin-device": {}, + "cordova-plugin-geolocation": {}, + "cordova-plugin-media": {}, + "cordova-plugin-vibration": {}, + "cordova-plugin-statusbar": {}, + "cordova-plugin-screen-orientation": {} + } }, "dependencies": { "commander": "^12.1.0"