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