clean log
parent
0f74e0f6fc
commit
6e85992330
|
@ -14,10 +14,10 @@
|
||||||
|
|
||||||
- (void)setupApiWithSuccess:(void (^)(NSDictionary<NSString *,id> * _Nonnull))success failure:(void (^)(id _Nullable))failure cancel:(void (^)(void))cancel
|
- (void)setupApiWithSuccess:(void (^)(NSDictionary<NSString *,id> * _Nonnull))success failure:(void (^)(id _Nullable))failure cancel:(void (^)(void))cancel
|
||||||
{
|
{
|
||||||
NSLog(@"MOP_registerSyncExtensionApi,name=%@",self.name);
|
// NSLog(@"MOP_registerSyncExtensionApi,name=%@",self.name);
|
||||||
FlutterMethodChannel *channel = [[MopPlugin instance] methodChannel];
|
FlutterMethodChannel *channel = [[MopPlugin instance] methodChannel];
|
||||||
[[FATClient sharedClient] registerSyncExtensionApi:self.name handler:^NSDictionary *(FATAppletInfo *appletInfo, id param) {
|
[[FATClient sharedClient] registerSyncExtensionApi:self.name handler:^NSDictionary *(FATAppletInfo *appletInfo, id param) {
|
||||||
NSLog(@"MOP_registerSyncExtensionApi handler,name=%@ %@",self.name,[PhizLanguageData sharedInstance].languageCode);
|
// NSLog(@"MOP_registerSyncExtensionApi handler,name=%@ %@",self.name,[PhizLanguageData sharedInstance].languageCode);
|
||||||
|
|
||||||
if([self.name isEqualToString:@"getLanguageCodeSync"]){
|
if([self.name isEqualToString:@"getLanguageCodeSync"]){
|
||||||
NSDictionary *resultDict = [NSDictionary dictionary];
|
NSDictionary *resultDict = [NSDictionary dictionary];
|
||||||
|
|
|
@ -79,7 +79,6 @@ static MopPlugin *_instance;
|
||||||
|
|
||||||
|
|
||||||
- (void)handleMethodCall:(FlutterMethodCall*)call result:(FlutterResult)result {
|
- (void)handleMethodCall:(FlutterMethodCall*)call result:(FlutterResult)result {
|
||||||
NSLog(@"handleMethodCall, %@ %@",call.method,call.arguments);
|
|
||||||
|
|
||||||
if ([@"getPlatformVersion" isEqualToString:call.method]) {
|
if ([@"getPlatformVersion" isEqualToString:call.method]) {
|
||||||
result([@"iOS " stringByAppendingString:[[UIDevice currentDevice] systemVersion]]);
|
result([@"iOS " stringByAppendingString:[[UIDevice currentDevice] systemVersion]]);
|
||||||
|
|
Loading…
Reference in New Issue