Remove old HelloLinphone tutorial

This commit is contained in:
QuentinArguillere
2020-08-28 17:00:33 +02:00
parent 8b4eda1eed
commit db4fb58bbb
14 changed files with 0 additions and 1408 deletions

View File

@@ -1,418 +0,0 @@
// !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
objectVersion = 50;
objects = {
/* Begin PBXBuildFile section */
6109A53324A1FB600080B339 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6109A53224A1FB600080B339 /* AppDelegate.swift */; };
6109A53524A1FB600080B339 /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6109A53424A1FB600080B339 /* SceneDelegate.swift */; };
6109A53724A1FB600080B339 /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6109A53624A1FB600080B339 /* ContentView.swift */; };
6109A53924A1FB610080B339 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 6109A53824A1FB610080B339 /* Assets.xcassets */; };
6109A53C24A1FB610080B339 /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 6109A53B24A1FB610080B339 /* Preview Assets.xcassets */; };
6109A53F24A1FB610080B339 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 6109A53D24A1FB610080B339 /* LaunchScreen.storyboard */; };
77A49EE3C36F606277338500 /* Pods_HelloLinphone.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 77C78D4B854746B756F138EC /* Pods_HelloLinphone.framework */; };
/* End PBXBuildFile section */
/* Begin PBXFileReference section */
58D449155D749B90DECEF33F /* Pods-HelloLinphone.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-HelloLinphone.debug.xcconfig"; path = "Target Support Files/Pods-HelloLinphone/Pods-HelloLinphone.debug.xcconfig"; sourceTree = "<group>"; };
6109A52F24A1FB600080B339 /* HelloLinphone.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = HelloLinphone.app; sourceTree = BUILT_PRODUCTS_DIR; };
6109A53224A1FB600080B339 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
6109A53424A1FB600080B339 /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = "<group>"; };
6109A53624A1FB600080B339 /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = "<group>"; };
6109A53824A1FB610080B339 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
6109A53B24A1FB610080B339 /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = "<group>"; };
6109A53E24A1FB610080B339 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
6109A54024A1FB610080B339 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
77C78D4B854746B756F138EC /* Pods_HelloLinphone.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_HelloLinphone.framework; sourceTree = BUILT_PRODUCTS_DIR; };
CCABD171CB8B5F0B32B7C819 /* Pods-HelloLinphone.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-HelloLinphone.release.xcconfig"; path = "Target Support Files/Pods-HelloLinphone/Pods-HelloLinphone.release.xcconfig"; sourceTree = "<group>"; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
6109A52C24A1FB600080B339 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
77A49EE3C36F606277338500 /* Pods_HelloLinphone.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */
/* Begin PBXGroup section */
12F6903ABA1B6D98B920C503 /* Frameworks */ = {
isa = PBXGroup;
children = (
77C78D4B854746B756F138EC /* Pods_HelloLinphone.framework */,
);
name = Frameworks;
sourceTree = "<group>";
};
6109A52624A1FB600080B339 = {
isa = PBXGroup;
children = (
6109A53124A1FB600080B339 /* HelloLinphone */,
6109A53024A1FB600080B339 /* Products */,
7DEB177E8F89B4C059EAD432 /* Pods */,
12F6903ABA1B6D98B920C503 /* Frameworks */,
);
sourceTree = "<group>";
};
6109A53024A1FB600080B339 /* Products */ = {
isa = PBXGroup;
children = (
6109A52F24A1FB600080B339 /* HelloLinphone.app */,
);
name = Products;
sourceTree = "<group>";
};
6109A53124A1FB600080B339 /* HelloLinphone */ = {
isa = PBXGroup;
children = (
6109A53224A1FB600080B339 /* AppDelegate.swift */,
6109A53424A1FB600080B339 /* SceneDelegate.swift */,
6109A53624A1FB600080B339 /* ContentView.swift */,
6109A53824A1FB610080B339 /* Assets.xcassets */,
6109A53D24A1FB610080B339 /* LaunchScreen.storyboard */,
6109A54024A1FB610080B339 /* Info.plist */,
6109A53A24A1FB610080B339 /* Preview Content */,
);
path = HelloLinphone;
sourceTree = "<group>";
};
6109A53A24A1FB610080B339 /* Preview Content */ = {
isa = PBXGroup;
children = (
6109A53B24A1FB610080B339 /* Preview Assets.xcassets */,
);
path = "Preview Content";
sourceTree = "<group>";
};
7DEB177E8F89B4C059EAD432 /* Pods */ = {
isa = PBXGroup;
children = (
58D449155D749B90DECEF33F /* Pods-HelloLinphone.debug.xcconfig */,
CCABD171CB8B5F0B32B7C819 /* Pods-HelloLinphone.release.xcconfig */,
);
name = Pods;
path = Pods;
sourceTree = "<group>";
};
/* End PBXGroup section */
/* Begin PBXNativeTarget section */
6109A52E24A1FB600080B339 /* HelloLinphone */ = {
isa = PBXNativeTarget;
buildConfigurationList = 6109A54324A1FB610080B339 /* Build configuration list for PBXNativeTarget "HelloLinphone" */;
buildPhases = (
F68B6F6ACD48C202C8DC4322 /* [CP] Check Pods Manifest.lock */,
6109A52B24A1FB600080B339 /* Sources */,
6109A52C24A1FB600080B339 /* Frameworks */,
6109A52D24A1FB600080B339 /* Resources */,
724EF46BD0CBE3A1971D77D0 /* [CP] Embed Pods Frameworks */,
);
buildRules = (
);
dependencies = (
);
name = HelloLinphone;
productName = HelloLinphone;
productReference = 6109A52F24A1FB600080B339 /* HelloLinphone.app */;
productType = "com.apple.product-type.application";
};
/* End PBXNativeTarget section */
/* Begin PBXProject section */
6109A52724A1FB600080B339 /* Project object */ = {
isa = PBXProject;
attributes = {
LastSwiftUpdateCheck = 1150;
LastUpgradeCheck = 1150;
ORGANIZATIONNAME = belledonne;
TargetAttributes = {
6109A52E24A1FB600080B339 = {
CreatedOnToolsVersion = 11.5;
};
};
};
buildConfigurationList = 6109A52A24A1FB600080B339 /* Build configuration list for PBXProject "HelloLinphone" */;
compatibilityVersion = "Xcode 9.3";
developmentRegion = en;
hasScannedForEncodings = 0;
knownRegions = (
en,
Base,
);
mainGroup = 6109A52624A1FB600080B339;
productRefGroup = 6109A53024A1FB600080B339 /* Products */;
projectDirPath = "";
projectRoot = "";
targets = (
6109A52E24A1FB600080B339 /* HelloLinphone */,
);
};
/* End PBXProject section */
/* Begin PBXResourcesBuildPhase section */
6109A52D24A1FB600080B339 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
6109A53F24A1FB610080B339 /* LaunchScreen.storyboard in Resources */,
6109A53C24A1FB610080B339 /* Preview Assets.xcassets in Resources */,
6109A53924A1FB610080B339 /* Assets.xcassets in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */
/* Begin PBXShellScriptBuildPhase section */
724EF46BD0CBE3A1971D77D0 /* [CP] Embed Pods Frameworks */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-HelloLinphone/Pods-HelloLinphone-frameworks-${CONFIGURATION}-input-files.xcfilelist",
);
name = "[CP] Embed Pods Frameworks";
outputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-HelloLinphone/Pods-HelloLinphone-frameworks-${CONFIGURATION}-output-files.xcfilelist",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-HelloLinphone/Pods-HelloLinphone-frameworks.sh\"\n";
showEnvVarsInLog = 0;
};
F68B6F6ACD48C202C8DC4322 /* [CP] Check Pods Manifest.lock */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
);
inputPaths = (
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
"${PODS_ROOT}/Manifest.lock",
);
name = "[CP] Check Pods Manifest.lock";
outputFileListPaths = (
);
outputPaths = (
"$(DERIVED_FILE_DIR)/Pods-HelloLinphone-checkManifestLockResult.txt",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
showEnvVarsInLog = 0;
};
/* End PBXShellScriptBuildPhase section */
/* Begin PBXSourcesBuildPhase section */
6109A52B24A1FB600080B339 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
6109A53324A1FB600080B339 /* AppDelegate.swift in Sources */,
6109A53524A1FB600080B339 /* SceneDelegate.swift in Sources */,
6109A53724A1FB600080B339 /* ContentView.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */
/* Begin PBXVariantGroup section */
6109A53D24A1FB610080B339 /* LaunchScreen.storyboard */ = {
isa = PBXVariantGroup;
children = (
6109A53E24A1FB610080B339 /* Base */,
);
name = LaunchScreen.storyboard;
sourceTree = "<group>";
};
/* End PBXVariantGroup section */
/* Begin XCBuildConfiguration section */
6109A54124A1FB610080B339 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_ENABLE_OBJC_WEAK = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = dwarf;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
GCC_C_LANGUAGE_STANDARD = gnu11;
GCC_DYNAMIC_NO_PIC = NO;
GCC_NO_COMMON_BLOCKS = YES;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
"$(inherited)",
);
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 13.5;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
};
name = Debug;
};
6109A54224A1FB610080B339 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_ENABLE_OBJC_WEAK = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_C_LANGUAGE_STANDARD = gnu11;
GCC_NO_COMMON_BLOCKS = YES;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 13.5;
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
SDKROOT = iphoneos;
SWIFT_COMPILATION_MODE = wholemodule;
SWIFT_OPTIMIZATION_LEVEL = "-O";
VALIDATE_PRODUCT = YES;
};
name = Release;
};
6109A54424A1FB610080B339 /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 58D449155D749B90DECEF33F /* Pods-HelloLinphone.debug.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_ASSET_PATHS = "\"HelloLinphone/Preview Content\"";
DEVELOPMENT_TEAM = Z2V957B3D6;
ENABLE_PREVIEWS = YES;
INFOPLIST_FILE = HelloLinphone/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = belledonne.HelloLinphone;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Debug;
};
6109A54524A1FB610080B339 /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = CCABD171CB8B5F0B32B7C819 /* Pods-HelloLinphone.release.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_ASSET_PATHS = "\"HelloLinphone/Preview Content\"";
DEVELOPMENT_TEAM = Z2V957B3D6;
ENABLE_PREVIEWS = YES;
INFOPLIST_FILE = HelloLinphone/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = belledonne.HelloLinphone;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Release;
};
/* End XCBuildConfiguration section */
/* Begin XCConfigurationList section */
6109A52A24A1FB600080B339 /* Build configuration list for PBXProject "HelloLinphone" */ = {
isa = XCConfigurationList;
buildConfigurations = (
6109A54124A1FB610080B339 /* Debug */,
6109A54224A1FB610080B339 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
6109A54324A1FB610080B339 /* Build configuration list for PBXNativeTarget "HelloLinphone" */ = {
isa = XCConfigurationList;
buildConfigurations = (
6109A54424A1FB610080B339 /* Debug */,
6109A54524A1FB610080B339 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
rootObject = 6109A52724A1FB600080B339 /* Project object */;
}

View File

@@ -1,7 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<Workspace
version = "1.0">
<FileRef
location = "self:HelloLinphone.xcodeproj">
</FileRef>
</Workspace>

View File

@@ -1,8 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>

View File

@@ -1,10 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<Workspace
version = "1.0">
<FileRef
location = "group:HelloLinphone.xcodeproj">
</FileRef>
<FileRef
location = "group:Pods/Pods.xcodeproj">
</FileRef>
</Workspace>

View File

@@ -1,8 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>

View File

@@ -1,37 +0,0 @@
//
// AppDelegate.swift
// HelloLinphone
//
// Created by Danmei Chen on 23/06/2020.
// Copyright © 2020 belledonne. All rights reserved.
//
import UIKit
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
return true
}
// MARK: UISceneSession Lifecycle
func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration {
// Called when a new scene session is being created.
// Use this method to select a configuration to create the new scene with.
return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role)
}
func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set<UISceneSession>) {
// Called when the user discards a scene session.
// If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions.
// Use this method to release any resources that were specific to the discarded scenes, as they will not return.
}
}

