From f2077784db0f83851f587f7a4bd5f017ab50c91a Mon Sep 17 00:00:00 2001 From: stewen Date: Mon, 14 Aug 2023 11:55:29 +0800 Subject: [PATCH] add log --- example/ios/Flutter/AppFrameworkInfo.plist | 2 +- ios/Classes/Api/MOPAppletDelegate.m | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/example/ios/Flutter/AppFrameworkInfo.plist b/example/ios/Flutter/AppFrameworkInfo.plist index 8d4492f..9625e10 100644 --- a/example/ios/Flutter/AppFrameworkInfo.plist +++ b/example/ios/Flutter/AppFrameworkInfo.plist @@ -21,6 +21,6 @@ CFBundleVersion 1.0 MinimumOSVersion - 9.0 + 11.0 diff --git a/ios/Classes/Api/MOPAppletDelegate.m b/ios/Classes/Api/MOPAppletDelegate.m index 7956019..79089ea 100644 --- a/ios/Classes/Api/MOPAppletDelegate.m +++ b/ios/Classes/Api/MOPAppletDelegate.m @@ -57,6 +57,7 @@ } - (BOOL)appletInfo:(FATAppletInfo *)appletInfo didClickMoreBtnAtPath:(NSString *)path { + NSLog(@"didClickMoreBtnAtPath:%@,appletInfo=%@",path,appletInfo); return NO; // __block BOOL flag; // FlutterMethodChannel *channel = [[MopPlugin instance] methodChannel]; @@ -73,7 +74,7 @@ } - (NSArray> *)customMenusInApplet:(FATAppletInfo *)appletInfo atPath:(NSString *)path { - NSLog(@"customMenusInApplet"); + NSLog(@"customMenusInApplet:%@,appletInfo=%@",path,appletInfo); __block NSArray *list; FlutterMethodChannel *channel = [[MopPlugin instance] methodChannel]; [channel invokeMethod:@"extensionApi:getCustomMenus" arguments:@{@"appId": appletInfo.appId} result:^(id _Nullable result) { @@ -83,7 +84,8 @@ } }]; CFRunLoopRun(); - + + NSLog(@"customMenusInApplet:%@,list=%@",path,list); NSMutableArray *models = [NSMutableArray array]; for (NSDictionary *data in list) { MopCustomMenuModel *model = [[MopCustomMenuModel alloc] init];