feat:实现copyFileAsFinFile功能

master
jizelin 2022-12-23 17:20:25 +08:00
parent 128d81ae0b
commit deb6abf1ab
2 changed files with 10 additions and 2 deletions

View File

@ -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];

View File

@ -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