diff --git a/README.md b/README.md index d8ac56b..f4c66c1 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,4 @@ +# 已安装的插件 -## 功能 - -- 修改名称 -- 修改包名 +1. cordova-plugin-device + 获取设备信息 diff --git a/config.xml b/config.xml index f7559fb..cb5b615 100644 --- a/config.xml +++ b/config.xml @@ -3,7 +3,7 @@ APP app - + diff --git a/package-lock.json b/package-lock.json index 75eb45f..7d5ec78 100644 --- a/package-lock.json +++ b/package-lock.json @@ -17,11 +17,13 @@ }, "devDependencies": { "cordova-android": "^10.1.2", + "cordova-plugin-app-version": "^0.1.14", "cordova-plugin-battery-status": "^2.0.3", "cordova-plugin-camera": "^6.0.0", "cordova-plugin-device": "^2.1.0", "cordova-plugin-dialogs": "^2.0.2", "cordova-plugin-file": "^6.0.2", + "cordova-plugin-file-opener2": "^4.0.0", "cordova-plugin-file-transfer-jsg": "^2.0.0", "cordova-plugin-geolocation": "^4.1.0", "cordova-plugin-inappbrowser": "^5.0.0", @@ -1253,6 +1255,12 @@ "node": ">=12" } }, + "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 + }, "node_modules/cordova-plugin-battery-status": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/cordova-plugin-battery-status/-/cordova-plugin-battery-status-2.0.3.tgz", @@ -1344,6 +1352,25 @@ } } }, + "node_modules/cordova-plugin-file-opener2": { + "version": "4.0.0", + "resolved": "https://registry.npmmirror.com/cordova-plugin-file-opener2/-/cordova-plugin-file-opener2-4.0.0.tgz", + "integrity": "sha512-+O+MMldI2k5Kjoa62KXYxnZQIGE4k5VfoCmmOUmaV5XM6U6euiiKMfCkuMrOrdAFb1C5Jsx+SuBHbWx1NEB5lw==", + "dev": true, + "engines": { + "cordovaDependencies": { + "2.0.0": { + "cordova": ">=6.0.0" + }, + "3.0.0": { + "cordova": ">=7.0.0" + }, + "4.0.0": { + "cordova-android": ">=10.0.0" + } + } + } + }, "node_modules/cordova-plugin-file-transfer-jsg": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/cordova-plugin-file-transfer-jsg/-/cordova-plugin-file-transfer-jsg-2.0.0.tgz", diff --git a/package.json b/package.json index 33c5a3e..4c44455 100644 --- a/package.json +++ b/package.json @@ -19,11 +19,13 @@ "license": "Apache-2.0", "devDependencies": { "cordova-android": "^10.1.2", + "cordova-plugin-app-version": "^0.1.14", "cordova-plugin-battery-status": "^2.0.3", "cordova-plugin-camera": "^6.0.0", "cordova-plugin-device": "^2.1.0", "cordova-plugin-dialogs": "^2.0.2", "cordova-plugin-file": "^6.0.2", + "cordova-plugin-file-opener2": "^4.0.0", "cordova-plugin-file-transfer-jsg": "^2.0.0", "cordova-plugin-geolocation": "^4.1.0", "cordova-plugin-inappbrowser": "^5.0.0", @@ -69,7 +71,9 @@ "cordova-plugin-printer-jsg": { "ANDROID_SUPPORT_V4_VERSION": "28.+" }, - "cordova-plugin-file-transfer-jsg": {} + "cordova-plugin-file-transfer-jsg": {}, + "cordova-plugin-app-version": {}, + "cordova-plugin-file-opener2": {} } }, "dependencies": { diff --git a/www/index.html b/www/index.html index e69de29..04b1257 100644 --- a/www/index.html +++ b/www/index.html @@ -0,0 +1,160 @@ + + + + + + Hello World + + + + + + + + + +
+

Cordova plugins

+ 获取设备信息 + 打开百度 + 设备震动 + 扫码 + 拍照 + 文件打印 + 版本升级 + 安装apk +
+ + + + +