Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

feat(ios) rewrite AppDelegate in Swift

Saúl Ibarra Corretgé10935ec6925e
diff --git a/ios/app/app.xcodeproj/project.pbxproj b/ios/app/app.xcodeproj/project.pbxproj
index 31d9cc6eed..e23c62906e 100644
--- a/ios/app/app.xcodeproj/project.pbxproj
+++ b/ios/app/app.xcodeproj/project.pbxproj
@@ -17,10 +17,8 @@
0BEA5C3B1F7B8F73000D0AB4 /* ComplicationController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0BEA5C3A1F7B8F73000D0AB4 /* ComplicationController.swift */; };
0BEA5C3D1F7B8F73000D0AB4 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 0BEA5C3C1F7B8F73000D0AB4 /* Assets.xcassets */; };
0BEA5C411F7B8F73000D0AB4 /* JitsiMeetCompanion.app in Embed Watch Content */ = {isa = PBXBuildFile; fileRef = 0BEA5C251F7B8F73000D0AB4 /* JitsiMeetCompanion.app */; };
- 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; };
13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB11A68108700A75B9A /* LaunchScreen.xib */; };
13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; };
- 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; };
2681BB562C7A0B42CFBA6719 /* libPods-JitsiMeet.a in Frameworks */ = {isa = PBXBuildFile; fileRef = D6152FF9E9F7B0E86F70A21D /* libPods-JitsiMeet.a */; };
361974E2A13624D7735D619D /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = 5C1BE20ECD5DEEB48FED90B5 /* PrivacyInfo.xcprivacy */; };
4341A9062CF0D63200940D93 /* hermes.xcframework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4341A9052CF0D63200940D93 /* hermes.xcframework */; };
@@ -34,6 +32,7 @@
4EB0603E260E09D000F524C5 /* SampleUploader.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4EB0603B260E09D000F524C5 /* SampleUploader.swift */; };
DE4C456121DE1E4E00EA0709 /* FIRUtilities.m in Sources */ = {isa = PBXBuildFile; fileRef = DE4C455F21DE1E4E00EA0709 /* FIRUtilities.m */; };
DEA0B7122D7EF16E0062A9F6 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = DEA0B7112D7EF16E0062A9F6 /* ViewController.swift */; };
+ DEA0B7142D7EF7590062A9F6 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = DEA0B7132D7EF7590062A9F6 /* AppDelegate.swift */; };
DEA9F289258A6EA800D4CD74 /* JitsiMeetSDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = DEA9F288258A6EA800D4CD74 /* JitsiMeetSDK.framework */; };
DEA9F28A258A6EA800D4CD74 /* JitsiMeetSDK.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = DEA9F288258A6EA800D4CD74 /* JitsiMeetSDK.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
DED016F128ECBC9D009D5E8D /* WebRTC.xcframework in Frameworks */ = {isa = PBXBuildFile; fileRef = DED016F028ECBC9D009D5E8D /* WebRTC.xcframework */; };
@@ -122,7 +121,6 @@
0B26BE6D1EC5BC3C00EEFB41 /* JitsiMeet.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = JitsiMeet.framework; sourceTree = BUILT_PRODUCTS_DIR; };
0B5418461F7C5D8C00A2DD86 /* MeetingRowController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MeetingRowController.swift; sourceTree = "<group>"; };
0B70016F1F7C51CC005944F4 /* InCallController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = InCallController.swift; sourceTree = "<group>"; };
- 0BBD021F212EB69D00CCB19F /* Types.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = Types.h; sourceTree = "<group>"; };
0BD6B4361EF82A6B00D1F4CD /* WebRTC.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = WebRTC.framework; path = "../../node_modules/react-native-webrtc/ios/WebRTC.framework"; sourceTree = "<group>"; };
0BEA5C251F7B8F73000D0AB4 /* JitsiMeetCompanion.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = JitsiMeetCompanion.app; sourceTree = BUILT_PRODUCTS_DIR; };
0BEA5C281F7B8F73000D0AB4 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Interface.storyboard; sourceTree = "<group>"; };
@@ -135,12 +133,9 @@
0BEA5C3C1F7B8F73000D0AB4 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
0BEA5C3E1F7B8F73000D0AB4 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
13B07F961A680F5B00A75B9A /* jitsi-meet.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "jitsi-meet.app"; sourceTree = BUILT_PRODUCTS_DIR; };
- 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
- 13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; };
13B07FB21A68108700A75B9A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = "<group>"; };
13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = "<group>"; };
13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
- 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
3E0F4ED943C0B12BE77F6B45 /* Pods-JitsiMeet.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-JitsiMeet.release.xcconfig"; path = "Target Support Files/Pods-JitsiMeet/Pods-JitsiMeet.release.xcconfig"; sourceTree = "<group>"; };
4341A9052CF0D63200940D93 /* hermes.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; name = hermes.xcframework; path = "../Pods/hermes-engine/destroot/Library/Frameworks/universal/hermes.xcframework"; sourceTree = "<group>"; };
4E90F93F2632D1AB001102D4 /* Atomic.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Atomic.swift; sourceTree = "<group>"; };
@@ -161,6 +156,7 @@
DE4C456021DE1E4E00EA0709 /* FIRUtilities.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FIRUtilities.h; sourceTree = "<group>"; };
DEA0B7102D7EF16D0062A9F6 /* JitsiMeet-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "JitsiMeet-Bridging-Header.h"; sourceTree = "<group>"; };
DEA0B7112D7EF16E0062A9F6 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = "<group>"; };
+ DEA0B7132D7EF7590062A9F6 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
DEA9F288258A6EA800D4CD74 /* JitsiMeetSDK.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = JitsiMeetSDK.framework; sourceTree = BUILT_PRODUCTS_DIR; };
DED016F028ECBC9D009D5E8D /* WebRTC.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; name = WebRTC.xcframework; path = ../Pods/JitsiWebRTC/WebRTC.xcframework; sourceTree = "<group>"; };
DEFDBBDB25656E3B00344B23 /* WebRTC.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; name = WebRTC.xcframework; path = "../../node_modules/react-native-webrtc/ios/WebRTC.xcframework"; sourceTree = "<group>"; };
@@ -255,15 +251,12 @@
13B07FAE1A68108700A75B9A /* src */ = {
isa = PBXGroup;
children = (
- 13B07FAF1A68108700A75B9A /* AppDelegate.h */,
- 13B07FB01A68108700A75B9A /* AppDelegate.m */,
+ DEA0B7132D7EF7590062A9F6 /* AppDelegate.swift */,
DE4C456021DE1E4E00EA0709 /* FIRUtilities.h */,
DE4C455F21DE1E4E00EA0709 /* FIRUtilities.m */,
13B07FB51A68108700A75B9A /* Images.xcassets */,
13B07FB61A68108700A75B9A /* Info.plist */,
13B07FB11A68108700A75B9A /* LaunchScreen.xib */,
- 13B07FB71A68108700A75B9A /* main.m */,
- 0BBD021F212EB69D00CCB19F /* Types.h */,
DEA0B7112D7EF16E0062A9F6 /* ViewController.swift */,
DEA0B7102D7EF16D0062A9F6 /* JitsiMeet-Bridging-Header.h */,
);
@@ -655,10 +648,9 @@
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
- 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */,
DEA0B7122D7EF16E0062A9F6 /* ViewController.swift in Sources */,
DE4C456121DE1E4E00EA0709 /* FIRUtilities.m in Sources */,
- 13B07FC11A68108700A75B9A /* main.m in Sources */,
+ DEA0B7142D7EF7590062A9F6 /* AppDelegate.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
diff --git a/ios/app/src/AppDelegate.h b/ios/app/src/AppDelegate.h
deleted file mode 100644
index 0196651666..0000000000
--- a/ios/app/src/AppDelegate.h
+++ /dev/null
@@ -1,23 +0,0 @@
-/*
- * Copyright @ 2017-present Atlassian Pty Ltd
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#import <UIKit/UIKit.h>
-
-@interface AppDelegate : UIResponder <UIApplicationDelegate>
-
-@property (nonatomic, strong) UIWindow *window;
-
-@end
diff --git a/ios/app/src/AppDelegate.m b/ios/app/src/AppDelegate.m
deleted file mode 100644
index a2a8bf8b66..0000000000
--- a/ios/app/src/AppDelegate.m
+++ /dev/null
@@ -1,145 +0,0 @@
-/*
- * Copyright @ 2018-present 8x8, Inc.
- * Copyright @ 2017-2018 Atlassian Pty Ltd
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#import "AppDelegate.h"
-#import "FIRUtilities.h"
-#import "Types.h"
-#import "jitsi_meet-Swift.h"
-
-@import Firebase;
-@import JitsiMeetSDK;
-
-@implementation AppDelegate
-
-- (BOOL)application:(UIApplication *)application
- didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
-
- self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
-
- JitsiMeet *jitsiMeet = [JitsiMeet sharedInstance];
-
-#if 0
- jitsiMeet.webRtcLoggingSeverity = WebRTCLoggingSeverityVerbose;
-#endif
-
- jitsiMeet.conferenceActivityType = JitsiMeetConferenceActivityType;
- jitsiMeet.customUrlScheme = @"org.jitsi.meet";
- jitsiMeet.universalLinkDomains = @[@"meet.jit.si", @"alpha.jitsi.net", @"beta.meet.jit.si"];
-
- jitsiMeet.defaultConferenceOptions = [JitsiMeetConferenceOptions fromBuilder:^(JitsiMeetConferenceOptionsBuilder *builder) {
-
- // For testing configOverrides a room needs to be set
- // builder.room = @"https://meet.jit.si/test0988test";
-
- [builder setFeatureFlag:@"welcomepage.enabled" withBoolean:YES];
- [builder setFeatureFlag:@"ios.screensharing.enabled" withBoolean:YES];
- [builder setFeatureFlag:@"ios.recording.enabled" withBoolean:YES];
- }];
-
- [jitsiMeet application:application didFinishLaunchingWithOptions:launchOptions];
-
- // Initialize Crashlytics and Firebase if a valid GoogleService-Info.plist file was provided.
- if ([FIRUtilities appContainsRealServiceInfoPlist]) {
- NSLog(@"Enabling Firebase");
- [FIRApp configure];
- // Crashlytics defaults to disabled with the FirebaseCrashlyticsCollectionEnabled Info.plist key.
- [[FIRCrashlytics crashlytics] setCrashlyticsCollectionEnabled:![jitsiMeet isCrashReportingDisabled]];
- }
-
- ViewController *vc = [[ViewController alloc] init];
- self.window.rootViewController = vc;
- [jitsiMeet showSplashScreen:vc.view];
-
- [self.window makeKeyAndVisible];
-
- return YES;
-}
-
-- (void) applicationWillTerminate:(UIApplication *)application {
- NSLog(@"Application will terminate!");
- // Try to leave the current meeting graceefully.
- ViewController *rootController = (ViewController *)self.window.rootViewController;
- [rootController terminate];
-}
-
-#pragma mark Linking delegate methods
-
-- (BOOL)application:(UIApplication *)application
- continueUserActivity:(NSUserActivity *)userActivity
- restorationHandler:(void (^)(NSArray<id<UIUserActivityRestoring>> *restorableObjects))restorationHandler {
-
- if ([FIRUtilities appContainsRealServiceInfoPlist]) {
- // 1. Attempt to handle Universal Links through Firebase in order to support
- // its Dynamic Links (which we utilize for the purposes of deferred deep
- // linking).
- BOOL handled
- = [[FIRDynamicLinks dynamicLinks]
- handleUniversalLink:userActivity.webpageURL
- completion:^(FIRDynamicLink * _Nullable dynamicLink, NSError * _Nullable error) {
- NSURL *firebaseUrl = [FIRUtilities extractURL:dynamicLink];
- if (firebaseUrl != nil) {
- userActivity.webpageURL = firebaseUrl;
- [[JitsiMeet sharedInstance] application:application
- continueUserActivity:userActivity
- restorationHandler:restorationHandler];
- }
- }];
-
- if (handled) {
- return handled;
- }
- }
-
- // 2. Default to plain old, non-Firebase-assisted Universal Links.
- return [[JitsiMeet sharedInstance] application:application
- continueUserActivity:userActivity
- restorationHandler:restorationHandler];
-}
-
-- (BOOL)application:(UIApplication *)app
- openURL:(NSURL *)url
- options:(NSDictionary<UIApplicationOpenURLOptionsKey,id> *)options {
-
- // This shows up during a reload in development, skip it.
- // https://github.com/firebase/firebase-ios-sdk/issues/233
- if ([[url absoluteString] containsString:@"google/link/?dismiss=1&is_weak_match=1"]) {
- return NO;
- }
-
- NSURL *openUrl = url;
-
- if ([FIRUtilities appContainsRealServiceInfoPlist]) {
- // Process Firebase Dynamic Links
- FIRDynamicLink *dynamicLink = [[FIRDynamicLinks dynamicLinks] dynamicLinkFromCustomSchemeURL:url];
- NSURL *firebaseUrl = [FIRUtilities extractURL:dynamicLink];
- if (firebaseUrl != nil) {
- openUrl = firebaseUrl;
- }
- }
-
- return [[JitsiMeet sharedInstance] application:app
- openURL:openUrl
- options:options];
-}
-
-- (UIInterfaceOrientationMask)application:(UIApplication *)application
- supportedInterfaceOrientationsForWindow:(UIWindow *)window {
- return [[JitsiMeet sharedInstance] application:application
- supportedInterfaceOrientationsForWindow:window];
-}
-
-@end
diff --git a/ios/app/src/AppDelegate.swift b/ios/app/src/AppDelegate.swift
new file mode 100644
index 0000000000..ba5e9d9758
--- /dev/null
+++ b/ios/app/src/AppDelegate.swift
@@ -0,0 +1,93 @@
+import UIKit
+import Firebase
+import JitsiMeetSDK
+
+@main
+class AppDelegate: UIResponder, UIApplicationDelegate {
+
+ var window: UIWindow?
+
+ func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
+ self.window = UIWindow(frame: UIScreen.main.bounds)
+
+ let jitsiMeet = JitsiMeet.sharedInstance()
+
+ // jitsiMeet.webRtcLoggingSeverity = .verbose
+
+ jitsiMeet.conferenceActivityType = "org.jitsi.JitsiMeet.ios.conference" // Must match the one defined in Info.plist{}
+ jitsiMeet.customUrlScheme = "org.jitsi.meet"
+ jitsiMeet.universalLinkDomains = ["meet.jit.si", "alpha.jitsi.net", "beta.meet.jit.si"]
+
+ jitsiMeet.defaultConferenceOptions = JitsiMeetConferenceOptions.fromBuilder { builder in
+ // For testing configOverrides a room needs to be set
+ // builder.room = "https://meet.jit.si/test0988test"
+
+ builder.setFeatureFlag("welcomepage.enabled", withBoolean: true)
+ builder.setFeatureFlag("ios.screensharing.enabled", withBoolean: true)
+ builder.setFeatureFlag("ios.recording.enabled", withBoolean: true)
+ }
+
+ jitsiMeet.application(application, didFinishLaunchingWithOptions: launchOptions ?? [:])
+
+ if FIRUtilities.appContainsRealServiceInfoPlist() {
+ print("Enabling Firebase")
+ FirebaseApp.configure()
+ Crashlytics.crashlytics().setCrashlyticsCollectionEnabled(!jitsiMeet.isCrashReportingDisabled())
+ }
+
+ let vc = ViewController()
+ self.window?.rootViewController = vc
+ jitsiMeet.showSplashScreen(vc.view)
+
+ self.window?.makeKeyAndVisible()
+
+ return true
+ }
+
+ func applicationWillTerminate(_ application: UIApplication) {
+ print("Application will terminate!")
+ if let rootController = self.window?.rootViewController as? ViewController {
+ rootController.terminate()
+ }
+ }
+
+ // MARK: Linking delegate methods
+
+ func application(_ application: UIApplication, continue userActivity: NSUserActivity, restorationHandler: @escaping ([UIUserActivityRestoring]?) -> Void) -> Bool {
+ if FIRUtilities.appContainsRealServiceInfoPlist() {
+ let handled = DynamicLinks.dynamicLinks().handleUniversalLink(userActivity.webpageURL!) { dynamicLink, error in
+ if let firebaseUrl = FIRUtilities.extractURL(dynamicLink) {
+ userActivity.webpageURL = firebaseUrl
+ JitsiMeet.sharedInstance().application(application, continue: userActivity, restorationHandler: restorationHandler)
+ }
+ }
+
+ if handled {
+ return handled
+ }
+ }
+
+ return JitsiMeet.sharedInstance().application(application, continue: userActivity, restorationHandler: restorationHandler)
+ }
+
+ func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey: Any] = [:]) -> Bool {
+ if url.absoluteString.contains("google/link/?dismiss=1&is_weak_match=1") {
+ return false
+ }
+
+ var openUrl = url
+
+ if FIRUtilities.appContainsRealServiceInfoPlist() {
+ if let dynamicLink = DynamicLinks.dynamicLinks().dynamicLink(fromCustomSchemeURL: url),
+ let firebaseUrl = FIRUtilities.extractURL(dynamicLink) {
+ openUrl = firebaseUrl
+ }
+ }
+
+ return JitsiMeet.sharedInstance().application(app, open: openUrl, options: options)
+ }
+
+ func application(_ application: UIApplication, supportedInterfaceOrientationsFor window: UIWindow?) -> UIInterfaceOrientationMask {
+ return JitsiMeet.sharedInstance().application(application, supportedInterfaceOrientationsFor: window)
+ }
+}
diff --git a/ios/app/src/Base.lproj/LaunchScreen.xib b/ios/app/src/Base.lproj/LaunchScreen.xib
index deb56c253c..ec4e4461ce 100644
--- a/ios/app/src/Base.lproj/LaunchScreen.xib
+++ b/ios/app/src/Base.lproj/LaunchScreen.xib
@@ -1,8 +1,10 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="7702" systemVersion="14D136" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" colorMatched="YES">
+<?xml version="1.0" encoding="UTF-8"?>
+<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="23504" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" colorMatched="YES">
+ <device id="retina6_12" orientation="portrait" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
- <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="7701"/>
+ <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="23506"/>
+ <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
diff --git a/ios/app/src/JitsiMeet-Bridging-Header.h b/ios/app/src/JitsiMeet-Bridging-Header.h
index 1b2cb5d6d0..299226de92 100644
--- a/ios/app/src/JitsiMeet-Bridging-Header.h
+++ b/ios/app/src/JitsiMeet-Bridging-Header.h
@@ -2,3 +2,4 @@
// Use this file to import your target's public headers that you would like to expose to Swift.
//
+#import "FIRUtilities.h"
diff --git a/ios/app/src/Types.h b/ios/app/src/Types.h
deleted file mode 100644
index c44cd888ef..0000000000
--- a/ios/app/src/Types.h
+++ /dev/null
@@ -1,7 +0,0 @@
-
-#import <Foundation/Foundation.h>
-
-// This must match what's defined in the NSUserActivityTypes array in the
-// Info.plist file.
-static NSString *const JitsiMeetConferenceActivityType
- = @"org.jitsi.JitsiMeet.ios.conference";
diff --git a/ios/app/src/main.m b/ios/app/src/main.m
deleted file mode 100644
index e311bbf66a..0000000000
--- a/ios/app/src/main.m
+++ /dev/null
@@ -1,28 +0,0 @@
-/*
- * Copyright @ 2017-present Atlassian Pty Ltd
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#import <UIKit/UIKit.h>
-
-#import "AppDelegate.h"
-
-int main(int argc, char * argv[]) {
- @autoreleasepool {
- return UIApplicationMain(
- argc, argv,
- nil,
- NSStringFromClass([AppDelegate class]));
- }
-}
diff --git a/ios/sdk/src/JitsiMeet.h b/ios/sdk/src/JitsiMeet.h
index 4614954dcb..24b103be67 100644
--- a/ios/sdk/src/JitsiMeet.h
+++ b/ios/sdk/src/JitsiMeet.h
@@ -82,7 +82,7 @@ typedef NS_ENUM(NSInteger, WebRTCLoggingSeverity) {
options:(NSDictionary<UIApplicationOpenURLOptionsKey,id> *_Nonnull)options;
- (UIInterfaceOrientationMask)application:(UIApplication *_Nonnull)application
- supportedInterfaceOrientationsForWindow:(UIWindow *_Nonnull)window;
+ supportedInterfaceOrientationsForWindow:(UIWindow *_Nullable)window;
#pragma mark - Utility methods