View File

@@ -1,98 +0,0 @@
{
"images" : [
{
"idiom" : "iphone",
"scale" : "2x",
"size" : "20x20"
},
{
"idiom" : "iphone",
"scale" : "3x",
"size" : "20x20"
},
{
"idiom" : "iphone",
"scale" : "2x",
"size" : "29x29"
},
{
"idiom" : "iphone",
"scale" : "3x",
"size" : "29x29"
},
{
"idiom" : "iphone",
"scale" : "2x",
"size" : "40x40"
},
{
"idiom" : "iphone",
"scale" : "3x",
"size" : "40x40"
},
{
"idiom" : "iphone",
"scale" : "2x",
"size" : "60x60"
},
{
"idiom" : "iphone",
"scale" : "3x",
"size" : "60x60"
},
{
"idiom" : "ipad",
"scale" : "1x",
"size" : "20x20"
},
{
"idiom" : "ipad",
"scale" : "2x",
"size" : "20x20"
},
{
"idiom" : "ipad",
"scale" : "1x",
"size" : "29x29"
},
{
"idiom" : "ipad",
"scale" : "2x",
"size" : "29x29"
},
{
"idiom" : "ipad",
"scale" : "1x",
"size" : "40x40"
},
{
"idiom" : "ipad",
"scale" : "2x",
"size" : "40x40"
},
{
"idiom" : "ipad",
"scale" : "1x",
"size" : "76x76"
},
{
"idiom" : "ipad",
"scale" : "2x",
"size" : "76x76"
},
{
"idiom" : "ipad",
"scale" : "2x",
"size" : "83.5x83.5"
},
{
"idiom" : "ios-marketing",
"scale" : "1x",
"size" : "1024x1024"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

View File

@@ -1,6 +0,0 @@
{
"info" : {
"author" : "xcode",
"version" : 1
}
}

View File

@@ -1,25 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13122.16" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13104.12"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<scenes>
<!--View Controller-->
<scene sceneID="EHf-IW-A2E">
<objects>
<viewController id="01J-lp-oVM" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="backgroundColor" xcode11CocoaTouchSystemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
<viewLayoutGuide key="safeArea" id="6Tk-OE-BBY"/>
</view>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="53" y="375"/>
</scene>
</scenes>
</document>

View File

@@ -1,625 +0,0 @@
//
// ContentView.swift
// HelloLinphone
//
// Created by Danmei Chen on 23/06/2020.
// Copyright © 2020 belledonne. All rights reserved.
//
import linphonesw
import SwiftUI
import AVFoundation
enum ChatroomTutorialState
{
case Unstarted
case Starting
case Started
}
func toString(tutorialState state : ChatroomTutorialState) -> String
{
switch (state)
{
case ChatroomTutorialState.Unstarted : return "Unstarted"
case ChatroomTutorialState.Starting: return "Starting"
case ChatroomTutorialState.Started: return "Started"
}
}
class LinphoneTutorialContext : ObservableObject
{
var mCore: Core! // We need a Core for... anything, basically
@Published var coreVersion: String = Core.getVersion
/*------------ Logs related variables ------------------------*/
var log : LoggingService?
var logManager : LinphoneLoggingServiceManager?
@Published var logsEnabled : Bool = true
/*------------ Registration tutorial related variables -------*/
var proxy_cfg: ProxyConfig!
let mRegistrationDelegate = LinphoneRegistrationDelegate()
@Published var id : String = "sip:peche5@sip.linphone.org"
@Published var passwd : String = "peche5"
@Published var loggedIn: Bool = false
/*------------ Call tutorial related variables ---------------*/
let mPhoneStateTracer = LinconePhoneStateTracker()
var mCall: Call!
var mVideoDevices : [String] = []
var mUsedVideoDeviceId : Int = 0
@Published var audioEnabled : Bool = true
@Published var videoEnabled : Bool = false
@Published var speakerEnabled : Bool = false
@Published var callRunning : Bool = false
@Published var dest : String = "sip:arguillq@sip.linphone.org"
/*--- Variable shared between Basic and FlexiSip chatrooms ----
-------- "A" always initiates the chat, "B" answers --------*/
let mIdA = "sip:peche5@sip.linphone.org", mIdB = "sip:jehan-iphone@sip.linphone.org"
var mPasswordA = "peche5", mPasswordB = "cotcot"
var mProxyConfigA, mProxyConfigB : ProxyConfig!
var mChatMessage : ChatMessage?
let mCoreChatDelegate = LinphoneCoreChatDelegate()
let mChatMessageDelegate = LinphoneChatMessageTracker()
let mChatRoomDelegate = LinphoneChatRoomStateTracker()
let mRegistrationConfirmDelegate = LinphoneRegistrationConfirmDelegate()
@Published var proxyConfigARegistered : Bool = false
@Published var proxyConfigBRegistered : Bool = false
@Published var sLastReceivedText : String = ""
@Published var sReplyText: String = ""
/*---- FlexiSip Group Chatroom tutorial related variables ----*/
let mFactoryUri = "sip:conference-factory@sip.linphone.org"
var mChatRoomA, mChatRoomB : ChatRoom?
@Published var chatroomAState = ChatroomTutorialState.Unstarted
/*---- Basic Chatroom tutorial related variables ----*/
var mBasicChatRoom : ChatRoom?
var mBasicChatroomProxyConfigRegistered : Bool = false
@Published var basicChatRoomState = ChatroomTutorialState.Unstarted
init()
{
mChatRoomDelegate.tutorialContext = self
mCoreChatDelegate.tutorialContext = self
mRegistrationConfirmDelegate.tutorialContext = self
let factory = Factory.Instance // Instanciate
logManager = LinphoneLoggingServiceManager()
logManager!.tutorialContext = self;
log = LoggingService.Instance
log!.addDelegate(delegate: logManager!)
log!.logLevel = LogLevel.Debug
factory.enableLogCollection(state: LogCollectionState.Enabled)
// Initialize Linphone Core
try? mCore = factory.createCore(configPath: "", factoryConfigPath: "", systemContext: nil)
// main loop for receiving notifications and doing background linphonecore work:
mCore.autoIterateEnabled = true
try? mCore.start()
mVideoDevices = mCore.videoDevicesList
// Important ! Will notify when config are registered so that we can proceed with the chatroom creations
mCore.addDelegate(delegate: mRegistrationConfirmDelegate)
// Handle chat message reception
mCore.addDelegate(delegate: mCoreChatDelegate)
}
func createProxyConfigAndRegister(identity sId : String, password sPwd : String, factoryUri fUri : String) -> ProxyConfig?
{
let factory = Factory.Instance
do {
let proxy_cfg = try mCore.createProxyConfig()
let address = try factory.createAddress(addr: sId)
let info = try factory.createAuthInfo(username: address.username, userid: "", passwd: sPwd, ha1: "", realm: "", domain: address.domain)
mCore.addAuthInfo(info: info)
try proxy_cfg.setIdentityaddress(newValue: address)
let server_addr = "sip:" + address.domain + ";transport=tls"
try proxy_cfg.setServeraddr(newValue: server_addr)
proxy_cfg.registerEnabled = true
proxy_cfg.conferenceFactoryUri = fUri
try mCore.addProxyConfig(config: proxy_cfg)
if ( mCore.defaultProxyConfig == nil)
{
// IMPORTANT : default proxy config setting MUST be done AFTER adding the config to the core !
mCore.defaultProxyConfig = proxy_cfg
}
return proxy_cfg
} catch {
print(error)
}
return nil
}
func registrationExample()
{
mCore.addDelegate(delegate: mRegistrationDelegate) // Add registration specific logs
proxy_cfg = createProxyConfigAndRegister(identity: id, password: passwd, factoryUri: "")
if (proxy_cfg != nil)
{
loggedIn = true
}
}
// Initiate a call
func outgoingCallExample()
{
do {
let callParams = try mCore.createCallParams(call: nil)
callParams.videoEnabled = videoEnabled;
callParams.audioEnabled = audioEnabled;
if (!callRunning)
{
mCore.addDelegate(delegate: mPhoneStateTracer)
let callDest = try Factory.Instance.createAddress(addr: dest)
// Place an outgoing call
mCall = mCore.inviteAddressWithParams(addr: callDest, params: callParams)
if (mCall == nil) {
print("Could not place call to \(dest)\n")
} else {
print("Call to \(dest) is in progress...")
callRunning = true
}
}
else
{
try mCall.update(params: callParams)
}
} catch {
print(error)
}
}
// Terminate a call
func stopOutgoingCallExample()
{
if (callRunning)
{
callRunning = false
if (mCall.state != Call.State.End){
// terminate the call
print("Terminating the call...\n")
do {
try mCall.terminate()
} catch {
callRunning = true
print(error)
}
}
mCore.removeDelegate(delegate: self.mPhoneStateTracer)
}
}
func registerChatRoomsProxyConfigurations()
{
mProxyConfigA = createProxyConfigAndRegister(identity : mIdA, password : mPasswordA, factoryUri: mFactoryUri)!
mProxyConfigB = createProxyConfigAndRegister(identity : mIdB, password : mPasswordB, factoryUri: mFactoryUri)!
}
func speaker()
{
speakerEnabled = !speakerEnabled
do {
try AVAudioSession.sharedInstance().overrideOutputAudioPort(
speakerEnabled ?
AVAudioSession.PortOverride.speaker : AVAudioSession.PortOverride.none
)
} catch {
print(error)
}
}
func changeVideoDevice()
{
mUsedVideoDeviceId = (mUsedVideoDeviceId + 1) % mVideoDevices.count
do {
try mCore.setVideodevice(newValue: mVideoDevices[mUsedVideoDeviceId])
} catch {
print(error)
}
}
func createChatRoom(isBasic isBasicChatroom : Bool)
{
// proxy configuration must first be initialized and registered
if (!proxyConfigARegistered || !proxyConfigBRegistered) { return }
do {
let chatDest = [mProxyConfigB.contact!]
let chatParams = try mCore.createDefaultChatRoomParams()
if (isBasicChatroom && mBasicChatRoom == nil)
{
chatParams.backend = ChatRoomBackend.Basic
mBasicChatRoom = try mCore.createChatRoom(params: chatParams
, localAddr: mProxyConfigA.contact!
, subject: "Basic ChatRoom"
, participants: chatDest)
basicChatRoomState = ChatroomTutorialState.Started
}
else if (!isBasicChatroom && mChatRoomA == nil)
{
chatParams.backend = ChatRoomBackend.FlexisipChat
chatParams.encryptionEnabled = false
chatParams.groupEnabled = false
mChatRoomA = try mCore.createChatRoom(params: chatParams
, localAddr: mProxyConfigA.contact!
, subject: "Flexisip ChatRoom"
, participants: chatDest)
mChatRoomA!.addDelegate(delegate: mChatRoomDelegate)
chatroomAState = ChatroomTutorialState.Starting
}
} catch {
print(error)
}
DispatchQueue.global(qos: .userInitiated).async {
while((isBasicChatroom ? self.basicChatRoomState : self.chatroomAState) != ChatroomTutorialState.Started){
usleep(1000000)
}
if let chatRoom = (isBasicChatroom) ? self.mBasicChatRoom : self.mChatRoomA
{
do
{
self.mChatMessage = try chatRoom.createMessage(message: "Hello, \((isBasicChatroom) ? "Basic" : "Flexisip") World !")
self.mChatMessage!.addDelegate(delegate: self.mChatMessageDelegate)
self.mChatMessage!.send()
} catch {
print(error)
}
}
}
}
func groupChatReply()
{
if let chatRoom = mChatRoomB {
do
{
self.mChatMessage = try chatRoom.createMessage(message: sReplyText)
self.mChatMessage!.send()
} catch {
print(error)
}
}
else {
sLastReceivedText = "Initialize chat first !"
}
}
}
struct ContentView: View {
@ObservedObject var tutorialContext = LinphoneTutorialContext()
var body: some View {
VStack {
Group {
HStack {
Text("Identity :")
.font(.title)
TextField("", text : $tutorialContext.id)
.textFieldStyle(RoundedBorderTextFieldStyle())
}
HStack {
Text("Password :")
.font(.title)
TextField("", text : $tutorialContext.passwd)
.textFieldStyle(RoundedBorderTextFieldStyle())
}
VStack {
Button(action: tutorialContext.registrationExample)
{
Text("Login")
.font(.largeTitle)
.foregroundColor(Color.white)
.frame(width: 100.0, height: 42.0)
.background(Color.gray)
}
HStack {
Text("Login State : ")
.font(.footnote)
Text(tutorialContext.loggedIn ? "Looged in" : "Unregistered")
.font(.footnote)
.foregroundColor(tutorialContext.loggedIn ? Color.green : Color.black)
}
}
}
Spacer()
VStack(spacing: 0.0) {
Text("Call Settings")
.font(.largeTitle)
HStack {
Text("Call destination :")
TextField("", text : $tutorialContext.dest)
.textFieldStyle(RoundedBorderTextFieldStyle())
}
HStack {
VStack(alignment: .leading) {
Toggle(isOn: $tutorialContext.audioEnabled) {
Text("Audio")
}
Toggle(isOn: $tutorialContext.videoEnabled) {
Text("Video")
}
HStack {
Button(action: tutorialContext.changeVideoDevice)
{
Text("Change camera")
.font(.title)
.foregroundColor(Color.white)
.background(Color.gray)
}
.padding(.bottom, 5.0)
}
HStack {
Text("Speaker :")
Spacer()
Button(action: tutorialContext.speaker)
{
Text(tutorialContext.speakerEnabled ? "ON" : "OFF")
.font(.title)
.foregroundColor(Color.white)
.frame(width: 60.0, height: 30.0)
.background(Color.gray)
}
}
}.frame(width : 160.0)
.padding(.top, 5.0)
Spacer()
VStack {
Button(action: tutorialContext.outgoingCallExample)
{
Text(tutorialContext.callRunning ? "Update Call" : "Call")
.font(.largeTitle)
.foregroundColor(Color.white)
.frame(width: 180.0, height: 42.0)
.background(Color.green)
}
Button(action: tutorialContext.stopOutgoingCallExample) {
Text("Stop Call")
.font(.largeTitle)
.foregroundColor(Color.white)
.frame(width: 180.0, height: 42.0)
.background(Color.red)
}
.padding(.top, 10.0)
HStack {
Text("Call State : ")
.font(.footnote)
Text(tutorialContext.callRunning ? "Ongoing" : "Stopped")
.font(.footnote)
.foregroundColor(tutorialContext.callRunning ? Color.green : Color.black)
}
}
.padding(.top, 10.0)
}
}
Spacer()
Group {
HStack{
Button(action: tutorialContext.registerChatRoomsProxyConfigurations)
{
Text("Chat Login")
.font(.largeTitle)
.foregroundColor(Color.white)
.frame(width: 190.0, height: 42.0)
.background(Color.gray)
}.disabled(tutorialContext.proxyConfigBRegistered && tutorialContext.proxyConfigBRegistered)
VStack{
Text(tutorialContext.proxyConfigARegistered ? "A logged in" :"A not registered")
.font(.footnote)
.foregroundColor(tutorialContext.proxyConfigARegistered ? Color.green : Color.black)
Text(tutorialContext.proxyConfigBRegistered ? "B logged in" :"B not registered")
.font(.footnote)
.foregroundColor(tutorialContext.proxyConfigBRegistered ? Color.green : Color.black)
}
}
HStack {
VStack {
Button(action: { self.tutorialContext.createChatRoom(isBasic: true) })
{
Text("Basic Chat")
.font(.largeTitle)
.foregroundColor(Color.white)
.frame(width: 170.0, height: 42.0)
.background(Color.gray)
}.disabled(!tutorialContext.proxyConfigBRegistered || !tutorialContext.proxyConfigBRegistered)
HStack {
Text("Chatroom state : ")
.font(.footnote)
Text(toString(tutorialState: tutorialContext.basicChatRoomState))
.font(.footnote)
.foregroundColor((tutorialContext.basicChatRoomState == ChatroomTutorialState.Started) ? Color.green : Color.black)
}
}
VStack {
Button(action: { self.tutorialContext.createChatRoom(isBasic: false) })
{
Text("Flexisip Chat")
.font(.largeTitle)
.foregroundColor(Color.white)
.frame(width: 200.0, height: 42.0)
.background(Color.gray)
}.disabled(!tutorialContext.proxyConfigBRegistered || !tutorialContext.proxyConfigBRegistered)
HStack {
Text("Chatroom state : ")
.font(.footnote)
Text(toString(tutorialState: tutorialContext.chatroomAState))
.font(.footnote)
.foregroundColor((tutorialContext.chatroomAState == ChatroomTutorialState.Started) ? Color.green : Color.black)
}
}
}
.padding(.top, 10.0)
HStack {
Text("Last chat received : \(tutorialContext.sLastReceivedText)")
}.padding(.top, 30.0)
HStack {
Button(action: tutorialContext.groupChatReply)
{
Text("Chat reply")
.font(.largeTitle)
.foregroundColor(Color.white)
.frame(width: 160.0, height: 42.0)
.background(Color.gray)
}.disabled(!tutorialContext.proxyConfigBRegistered || !tutorialContext.proxyConfigBRegistered)
TextField("Reply text", text : $tutorialContext.sReplyText)
.textFieldStyle(RoundedBorderTextFieldStyle())
}
}
Group {
Spacer()
Toggle(isOn: $tutorialContext.logsEnabled) {
Text("Logs collection")
.multilineTextAlignment(.trailing)
}
Text("Hello, Linphone, Core Version is \n \(tutorialContext.coreVersion)")
}
}
.padding()
}
}
class LinphoneLoggingServiceManager: LoggingServiceDelegate {
var tutorialContext : LinphoneTutorialContext!
override func onLogMessageWritten(logService: LoggingService, domain: String, lev: LogLevel, message: String) {
if (tutorialContext.logsEnabled)
{
print("Logging service log: \(message)s\n")
}
}
}
class LinphoneRegistrationDelegate: CoreDelegate {
override func onRegistrationStateChanged(lc: Core, cfg: ProxyConfig, cstate: RegistrationState, message: String?) {
print("New registration state \(cstate) for user id \( String(describing: cfg.identityAddress?.asString()))\n")
}
}
class LinphoneRegistrationConfirmDelegate: CoreDelegate {
var tutorialContext : LinphoneTutorialContext!
override func onRegistrationStateChanged(lc: Core, cfg: ProxyConfig, cstate: RegistrationState, message: String?) {
print("New registration state \(cstate) for user id \( String(describing: cfg.identityAddress?.asString()))\n")
if (cstate == RegistrationState.Ok)
{
if (cfg === tutorialContext.mProxyConfigA)
{
tutorialContext.proxyConfigARegistered = true
}
else if (cfg === tutorialContext.mProxyConfigB)
{
tutorialContext.proxyConfigBRegistered = true
}
else if (cfg === tutorialContext.mBasicChatRoom)
{
tutorialContext.mBasicChatroomProxyConfigRegistered = true
}
}
}
}
class LinconePhoneStateTracker: CoreDelegate {
override func onCallStateChanged(lc: Core, call: Call, cstate: Call.State, message: String) {
switch cstate {
case .OutgoingRinging:
print("CallTrace - It is now ringing remotely !\n")
case .OutgoingEarlyMedia:
print("CallTrace - Receiving some early media\n")
case .Connected:
print("CallTrace - We are connected !\n")
case .StreamsRunning:
print("CallTrace - Media streams established !\n")
case .End:
print("CallTrace - Call is terminated.\n")
case .Error:
print("CallTrace - Call failure !")
default:
print("CallTrace - Unhandled notification \(cstate)\n")
}
}
}
class LinphoneCoreChatDelegate: CoreDelegate {
var tutorialContext : LinphoneTutorialContext!
override func onMessageReceived(lc: Core, room: ChatRoom, message: ChatMessage) {
if (tutorialContext.mChatRoomB == nil)
{
tutorialContext.mChatRoomB = room
}
if (message.contentType == "text/plain")
{
tutorialContext.sLastReceivedText = message.textContent
}
}
}
class LinphoneChatRoomStateTracker: ChatRoomDelegate {
var tutorialContext : LinphoneTutorialContext!
override func onStateChanged(cr: ChatRoom, newState: ChatRoom.State) {
if (newState == ChatRoom.State.Created)
{
print("ChatRoomTrace - Chatroom ready to start")
if (cr === tutorialContext.mChatRoomA)
{
tutorialContext.chatroomAState = ChatroomTutorialState.Started
}
else if (cr === tutorialContext.mBasicChatRoom)
{
tutorialContext.basicChatRoomState = ChatroomTutorialState.Started
}
}
}
}
class LinphoneChatMessageTracker: ChatMessageDelegate {
override func onMsgStateChanged(msg: ChatMessage, state: ChatMessage.State) {
print("MessageTrace - msg state changed: \(state)\n")
}
}
struct ContentView_Previews: PreviewProvider {
static var previews: some View {
ContentView()
}
}

View File

@@ -1,66 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>NSCameraUsageDescription</key>
<string>Camera access</string>
<key>NSMicrophoneUsageDescription</key>
<string>Microphone access</string>
<key>LSApplicationCategoryType</key>
<string></string>
<key>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundlePackageType</key>
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>UIApplicationSceneManifest</key>
<dict>
<key>UIApplicationSupportsMultipleScenes</key>
<false/>
<key>UISceneConfigurations</key>
<dict>
<key>UIWindowSceneSessionRoleApplication</key>
<array>
<dict>
<key>UISceneConfigurationName</key>
<string>Default Configuration</string>
<key>UISceneDelegateClassName</key>
<string>$(PRODUCT_MODULE_NAME).SceneDelegate</string>
</dict>
</array>
</dict>
</dict>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
<key>UIRequiredDeviceCapabilities</key>
<array>
<string>armv7</string>
</array>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>UISupportedInterfaceOrientations~ipad</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
</dict>
</plist>

View File

@@ -1,6 +0,0 @@
{
"info" : {
"author" : "xcode",
"version" : 1
}
}

View File

@@ -1,70 +0,0 @@
//
// SceneDelegate.swift
// HelloLinphone
//
// Created by Danmei Chen on 23/06/2020.
// Copyright © 2020 belledonne. All rights reserved.
//
import UIKit
import SwiftUI
import linphonesw
class SceneDelegate: UIResponder, UIWindowSceneDelegate {
var window: UIWindow?
func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) {
// Create the SwiftUI view that provides the window contents.
let contentView = ContentView()
// Use a UIHostingController as window root view controller.
if let windowScene = scene as? UIWindowScene {
let window = UIWindow(windowScene: windowScene)
window.rootViewController = UIHostingController(rootView: contentView)
self.window = window
window.makeKeyAndVisible()
}
}
func sceneDidDisconnect(_ scene: UIScene) {
// Called as the scene is being released by the system.
// This occurs shortly after the scene enters the background, or when its session is discarded.
// Release any resources associated with this scene that can be re-created the next time the scene connects.
// The scene may re-connect later, as its session was not neccessarily discarded (see `application:didDiscardSceneSessions` instead).
}
func sceneDidBecomeActive(_ scene: UIScene) {
// Called when the scene has moved from an inactive state to an active state.
// Use this method to restart any tasks that were paused (or not yet started) when the scene was inactive.
}
func sceneWillResignActive(_ scene: UIScene) {
// Called when the scene will move from an active state to an inactive state.
// This may occur due to temporary interruptions (ex. an incoming phone call).
}
func sceneWillEnterForeground(_ scene: UIScene) {
// Called as the scene transitions from the background to the foreground.
// Use this method to undo the changes made on entering the background.
}
func sceneDidEnterBackground(_ scene: UIScene) {
// Called as the scene transitions from the foreground to the background.
// Use this method to save data, release shared resources, and store enough scene-specific state information
// to restore the scene back to its current state.
}
}
struct SceneDelegate_Previews: PreviewProvider {
static var previews: some View {
/*@START_MENU_TOKEN@*/Text("Hello, World!")/*@END_MENU_TOKEN@*/
}
}

View File

@@ -1,24 +0,0 @@
# Uncomment the next line to define a global platform for your project
platform :ios, '11.0'
source "https://gitlab.linphone.org/BC/public/podspec.git"
#source "https://github.com/CocoaPods/Specs.git"
def basic_pods
if ENV['PODFILE_PATH'].nil?
pod 'linphone-sdk', '~> 4.5.0-alpha'
else
pod 'linphone-sdk', :path => ENV['PODFILE_PATH'] # local sdk
end
end
target 'HelloLinphone' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
# Pods for HelloLinphone
basic_pods
end