|
|
5 years ago | |
|---|---|---|
| .idea | 5 years ago | |
| android | 5 years ago | |
| example | 5 years ago | |
| ios | 5 years ago | |
| lib | 5 years ago | |
| test | 5 years ago | |
| .gitignore | 5 years ago | |
| .metadata | 5 years ago | |
| CHANGELOG.md | 5 years ago | |
| LICENSE | 5 years ago | |
| README.md | 5 years ago | |
| fltbdface.iml | 5 years ago | |
| pubspec.lock | 5 years ago | |
| pubspec.yaml | 5 years ago |
Baidu's face recognition SDK encapsulates the flutter version, calls native SDK and interface operations, and returns data to flutter
//pub方式
dependencies:
flt_bd_face: ^0.0.4
//导入方式
dependencies:
flt_video_player:
git:
url: https://github.com/RandyWei/flt_bd_face.git
android/app/build.gradle配置如下
android {
....
//将签名配置完整
signingConfigs {
Release {
keyAlias 'keyAlias'
keyPassword 'keyPassword'
storeFile file('storeFile')
storePassword 'storePassword'
}
}
....
buildTypes {
release {
signingConfig signingConfigs.Release
//开启混淆。新版Flutter默认将混淆打开了,所以要配置混淆规则,否则release版本会有问题
useProguard true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
debug {
signingConfig signingConfigs.Release
}
}
}
混淆规则,也可以直接copy example中的规则文件
-keep class com.baidu.** {*;}
-keep class vi.com.** {*;}
-dontwarn com.baidu.**