diff --git a/swift/ChatRoomTutorial/ChatRoomTutorial.xcodeproj/project.pbxproj b/swift/ChatRoomTutorial/ChatRoomTutorial.xcodeproj/project.pbxproj new file mode 100644 index 0000000..09c6b2f --- /dev/null +++ b/swift/ChatRoomTutorial/ChatRoomTutorial.xcodeproj/project.pbxproj @@ -0,0 +1,421 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 51; + objects = { + +/* Begin PBXBuildFile section */ + 66B14F6124D945B10041952F /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 66B14F6024D945B10041952F /* AppDelegate.swift */; }; + 66B14F6324D945B10041952F /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 66B14F6224D945B10041952F /* SceneDelegate.swift */; }; + 66B14F6524D945B10041952F /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 66B14F6424D945B10041952F /* ContentView.swift */; }; + 66B14F6724D945B30041952F /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 66B14F6624D945B30041952F /* Assets.xcassets */; }; + 66B14F6A24D945B30041952F /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 66B14F6924D945B30041952F /* Preview Assets.xcassets */; }; + 66B14F6D24D945B30041952F /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 66B14F6B24D945B30041952F /* LaunchScreen.storyboard */; }; + 66B14F7524D94A8B0041952F /* ChatRoomExample.swift in Sources */ = {isa = PBXBuildFile; fileRef = 66B14F7424D94A8B0041952F /* ChatRoomExample.swift */; }; + F6D7663413A00C7D71C9256A /* Pods_ChatRoomTutorial.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = DA7659F911FB1269A70609BD /* Pods_ChatRoomTutorial.framework */; }; +/* End PBXBuildFile section */ + +/* Begin PBXFileReference section */ + 19EE42BFE0BC6B919D83E57B /* Pods-ChatRoomTutorial.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ChatRoomTutorial.debug.xcconfig"; path = "Target Support Files/Pods-ChatRoomTutorial/Pods-ChatRoomTutorial.debug.xcconfig"; sourceTree = ""; }; + 334E4649154B262A80E65222 /* Pods-ChatRoomTutorial.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ChatRoomTutorial.release.xcconfig"; path = "Target Support Files/Pods-ChatRoomTutorial/Pods-ChatRoomTutorial.release.xcconfig"; sourceTree = ""; }; + 66B14F5D24D945B10041952F /* ChatRoomTutorial.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ChatRoomTutorial.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 66B14F6024D945B10041952F /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + 66B14F6224D945B10041952F /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = ""; }; + 66B14F6424D945B10041952F /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = ""; }; + 66B14F6624D945B30041952F /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 66B14F6924D945B30041952F /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = ""; }; + 66B14F6C24D945B30041952F /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + 66B14F6E24D945B30041952F /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 66B14F7424D94A8B0041952F /* ChatRoomExample.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ChatRoomExample.swift; sourceTree = ""; }; + DA7659F911FB1269A70609BD /* Pods_ChatRoomTutorial.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_ChatRoomTutorial.framework; sourceTree = BUILT_PRODUCTS_DIR; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 66B14F5A24D945B10041952F /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + F6D7663413A00C7D71C9256A /* Pods_ChatRoomTutorial.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 66B14F5424D945B10041952F = { + isa = PBXGroup; + children = ( + 66B14F5F24D945B10041952F /* ChatRoomTutorial */, + 66B14F5E24D945B10041952F /* Products */, + 7803BAE55D29633EC66FF288 /* Pods */, + FAE3DC9544B687556DB8D4BF /* Frameworks */, + ); + sourceTree = ""; + }; + 66B14F5E24D945B10041952F /* Products */ = { + isa = PBXGroup; + children = ( + 66B14F5D24D945B10041952F /* ChatRoomTutorial.app */, + ); + name = Products; + sourceTree = ""; + }; + 66B14F5F24D945B10041952F /* ChatRoomTutorial */ = { + isa = PBXGroup; + children = ( + 66B14F6024D945B10041952F /* AppDelegate.swift */, + 66B14F6224D945B10041952F /* SceneDelegate.swift */, + 66B14F7424D94A8B0041952F /* ChatRoomExample.swift */, + 66B14F6424D945B10041952F /* ContentView.swift */, + 66B14F6624D945B30041952F /* Assets.xcassets */, + 66B14F6B24D945B30041952F /* LaunchScreen.storyboard */, + 66B14F6E24D945B30041952F /* Info.plist */, + 66B14F6824D945B30041952F /* Preview Content */, + ); + path = ChatRoomTutorial; + sourceTree = ""; + }; + 66B14F6824D945B30041952F /* Preview Content */ = { + isa = PBXGroup; + children = ( + 66B14F6924D945B30041952F /* Preview Assets.xcassets */, + ); + path = "Preview Content"; + sourceTree = ""; + }; + 7803BAE55D29633EC66FF288 /* Pods */ = { + isa = PBXGroup; + children = ( + 19EE42BFE0BC6B919D83E57B /* Pods-ChatRoomTutorial.debug.xcconfig */, + 334E4649154B262A80E65222 /* Pods-ChatRoomTutorial.release.xcconfig */, + ); + path = Pods; + sourceTree = ""; + }; + FAE3DC9544B687556DB8D4BF /* Frameworks */ = { + isa = PBXGroup; + children = ( + DA7659F911FB1269A70609BD /* Pods_ChatRoomTutorial.framework */, + ); + name = Frameworks; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 66B14F5C24D945B10041952F /* ChatRoomTutorial */ = { + isa = PBXNativeTarget; + buildConfigurationList = 66B14F7124D945B30041952F /* Build configuration list for PBXNativeTarget "ChatRoomTutorial" */; + buildPhases = ( + D13E5426074A7C3A09979BCF /* [CP] Check Pods Manifest.lock */, + 66B14F5924D945B10041952F /* Sources */, + 66B14F5A24D945B10041952F /* Frameworks */, + 66B14F5B24D945B10041952F /* Resources */, + 8180435EBADAED9D16D786AD /* [CP] Embed Pods Frameworks */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = ChatRoomTutorial; + productName = ChatRoomTutorial; + productReference = 66B14F5D24D945B10041952F /* ChatRoomTutorial.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 66B14F5524D945B10041952F /* Project object */ = { + isa = PBXProject; + attributes = { + LastSwiftUpdateCheck = 1150; + LastUpgradeCheck = 1150; + ORGANIZATIONNAME = BelledonneCommunications; + TargetAttributes = { + 66B14F5C24D945B10041952F = { + CreatedOnToolsVersion = 11.5; + }; + }; + }; + buildConfigurationList = 66B14F5824D945B10041952F /* Build configuration list for PBXProject "ChatRoomTutorial" */; + compatibilityVersion = "Xcode 9.3"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 66B14F5424D945B10041952F; + productRefGroup = 66B14F5E24D945B10041952F /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 66B14F5C24D945B10041952F /* ChatRoomTutorial */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 66B14F5B24D945B10041952F /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 66B14F6D24D945B30041952F /* LaunchScreen.storyboard in Resources */, + 66B14F6A24D945B30041952F /* Preview Assets.xcassets in Resources */, + 66B14F6724D945B30041952F /* Assets.xcassets in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXShellScriptBuildPhase section */ + 8180435EBADAED9D16D786AD /* [CP] Embed Pods Frameworks */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-ChatRoomTutorial/Pods-ChatRoomTutorial-frameworks-${CONFIGURATION}-input-files.xcfilelist", + ); + name = "[CP] Embed Pods Frameworks"; + outputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-ChatRoomTutorial/Pods-ChatRoomTutorial-frameworks-${CONFIGURATION}-output-files.xcfilelist", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-ChatRoomTutorial/Pods-ChatRoomTutorial-frameworks.sh\"\n"; + showEnvVarsInLog = 0; + }; + D13E5426074A7C3A09979BCF /* [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-ChatRoomTutorial-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 */ + 66B14F5924D945B10041952F /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 66B14F6124D945B10041952F /* AppDelegate.swift in Sources */, + 66B14F7524D94A8B0041952F /* ChatRoomExample.swift in Sources */, + 66B14F6324D945B10041952F /* SceneDelegate.swift in Sources */, + 66B14F6524D945B10041952F /* ContentView.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXVariantGroup section */ + 66B14F6B24D945B30041952F /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 66B14F6C24D945B30041952F /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 66B14F6F24D945B30041952F /* 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; + }; + 66B14F7024D945B30041952F /* 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; + }; + 66B14F7224D945B30041952F /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 19EE42BFE0BC6B919D83E57B /* Pods-ChatRoomTutorial.debug.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_ASSET_PATHS = "\"ChatRoomTutorial/Preview Content\""; + DEVELOPMENT_TEAM = Z2V957B3D6; + ENABLE_PREVIEWS = YES; + INFOPLIST_FILE = ChatRoomTutorial/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = BC.ChatRoomTutorial; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 66B14F7324D945B30041952F /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 334E4649154B262A80E65222 /* Pods-ChatRoomTutorial.release.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_ASSET_PATHS = "\"ChatRoomTutorial/Preview Content\""; + DEVELOPMENT_TEAM = Z2V957B3D6; + ENABLE_PREVIEWS = YES; + INFOPLIST_FILE = ChatRoomTutorial/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = BC.ChatRoomTutorial; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 66B14F5824D945B10041952F /* Build configuration list for PBXProject "ChatRoomTutorial" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 66B14F6F24D945B30041952F /* Debug */, + 66B14F7024D945B30041952F /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 66B14F7124D945B30041952F /* Build configuration list for PBXNativeTarget "ChatRoomTutorial" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 66B14F7224D945B30041952F /* Debug */, + 66B14F7324D945B30041952F /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 66B14F5524D945B10041952F /* Project object */; +} diff --git a/swift/ChatRoomTutorial/ChatRoomTutorial.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/swift/ChatRoomTutorial/ChatRoomTutorial.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..88010cf --- /dev/null +++ b/swift/ChatRoomTutorial/ChatRoomTutorial.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/swift/ChatRoomTutorial/ChatRoomTutorial.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/swift/ChatRoomTutorial/ChatRoomTutorial.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/swift/ChatRoomTutorial/ChatRoomTutorial.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/swift/ChatRoomTutorial/ChatRoomTutorial.xcworkspace/contents.xcworkspacedata b/swift/ChatRoomTutorial/ChatRoomTutorial.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..63421bd --- /dev/null +++ b/swift/ChatRoomTutorial/ChatRoomTutorial.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,10 @@ + + + + + + + diff --git a/swift/ChatRoomTutorial/ChatRoomTutorial.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/swift/ChatRoomTutorial/ChatRoomTutorial.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/swift/ChatRoomTutorial/ChatRoomTutorial.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/swift/ChatRoomTutorial/ChatRoomTutorial/AppDelegate.swift b/swift/ChatRoomTutorial/ChatRoomTutorial/AppDelegate.swift new file mode 100644 index 0000000..4339eb4 --- /dev/null +++ b/swift/ChatRoomTutorial/ChatRoomTutorial/AppDelegate.swift @@ -0,0 +1,37 @@ +// +// AppDelegate.swift +// ChatRoomTutorial +// +// Created by QuentinArguillere on 04/08/2020. +// Copyright © 2020 BelledonneCommunications. 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/ChatRoomTutorial/ChatRoomTutorial/Assets.xcassets/AppIcon.appiconset/Contents.json b/swift/ChatRoomTutorial/ChatRoomTutorial/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..9221b9b --- /dev/null +++ b/swift/ChatRoomTutorial/ChatRoomTutorial/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,98 @@ +{ + "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/ChatRoomTutorial/ChatRoomTutorial/Assets.xcassets/Contents.json b/swift/ChatRoomTutorial/ChatRoomTutorial/Assets.xcassets/Contents.json new file mode 100644 index 0000000..73c0059 --- /dev/null +++ b/swift/ChatRoomTutorial/ChatRoomTutorial/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/swift/ChatRoomTutorial/ChatRoomTutorial/Base.lproj/LaunchScreen.storyboard b/swift/ChatRoomTutorial/ChatRoomTutorial/Base.lproj/LaunchScreen.storyboard new file mode 100644 index 0000000..865e932 --- /dev/null +++ b/swift/ChatRoomTutorial/ChatRoomTutorial/Base.lproj/LaunchScreen.storyboard @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/swift/ChatRoomTutorial/ChatRoomTutorial/ChatRoomExample.swift b/swift/ChatRoomTutorial/ChatRoomTutorial/ChatRoomExample.swift new file mode 100644 index 0000000..8acb2ef --- /dev/null +++ b/swift/ChatRoomTutorial/ChatRoomTutorial/ChatRoomExample.swift @@ -0,0 +1,285 @@ +// +// ChatRoomExample.swift +// ChatRoomTutorial +// +// Created by QuentinArguillere on 04/08/2020. +// Copyright © 2020 BelledonneCommunications. All rights reserved. + +import linphonesw +import SwiftUI + + +enum ChatroomExampleState +{ + case Unstarted + case Starting + case Started +} + +func toString(tutorialState state : ChatroomExampleState) -> String +{ + switch (state) + { + case ChatroomExampleState.Unstarted : return "Unstarted" + case ChatroomExampleState.Starting: return "Starting" + case ChatroomExampleState.Started: return "Started" + } +} + + +class ChatRoomExampleContext : 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 + + /*--- 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 = ChatroomExampleState.Unstarted + + /*---- Basic Chatroom tutorial related variables ----*/ + var mBasicChatRoom : ChatRoom? + var mBasicChatroomProxyConfigRegistered : Bool = false + @Published var basicChatRoomState = ChatroomExampleState.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() + + // 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 registerChatRoomsProxyConfigurations() + { + mProxyConfigA = createProxyConfigAndRegister(identity : mIdA, password : mPasswordA, factoryUri: mFactoryUri)! + mProxyConfigB = createProxyConfigAndRegister(identity : mIdB, password : mPasswordB, factoryUri: mFactoryUri)! + } + + 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) + // Basic chatroom do not require setup time + basicChatRoomState = ChatroomExampleState.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) + // Flexisip chatroom requires a setup time. The delegate will set the state to started when it is ready. + chatroomAState = ChatroomExampleState.Starting + } + + } catch { + print(error) + } + + DispatchQueue.global(qos: .userInitiated).async { + // Wait until we're sure that the chatroom is ready to send messages + while((isBasicChatroom ? self.basicChatRoomState : self.chatroomAState) != ChatroomExampleState.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 !" + } + + } + +} + + +class LinphoneLoggingServiceManager: LoggingServiceDelegate { + + var tutorialContext : ChatRoomExampleContext! + + override func onLogMessageWritten(logService: LoggingService, domain: String, lev: LogLevel, message: String) { + if (tutorialContext.logsEnabled) + { + print("Logging service log: \(message)s\n") + } + } +} + +class LinphoneRegistrationConfirmDelegate: CoreDelegate { + + var tutorialContext : ChatRoomExampleContext! + + 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 LinphoneCoreChatDelegate: CoreDelegate { + var tutorialContext : ChatRoomExampleContext! + 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 : ChatRoomExampleContext! + + 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 = ChatroomExampleState.Started + } + else if (cr === tutorialContext.mBasicChatRoom) + { + tutorialContext.basicChatRoomState = ChatroomExampleState.Started + } + } + } +} + +class LinphoneChatMessageTracker: ChatMessageDelegate { + override func onMsgStateChanged(msg: ChatMessage, state: ChatMessage.State) { + print("MessageTrace - msg state changed: \(state)\n") + } +} diff --git a/swift/ChatRoomTutorial/ChatRoomTutorial/ContentView.swift b/swift/ChatRoomTutorial/ChatRoomTutorial/ContentView.swift new file mode 100644 index 0000000..9835457 --- /dev/null +++ b/swift/ChatRoomTutorial/ChatRoomTutorial/ContentView.swift @@ -0,0 +1,104 @@ +// +// ContentView.swift +// ChatRoomTutorial +// +// Created by QuentinArguillere on 04/08/2020. +// Copyright © 2020 BelledonneCommunications. All rights reserved. +// + +import SwiftUI + +struct ContentView: View { + + @ObservedObject var tutorialContext = ChatRoomExampleContext() + + var body: some View { + + VStack(alignment: .leading) { + 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) + } + } + + 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 == ChatroomExampleState.Started) ? Color.green : Color.black) + } + }.padding(.top, 15) + 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 == ChatroomExampleState.Started) ? Color.green : Color.black) + } + }.padding(.top, 15) + HStack { + Text("Last chat received : \(tutorialContext.sLastReceivedText)") + }.padding(.top, 15) + 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()) + }.padding(.top, 15) + } + Group { + Spacer() + Toggle(isOn: $tutorialContext.logsEnabled) { + Text("Logs collection") + .multilineTextAlignment(.trailing) + } + Text("Hello, Linphone, Core Version is \n \(tutorialContext.coreVersion)") + } + }.padding() + } +} + +struct ContentView_Previews: PreviewProvider { + static var previews: some View { + ContentView() + } +} diff --git a/swift/ChatRoomTutorial/ChatRoomTutorial/Info.plist b/swift/ChatRoomTutorial/ChatRoomTutorial/Info.plist new file mode 100644 index 0000000..9742bf0 --- /dev/null +++ b/swift/ChatRoomTutorial/ChatRoomTutorial/Info.plist @@ -0,0 +1,60 @@ + + + + + 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/ChatRoomTutorial/ChatRoomTutorial/Preview Content/Preview Assets.xcassets/Contents.json b/swift/ChatRoomTutorial/ChatRoomTutorial/Preview Content/Preview Assets.xcassets/Contents.json new file mode 100644 index 0000000..73c0059 --- /dev/null +++ b/swift/ChatRoomTutorial/ChatRoomTutorial/Preview Content/Preview Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/swift/ChatRoomTutorial/ChatRoomTutorial/SceneDelegate.swift b/swift/ChatRoomTutorial/ChatRoomTutorial/SceneDelegate.swift new file mode 100644 index 0000000..2d10a67 --- /dev/null +++ b/swift/ChatRoomTutorial/ChatRoomTutorial/SceneDelegate.swift @@ -0,0 +1,64 @@ +// +// SceneDelegate.swift +// ChatRoomTutorial +// +// Created by QuentinArguillere on 04/08/2020. +// Copyright © 2020 BelledonneCommunications. All rights reserved. +// + +import UIKit +import SwiftUI + +class SceneDelegate: UIResponder, UIWindowSceneDelegate { + + var window: UIWindow? + + + func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) { + // Use this method to optionally configure and attach the UIWindow `window` to the provided UIWindowScene `scene`. + // If using a storyboard, the `window` property will automatically be initialized and attached to the scene. + // This delegate does not imply the connecting scene or session are new (see `application:configurationForConnectingSceneSession` instead). + + // 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. + } + + +} + diff --git a/swift/ChatRoomTutorial/Podfile b/swift/ChatRoomTutorial/Podfile new file mode 100644 index 0000000..8c399f6 --- /dev/null +++ b/swift/ChatRoomTutorial/Podfile @@ -0,0 +1,24 @@ +# 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 'ChatRoomTutorial' do + # Comment the next line if you don't want to use dynamic frameworks + use_frameworks! + + # Pods for HelloLinphone + basic_pods + +end