plugin.xml 1.51 KB
Newer Older
李晓兵's avatar
李晓兵 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
        id="cordova-plugin-touch-id"
        version="3.3.1">

  <name>Touch ID</name>

  <description>
    Scan the fingerprint of your user with the TouchID sensor (iPhone 5S, iPhone 6(S), ..)
  </description>

  <author>Eddy Verbruggen</author>

  <license>MIT</license>

  <keywords>TouchID, Touch ID, Fingerprint, Biometric</keywords>

  <repo>https://github.com/EddyVerbruggen/cordova-plugin-touchid.git</repo>

  <issue>https://github.com/EddyVerbruggen/cordova-plugin-touchid/issues</issue>

  <engines>
    <engine name="cordova" version=">=3.0.0"/>
  </engines>

  <js-module src="www/TouchID.js" name="TouchID">
    <clobbers target="window.plugins.touchid" />
  </js-module>

  <!-- ios -->
  <platform name="ios">

    <config-file target="config.xml" parent="/*">
      <feature name="TouchID">
        <param name="ios-package" value="TouchID"/>
      </feature>
    </config-file>

    <!-- Usage description of Face ID for iOS 11+ -->
JingChao's avatar
JingChao committed
40
    <preference name="FACEID_USAGE_DESCRIPTION" default="方便你进行便捷登录,将使用你的Touch ID ID" />
李晓兵's avatar
李晓兵 committed
41
    <config-file target="*-Info.plist" parent="NSFaceIDUsageDescription">
JingChao's avatar
JingChao committed
42
      <string>方便你进行便捷登录,将使用你的Touch ID</string>
李晓兵's avatar
李晓兵 committed
43 44 45 46 47 48 49 50 51 52
    </config-file>

    <framework src="LocalAuthentication.framework" />
    <framework src="Security.framework" />

    <header-file src="src/ios/TouchID.h"/>
    <source-file src="src/ios/TouchID.m"/>
  </platform>

</plugin>