OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright 2013 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2013 The WebRTC Project Authors. All rights reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
11 #import "ARDAppDelegate.h" | 11 #import "ARDAppDelegate.h" |
12 | 12 |
13 #import "webrtc/base/objc/RTCLogging.h" | |
14 #import "webrtc/base/objc/RTCSSLAdapter.h" | |
13 #import "webrtc/base/objc/RTCTracing.h" | 15 #import "webrtc/base/objc/RTCTracing.h" |
14 #import "RTCLogging.h" | |
15 #import "RTCPeerConnectionFactory.h" | |
16 | 16 |
17 #import "ARDMainViewController.h" | 17 #import "ARDMainViewController.h" |
18 | 18 |
19 @implementation ARDAppDelegate { | 19 @implementation ARDAppDelegate { |
20 UIWindow *_window; | 20 UIWindow *_window; |
21 } | 21 } |
22 | 22 |
23 #pragma mark - UIApplicationDelegate methods | 23 #pragma mark - UIApplicationDelegate methods |
24 | 24 |
25 - (BOOL)application:(UIApplication *)application | 25 - (BOOL)application:(UIApplication *)application |
26 didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { | 26 didFinishLaunchingWithOptions:(NSDictionary *)base { |
tkchin_webrtc
2016/03/08 19:51:22
?
hjon_webrtc
2016/03/10 03:32:43
Huh. No idea. I noticed that once when updating ag
| |
27 [RTCPeerConnectionFactory initializeSSL]; | 27 RTCInitializeSSL(); |
28 RTCSetupInternalTracer(); | 28 RTCSetupInternalTracer(); |
29 _window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; | 29 _window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; |
30 [_window makeKeyAndVisible]; | 30 [_window makeKeyAndVisible]; |
31 ARDMainViewController *viewController = [[ARDMainViewController alloc] init]; | 31 ARDMainViewController *viewController = [[ARDMainViewController alloc] init]; |
32 _window.rootViewController = viewController; | 32 _window.rootViewController = viewController; |
33 | 33 |
34 #if defined(NDEBUG) | 34 #if defined(NDEBUG) |
35 // In debug builds the default level is LS_INFO and in non-debug builds it is | 35 // In debug builds the default level is LS_INFO and in non-debug builds it is |
36 // disabled. Continue to log to console in non-debug builds, but only | 36 // disabled. Continue to log to console in non-debug builds, but only |
37 // warnings and errors. | 37 // warnings and errors. |
38 RTCSetMinDebugLogLevel(kRTCLoggingSeverityWarning); | 38 RTCSetMinDebugLogLevel(kRTCLoggingSeverityWarning); |
39 #endif | 39 #endif |
40 | 40 |
41 return YES; | 41 return YES; |
42 } | 42 } |
43 | 43 |
44 - (void)applicationWillResignActive:(UIApplication *)application { | 44 - (void)applicationWillResignActive:(UIApplication *)application { |
45 ARDMainViewController *viewController = | 45 ARDMainViewController *viewController = |
46 (ARDMainViewController *)_window.rootViewController; | 46 (ARDMainViewController *)_window.rootViewController; |
47 [viewController applicationWillResignActive:application]; | 47 [viewController applicationWillResignActive:application]; |
48 } | 48 } |
49 | 49 |
50 - (void)applicationWillTerminate:(UIApplication *)application { | 50 - (void)applicationWillTerminate:(UIApplication *)application { |
51 RTCShutdownInternalTracer(); | 51 RTCShutdownInternalTracer(); |
52 [RTCPeerConnectionFactory deinitializeSSL]; | 52 RTCCleanupSSL(); |
53 } | 53 } |
54 | 54 |
55 @end | 55 @end |
OLD | NEW |