Cordova Android Fingerprint Auth 插件使用教程

Cordova Android Fingerprint Auth 插件使用教程

cordova-plugin-android-fingerprint-authA cordova plugin for fingerprint authentication using the hardware fingerprint scanner on devices running Android 6+项目地址:https://gitcode.com/gh_mirrors/co/cordova-plugin-android-fingerprint-auth

1. 项目的目录结构及介绍

cordova-plugin-android-fingerprint-auth/
├── res/
│   └── android/
│       └── ...
├── src/
│   └── android/
│       └── ...
├── www/
│   └── ...
├── .gitignore
├── LICENSE
├── README.md
├── changelog.md
├── index.d.ts
├── package.json
└── plugin.xml
  • res/android/: 包含Android资源文件。
  • src/android/: 包含Android源代码文件。
  • www/: 包含插件的Web接口文件。
  • .gitignore: Git忽略文件配置。
  • LICENSE: 项目许可证文件。
  • README.md: 项目说明文档。
  • changelog.md: 项目更新日志。
  • index.d.ts: TypeScript定义文件。
  • package.json: Node.js包配置文件。
  • plugin.xml: Cordova插件配置文件。

2. 项目的启动文件介绍

项目的启动文件主要是plugin.xml,它是Cordova插件的配置文件,定义了插件的名称、版本、依赖关系以及如何集成到Cordova项目中。

<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
        id="cordova-plugin-android-fingerprint-auth"
        version="1.4.0">
    <name>FingerprintAuth</name>
    <js-module name="FingerprintAuth" src="www/FingerprintAuth.js">
        <clobbers target="FingerprintAuth" />
    </js-module>
    <platform name="android">
        <config-file target="res/xml/config.xml" parent="/*">
            <feature name="FingerprintAuth">
                <param name="android-package" value="com.mjwheatley.cordova.plugin.android.fingerprintauth.FingerprintAuth"/>
            </feature>
        </config-file>
        <source-file src="src/android/FingerprintAuth.java" target-dir="src/com/mjwheatley/cordova/plugin/android/fingerprintauth"/>
    </platform>
</plugin>

3. 项目的配置文件介绍

  • package.json: 定义了插件的元数据,包括名称、版本、依赖等。
{
  "name": "cordova-plugin-android-fingerprint-auth",
  "version": "1.4.0",
  "description": "A cordova plugin for fingerprint authentication using the hardware fingerprint scanner on devices running Android 6+",
  "cordova": {
    "id": "cordova-plugin-android-fingerprint-auth",
    "platforms": [
      "android"
    ]
  },
  "repository": {
    "type": "git",
    "url": "git+https://github.com/mjwheatley/cordova-plugin-android-fingerprint-auth.git"
  },
  "keywords": [
    "ecosystem:cordova",
    "cordova-android",
    "fingerprint",
    "authentication"
  ],
  "author": "mjwheatley",
  "license": "Apache-2.0",
  "bugs": {
    "url": "https://github.com/mjwheatley/cordova-plugin-android-fingerprint-auth/issues"
  },
  "homepage": "https://github.com/mjwheatley/cordova-plugin-android-fingerprint-auth#readme"
}
  • plugin.xml: 如上所述,定义了插件的集成方式和文件路径。

通过以上介绍,您可以更好地理解和使用cordova-plugin-android-fingerprint-auth插件。

cordova-plugin-android-fingerprint-authA cordova plugin for fingerprint authentication using the hardware fingerprint scanner on devices running Android 6+项目地址:https://gitcode.com/gh_mirrors/co/cordova-plugin-android-fingerprint-auth

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

鲁通彭Mercy

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值