fix: 修正插件ID大小写不一致问题

将插件ID从'cordova-plugin-hardwareKey'统一改为'cordova-plugin-hardwarekey',确保所有引用的一致性
This commit is contained in:
2025-06-30 17:04:11 +08:00
parent 971f756d7c
commit cfcfe6df1c
3 changed files with 4 additions and 4 deletions

View File

@@ -14,7 +14,7 @@
## 安装插件
`cordova plugin add git+https://m.shuto.cn:8681/center/cordova-plugin-hardwareKey.git`
`cordova plugin add git+https://m.shuto.cn:8681/center/cordova-plugin-hardwarekey.git`
## 引入插件
`declare const cordova: any;`

View File

@@ -3,7 +3,7 @@
"version": "1.0.0",
"description": "hardwareKey plugin",
"cordova": {
"id": "cordova-plugin-hardwareKey",
"id": "cordova-plugin-hardwarekey",
"platforms": [
"android"
]

View File

@@ -1,8 +1,8 @@
<?xml version='1.0' encoding='utf-8'?>
<plugin id="cordova-plugin-hardwareKey" version="0.0.1"
<plugin id="cordova-plugin-hardwarekey" version="0.0.1"
xmlns:android="http://schemas.android.com/apk/res/android" xmlns="http://apache.org/cordova/ns/plugins/1.0">
<name>HardwareKey Plugin</name>
<js-module name="cordova-plugin-hardwareKey" src="www/hardwareKey.js">
<js-module name="cordova-plugin-hardwarekey" src="www/hardwareKey.js">
<clobbers target="cordova.plugin.hardwareKey"/>
</js-module>
<platform name="android">