diff --git a/ios/Classes/Api/MOPAppletDelegate.m b/ios/Classes/Api/MOPAppletDelegate.m index 7ef44c8..027fa9c 100644 --- a/ios/Classes/Api/MOPAppletDelegate.m +++ b/ios/Classes/Api/MOPAppletDelegate.m @@ -142,6 +142,17 @@ static NSString *scheme = @"fatae55433be2f62915";//App对应的scheme }]; } + +- (void)chooseAvatarWithAppletInfo:(FATAppletInfo *)appletInfo bindChooseAvatar:(void (^)(NSDictionary *result))bindChooseAvatar { + + NSDictionary *params = @{@"name":@"chooseAvatar"}; + + FlutterMethodChannel *channel = [[MopPlugin instance] methodChannel]; + [channel invokeMethod:@"extensionApi:chooseAvatar" arguments:params result:^(id _Nullable result) { + !bindChooseAvatar?: bindChooseAvatar(result); + }]; +} + @end @implementation NSString (FATEncode) diff --git a/ios/mop.podspec b/ios/mop.podspec index c7bbf2d..19a3a85 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.0-alpha20220812v07' - s.dependency 'FinAppletExt' , '2.38.0-alpha20220812v07' + s.dependency 'FinApplet' , '2.37.10-alpha20220824v04' + s.dependency 'FinAppletExt' , '2.37.10-alpha20220824v04' end