diff --git a/ios/Classes/MopPlugin.m b/ios/Classes/MopPlugin.m index 29e640e..dc760ea 100644 --- a/ios/Classes/MopPlugin.m +++ b/ios/Classes/MopPlugin.m @@ -76,6 +76,14 @@ static MopPlugin *_instance; dict[@"path"] = [[FATClient sharedClient] fat_absolutePathWithPath:path]; result(dict); } + else if ([@"copyFileAsFinFile" isEqualToString:call.method]) { + NSString *appId = call.arguments[@"appId"]; + NSString *path = call.arguments[@"path"]; + NSString *fileName = [path componentsSeparatedByString:@"/"].lastObject; + NSMutableDictionary *dict = [NSMutableDictionary dictionary]; + dict[@"path"] = [[FATClient sharedClient] saveFile:[NSData dataWithContentsOfFile:path] fileName:fileName]; + result(dict); + } else if ([@"getPhoneNumberResult" isEqualToString:call.method]) { if ([MOPAppletDelegate instance].bindGetPhoneNumbers) { NSDictionary *dic = [[NSDictionary alloc] initWithDictionary:call.arguments]; diff --git a/ios/mop.podspec b/ios/mop.podspec index 2338ecb..fc53cb3 100644 --- a/ios/mop.podspec +++ b/ios/mop.podspec @@ -17,7 +17,7 @@ A finclip miniprogram flutter sdk. s.dependency 'Flutter' s.ios.deployment_target = '9.0' - s.dependency 'FinApplet' , '2.38.11' - s.dependency 'FinAppletExt' , '2.38.11' + s.dependency 'FinApplet' , '2.39.0-alpha20221223v06' + s.dependency 'FinAppletExt' , '2.39.0-alpha20221223v06' end