phizclip-ios-demo/demo/AppDelegate.m

43 lines
1.1 KiB
Objective-C
Raw Normal View History

2020-02-22 11:21:27 +08:00
//
// AppDelegate.m
// demo
//
// Created by 杨涛 on 2020/2/6.
// Copyright © 2020 finogeeks. All rights reserved.
//
#import "AppDelegate.h"
#import "ViewController.h"
#import "FINExtensionHelper.h"
2020-02-22 11:21:27 +08:00
#import <FinApplet/FinApplet.h>
@interface AppDelegate ()
@end
@implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// Override point for customization after application launch.
2020-11-04 10:54:48 +08:00
NSString *appKey = @"22LyZEib0gLTQdU3MUauATBwgfnTCJjdr7FCnywmAEM=";
FATConfig *config = [FATConfig configWithAppSecret:@"bdfd76cae24d4313" appKey:appKey];
2020-04-22 21:20:25 +08:00
config.apiServer = @"https://mp.finogeeks.com";
2020-03-03 15:48:55 +08:00
config.apiPrefix = @"/api/v1/mop";
2020-02-22 11:21:27 +08:00
[[FATClient sharedClient] initWithConfig:config error:nil];
[FINExtensionHelper registerCustomApis];
2020-02-22 11:21:27 +08:00
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