diff --git a/swift/HelloLinphone/HelloLinphone.xcodeproj/project.pbxproj b/swift/HelloLinphone/HelloLinphone.xcodeproj/project.pbxproj deleted file mode 100644 index 7398130..0000000 --- a/swift/HelloLinphone/HelloLinphone.xcodeproj/project.pbxproj +++ /dev/null @@ -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 = ""; }; - 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 = ""; }; - 6109A53424A1FB600080B339 /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = ""; }; - 6109A53624A1FB600080B339 /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = ""; }; - 6109A53824A1FB610080B339 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; - 6109A53B24A1FB610080B339 /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = ""; }; - 6109A53E24A1FB610080B339 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; - 6109A54024A1FB610080B339 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - 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 = ""; }; -/* 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 = ""; - }; - 6109A52624A1FB600080B339 = { - isa = PBXGroup; - children = ( - 6109A53124A1FB600080B339 /* HelloLinphone */, - 6109A53024A1FB600080B339 /* Products */, - 7DEB177E8F89B4C059EAD432 /* Pods */, - 12F6903ABA1B6D98B920C503 /* Frameworks */, - ); - sourceTree = ""; - }; - 6109A53024A1FB600080B339 /* Products */ = { - isa = PBXGroup; - children = ( - 6109A52F24A1FB600080B339 /* HelloLinphone.app */, - ); - name = Products; - sourceTree = ""; - }; - 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 = ""; - }; - 6109A53A24A1FB610080B339 /* Preview Content */ = { - isa = PBXGroup; - children = ( - 6109A53B24A1FB610080B339 /* Preview Assets.xcassets */, - ); - path = "Preview Content"; - sourceTree = ""; - }; - 7DEB177E8F89B4C059EAD432 /* Pods */ = { - isa = PBXGroup; - children = ( - 58D449155D749B90DECEF33F /* Pods-HelloLinphone.debug.xcconfig */, - CCABD171CB8B5F0B32B7C819 /* Pods-HelloLinphone.release.xcconfig */, - ); - name = Pods; - path = Pods; - sourceTree = ""; - }; -/* 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 = ""; - }; -/* 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 */; -} diff --git a/swift/HelloLinphone/HelloLinphone.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/swift/HelloLinphone/HelloLinphone.xcodeproj/project.xcworkspace/contents.xcworkspacedata deleted file mode 100644 index 275987e..0000000 --- a/swift/HelloLinphone/HelloLinphone.xcodeproj/project.xcworkspace/contents.xcworkspacedata +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git a/swift/HelloLinphone/HelloLinphone.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/swift/HelloLinphone/HelloLinphone.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist deleted file mode 100644 index 18d9810..0000000 --- a/swift/HelloLinphone/HelloLinphone.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +++ /dev/null @@ -1,8 +0,0 @@ - - - - - IDEDidComputeMac32BitWarning - - - diff --git a/swift/HelloLinphone/HelloLinphone.xcworkspace/contents.xcworkspacedata b/swift/HelloLinphone/HelloLinphone.xcworkspace/contents.xcworkspacedata deleted file mode 100644 index 7ee8337..0000000 --- a/swift/HelloLinphone/HelloLinphone.xcworkspace/contents.xcworkspacedata +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - diff --git a/swift/HelloLinphone/HelloLinphone.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/swift/HelloLinphone/HelloLinphone.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist deleted file mode 100644 index 18d9810..0000000 --- a/swift/HelloLinphone/HelloLinphone.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +++ /dev/null @@ -1,8 +0,0 @@ - - - - - IDEDidComputeMac32BitWarning - - - diff --git a/swift/HelloLinphone/HelloLinphone/AppDelegate.swift b/swift/HelloLinphone/HelloLinphone/AppDelegate.swift deleted file mode 100644 index 9f1f5d7..0000000 --- a/swift/HelloLinphone/HelloLinphone/AppDelegate.swift +++ /dev/null @@ -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) { - // 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. - } - - -} - diff --git a/swift/HelloLinphone/HelloLinphone/Assets.xcassets/AppIcon.appiconset/Contents.json b/swift/HelloLinphone/HelloLinphone/Assets.xcassets/AppIcon.appiconset/Contents.json deleted file mode 100644 index 9221b9b..0000000 --- a/swift/HelloLinphone/HelloLinphone/Assets.xcassets/AppIcon.appiconset/Contents.json +++ /dev/null @@ -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 - } -} diff --git a/swift/HelloLinphone/HelloLinphone/Assets.xcassets/Contents.json b/swift/HelloLinphone/HelloLinphone/Assets.xcassets/Contents.json deleted file mode 100644 index 73c0059..0000000 --- a/swift/HelloLinphone/HelloLinphone/Assets.xcassets/Contents.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/swift/HelloLinphone/HelloLinphone/Base.lproj/LaunchScreen.storyboard b/swift/HelloLinphone/HelloLinphone/Base.lproj/LaunchScreen.storyboard deleted file mode 100644 index 865e932..0000000 --- a/swift/HelloLinphone/HelloLinphone/Base.lproj/LaunchScreen.storyboard +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/swift/HelloLinphone/HelloLinphone/ContentView.swift b/swift/HelloLinphone/HelloLinphone/ContentView.swift deleted file mode 100644 index 8286a79..0000000 --- a/swift/HelloLinphone/HelloLinphone/ContentView.swift +++ /dev/null @@ -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() - } -} diff --git a/swift/HelloLinphone/HelloLinphone/Info.plist b/swift/HelloLinphone/HelloLinphone/Info.plist deleted file mode 100644 index 27a1721..0000000 --- a/swift/HelloLinphone/HelloLinphone/Info.plist +++ /dev/null @@ -1,66 +0,0 @@ - - - - - NSCameraUsageDescription - Camera access - NSMicrophoneUsageDescription - Microphone access - LSApplicationCategoryType - - CFBundleDevelopmentRegion - $(DEVELOPMENT_LANGUAGE) - CFBundleExecutable - $(EXECUTABLE_NAME) - CFBundleIdentifier - $(PRODUCT_BUNDLE_IDENTIFIER) - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - $(PRODUCT_NAME) - CFBundlePackageType - $(PRODUCT_BUNDLE_PACKAGE_TYPE) - CFBundleShortVersionString - 1.0 - CFBundleVersion - 1 - LSRequiresIPhoneOS - - UIApplicationSceneManifest - - UIApplicationSupportsMultipleScenes - - UISceneConfigurations - - UIWindowSceneSessionRoleApplication - - - UISceneConfigurationName - Default Configuration - UISceneDelegateClassName - $(PRODUCT_MODULE_NAME).SceneDelegate - - - - - UILaunchStoryboardName - LaunchScreen - UIRequiredDeviceCapabilities - - armv7 - - UISupportedInterfaceOrientations - - UIInterfaceOrientationPortrait - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight - - UISupportedInterfaceOrientations~ipad - - UIInterfaceOrientationPortrait - UIInterfaceOrientationPortraitUpsideDown - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight - - - diff --git a/swift/HelloLinphone/HelloLinphone/Preview Content/Preview Assets.xcassets/Contents.json b/swift/HelloLinphone/HelloLinphone/Preview Content/Preview Assets.xcassets/Contents.json deleted file mode 100644 index 73c0059..0000000 --- a/swift/HelloLinphone/HelloLinphone/Preview Content/Preview Assets.xcassets/Contents.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/swift/HelloLinphone/HelloLinphone/SceneDelegate.swift b/swift/HelloLinphone/HelloLinphone/SceneDelegate.swift deleted file mode 100644 index 5b31c9b..0000000 --- a/swift/HelloLinphone/HelloLinphone/SceneDelegate.swift +++ /dev/null @@ -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@*/ - } -} diff --git a/swift/HelloLinphone/Podfile b/swift/HelloLinphone/Podfile deleted file mode 100644 index 3678ba5..0000000 --- a/swift/HelloLinphone/Podfile +++ /dev/null @@ -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