Skip to content

Commit

Permalink
FIX iOS import resource
Browse files Browse the repository at this point in the history
  • Loading branch information
cyjaysong committed Jun 17, 2021
1 parent 2819358 commit 09642df
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 9 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
## 1.0.2

* FIX Optimize Android code, avoid data size limit of intent.
* FIX iOS moveface voice.
* FIX iOS import resource.
* 安卓规避 intent 数据大小限制。
* iOS 找脸语言修复。
* iOS 导入资源文件。

## 1.0.1

* Reduce package size.
Expand Down
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,15 @@ SDK 会校验 apk 签名,请使用申请授权相符的签名证书
FlutterBdfaceCollect.instance.unInit();
```

###
## 常见问题
### iOS
* 编译时报`duplicate output file '***********/build/ios/Debug-iphoneos/Runner.app/Assets.car' on task:`

`Podfile`文件里添加一行

```install! 'cocoapods', :disable_input_output_paths => true```





Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ - (void)faceProcesss:(UIImage *)image {
case DetectRemindCodeOK: {
weakSelf.hasFinished = YES;
[self warningStatus:CommonStatus warning:@"非常好"];
[self singleActionSuccess:true];
dispatch_async(dispatch_get_main_queue(), ^{
if (weakSelf.completion) {
FaceCropImageInfo *bestImage;
Expand All @@ -90,7 +91,6 @@ - (void)faceProcesss:(UIImage *)image {
}
[weakSelf closeAction];
});
[self singleActionSuccess:true];
break;
}
case DetectRemindCodeTimeout: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,10 @@ - (void)faceProcesss:(UIImage *)image {
case LivenessRemindCodeOK: {
weakSelf.hasFinished = YES;
[self warningStatus:CommonStatus warning:@"非常好"];
dispatch_async(dispatch_get_main_queue(), ^{
[self.remindAnimationView stopActionAnimating];
});
[self singleActionSuccess:true];
dispatch_async(dispatch_get_main_queue(), ^{
if (weakSelf.completion) {
FaceCropImageInfo *bestImage;
Expand All @@ -121,11 +125,6 @@ - (void)faceProcesss:(UIImage *)image {
}
[weakSelf closeAction];
});
dispatch_async(dispatch_get_main_queue(), ^{
[self.remindAnimationView stopActionAnimating];
});

[self singleActionSuccess:true];
break;
}
case LivenessRemindCodeTimeout: {
Expand Down
2 changes: 1 addition & 1 deletion ios/flutter_bdface_collect.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ a baidu face collect plugin. Only Android and IOS platforms are supported.
s.static_framework = true
s.source_files = 'Classes/**/*'
s.public_header_files = 'Classes/**/*.h'
s.resources = "BDFaceSDK/*.bundle"
s.resources = ['BDFaceSDK/*.bundle', 'Resource/*.xcassets']
s.vendored_frameworks = 'BDFaceSDK/*.framework'
# s.xcconfig = { 'OTHER_LDFLAGS' => '-ObjC' }
s.libraries = ["c++"]
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: flutter_bdface_collect
description: a baidu face collect plugin. Only Android and IOS platforms are supported.
version: 1.0.1
version: 1.0.2
homepage: https://github.com/fluttercandies/flutter_bdface_collect

environment:
Expand Down

0 comments on commit 09642df

Please sign in to comment.