From 4ef73357490ee35dacbdbaff53d4e5b38bf21853 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=83=A1=E5=81=A5=E8=BE=89?= <27-hujianhui@users.noreply.gitlab.gitlab.finogeeks.club> Date: Fri, 20 May 2022 13:37:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9EremoveAllUsedApplets?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ios/Classes/Api/MOP_removeAllUsedApplets.h | 16 ++++++++++++++++ ios/Classes/Api/MOP_removeAllUsedApplets.m | 19 +++++++++++++++++++ ios/mop.podspec | 4 ++-- 3 files changed, 37 insertions(+), 2 deletions(-) create mode 100644 ios/Classes/Api/MOP_removeAllUsedApplets.h create mode 100644 ios/Classes/Api/MOP_removeAllUsedApplets.m diff --git a/ios/Classes/Api/MOP_removeAllUsedApplets.h b/ios/Classes/Api/MOP_removeAllUsedApplets.h new file mode 100644 index 0000000..0725245 --- /dev/null +++ b/ios/Classes/Api/MOP_removeAllUsedApplets.h @@ -0,0 +1,16 @@ +// +// MOP_removeAllUsedApplets.h +// mop +// +// Created by 胡健辉 on 2022/5/20. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface MOP_removeAllUsedApplets : MOPBaseApi + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/Classes/Api/MOP_removeAllUsedApplets.m b/ios/Classes/Api/MOP_removeAllUsedApplets.m new file mode 100644 index 0000000..6bc165b --- /dev/null +++ b/ios/Classes/Api/MOP_removeAllUsedApplets.m @@ -0,0 +1,19 @@ +// +// MOP_removeAllUsedApplets.m +// mop +// +// Created by 胡健辉 on 2022/5/20. +// + +#import "MOP_removeAllUsedApplets.h" +#import + +@implementation MOP_removeAllUsedApplets + +- (void)setupApiWithSuccess:(void (^)(NSDictionary * _Nonnull))success failure:(void (^)(id _Nullable))failure cancel:(void (^)(void))cancel { + NSLog(@"removeAllUsedApplets"); + [[FATClient sharedClient] clearLocalApplets]; + [[FATClient sharedClient] clearMemoryCache]; + success(@{}); +} +@end diff --git a/ios/mop.podspec b/ios/mop.podspec index 94cf3e3..9587e59 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.37.0-alpha20220428v07' - s.dependency 'FinAppletExt' , '2.37.0-alpha20220428v07' + s.dependency 'FinApplet' , '2.37.0-alpha20220520v03' + s.dependency 'FinAppletExt' , '2.37.0-alpha20220520v03' end