zkfinger10 0.0.2 zkfinger10: ^0.0.2 copied to clipboard
The zk_finger10 plugin is used for supporting fingerprint device of zkecto with enrolling and verification feature.
zkfinger10 #
Flutter package for ZKFingerPrint Live devices (It's not official package)
Getting Started #
TODO:
- Migrate to Android Plugin V2 embedding (to catch app lifecycles)
- Fix SDK issues
- Add proper documentation
Add to Android Project:
- In the Manifest permission section add:
<uses-permission
android:name="android.permission.READ_EXTERNAL_STORAGE"
android:maxSdkVersion="32" />
<uses-permission
android:name="android.permission.WRITE_EXTERNAL_STORAGE"
android:maxSdkVersion="32"
tools:ignore="ScopedStorage" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.hardware.usb.host" />
- Inside the activity tag in the Manifest file add:
<intent-filter>
<action android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED" />
<action android:name="android.intent.action.BOOT_COMPLETED" />
</intent-filter>
<meta-data
android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED"
android:resource="@xml/device_filter" />
- In res folder add xml folder then add device_filter.xml with the following content:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<usb-device vendor-id="6997" product-id="289" />
</resources>
==============
⚠️ Warning Add these lines to your app-level build.gradle if you have problems on release:
buildTypes {
release {
....
//Add these lines when releasing your app
minifyEnabled false
shrinkResources false
useProguard false
}
}
If you have other issues related to the package you can open PR or make your own package based on the newer SDK: https://github.com/Mamasodikov/ZKFinger10Demo
Sample: