// // AppDelegate.m // demo // // Created by 杨涛 on 2020/2/6. // Copyright © 2020 finogeeks. All rights reserved. // #import "AppDelegate.h" #import "ViewController.h" #import "FINExtensionHelper.h" #import "FINDemoClientHelper.h" #import @interface AppDelegate () @end @implementation AppDelegate - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { // Override point for customization after application launch. NSString *appKey = @"22LyZEib0gLTQdU3MUauATBwgfnTCJjdr7FCnywmAEM="; FATConfig *config = [FATConfig configWithAppSecret:@"bdfd76cae24d4313" appKey:appKey]; config.apiServer = @"https://mp.finogeeks.com"; config.apiPrefix = @"/api/v1/mop"; [[FATClient sharedClient] initWithConfig:config error:nil]; [FATClient sharedClient].delegate = [FINDemoClientHelper sharedHelper]; [FINExtensionHelper registerCustomApis]; self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; self.window.backgroundColor = [UIColor whiteColor]; self.window.rootViewController = [[ViewController alloc] init]; [self.window makeKeyAndVisible]; return YES; } @end