Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(487)

Unified Diff: webrtc/build/ios/SDK/PodTest/PodTest/AppDelegate.m

Issue 1829783003: Build dynamic framework with podspec for Objective-C API. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Import Foundation instead of UIKit Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/build/ios/SDK/PodTest/PodTest/AppDelegate.m
diff --git a/webrtc/base/objc/RTCSSLAdapter.mm b/webrtc/build/ios/SDK/PodTest/PodTest/AppDelegate.m
similarity index 56%
copy from webrtc/base/objc/RTCSSLAdapter.mm
copy to webrtc/build/ios/SDK/PodTest/PodTest/AppDelegate.m
index c881a4487edbd877bc493b429ad91b38ef92a7be..9eaa1682673f01696b2bf02a555873393c21c9e8 100644
--- a/webrtc/base/objc/RTCSSLAdapter.mm
+++ b/webrtc/build/ios/SDK/PodTest/PodTest/AppDelegate.m
@@ -8,19 +8,19 @@
* be found in the AUTHORS file in the root of the source tree.
*/
-#import "RTCSSLAdapter.h"
+#import "AppDelegate.h"
+#import <WebRTC/WebRTC.h>
-#include "webrtc/base/checks.h"
-#include "webrtc/base/ssladapter.h"
+@implementation AppDelegate
-BOOL RTCInitializeSSL() {
- BOOL initialized = rtc::InitializeSSL();
- RTC_DCHECK(initialized);
- return initialized;
+- (BOOL)application:(UIApplication *)application
+ didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
+ RTCInitializeSSL();
+ return YES;
}
-BOOL RTCCleanupSSL() {
- BOOL cleanedUp = rtc::CleanupSSL();
- RTC_DCHECK(cleanedUp);
- return cleanedUp;
+- (void)applicationWillTerminate:(UIApplication *)application {
+ RTCCleanupSSL();
}
+
+@end

Powered by Google App Engine
This is Rietveld 408576698