From 0a5217e652bfdfb6acbbcc1dee5492a8224a0525 Mon Sep 17 00:00:00 2001 From: wangzhaoyao Date: Thu, 25 Aug 2022 00:27:14 +0800 Subject: [PATCH] =?UTF-8?q?1.=E5=AE=9E=E7=8E=B0chooseAvatar?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ios/Classes/Api/MOPAppletDelegate.m | 11 +++++++++++ ios/mop.podspec | 4 ++-- 2 files changed, 13 insertions(+), 2 deletions(-) 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