├── .DS_Store ├── .gitignore └── .gitignore ├── .swift-version ├── AZPeerToPeerConectvity.xcodeproj ├── project.pbxproj ├── project.xcworkspace │ ├── contents.xcworkspacedata │ └── xcuserdata │ │ └── muhammadafroz.xcuserdatad │ │ └── UserInterfaceState.xcuserstate └── xcuserdata │ ├── afrozzaheer.xcuserdatad │ └── xcschemes │ │ └── xcschememanagement.plist │ └── muhammadafroz.xcuserdatad │ └── xcschemes │ ├── AZPeerToPeerConectvity.xcscheme │ └── xcschememanagement.plist ├── AZPeerToPeerConectvity.xcworkspace ├── contents.xcworkspacedata └── xcuserdata │ ├── afrozzaheer.xcuserdatad │ ├── UserInterfaceState.xcuserstate │ └── xcdebugger │ │ └── Breakpoints_v2.xcbkptlist │ └── muhammadafroz.xcuserdatad │ └── UserInterfaceState.xcuserstate ├── AZPeerToPeerConectvity ├── AppDelegate.swift ├── Assets.xcassets │ └── AppIcon.appiconset │ │ └── Contents.json ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard ├── ChatTableViewCell.swift ├── Info.plist ├── PeerTableViewCell.swift ├── README.md └── ViewController.swift ├── AZPeerToPeerConnection.podspec ├── LICENSE ├── Podfile ├── Podfile.lock ├── Pods ├── Local Podspecs │ └── AZPeerToPeerConnection.podspec.json ├── Manifest.lock ├── Pods.xcodeproj │ ├── project.pbxproj │ └── xcuserdata │ │ ├── afrozzaheer.xcuserdatad │ │ └── xcschemes │ │ │ ├── AZPeerToPeerConnection.xcscheme │ │ │ ├── Pods-AZPeerToPeerConectvity.xcscheme │ │ │ └── xcschememanagement.plist │ │ └── muhammadafroz.xcuserdatad │ │ └── xcschemes │ │ ├── AZPeerToPeerConnection.xcscheme │ │ ├── Pods-AZPeerToPeerConectvity.xcscheme │ │ └── xcschememanagement.plist └── Target Support Files │ ├── AZPeerToPeerConnection │ ├── AZPeerToPeerConnection-dummy.m │ ├── AZPeerToPeerConnection-prefix.pch │ ├── AZPeerToPeerConnection-umbrella.h │ ├── AZPeerToPeerConnection.modulemap │ ├── AZPeerToPeerConnection.xcconfig │ └── Info.plist │ └── Pods-AZPeerToPeerConectvity │ ├── Info.plist │ ├── Pods-AZPeerToPeerConectvity-acknowledgements.markdown │ ├── Pods-AZPeerToPeerConectvity-acknowledgements.plist │ ├── Pods-AZPeerToPeerConectvity-dummy.m │ ├── Pods-AZPeerToPeerConectvity-frameworks.sh │ ├── Pods-AZPeerToPeerConectvity-resources.sh │ ├── Pods-AZPeerToPeerConectvity-umbrella.h │ ├── Pods-AZPeerToPeerConectvity.debug.xcconfig │ ├── Pods-AZPeerToPeerConectvity.modulemap │ └── Pods-AZPeerToPeerConectvity.release.xcconfig ├── README.md └── Source ├── .DS_Store └── P2PServiceHandler.swift /.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AfrozZaheer/AZPeerToPeerConnection/c6510ce776a8001eda07c6929cae44ed54c84ba9/.DS_Store -------------------------------------------------------------------------------- /.gitignore/.gitignore: -------------------------------------------------------------------------------- 1 | # Add any directories, files, or patterns you don't want to be tracked by version control 2 | # Created by http://www.gitignore.io 3 | 4 | ### OSX ### 5 | .DS_Store 6 | .AppleDouble 7 | .LSOverride 8 | 9 | # Icon must end with two \r 10 | Icon 11 | 12 | 13 | # Thumbnails 14 | ._* 15 | 16 | # Files that might appear on external disk 17 | .Spotlight-V100 18 | .Trashes 19 | 20 | # Directories potentially created on remote AFP share 21 | .AppleDB 22 | .AppleDesktop 23 | Network Trash Folder 24 | Temporary Items 25 | .apdisk 26 | 27 | 28 | ### Swift ### 29 | # Xcode 30 | # 31 | build/ 32 | *.pbxuser 33 | !default.pbxuser 34 | *.mode1v3 35 | !default.mode1v3 36 | *.mode2v3 37 | !default.mode2v3 38 | *.perspectivev3 39 | !default.perspectivev3 40 | xcuserdata 41 | *.xccheckout 42 | *.moved-aside 43 | DerivedData 44 | *.hmap 45 | *.ipa 46 | *.xcuserstate 47 | 48 | # CocoaPods 49 | # 50 | # We recommend against adding the Pods directory to your .gitignore. However 51 | # you should judge for yourself, the pros and cons are mentioned at: 52 | # http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control 53 | # 54 | # Pods/ 55 | 56 | 57 | ### Xcode ### 58 | build/ 59 | *.pbxuser 60 | !default.pbxuser 61 | *.mode1v3 62 | !default.mode1v3 63 | *.mode2v3 64 | !default.mode2v3 65 | *.perspectivev3 66 | !default.perspectivev3 67 | xcuserdata 68 | *.xccheckout 69 | *.moved-aside 70 | DerivedData 71 | *.xcuserstate 72 | 73 | 74 | 75 | 76 | 77 | # Created by https://www.gitignore.io/api/macos 78 | 79 | ### macOS ### 80 | *.DS_Store 81 | .AppleDouble 82 | .LSOverride 83 | 84 | # Icon must end with two \r 85 | Icon 86 | 87 | 88 | # Thumbnails 89 | ._* 90 | 91 | # Files that might appear in the root of a volume 92 | .DocumentRevisions-V100 93 | .fseventsd 94 | .Spotlight-V100 95 | .TemporaryItems 96 | .Trashes 97 | .VolumeIcon.icns 98 | .com.apple.timemachine.donotpresent 99 | 100 | # Directories potentially created on remote AFP share 101 | .AppleDB 102 | .AppleDesktop 103 | Network Trash Folder 104 | Temporary Items 105 | .apdisk 106 | 107 | # End of https://www.gitignore.io/api/macos 108 | -------------------------------------------------------------------------------- /.swift-version: -------------------------------------------------------------------------------- 1 | 4.0 2 | -------------------------------------------------------------------------------- /AZPeerToPeerConectvity.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 20B6A6561F6017D40059D5BC /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 20B6A6551F6017D40059D5BC /* AppDelegate.swift */; }; 11 | 20B6A6581F6017D40059D5BC /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 20B6A6571F6017D40059D5BC /* ViewController.swift */; }; 12 | 20B6A65B1F6017D40059D5BC /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 20B6A6591F6017D40059D5BC /* Main.storyboard */; }; 13 | 20B6A65D1F6017D40059D5BC /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 20B6A65C1F6017D40059D5BC /* Assets.xcassets */; }; 14 | 20B6A6601F6017D40059D5BC /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 20B6A65E1F6017D40059D5BC /* LaunchScreen.storyboard */; }; 15 | 35F48AF5B0F6DF6E465430BF /* Pods_AZPeerToPeerConectvity.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E08CBFCE43465BC44DC17132 /* Pods_AZPeerToPeerConectvity.framework */; }; 16 | B800C41A20343A180056A76A /* PeerTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = B800C41920343A180056A76A /* PeerTableViewCell.swift */; }; 17 | B861CA44202B21540023B650 /* MultipeerConnectivity.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B861CA43202B21540023B650 /* MultipeerConnectivity.framework */; }; 18 | B861CE01202D79A70023B650 /* ChatTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = B861CE00202D79A70023B650 /* ChatTableViewCell.swift */; }; 19 | B86CE7D620355114008FA239 /* README.md in Resources */ = {isa = PBXBuildFile; fileRef = B86CE7D520355114008FA239 /* README.md */; }; 20 | /* End PBXBuildFile section */ 21 | 22 | /* Begin PBXFileReference section */ 23 | 1AFAEC294BD746D588A660B0 /* Pods-AZPeerToPeerConectvity.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-AZPeerToPeerConectvity.release.xcconfig"; path = "Pods/Target Support Files/Pods-AZPeerToPeerConectvity/Pods-AZPeerToPeerConectvity.release.xcconfig"; sourceTree = ""; }; 24 | 20B6A6521F6017D40059D5BC /* AZPeerToPeerConectvity.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = AZPeerToPeerConectvity.app; sourceTree = BUILT_PRODUCTS_DIR; }; 25 | 20B6A6551F6017D40059D5BC /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 26 | 20B6A6571F6017D40059D5BC /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 27 | 20B6A65A1F6017D40059D5BC /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 28 | 20B6A65C1F6017D40059D5BC /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 29 | 20B6A65F1F6017D40059D5BC /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 30 | 20B6A6611F6017D40059D5BC /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 31 | 221813D983C52FEC3B3697D3 /* Pods-AZPeerToPeerConectvity.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-AZPeerToPeerConectvity.debug.xcconfig"; path = "Pods/Target Support Files/Pods-AZPeerToPeerConectvity/Pods-AZPeerToPeerConectvity.debug.xcconfig"; sourceTree = ""; }; 32 | B800C41920343A180056A76A /* PeerTableViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PeerTableViewCell.swift; sourceTree = ""; }; 33 | B861CA43202B21540023B650 /* MultipeerConnectivity.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = MultipeerConnectivity.framework; path = System/Library/Frameworks/MultipeerConnectivity.framework; sourceTree = SDKROOT; }; 34 | B861CE00202D79A70023B650 /* ChatTableViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ChatTableViewCell.swift; sourceTree = ""; }; 35 | B86CE7D520355114008FA239 /* README.md */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = ""; }; 36 | E08CBFCE43465BC44DC17132 /* Pods_AZPeerToPeerConectvity.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_AZPeerToPeerConectvity.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 37 | /* End PBXFileReference section */ 38 | 39 | /* Begin PBXFrameworksBuildPhase section */ 40 | 20B6A64F1F6017D40059D5BC /* Frameworks */ = { 41 | isa = PBXFrameworksBuildPhase; 42 | buildActionMask = 2147483647; 43 | files = ( 44 | B861CA44202B21540023B650 /* MultipeerConnectivity.framework in Frameworks */, 45 | 35F48AF5B0F6DF6E465430BF /* Pods_AZPeerToPeerConectvity.framework in Frameworks */, 46 | ); 47 | runOnlyForDeploymentPostprocessing = 0; 48 | }; 49 | /* End PBXFrameworksBuildPhase section */ 50 | 51 | /* Begin PBXGroup section */ 52 | 121DEF15A32ACF19935F268D /* Frameworks */ = { 53 | isa = PBXGroup; 54 | children = ( 55 | B861CA43202B21540023B650 /* MultipeerConnectivity.framework */, 56 | E08CBFCE43465BC44DC17132 /* Pods_AZPeerToPeerConectvity.framework */, 57 | ); 58 | name = Frameworks; 59 | sourceTree = ""; 60 | }; 61 | 20B6A6491F6017D40059D5BC = { 62 | isa = PBXGroup; 63 | children = ( 64 | B86CE7D520355114008FA239 /* README.md */, 65 | 20B6A6541F6017D40059D5BC /* AZPeerToPeerConectvity */, 66 | 20B6A6531F6017D40059D5BC /* Products */, 67 | 4028EFC60E49832D89CD93EE /* Pods */, 68 | 121DEF15A32ACF19935F268D /* Frameworks */, 69 | ); 70 | sourceTree = ""; 71 | }; 72 | 20B6A6531F6017D40059D5BC /* Products */ = { 73 | isa = PBXGroup; 74 | children = ( 75 | 20B6A6521F6017D40059D5BC /* AZPeerToPeerConectvity.app */, 76 | ); 77 | name = Products; 78 | sourceTree = ""; 79 | }; 80 | 20B6A6541F6017D40059D5BC /* AZPeerToPeerConectvity */ = { 81 | isa = PBXGroup; 82 | children = ( 83 | 20B6A6551F6017D40059D5BC /* AppDelegate.swift */, 84 | 20B6A6571F6017D40059D5BC /* ViewController.swift */, 85 | 20B6A6591F6017D40059D5BC /* Main.storyboard */, 86 | 20B6A65C1F6017D40059D5BC /* Assets.xcassets */, 87 | 20B6A65E1F6017D40059D5BC /* LaunchScreen.storyboard */, 88 | 20B6A6611F6017D40059D5BC /* Info.plist */, 89 | B861CE00202D79A70023B650 /* ChatTableViewCell.swift */, 90 | B800C41920343A180056A76A /* PeerTableViewCell.swift */, 91 | ); 92 | path = AZPeerToPeerConectvity; 93 | sourceTree = ""; 94 | }; 95 | 4028EFC60E49832D89CD93EE /* Pods */ = { 96 | isa = PBXGroup; 97 | children = ( 98 | 221813D983C52FEC3B3697D3 /* Pods-AZPeerToPeerConectvity.debug.xcconfig */, 99 | 1AFAEC294BD746D588A660B0 /* Pods-AZPeerToPeerConectvity.release.xcconfig */, 100 | ); 101 | name = Pods; 102 | sourceTree = ""; 103 | }; 104 | /* End PBXGroup section */ 105 | 106 | /* Begin PBXNativeTarget section */ 107 | 20B6A6511F6017D40059D5BC /* AZPeerToPeerConectvity */ = { 108 | isa = PBXNativeTarget; 109 | buildConfigurationList = 20B6A6641F6017D40059D5BC /* Build configuration list for PBXNativeTarget "AZPeerToPeerConectvity" */; 110 | buildPhases = ( 111 | 3F72E0168B2B37395492BF1F /* [CP] Check Pods Manifest.lock */, 112 | 20B6A64E1F6017D40059D5BC /* Sources */, 113 | 20B6A64F1F6017D40059D5BC /* Frameworks */, 114 | 20B6A6501F6017D40059D5BC /* Resources */, 115 | 719BB7BA0DDD191C85CE23E1 /* [CP] Embed Pods Frameworks */, 116 | EC25C018803CDCE7F566B213 /* [CP] Copy Pods Resources */, 117 | ); 118 | buildRules = ( 119 | ); 120 | dependencies = ( 121 | ); 122 | name = AZPeerToPeerConectvity; 123 | productName = AZPeerToPeerConectvity; 124 | productReference = 20B6A6521F6017D40059D5BC /* AZPeerToPeerConectvity.app */; 125 | productType = "com.apple.product-type.application"; 126 | }; 127 | /* End PBXNativeTarget section */ 128 | 129 | /* Begin PBXProject section */ 130 | 20B6A64A1F6017D40059D5BC /* Project object */ = { 131 | isa = PBXProject; 132 | attributes = { 133 | LastSwiftUpdateCheck = 0830; 134 | LastUpgradeCheck = 0830; 135 | ORGANIZATIONNAME = AfrozZaheer; 136 | TargetAttributes = { 137 | 20B6A6511F6017D40059D5BC = { 138 | CreatedOnToolsVersion = 8.3.3; 139 | DevelopmentTeam = CASVKBQG32; 140 | ProvisioningStyle = Automatic; 141 | }; 142 | }; 143 | }; 144 | buildConfigurationList = 20B6A64D1F6017D40059D5BC /* Build configuration list for PBXProject "AZPeerToPeerConectvity" */; 145 | compatibilityVersion = "Xcode 3.2"; 146 | developmentRegion = English; 147 | hasScannedForEncodings = 0; 148 | knownRegions = ( 149 | en, 150 | Base, 151 | ); 152 | mainGroup = 20B6A6491F6017D40059D5BC; 153 | productRefGroup = 20B6A6531F6017D40059D5BC /* Products */; 154 | projectDirPath = ""; 155 | projectRoot = ""; 156 | targets = ( 157 | 20B6A6511F6017D40059D5BC /* AZPeerToPeerConectvity */, 158 | ); 159 | }; 160 | /* End PBXProject section */ 161 | 162 | /* Begin PBXResourcesBuildPhase section */ 163 | 20B6A6501F6017D40059D5BC /* Resources */ = { 164 | isa = PBXResourcesBuildPhase; 165 | buildActionMask = 2147483647; 166 | files = ( 167 | 20B6A6601F6017D40059D5BC /* LaunchScreen.storyboard in Resources */, 168 | 20B6A65D1F6017D40059D5BC /* Assets.xcassets in Resources */, 169 | B86CE7D620355114008FA239 /* README.md in Resources */, 170 | 20B6A65B1F6017D40059D5BC /* Main.storyboard in Resources */, 171 | ); 172 | runOnlyForDeploymentPostprocessing = 0; 173 | }; 174 | /* End PBXResourcesBuildPhase section */ 175 | 176 | /* Begin PBXShellScriptBuildPhase section */ 177 | 3F72E0168B2B37395492BF1F /* [CP] Check Pods Manifest.lock */ = { 178 | isa = PBXShellScriptBuildPhase; 179 | buildActionMask = 2147483647; 180 | files = ( 181 | ); 182 | inputPaths = ( 183 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 184 | "${PODS_ROOT}/Manifest.lock", 185 | ); 186 | name = "[CP] Check Pods Manifest.lock"; 187 | outputPaths = ( 188 | "$(DERIVED_FILE_DIR)/Pods-AZPeerToPeerConectvity-checkManifestLockResult.txt", 189 | ); 190 | runOnlyForDeploymentPostprocessing = 0; 191 | shellPath = /bin/sh; 192 | 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"; 193 | showEnvVarsInLog = 0; 194 | }; 195 | 719BB7BA0DDD191C85CE23E1 /* [CP] Embed Pods Frameworks */ = { 196 | isa = PBXShellScriptBuildPhase; 197 | buildActionMask = 2147483647; 198 | files = ( 199 | ); 200 | inputPaths = ( 201 | "${SRCROOT}/Pods/Target Support Files/Pods-AZPeerToPeerConectvity/Pods-AZPeerToPeerConectvity-frameworks.sh", 202 | "${BUILT_PRODUCTS_DIR}/AZPeerToPeerConnection/AZPeerToPeerConnection.framework", 203 | ); 204 | name = "[CP] Embed Pods Frameworks"; 205 | outputPaths = ( 206 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/AZPeerToPeerConnection.framework", 207 | ); 208 | runOnlyForDeploymentPostprocessing = 0; 209 | shellPath = /bin/sh; 210 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-AZPeerToPeerConectvity/Pods-AZPeerToPeerConectvity-frameworks.sh\"\n"; 211 | showEnvVarsInLog = 0; 212 | }; 213 | EC25C018803CDCE7F566B213 /* [CP] Copy Pods Resources */ = { 214 | isa = PBXShellScriptBuildPhase; 215 | buildActionMask = 2147483647; 216 | files = ( 217 | ); 218 | inputPaths = ( 219 | ); 220 | name = "[CP] Copy Pods Resources"; 221 | outputPaths = ( 222 | ); 223 | runOnlyForDeploymentPostprocessing = 0; 224 | shellPath = /bin/sh; 225 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-AZPeerToPeerConectvity/Pods-AZPeerToPeerConectvity-resources.sh\"\n"; 226 | showEnvVarsInLog = 0; 227 | }; 228 | /* End PBXShellScriptBuildPhase section */ 229 | 230 | /* Begin PBXSourcesBuildPhase section */ 231 | 20B6A64E1F6017D40059D5BC /* Sources */ = { 232 | isa = PBXSourcesBuildPhase; 233 | buildActionMask = 2147483647; 234 | files = ( 235 | B861CE01202D79A70023B650 /* ChatTableViewCell.swift in Sources */, 236 | B800C41A20343A180056A76A /* PeerTableViewCell.swift in Sources */, 237 | 20B6A6581F6017D40059D5BC /* ViewController.swift in Sources */, 238 | 20B6A6561F6017D40059D5BC /* AppDelegate.swift in Sources */, 239 | ); 240 | runOnlyForDeploymentPostprocessing = 0; 241 | }; 242 | /* End PBXSourcesBuildPhase section */ 243 | 244 | /* Begin PBXVariantGroup section */ 245 | 20B6A6591F6017D40059D5BC /* Main.storyboard */ = { 246 | isa = PBXVariantGroup; 247 | children = ( 248 | 20B6A65A1F6017D40059D5BC /* Base */, 249 | ); 250 | name = Main.storyboard; 251 | sourceTree = ""; 252 | }; 253 | 20B6A65E1F6017D40059D5BC /* LaunchScreen.storyboard */ = { 254 | isa = PBXVariantGroup; 255 | children = ( 256 | 20B6A65F1F6017D40059D5BC /* Base */, 257 | ); 258 | name = LaunchScreen.storyboard; 259 | sourceTree = ""; 260 | }; 261 | /* End PBXVariantGroup section */ 262 | 263 | /* Begin XCBuildConfiguration section */ 264 | 20B6A6621F6017D40059D5BC /* Debug */ = { 265 | isa = XCBuildConfiguration; 266 | buildSettings = { 267 | ALWAYS_SEARCH_USER_PATHS = NO; 268 | CLANG_ANALYZER_NONNULL = YES; 269 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 270 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 271 | CLANG_CXX_LIBRARY = "libc++"; 272 | CLANG_ENABLE_MODULES = YES; 273 | CLANG_ENABLE_OBJC_ARC = YES; 274 | CLANG_WARN_BOOL_CONVERSION = YES; 275 | CLANG_WARN_CONSTANT_CONVERSION = YES; 276 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 277 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 278 | CLANG_WARN_EMPTY_BODY = YES; 279 | CLANG_WARN_ENUM_CONVERSION = YES; 280 | CLANG_WARN_INFINITE_RECURSION = YES; 281 | CLANG_WARN_INT_CONVERSION = YES; 282 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 283 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 284 | CLANG_WARN_UNREACHABLE_CODE = YES; 285 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 286 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 287 | COPY_PHASE_STRIP = NO; 288 | DEBUG_INFORMATION_FORMAT = dwarf; 289 | ENABLE_STRICT_OBJC_MSGSEND = YES; 290 | ENABLE_TESTABILITY = YES; 291 | GCC_C_LANGUAGE_STANDARD = gnu99; 292 | GCC_DYNAMIC_NO_PIC = NO; 293 | GCC_NO_COMMON_BLOCKS = YES; 294 | GCC_OPTIMIZATION_LEVEL = 0; 295 | GCC_PREPROCESSOR_DEFINITIONS = ( 296 | "DEBUG=1", 297 | "$(inherited)", 298 | ); 299 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 300 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 301 | GCC_WARN_UNDECLARED_SELECTOR = YES; 302 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 303 | GCC_WARN_UNUSED_FUNCTION = YES; 304 | GCC_WARN_UNUSED_VARIABLE = YES; 305 | IPHONEOS_DEPLOYMENT_TARGET = 10.3; 306 | MTL_ENABLE_DEBUG_INFO = YES; 307 | ONLY_ACTIVE_ARCH = YES; 308 | SDKROOT = iphoneos; 309 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 310 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 311 | }; 312 | name = Debug; 313 | }; 314 | 20B6A6631F6017D40059D5BC /* Release */ = { 315 | isa = XCBuildConfiguration; 316 | buildSettings = { 317 | ALWAYS_SEARCH_USER_PATHS = NO; 318 | CLANG_ANALYZER_NONNULL = YES; 319 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 320 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 321 | CLANG_CXX_LIBRARY = "libc++"; 322 | CLANG_ENABLE_MODULES = YES; 323 | CLANG_ENABLE_OBJC_ARC = YES; 324 | CLANG_WARN_BOOL_CONVERSION = YES; 325 | CLANG_WARN_CONSTANT_CONVERSION = YES; 326 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 327 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 328 | CLANG_WARN_EMPTY_BODY = YES; 329 | CLANG_WARN_ENUM_CONVERSION = YES; 330 | CLANG_WARN_INFINITE_RECURSION = YES; 331 | CLANG_WARN_INT_CONVERSION = YES; 332 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 333 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 334 | CLANG_WARN_UNREACHABLE_CODE = YES; 335 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 336 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 337 | COPY_PHASE_STRIP = NO; 338 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 339 | ENABLE_NS_ASSERTIONS = NO; 340 | ENABLE_STRICT_OBJC_MSGSEND = YES; 341 | GCC_C_LANGUAGE_STANDARD = gnu99; 342 | GCC_NO_COMMON_BLOCKS = YES; 343 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 344 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 345 | GCC_WARN_UNDECLARED_SELECTOR = YES; 346 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 347 | GCC_WARN_UNUSED_FUNCTION = YES; 348 | GCC_WARN_UNUSED_VARIABLE = YES; 349 | IPHONEOS_DEPLOYMENT_TARGET = 10.3; 350 | MTL_ENABLE_DEBUG_INFO = NO; 351 | SDKROOT = iphoneos; 352 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 353 | VALIDATE_PRODUCT = YES; 354 | }; 355 | name = Release; 356 | }; 357 | 20B6A6651F6017D40059D5BC /* Debug */ = { 358 | isa = XCBuildConfiguration; 359 | baseConfigurationReference = 221813D983C52FEC3B3697D3 /* Pods-AZPeerToPeerConectvity.debug.xcconfig */; 360 | buildSettings = { 361 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 362 | DEVELOPMENT_TEAM = CASVKBQG32; 363 | INFOPLIST_FILE = AZPeerToPeerConectvity/Info.plist; 364 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 365 | PRODUCT_BUNDLE_IDENTIFIER = com.AfrozZaheer.AZPeerToPeerConectvity; 366 | PRODUCT_NAME = "$(TARGET_NAME)"; 367 | SWIFT_VERSION = 3.0; 368 | }; 369 | name = Debug; 370 | }; 371 | 20B6A6661F6017D40059D5BC /* Release */ = { 372 | isa = XCBuildConfiguration; 373 | baseConfigurationReference = 1AFAEC294BD746D588A660B0 /* Pods-AZPeerToPeerConectvity.release.xcconfig */; 374 | buildSettings = { 375 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 376 | DEVELOPMENT_TEAM = CASVKBQG32; 377 | INFOPLIST_FILE = AZPeerToPeerConectvity/Info.plist; 378 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 379 | PRODUCT_BUNDLE_IDENTIFIER = com.AfrozZaheer.AZPeerToPeerConectvity; 380 | PRODUCT_NAME = "$(TARGET_NAME)"; 381 | SWIFT_VERSION = 3.0; 382 | }; 383 | name = Release; 384 | }; 385 | /* End XCBuildConfiguration section */ 386 | 387 | /* Begin XCConfigurationList section */ 388 | 20B6A64D1F6017D40059D5BC /* Build configuration list for PBXProject "AZPeerToPeerConectvity" */ = { 389 | isa = XCConfigurationList; 390 | buildConfigurations = ( 391 | 20B6A6621F6017D40059D5BC /* Debug */, 392 | 20B6A6631F6017D40059D5BC /* Release */, 393 | ); 394 | defaultConfigurationIsVisible = 0; 395 | defaultConfigurationName = Release; 396 | }; 397 | 20B6A6641F6017D40059D5BC /* Build configuration list for PBXNativeTarget "AZPeerToPeerConectvity" */ = { 398 | isa = XCConfigurationList; 399 | buildConfigurations = ( 400 | 20B6A6651F6017D40059D5BC /* Debug */, 401 | 20B6A6661F6017D40059D5BC /* Release */, 402 | ); 403 | defaultConfigurationIsVisible = 0; 404 | defaultConfigurationName = Release; 405 | }; 406 | /* End XCConfigurationList section */ 407 | }; 408 | rootObject = 20B6A64A1F6017D40059D5BC /* Project object */; 409 | } 410 | -------------------------------------------------------------------------------- /AZPeerToPeerConectvity.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /AZPeerToPeerConectvity.xcodeproj/project.xcworkspace/xcuserdata/muhammadafroz.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AfrozZaheer/AZPeerToPeerConnection/c6510ce776a8001eda07c6929cae44ed54c84ba9/AZPeerToPeerConectvity.xcodeproj/project.xcworkspace/xcuserdata/muhammadafroz.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /AZPeerToPeerConectvity.xcodeproj/xcuserdata/afrozzaheer.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | AZPeerToPeerConectvity.xcscheme 8 | 9 | orderHint 10 | 2 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /AZPeerToPeerConectvity.xcodeproj/xcuserdata/muhammadafroz.xcuserdatad/xcschemes/AZPeerToPeerConectvity.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 39 | 40 | 41 | 42 | 43 | 44 | 54 | 56 | 62 | 63 | 64 | 65 | 66 | 67 | 73 | 75 | 81 | 82 | 83 | 84 | 86 | 87 | 90 | 91 | 92 | -------------------------------------------------------------------------------- /AZPeerToPeerConectvity.xcodeproj/xcuserdata/muhammadafroz.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | AZPeerToPeerConectvity.xcscheme 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | SuppressBuildableAutocreation 14 | 15 | 20B6A6511F6017D40059D5BC 16 | 17 | primary 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /AZPeerToPeerConectvity.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /AZPeerToPeerConectvity.xcworkspace/xcuserdata/afrozzaheer.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AfrozZaheer/AZPeerToPeerConnection/c6510ce776a8001eda07c6929cae44ed54c84ba9/AZPeerToPeerConectvity.xcworkspace/xcuserdata/afrozzaheer.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /AZPeerToPeerConectvity.xcworkspace/xcuserdata/afrozzaheer.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 8 | 20 | 21 | 35 | 36 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | -------------------------------------------------------------------------------- /AZPeerToPeerConectvity.xcworkspace/xcuserdata/muhammadafroz.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AfrozZaheer/AZPeerToPeerConnection/c6510ce776a8001eda07c6929cae44ed54c84ba9/AZPeerToPeerConectvity.xcworkspace/xcuserdata/muhammadafroz.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /AZPeerToPeerConectvity/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // AZPeerToPeerConectvity 4 | // 5 | // Created by Muhammad Afroz on 9/6/17. 6 | // Copyright © 2017 AfrozZaheer. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | @UIApplicationMain 12 | class AppDelegate: UIResponder, UIApplicationDelegate { 13 | 14 | var window: UIWindow? 15 | 16 | 17 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { 18 | // Override point for customization after application launch. 19 | return true 20 | } 21 | 22 | func applicationWillResignActive(_ application: UIApplication) { 23 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 24 | // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game. 25 | } 26 | 27 | func applicationDidEnterBackground(_ application: UIApplication) { 28 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 29 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 30 | } 31 | 32 | func applicationWillEnterForeground(_ application: UIApplication) { 33 | // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background. 34 | } 35 | 36 | func applicationDidBecomeActive(_ application: UIApplication) { 37 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 38 | } 39 | 40 | func applicationWillTerminate(_ application: UIApplication) { 41 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 42 | } 43 | 44 | 45 | } 46 | 47 | -------------------------------------------------------------------------------- /AZPeerToPeerConectvity/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "29x29", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "40x40", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "40x40", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "60x60", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "60x60", 31 | "scale" : "3x" 32 | } 33 | ], 34 | "info" : { 35 | "version" : 1, 36 | "author" : "xcode" 37 | } 38 | } -------------------------------------------------------------------------------- /AZPeerToPeerConectvity/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 30 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | -------------------------------------------------------------------------------- /AZPeerToPeerConectvity/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 210 | 211 | 212 | 213 | 214 | 215 | 216 | -------------------------------------------------------------------------------- /AZPeerToPeerConectvity/ChatTableViewCell.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ChatTableViewCell.swift 3 | // AZPeerToPeerConectvity 4 | // 5 | // Created by Afroz Zaheer on 09/02/2018. 6 | // Copyright © 2018 AfrozZaheer. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class ChatTableViewCell: UITableViewCell { 12 | 13 | @IBOutlet weak var lblText: UILabel! 14 | override func awakeFromNib() { 15 | super.awakeFromNib() 16 | // Initialization code 17 | } 18 | 19 | override func setSelected(_ selected: Bool, animated: Bool) { 20 | super.setSelected(selected, animated: animated) 21 | 22 | // Configure the view for the selected state 23 | } 24 | 25 | } 26 | -------------------------------------------------------------------------------- /AZPeerToPeerConectvity/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | LSRequiresIPhoneOS 22 | 23 | UILaunchStoryboardName 24 | LaunchScreen 25 | UIMainStoryboardFile 26 | Main 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /AZPeerToPeerConectvity/PeerTableViewCell.swift: -------------------------------------------------------------------------------- 1 | // 2 | // PeerTableViewCell.swift 3 | // AZPeerToPeerConectvity 4 | // 5 | // Created by Afroz Zaheer on 14/02/2018. 6 | // Copyright © 2018 AfrozZaheer. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class PeerTableViewCell: UITableViewCell { 12 | 13 | @IBOutlet weak var lblPeerName: UILabel! 14 | 15 | override func awakeFromNib() { 16 | super.awakeFromNib() 17 | // Initialization code 18 | } 19 | 20 | override func setSelected(_ selected: Bool, animated: Bool) { 21 | super.setSelected(selected, animated: animated) 22 | 23 | // Configure the view for the selected state 24 | } 25 | 26 | } 27 | -------------------------------------------------------------------------------- /AZPeerToPeerConectvity/README.md: -------------------------------------------------------------------------------- 1 | # AZPeerToPeerConnection Controller 2 | 3 | 4 | [![Awesome](https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg)](https://github.com/sindresorhus/awesome) 5 | [![Swift version](https://img.shields.io/badge/swift%20-4.0-orange.svg)](https://img.shields.io/badge/swift%20-4.0-orange.svg) 6 | [![Support Dependecy Manager](https://img.shields.io/badge/support-CocoaPods-red.svg?style=flat.svg)](https://img.shields.io/badge/support-CocoaPods-red.svg?style=flat.svg) 7 | [![Version](https://img.shields.io/cocoapods/v/AZCollectionViewController.svg?style=flat)](https://cocoapods.org/pods/AZCollectionViewController) 8 | [![License](https://img.shields.io/badge/License-MIT-brightgreen.svg?style=flat.svg)](https://img.shields.io/badge/License-MIT-brightgreen.svg?style=flat.svg) 9 | [![Platform](https://img.shields.io/badge/platform-ios-lightgrey.svg)](https://cocoapods.org/pods/AZCollectionViewController) 10 | 11 | 12 |

13 | 14 | 15 | 16 |

17 | 18 | 19 | ## Features 20 | 21 | * 22 | 23 | ## Installation 24 | 25 | ### CocoaPods 26 | 27 | [CocoaPods](http://cocoapods.org) is a dependency manager for Cocoa projects. You can install it with the following command: 28 | 29 | ```bash 30 | $ gem install cocoapods 31 | ``` 32 | 33 | 34 | To integrate AZ PeerToPeerConnection into your Xcode project using CocoaPods, specify it in your `Podfile`: 35 | 36 | ```ruby 37 | source 'https://github.com/CocoaPods/Specs.git' 38 | platform :ios, '10.0' 39 | use_frameworks! 40 | 41 | target '' do 42 | pod 'AZPeerToPeerConnection' 43 | end 44 | ``` 45 | 46 | Then, run the following command: 47 | 48 | ```bash 49 | $ pod install 50 | ``` 51 | 52 | ## Usage 53 | 54 | #### Step 1 55 | 56 | * Override two more functions "fetchData" and "fetchNextData" 57 | 58 | ```swift 59 | 60 | ``` 61 | 62 | #### Done 63 | Thats it, you successfully integrate AZPeerToPeerConnection 64 | 65 | 66 | ## License 67 | 68 | AZPeerToPeerConnection is available under the MIT license. See the LICENSE file for more info. 69 | 70 | ## Author 71 | 72 | **Afroz Zaheer** - (https://github.com/AfrozZaheer) 73 | 74 | 75 | -------------------------------------------------------------------------------- /AZPeerToPeerConectvity/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // AZPeerToPeerConectvity 4 | // 5 | // Created by Muhammad Afroz on 9/6/17. 6 | // Copyright © 2017 AfrozZaheer. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import AZPeerToPeerConnection 11 | import MultipeerConnectivity 12 | 13 | class ViewController: UIViewController { 14 | 15 | @IBOutlet weak var textField: UITextField! 16 | @IBOutlet weak var tableView: UITableView! 17 | @IBOutlet var toolbar: UIToolbar! 18 | 19 | var messages = [String]() 20 | 21 | var cellIdentifier = "SenderCell" 22 | let connection = P2PServiceHandler.sharedInstance 23 | override func viewDidLoad() { 24 | super.viewDidLoad() 25 | connection.delegate = self 26 | connection.setupConnection(serviceName: "AZP2Ptest") 27 | 28 | tableView.estimatedRowHeight = 50 29 | tableView.rowHeight = UITableViewAutomaticDimension 30 | textField.delegate = self 31 | 32 | } 33 | 34 | override func didReceiveMemoryWarning() { 35 | super.didReceiveMemoryWarning() 36 | 37 | } 38 | 39 | @IBAction func presentMCBrowser(_ sender: Any) { 40 | 41 | connection.joinSession(vc: self, mcBrowser: nil) // nil == default mcbrowsr 42 | } 43 | @IBAction func sendText(_ sender: Any) { 44 | connection.sendData(data: ["message": textField.text ?? "defaultValue"]) 45 | messages.append(textField.text!) 46 | cellIdentifier = CellIdetifier.sender.rawValue 47 | let index = IndexPath(row: messages.count - 1, section: 0) 48 | tableView.insertRows(at: [index], with: .automatic) 49 | } 50 | } 51 | extension ViewController: P2PServiceHandlerDelegate { 52 | func didConnectedTo(_ serviceHandler: P2PServiceHandler, to peer: MCPeerID) { 53 | 54 | } 55 | 56 | func didFailToConnect(_ serviceHandler: P2PServiceHandler, with peer: MCPeerID) { 57 | 58 | } 59 | 60 | func connecting(_ serviceHandler: P2PServiceHandler, to peer: MCPeerID) { 61 | 62 | } 63 | 64 | func didRecieve(_ serviceHandler: P2PServiceHandler, data: [String : Any]) { 65 | 66 | DispatchQueue.main.async { 67 | if let val = data["message"] { 68 | self.cellIdentifier = CellIdetifier.reciever.rawValue 69 | self.messages.append(val as! String) 70 | let index = IndexPath(row: self.messages.count - 1, section: 0) 71 | self.tableView.insertRows(at: [index], with: .automatic) 72 | 73 | } 74 | } 75 | } 76 | } 77 | extension ViewController: UITextFieldDelegate { 78 | 79 | func textFieldDidBeginEditing(_ textField: UITextField) { 80 | if textField != self.textField { 81 | textField.inputAccessoryView = toolbar 82 | } 83 | } 84 | 85 | } 86 | 87 | 88 | extension ViewController: UITableViewDelegate, UITableViewDataSource { 89 | 90 | func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { 91 | 92 | // if indexPath.row % 2 == 0 { 93 | let cell = tableView.dequeueReusableCell(withIdentifier: cellIdentifier) as! ChatTableViewCell 94 | 95 | cell.lblText.text = messages[indexPath.row] 96 | return cell 97 | 98 | // } 99 | // else { 100 | // let cell = tableView.dequeueReusableCell(withIdentifier: CellIdetifier.reciever.rawValue) as! ChatTableViewCell 101 | // 102 | // cell.lblText.text = "Hi how are you. I'm testing this aap which use local text message" 103 | // return cell 104 | // 105 | // } 106 | } 107 | func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { 108 | return messages.count 109 | } 110 | } 111 | 112 | 113 | enum CellIdetifier: String { 114 | case sender = "SenderCell", 115 | reciever = "RecieverCell" 116 | } 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | -------------------------------------------------------------------------------- /AZPeerToPeerConnection.podspec: -------------------------------------------------------------------------------- 1 | 2 | Pod::Spec.new do |s| 3 | 4 | 5 | s.name = "AZPeerToPeerConnection" 6 | s.version = "0.1.1" 7 | s.summary = "Wrapper on top of Apple iOS Multipeer Connectivity framework" 8 | 9 | s.description = <<-DESC 10 | AZPeerToPeerConnectivity is a wrapper on top of Apple iOS Multipeer Connectivity framework. It provides an easier way to create and manage sessions. Easy to integrate 11 | DESC 12 | 13 | s.homepage = "https://github.com/AfrozZaheer/AZPeerToPeerConnection" 14 | 15 | 16 | s.license = { :type => 'MIT', :file => 'LICENSE' } 17 | 18 | 19 | s.author = { "AfrozZaheer" => "afrozezaheer@gmail.com" } 20 | 21 | s.source = { :git => "https://github.com/AfrozZaheer/AZPeerToPeerConnection.git" } 22 | s.platform = :ios, "10.0" 23 | 24 | 25 | 26 | s.source_files = 'Source/**/*.{swift}' 27 | 28 | end 29 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2017 Afroz Zaheer 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /Podfile: -------------------------------------------------------------------------------- 1 | # Uncomment the next line to define a global platform for your project 2 | # platform :ios, '9.0' 3 | 4 | target 'AZPeerToPeerConectvity' do 5 | # Comment the next line if you're not using Swift and don't want to use dynamic frameworks 6 | use_frameworks! 7 | 8 | # Pods for AZPeerToPeerConectvity 9 | 10 | pod 'AZPeerToPeerConnection', :path => '../AZPeerToPeerConectvity' 11 | 12 | 13 | end 14 | -------------------------------------------------------------------------------- /Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - AZPeerToPeerConnection (0.1.0) 3 | 4 | DEPENDENCIES: 5 | - AZPeerToPeerConnection (from `../AZPeerToPeerConectvity`) 6 | 7 | EXTERNAL SOURCES: 8 | AZPeerToPeerConnection: 9 | :path: ../AZPeerToPeerConectvity 10 | 11 | SPEC CHECKSUMS: 12 | AZPeerToPeerConnection: 3fe57149b910efbb6389483ba29e1e366a831b01 13 | 14 | PODFILE CHECKSUM: 14cb8394fc10165dff9793e05891c8c532333303 15 | 16 | COCOAPODS: 1.3.1 17 | -------------------------------------------------------------------------------- /Pods/Local Podspecs/AZPeerToPeerConnection.podspec.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "AZPeerToPeerConnection", 3 | "version": "0.1.0", 4 | "summary": "Automatic pagination handling and loading views", 5 | "description": "Automatic pagination handling\nNo more awkward empty TableView", 6 | "homepage": "https://AfrozNXB@bitbucket.org/AfrozNXB/privatepodtest.git", 7 | "license": { 8 | "type": "MIT", 9 | "file": "LICENSE" 10 | }, 11 | "authors": { 12 | "AfrozZaheer": "afrozezaheer@gmail.com" 13 | }, 14 | "source": { 15 | "git": "." 16 | }, 17 | "platforms": { 18 | "ios": "9.0" 19 | }, 20 | "source_files": "Source/**/*.{swift}" 21 | } 22 | -------------------------------------------------------------------------------- /Pods/Manifest.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - AZPeerToPeerConnection (0.1.0) 3 | 4 | DEPENDENCIES: 5 | - AZPeerToPeerConnection (from `../AZPeerToPeerConectvity`) 6 | 7 | EXTERNAL SOURCES: 8 | AZPeerToPeerConnection: 9 | :path: ../AZPeerToPeerConectvity 10 | 11 | SPEC CHECKSUMS: 12 | AZPeerToPeerConnection: 3fe57149b910efbb6389483ba29e1e366a831b01 13 | 14 | PODFILE CHECKSUM: 14cb8394fc10165dff9793e05891c8c532333303 15 | 16 | COCOAPODS: 1.3.1 17 | -------------------------------------------------------------------------------- /Pods/Pods.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 0F2E1753DD53548490EAE08AD47C3F3F /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6604A7D69453B4569E4E4827FB9155A9 /* Foundation.framework */; }; 11 | 19A530F9E36EF9FA5C32263CBC9E4F27 /* AZPeerToPeerConnection-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = C1FBB6B5F8F4D7B0ACAA8CF182FF9E3D /* AZPeerToPeerConnection-dummy.m */; }; 12 | 22A62932E403AD84BF2008D5A78C548E /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6604A7D69453B4569E4E4827FB9155A9 /* Foundation.framework */; }; 13 | 4C594ED9FD11908ABF89D9699579A465 /* Pods-AZPeerToPeerConectvity-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = A0DB6D6DFDBEC87E8A30861177930B5E /* Pods-AZPeerToPeerConectvity-dummy.m */; }; 14 | 7501636750788511DAB490BF8A728C2D /* AZPeerToPeerConnection-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = E439F3562CF51557BA866E52ECCA24BC /* AZPeerToPeerConnection-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 15 | 77C6DDAA88429B038C49BDB70A6CC9E9 /* Pods-AZPeerToPeerConectvity-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 41A8DCEB599EFEC03BDD39EC671F2788 /* Pods-AZPeerToPeerConectvity-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 16 | A023E0C2205CA842802B84FF83836E17 /* P2PServiceHandler.swift in Sources */ = {isa = PBXBuildFile; fileRef = 37FD2D194A49A588AD1E9F6D4C56C402 /* P2PServiceHandler.swift */; }; 17 | /* End PBXBuildFile section */ 18 | 19 | /* Begin PBXContainerItemProxy section */ 20 | B2FF94EAD937223D84466B3A4223BE27 /* PBXContainerItemProxy */ = { 21 | isa = PBXContainerItemProxy; 22 | containerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 23 | proxyType = 1; 24 | remoteGlobalIDString = 6C3DCA6A68A59E896FE10D6360CE5714; 25 | remoteInfo = AZPeerToPeerConnection; 26 | }; 27 | /* End PBXContainerItemProxy section */ 28 | 29 | /* Begin PBXFileReference section */ 30 | 2A8F9BBE6EC5D21254D8ED8225961DD9 /* AZPeerToPeerConnection-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "AZPeerToPeerConnection-prefix.pch"; sourceTree = ""; }; 31 | 2F15496B89DED74F93358C472CE1C7E6 /* Pods-AZPeerToPeerConectvity-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-AZPeerToPeerConectvity-frameworks.sh"; sourceTree = ""; }; 32 | 37FD2D194A49A588AD1E9F6D4C56C402 /* P2PServiceHandler.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = P2PServiceHandler.swift; path = Source/P2PServiceHandler.swift; sourceTree = ""; }; 33 | 3A0F0709E0A557A85BB1B8C933B19955 /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 34 | 41A8DCEB599EFEC03BDD39EC671F2788 /* Pods-AZPeerToPeerConectvity-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-AZPeerToPeerConectvity-umbrella.h"; sourceTree = ""; }; 35 | 4FE06766CDE8C52E43EA33B38A0E3229 /* AZPeerToPeerConnection.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; path = AZPeerToPeerConnection.modulemap; sourceTree = ""; }; 36 | 6604A7D69453B4569E4E4827FB9155A9 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.3.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; }; 37 | 6A41F61E6B418090AB2B11B82329182F /* AZPeerToPeerConnection.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = AZPeerToPeerConnection.framework; path = AZPeerToPeerConnection.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 38 | 87D6465D5AF4A9198C21FA8E0A808341 /* Pods-AZPeerToPeerConectvity.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-AZPeerToPeerConectvity.release.xcconfig"; sourceTree = ""; }; 39 | 934BAB36C696315B2512864742BDC15E /* Pods_AZPeerToPeerConectvity.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = Pods_AZPeerToPeerConectvity.framework; path = "Pods-AZPeerToPeerConectvity.framework"; sourceTree = BUILT_PRODUCTS_DIR; }; 40 | 93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; lastKnownFileType = text; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 41 | A06D2ED0947FF433D81A95DD2E6611C8 /* Pods-AZPeerToPeerConectvity.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; path = "Pods-AZPeerToPeerConectvity.modulemap"; sourceTree = ""; }; 42 | A0DB6D6DFDBEC87E8A30861177930B5E /* Pods-AZPeerToPeerConectvity-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-AZPeerToPeerConectvity-dummy.m"; sourceTree = ""; }; 43 | A7047845A613B3DF7FF052D60B344367 /* Pods-AZPeerToPeerConectvity.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-AZPeerToPeerConectvity.debug.xcconfig"; sourceTree = ""; }; 44 | C1FBB6B5F8F4D7B0ACAA8CF182FF9E3D /* AZPeerToPeerConnection-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "AZPeerToPeerConnection-dummy.m"; sourceTree = ""; }; 45 | C53E9598A3D6FD26FDCC133A0050B2C0 /* Pods-AZPeerToPeerConectvity-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-AZPeerToPeerConectvity-resources.sh"; sourceTree = ""; }; 46 | C54272A58001811FFD0E74DFFB87F55F /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 47 | C5AB38E60924D9C395F63B01124320CD /* Pods-AZPeerToPeerConectvity-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-AZPeerToPeerConectvity-acknowledgements.plist"; sourceTree = ""; }; 48 | C81DC3619F4CAE12E5945255CFAD2B01 /* Pods-AZPeerToPeerConectvity-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-AZPeerToPeerConectvity-acknowledgements.markdown"; sourceTree = ""; }; 49 | E439F3562CF51557BA866E52ECCA24BC /* AZPeerToPeerConnection-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "AZPeerToPeerConnection-umbrella.h"; sourceTree = ""; }; 50 | E63859ACD85B4AF89A3EA4CAC249E39A /* AZPeerToPeerConnection.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = AZPeerToPeerConnection.xcconfig; sourceTree = ""; }; 51 | /* End PBXFileReference section */ 52 | 53 | /* Begin PBXFrameworksBuildPhase section */ 54 | BEEB81FCC48E68BB488B606CC2B2EB89 /* Frameworks */ = { 55 | isa = PBXFrameworksBuildPhase; 56 | buildActionMask = 2147483647; 57 | files = ( 58 | 0F2E1753DD53548490EAE08AD47C3F3F /* Foundation.framework in Frameworks */, 59 | ); 60 | runOnlyForDeploymentPostprocessing = 0; 61 | }; 62 | E11CD3526DA4D6422C7F2D7B34F9A0A8 /* Frameworks */ = { 63 | isa = PBXFrameworksBuildPhase; 64 | buildActionMask = 2147483647; 65 | files = ( 66 | 22A62932E403AD84BF2008D5A78C548E /* Foundation.framework in Frameworks */, 67 | ); 68 | runOnlyForDeploymentPostprocessing = 0; 69 | }; 70 | /* End PBXFrameworksBuildPhase section */ 71 | 72 | /* Begin PBXGroup section */ 73 | 211780520B86F12DD72248D60DC47A68 /* Support Files */ = { 74 | isa = PBXGroup; 75 | children = ( 76 | 4FE06766CDE8C52E43EA33B38A0E3229 /* AZPeerToPeerConnection.modulemap */, 77 | E63859ACD85B4AF89A3EA4CAC249E39A /* AZPeerToPeerConnection.xcconfig */, 78 | C1FBB6B5F8F4D7B0ACAA8CF182FF9E3D /* AZPeerToPeerConnection-dummy.m */, 79 | 2A8F9BBE6EC5D21254D8ED8225961DD9 /* AZPeerToPeerConnection-prefix.pch */, 80 | E439F3562CF51557BA866E52ECCA24BC /* AZPeerToPeerConnection-umbrella.h */, 81 | 3A0F0709E0A557A85BB1B8C933B19955 /* Info.plist */, 82 | ); 83 | name = "Support Files"; 84 | path = "Pods/Target Support Files/AZPeerToPeerConnection"; 85 | sourceTree = ""; 86 | }; 87 | 7DB346D0F39D3F0E887471402A8071AB = { 88 | isa = PBXGroup; 89 | children = ( 90 | 93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */, 91 | C09A53C9D7692EA79B2639FB5AF1DCAD /* Development Pods */, 92 | BC3CA7F9E30CC8F7E2DD044DD34432FC /* Frameworks */, 93 | C531FDF8CB19C08881DD5777B2C04C53 /* Products */, 94 | E95098B10AF46F368B63922044F4EAA2 /* Targets Support Files */, 95 | ); 96 | sourceTree = ""; 97 | }; 98 | 9816056D2750D5AE16AC84C994C5FECC /* AZPeerToPeerConnection */ = { 99 | isa = PBXGroup; 100 | children = ( 101 | 37FD2D194A49A588AD1E9F6D4C56C402 /* P2PServiceHandler.swift */, 102 | 211780520B86F12DD72248D60DC47A68 /* Support Files */, 103 | ); 104 | name = AZPeerToPeerConnection; 105 | path = ..; 106 | sourceTree = ""; 107 | }; 108 | BC3CA7F9E30CC8F7E2DD044DD34432FC /* Frameworks */ = { 109 | isa = PBXGroup; 110 | children = ( 111 | D35AF013A5F0BAD4F32504907A52519E /* iOS */, 112 | ); 113 | name = Frameworks; 114 | sourceTree = ""; 115 | }; 116 | C09A53C9D7692EA79B2639FB5AF1DCAD /* Development Pods */ = { 117 | isa = PBXGroup; 118 | children = ( 119 | 9816056D2750D5AE16AC84C994C5FECC /* AZPeerToPeerConnection */, 120 | ); 121 | name = "Development Pods"; 122 | sourceTree = ""; 123 | }; 124 | C531FDF8CB19C08881DD5777B2C04C53 /* Products */ = { 125 | isa = PBXGroup; 126 | children = ( 127 | 6A41F61E6B418090AB2B11B82329182F /* AZPeerToPeerConnection.framework */, 128 | 934BAB36C696315B2512864742BDC15E /* Pods_AZPeerToPeerConectvity.framework */, 129 | ); 130 | name = Products; 131 | sourceTree = ""; 132 | }; 133 | D35AF013A5F0BAD4F32504907A52519E /* iOS */ = { 134 | isa = PBXGroup; 135 | children = ( 136 | 6604A7D69453B4569E4E4827FB9155A9 /* Foundation.framework */, 137 | ); 138 | name = iOS; 139 | sourceTree = ""; 140 | }; 141 | D9EF95CBDE563442F640E1BF9529A80A /* Pods-AZPeerToPeerConectvity */ = { 142 | isa = PBXGroup; 143 | children = ( 144 | C54272A58001811FFD0E74DFFB87F55F /* Info.plist */, 145 | A06D2ED0947FF433D81A95DD2E6611C8 /* Pods-AZPeerToPeerConectvity.modulemap */, 146 | C81DC3619F4CAE12E5945255CFAD2B01 /* Pods-AZPeerToPeerConectvity-acknowledgements.markdown */, 147 | C5AB38E60924D9C395F63B01124320CD /* Pods-AZPeerToPeerConectvity-acknowledgements.plist */, 148 | A0DB6D6DFDBEC87E8A30861177930B5E /* Pods-AZPeerToPeerConectvity-dummy.m */, 149 | 2F15496B89DED74F93358C472CE1C7E6 /* Pods-AZPeerToPeerConectvity-frameworks.sh */, 150 | C53E9598A3D6FD26FDCC133A0050B2C0 /* Pods-AZPeerToPeerConectvity-resources.sh */, 151 | 41A8DCEB599EFEC03BDD39EC671F2788 /* Pods-AZPeerToPeerConectvity-umbrella.h */, 152 | A7047845A613B3DF7FF052D60B344367 /* Pods-AZPeerToPeerConectvity.debug.xcconfig */, 153 | 87D6465D5AF4A9198C21FA8E0A808341 /* Pods-AZPeerToPeerConectvity.release.xcconfig */, 154 | ); 155 | name = "Pods-AZPeerToPeerConectvity"; 156 | path = "Target Support Files/Pods-AZPeerToPeerConectvity"; 157 | sourceTree = ""; 158 | }; 159 | E95098B10AF46F368B63922044F4EAA2 /* Targets Support Files */ = { 160 | isa = PBXGroup; 161 | children = ( 162 | D9EF95CBDE563442F640E1BF9529A80A /* Pods-AZPeerToPeerConectvity */, 163 | ); 164 | name = "Targets Support Files"; 165 | sourceTree = ""; 166 | }; 167 | /* End PBXGroup section */ 168 | 169 | /* Begin PBXHeadersBuildPhase section */ 170 | 594933AA22E715A0EA36DF5EB3D4F2BC /* Headers */ = { 171 | isa = PBXHeadersBuildPhase; 172 | buildActionMask = 2147483647; 173 | files = ( 174 | 7501636750788511DAB490BF8A728C2D /* AZPeerToPeerConnection-umbrella.h in Headers */, 175 | ); 176 | runOnlyForDeploymentPostprocessing = 0; 177 | }; 178 | 85DDA373CC1C4D81BCB1EB7C49B0108E /* Headers */ = { 179 | isa = PBXHeadersBuildPhase; 180 | buildActionMask = 2147483647; 181 | files = ( 182 | 77C6DDAA88429B038C49BDB70A6CC9E9 /* Pods-AZPeerToPeerConectvity-umbrella.h in Headers */, 183 | ); 184 | runOnlyForDeploymentPostprocessing = 0; 185 | }; 186 | /* End PBXHeadersBuildPhase section */ 187 | 188 | /* Begin PBXNativeTarget section */ 189 | 6C3DCA6A68A59E896FE10D6360CE5714 /* AZPeerToPeerConnection */ = { 190 | isa = PBXNativeTarget; 191 | buildConfigurationList = 66E46AB4424EC966C12347BDC1B2262C /* Build configuration list for PBXNativeTarget "AZPeerToPeerConnection" */; 192 | buildPhases = ( 193 | D3DE1CE741622C95DEA22A3E4B3F1EFD /* Sources */, 194 | BEEB81FCC48E68BB488B606CC2B2EB89 /* Frameworks */, 195 | 594933AA22E715A0EA36DF5EB3D4F2BC /* Headers */, 196 | ); 197 | buildRules = ( 198 | ); 199 | dependencies = ( 200 | ); 201 | name = AZPeerToPeerConnection; 202 | productName = AZPeerToPeerConnection; 203 | productReference = 6A41F61E6B418090AB2B11B82329182F /* AZPeerToPeerConnection.framework */; 204 | productType = "com.apple.product-type.framework"; 205 | }; 206 | F3D070BE258588EC1D4A0607AB616435 /* Pods-AZPeerToPeerConectvity */ = { 207 | isa = PBXNativeTarget; 208 | buildConfigurationList = C55BCE107F59A14EAED1823BCA39CC0F /* Build configuration list for PBXNativeTarget "Pods-AZPeerToPeerConectvity" */; 209 | buildPhases = ( 210 | FD61E45BDD520B64ECCC7157D6050004 /* Sources */, 211 | E11CD3526DA4D6422C7F2D7B34F9A0A8 /* Frameworks */, 212 | 85DDA373CC1C4D81BCB1EB7C49B0108E /* Headers */, 213 | ); 214 | buildRules = ( 215 | ); 216 | dependencies = ( 217 | 369C7F5BEF1756FF0405C726AF89CFF2 /* PBXTargetDependency */, 218 | ); 219 | name = "Pods-AZPeerToPeerConectvity"; 220 | productName = "Pods-AZPeerToPeerConectvity"; 221 | productReference = 934BAB36C696315B2512864742BDC15E /* Pods_AZPeerToPeerConectvity.framework */; 222 | productType = "com.apple.product-type.framework"; 223 | }; 224 | /* End PBXNativeTarget section */ 225 | 226 | /* Begin PBXProject section */ 227 | D41D8CD98F00B204E9800998ECF8427E /* Project object */ = { 228 | isa = PBXProject; 229 | attributes = { 230 | LastSwiftUpdateCheck = 0830; 231 | LastUpgradeCheck = 0700; 232 | }; 233 | buildConfigurationList = 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */; 234 | compatibilityVersion = "Xcode 3.2"; 235 | developmentRegion = English; 236 | hasScannedForEncodings = 0; 237 | knownRegions = ( 238 | en, 239 | ); 240 | mainGroup = 7DB346D0F39D3F0E887471402A8071AB; 241 | productRefGroup = C531FDF8CB19C08881DD5777B2C04C53 /* Products */; 242 | projectDirPath = ""; 243 | projectRoot = ""; 244 | targets = ( 245 | 6C3DCA6A68A59E896FE10D6360CE5714 /* AZPeerToPeerConnection */, 246 | F3D070BE258588EC1D4A0607AB616435 /* Pods-AZPeerToPeerConectvity */, 247 | ); 248 | }; 249 | /* End PBXProject section */ 250 | 251 | /* Begin PBXSourcesBuildPhase section */ 252 | D3DE1CE741622C95DEA22A3E4B3F1EFD /* Sources */ = { 253 | isa = PBXSourcesBuildPhase; 254 | buildActionMask = 2147483647; 255 | files = ( 256 | 19A530F9E36EF9FA5C32263CBC9E4F27 /* AZPeerToPeerConnection-dummy.m in Sources */, 257 | A023E0C2205CA842802B84FF83836E17 /* P2PServiceHandler.swift in Sources */, 258 | ); 259 | runOnlyForDeploymentPostprocessing = 0; 260 | }; 261 | FD61E45BDD520B64ECCC7157D6050004 /* Sources */ = { 262 | isa = PBXSourcesBuildPhase; 263 | buildActionMask = 2147483647; 264 | files = ( 265 | 4C594ED9FD11908ABF89D9699579A465 /* Pods-AZPeerToPeerConectvity-dummy.m in Sources */, 266 | ); 267 | runOnlyForDeploymentPostprocessing = 0; 268 | }; 269 | /* End PBXSourcesBuildPhase section */ 270 | 271 | /* Begin PBXTargetDependency section */ 272 | 369C7F5BEF1756FF0405C726AF89CFF2 /* PBXTargetDependency */ = { 273 | isa = PBXTargetDependency; 274 | name = AZPeerToPeerConnection; 275 | target = 6C3DCA6A68A59E896FE10D6360CE5714 /* AZPeerToPeerConnection */; 276 | targetProxy = B2FF94EAD937223D84466B3A4223BE27 /* PBXContainerItemProxy */; 277 | }; 278 | /* End PBXTargetDependency section */ 279 | 280 | /* Begin XCBuildConfiguration section */ 281 | 5935BDA4E7C259356759A2937D5B39E3 /* Debug */ = { 282 | isa = XCBuildConfiguration; 283 | baseConfigurationReference = A7047845A613B3DF7FF052D60B344367 /* Pods-AZPeerToPeerConectvity.debug.xcconfig */; 284 | buildSettings = { 285 | CODE_SIGN_IDENTITY = ""; 286 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 287 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 288 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 289 | CURRENT_PROJECT_VERSION = 1; 290 | DEFINES_MODULE = YES; 291 | DYLIB_COMPATIBILITY_VERSION = 1; 292 | DYLIB_CURRENT_VERSION = 1; 293 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 294 | INFOPLIST_FILE = "Target Support Files/Pods-AZPeerToPeerConectvity/Info.plist"; 295 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 296 | IPHONEOS_DEPLOYMENT_TARGET = 10.3; 297 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 298 | MACH_O_TYPE = staticlib; 299 | MODULEMAP_FILE = "Target Support Files/Pods-AZPeerToPeerConectvity/Pods-AZPeerToPeerConectvity.modulemap"; 300 | OTHER_LDFLAGS = ""; 301 | OTHER_LIBTOOLFLAGS = ""; 302 | PODS_ROOT = "$(SRCROOT)"; 303 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 304 | PRODUCT_NAME = Pods_AZPeerToPeerConectvity; 305 | SDKROOT = iphoneos; 306 | SKIP_INSTALL = YES; 307 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 308 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 309 | TARGETED_DEVICE_FAMILY = "1,2"; 310 | VERSIONING_SYSTEM = "apple-generic"; 311 | VERSION_INFO_PREFIX = ""; 312 | }; 313 | name = Debug; 314 | }; 315 | 621AB785940626574F07364CB14760E1 /* Release */ = { 316 | isa = XCBuildConfiguration; 317 | buildSettings = { 318 | ALWAYS_SEARCH_USER_PATHS = NO; 319 | CLANG_ANALYZER_NONNULL = YES; 320 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 321 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 322 | CLANG_CXX_LIBRARY = "libc++"; 323 | CLANG_ENABLE_MODULES = YES; 324 | CLANG_ENABLE_OBJC_ARC = YES; 325 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 326 | CLANG_WARN_BOOL_CONVERSION = YES; 327 | CLANG_WARN_COMMA = YES; 328 | CLANG_WARN_CONSTANT_CONVERSION = YES; 329 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 330 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 331 | CLANG_WARN_EMPTY_BODY = YES; 332 | CLANG_WARN_ENUM_CONVERSION = YES; 333 | CLANG_WARN_INFINITE_RECURSION = YES; 334 | CLANG_WARN_INT_CONVERSION = YES; 335 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 336 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 337 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 338 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 339 | CLANG_WARN_STRICT_PROTOTYPES = YES; 340 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 341 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 342 | CLANG_WARN_UNREACHABLE_CODE = YES; 343 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 344 | CODE_SIGNING_REQUIRED = NO; 345 | COPY_PHASE_STRIP = NO; 346 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 347 | ENABLE_NS_ASSERTIONS = NO; 348 | ENABLE_STRICT_OBJC_MSGSEND = YES; 349 | GCC_C_LANGUAGE_STANDARD = gnu11; 350 | GCC_NO_COMMON_BLOCKS = YES; 351 | GCC_PREPROCESSOR_DEFINITIONS = ( 352 | "POD_CONFIGURATION_RELEASE=1", 353 | "$(inherited)", 354 | ); 355 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 356 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 357 | GCC_WARN_UNDECLARED_SELECTOR = YES; 358 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 359 | GCC_WARN_UNUSED_FUNCTION = YES; 360 | GCC_WARN_UNUSED_VARIABLE = YES; 361 | IPHONEOS_DEPLOYMENT_TARGET = 10.3; 362 | MTL_ENABLE_DEBUG_INFO = NO; 363 | PRODUCT_NAME = "$(TARGET_NAME)"; 364 | PROVISIONING_PROFILE_SPECIFIER = NO_SIGNING/; 365 | STRIP_INSTALLED_PRODUCT = NO; 366 | SYMROOT = "${SRCROOT}/../build"; 367 | }; 368 | name = Release; 369 | }; 370 | 87DA780841C8CEC86070527A57F5E5F5 /* Release */ = { 371 | isa = XCBuildConfiguration; 372 | baseConfigurationReference = E63859ACD85B4AF89A3EA4CAC249E39A /* AZPeerToPeerConnection.xcconfig */; 373 | buildSettings = { 374 | CODE_SIGN_IDENTITY = ""; 375 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 376 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 377 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 378 | CURRENT_PROJECT_VERSION = 1; 379 | DEFINES_MODULE = YES; 380 | DYLIB_COMPATIBILITY_VERSION = 1; 381 | DYLIB_CURRENT_VERSION = 1; 382 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 383 | GCC_PREFIX_HEADER = "Target Support Files/AZPeerToPeerConnection/AZPeerToPeerConnection-prefix.pch"; 384 | INFOPLIST_FILE = "Target Support Files/AZPeerToPeerConnection/Info.plist"; 385 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 386 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 387 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 388 | MODULEMAP_FILE = "Target Support Files/AZPeerToPeerConnection/AZPeerToPeerConnection.modulemap"; 389 | PRODUCT_NAME = AZPeerToPeerConnection; 390 | SDKROOT = iphoneos; 391 | SKIP_INSTALL = YES; 392 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; 393 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 394 | SWIFT_VERSION = 3.0; 395 | TARGETED_DEVICE_FAMILY = "1,2"; 396 | VALIDATE_PRODUCT = YES; 397 | VERSIONING_SYSTEM = "apple-generic"; 398 | VERSION_INFO_PREFIX = ""; 399 | }; 400 | name = Release; 401 | }; 402 | A3992287E6E37265D765CCB7EE49B2FC /* Release */ = { 403 | isa = XCBuildConfiguration; 404 | baseConfigurationReference = 87D6465D5AF4A9198C21FA8E0A808341 /* Pods-AZPeerToPeerConectvity.release.xcconfig */; 405 | buildSettings = { 406 | CODE_SIGN_IDENTITY = ""; 407 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 408 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 409 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 410 | CURRENT_PROJECT_VERSION = 1; 411 | DEFINES_MODULE = YES; 412 | DYLIB_COMPATIBILITY_VERSION = 1; 413 | DYLIB_CURRENT_VERSION = 1; 414 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 415 | INFOPLIST_FILE = "Target Support Files/Pods-AZPeerToPeerConectvity/Info.plist"; 416 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 417 | IPHONEOS_DEPLOYMENT_TARGET = 10.3; 418 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 419 | MACH_O_TYPE = staticlib; 420 | MODULEMAP_FILE = "Target Support Files/Pods-AZPeerToPeerConectvity/Pods-AZPeerToPeerConectvity.modulemap"; 421 | OTHER_LDFLAGS = ""; 422 | OTHER_LIBTOOLFLAGS = ""; 423 | PODS_ROOT = "$(SRCROOT)"; 424 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 425 | PRODUCT_NAME = Pods_AZPeerToPeerConectvity; 426 | SDKROOT = iphoneos; 427 | SKIP_INSTALL = YES; 428 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 429 | TARGETED_DEVICE_FAMILY = "1,2"; 430 | VALIDATE_PRODUCT = YES; 431 | VERSIONING_SYSTEM = "apple-generic"; 432 | VERSION_INFO_PREFIX = ""; 433 | }; 434 | name = Release; 435 | }; 436 | B57C09D404C607DDE283C5C44183B2A1 /* Debug */ = { 437 | isa = XCBuildConfiguration; 438 | buildSettings = { 439 | ALWAYS_SEARCH_USER_PATHS = NO; 440 | CLANG_ANALYZER_NONNULL = YES; 441 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 442 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 443 | CLANG_CXX_LIBRARY = "libc++"; 444 | CLANG_ENABLE_MODULES = YES; 445 | CLANG_ENABLE_OBJC_ARC = YES; 446 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 447 | CLANG_WARN_BOOL_CONVERSION = YES; 448 | CLANG_WARN_COMMA = YES; 449 | CLANG_WARN_CONSTANT_CONVERSION = YES; 450 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 451 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 452 | CLANG_WARN_EMPTY_BODY = YES; 453 | CLANG_WARN_ENUM_CONVERSION = YES; 454 | CLANG_WARN_INFINITE_RECURSION = YES; 455 | CLANG_WARN_INT_CONVERSION = YES; 456 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 457 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 458 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 459 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 460 | CLANG_WARN_STRICT_PROTOTYPES = YES; 461 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 462 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 463 | CLANG_WARN_UNREACHABLE_CODE = YES; 464 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 465 | CODE_SIGNING_REQUIRED = NO; 466 | COPY_PHASE_STRIP = NO; 467 | DEBUG_INFORMATION_FORMAT = dwarf; 468 | ENABLE_STRICT_OBJC_MSGSEND = YES; 469 | ENABLE_TESTABILITY = YES; 470 | GCC_C_LANGUAGE_STANDARD = gnu11; 471 | GCC_DYNAMIC_NO_PIC = NO; 472 | GCC_NO_COMMON_BLOCKS = YES; 473 | GCC_OPTIMIZATION_LEVEL = 0; 474 | GCC_PREPROCESSOR_DEFINITIONS = ( 475 | "POD_CONFIGURATION_DEBUG=1", 476 | "DEBUG=1", 477 | "$(inherited)", 478 | ); 479 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 480 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 481 | GCC_WARN_UNDECLARED_SELECTOR = YES; 482 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 483 | GCC_WARN_UNUSED_FUNCTION = YES; 484 | GCC_WARN_UNUSED_VARIABLE = YES; 485 | IPHONEOS_DEPLOYMENT_TARGET = 10.3; 486 | MTL_ENABLE_DEBUG_INFO = YES; 487 | ONLY_ACTIVE_ARCH = YES; 488 | PRODUCT_NAME = "$(TARGET_NAME)"; 489 | PROVISIONING_PROFILE_SPECIFIER = NO_SIGNING/; 490 | STRIP_INSTALLED_PRODUCT = NO; 491 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 492 | SYMROOT = "${SRCROOT}/../build"; 493 | }; 494 | name = Debug; 495 | }; 496 | F5B00C352A2FBAAD8E79F83FEE027423 /* Debug */ = { 497 | isa = XCBuildConfiguration; 498 | baseConfigurationReference = E63859ACD85B4AF89A3EA4CAC249E39A /* AZPeerToPeerConnection.xcconfig */; 499 | buildSettings = { 500 | CODE_SIGN_IDENTITY = ""; 501 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 502 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 503 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 504 | CURRENT_PROJECT_VERSION = 1; 505 | DEFINES_MODULE = YES; 506 | DYLIB_COMPATIBILITY_VERSION = 1; 507 | DYLIB_CURRENT_VERSION = 1; 508 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 509 | GCC_PREFIX_HEADER = "Target Support Files/AZPeerToPeerConnection/AZPeerToPeerConnection-prefix.pch"; 510 | INFOPLIST_FILE = "Target Support Files/AZPeerToPeerConnection/Info.plist"; 511 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 512 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 513 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 514 | MODULEMAP_FILE = "Target Support Files/AZPeerToPeerConnection/AZPeerToPeerConnection.modulemap"; 515 | PRODUCT_NAME = AZPeerToPeerConnection; 516 | SDKROOT = iphoneos; 517 | SKIP_INSTALL = YES; 518 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; 519 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 520 | SWIFT_VERSION = 3.0; 521 | TARGETED_DEVICE_FAMILY = "1,2"; 522 | VERSIONING_SYSTEM = "apple-generic"; 523 | VERSION_INFO_PREFIX = ""; 524 | }; 525 | name = Debug; 526 | }; 527 | /* End XCBuildConfiguration section */ 528 | 529 | /* Begin XCConfigurationList section */ 530 | 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */ = { 531 | isa = XCConfigurationList; 532 | buildConfigurations = ( 533 | B57C09D404C607DDE283C5C44183B2A1 /* Debug */, 534 | 621AB785940626574F07364CB14760E1 /* Release */, 535 | ); 536 | defaultConfigurationIsVisible = 0; 537 | defaultConfigurationName = Release; 538 | }; 539 | 66E46AB4424EC966C12347BDC1B2262C /* Build configuration list for PBXNativeTarget "AZPeerToPeerConnection" */ = { 540 | isa = XCConfigurationList; 541 | buildConfigurations = ( 542 | F5B00C352A2FBAAD8E79F83FEE027423 /* Debug */, 543 | 87DA780841C8CEC86070527A57F5E5F5 /* Release */, 544 | ); 545 | defaultConfigurationIsVisible = 0; 546 | defaultConfigurationName = Release; 547 | }; 548 | C55BCE107F59A14EAED1823BCA39CC0F /* Build configuration list for PBXNativeTarget "Pods-AZPeerToPeerConectvity" */ = { 549 | isa = XCConfigurationList; 550 | buildConfigurations = ( 551 | 5935BDA4E7C259356759A2937D5B39E3 /* Debug */, 552 | A3992287E6E37265D765CCB7EE49B2FC /* Release */, 553 | ); 554 | defaultConfigurationIsVisible = 0; 555 | defaultConfigurationName = Release; 556 | }; 557 | /* End XCConfigurationList section */ 558 | }; 559 | rootObject = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 560 | } 561 | -------------------------------------------------------------------------------- /Pods/Pods.xcodeproj/xcuserdata/afrozzaheer.xcuserdatad/xcschemes/AZPeerToPeerConnection.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 43 | 44 | 45 | 46 | 52 | 53 | 55 | 56 | 59 | 60 | 61 | -------------------------------------------------------------------------------- /Pods/Pods.xcodeproj/xcuserdata/afrozzaheer.xcuserdatad/xcschemes/Pods-AZPeerToPeerConectvity.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 31 | 32 | 33 | 34 | 35 | 36 | 47 | 48 | 54 | 55 | 56 | 57 | 58 | 59 | 65 | 66 | 68 | 69 | 72 | 73 | 74 | -------------------------------------------------------------------------------- /Pods/Pods.xcodeproj/xcuserdata/afrozzaheer.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | AZPeerToPeerConnection.xcscheme 8 | 9 | isShown 10 | 11 | orderHint 12 | 0 13 | 14 | Pods-AZPeerToPeerConectvity.xcscheme 15 | 16 | isShown 17 | 18 | orderHint 19 | 1 20 | 21 | 22 | SuppressBuildableAutocreation 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /Pods/Pods.xcodeproj/xcuserdata/muhammadafroz.xcuserdatad/xcschemes/AZPeerToPeerConnection.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 43 | 44 | 45 | 46 | 52 | 53 | 55 | 56 | 59 | 60 | 61 | -------------------------------------------------------------------------------- /Pods/Pods.xcodeproj/xcuserdata/muhammadafroz.xcuserdatad/xcschemes/Pods-AZPeerToPeerConectvity.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 34 | 35 | 45 | 46 | 52 | 53 | 54 | 55 | 56 | 57 | 63 | 64 | 66 | 67 | 70 | 71 | 72 | -------------------------------------------------------------------------------- /Pods/Pods.xcodeproj/xcuserdata/muhammadafroz.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | AZPeerToPeerConnection.xcscheme 8 | 9 | isShown 10 | 11 | 12 | Pods-AZPeerToPeerConectvity.xcscheme 13 | 14 | isShown 15 | 16 | 17 | 18 | SuppressBuildableAutocreation 19 | 20 | 6C3DCA6A68A59E896FE10D6360CE5714 21 | 22 | primary 23 | 24 | 25 | F3D070BE258588EC1D4A0607AB616435 26 | 27 | primary 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /Pods/Target Support Files/AZPeerToPeerConnection/AZPeerToPeerConnection-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_AZPeerToPeerConnection : NSObject 3 | @end 4 | @implementation PodsDummy_AZPeerToPeerConnection 5 | @end 6 | -------------------------------------------------------------------------------- /Pods/Target Support Files/AZPeerToPeerConnection/AZPeerToPeerConnection-prefix.pch: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | -------------------------------------------------------------------------------- /Pods/Target Support Files/AZPeerToPeerConnection/AZPeerToPeerConnection-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | 14 | FOUNDATION_EXPORT double AZPeerToPeerConnectionVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char AZPeerToPeerConnectionVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Pods/Target Support Files/AZPeerToPeerConnection/AZPeerToPeerConnection.modulemap: -------------------------------------------------------------------------------- 1 | framework module AZPeerToPeerConnection { 2 | umbrella header "AZPeerToPeerConnection-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Pods/Target Support Files/AZPeerToPeerConnection/AZPeerToPeerConnection.xcconfig: -------------------------------------------------------------------------------- 1 | CONFIGURATION_BUILD_DIR = $PODS_CONFIGURATION_BUILD_DIR/AZPeerToPeerConnection 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Public" 4 | OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" 5 | PODS_BUILD_DIR = $BUILD_DIR 6 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_ROOT = ${SRCROOT} 8 | PODS_TARGET_SRCROOT = ${PODS_ROOT}/.. 9 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 10 | SKIP_INSTALL = YES 11 | -------------------------------------------------------------------------------- /Pods/Target Support Files/AZPeerToPeerConnection/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 0.1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods-AZPeerToPeerConectvity/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods-AZPeerToPeerConectvity/Pods-AZPeerToPeerConectvity-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | 4 | ## AZPeerToPeerConnection 5 | 6 | Copyright (c) 2017 Afroz Zaheer 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is 13 | furnished to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in 16 | all copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 24 | THE SOFTWARE. 25 | 26 | Generated by CocoaPods - https://cocoapods.org 27 | -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods-AZPeerToPeerConectvity/Pods-AZPeerToPeerConectvity-acknowledgements.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreferenceSpecifiers 6 | 7 | 8 | FooterText 9 | This application makes use of the following third party libraries: 10 | Title 11 | Acknowledgements 12 | Type 13 | PSGroupSpecifier 14 | 15 | 16 | FooterText 17 | Copyright (c) 2017 Afroz Zaheer <afrozezaheer@gmail.com> 18 | 19 | Permission is hereby granted, free of charge, to any person obtaining a copy 20 | of this software and associated documentation files (the "Software"), to deal 21 | in the Software without restriction, including without limitation the rights 22 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 23 | copies of the Software, and to permit persons to whom the Software is 24 | furnished to do so, subject to the following conditions: 25 | 26 | The above copyright notice and this permission notice shall be included in 27 | all copies or substantial portions of the Software. 28 | 29 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 30 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 31 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 32 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 33 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 34 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 35 | THE SOFTWARE. 36 | 37 | License 38 | MIT 39 | Title 40 | AZPeerToPeerConnection 41 | Type 42 | PSGroupSpecifier 43 | 44 | 45 | FooterText 46 | Generated by CocoaPods - https://cocoapods.org 47 | Title 48 | 49 | Type 50 | PSGroupSpecifier 51 | 52 | 53 | StringsTable 54 | Acknowledgements 55 | Title 56 | Acknowledgements 57 | 58 | 59 | -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods-AZPeerToPeerConectvity/Pods-AZPeerToPeerConectvity-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_AZPeerToPeerConectvity : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_AZPeerToPeerConectvity 5 | @end 6 | -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods-AZPeerToPeerConectvity/Pods-AZPeerToPeerConectvity-frameworks.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 5 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 6 | 7 | SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" 8 | 9 | # This protects against multiple targets copying the same framework dependency at the same time. The solution 10 | # was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html 11 | RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") 12 | 13 | install_framework() 14 | { 15 | if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then 16 | local source="${BUILT_PRODUCTS_DIR}/$1" 17 | elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then 18 | local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" 19 | elif [ -r "$1" ]; then 20 | local source="$1" 21 | fi 22 | 23 | local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 24 | 25 | if [ -L "${source}" ]; then 26 | echo "Symlinked..." 27 | source="$(readlink "${source}")" 28 | fi 29 | 30 | # Use filter instead of exclude so missing patterns don't throw errors. 31 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" 32 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" 33 | 34 | local basename 35 | basename="$(basename -s .framework "$1")" 36 | binary="${destination}/${basename}.framework/${basename}" 37 | if ! [ -r "$binary" ]; then 38 | binary="${destination}/${basename}" 39 | fi 40 | 41 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 42 | if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then 43 | strip_invalid_archs "$binary" 44 | fi 45 | 46 | # Resign the code if required by the build settings to avoid unstable apps 47 | code_sign_if_enabled "${destination}/$(basename "$1")" 48 | 49 | # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. 50 | if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then 51 | local swift_runtime_libs 52 | swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u && exit ${PIPESTATUS[0]}) 53 | for lib in $swift_runtime_libs; do 54 | echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" 55 | rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" 56 | code_sign_if_enabled "${destination}/${lib}" 57 | done 58 | fi 59 | } 60 | 61 | # Copies the dSYM of a vendored framework 62 | install_dsym() { 63 | local source="$1" 64 | if [ -r "$source" ]; then 65 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${DWARF_DSYM_FOLDER_PATH}\"" 66 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${DWARF_DSYM_FOLDER_PATH}" 67 | fi 68 | } 69 | 70 | # Signs a framework with the provided identity 71 | code_sign_if_enabled() { 72 | if [ -n "${EXPANDED_CODE_SIGN_IDENTITY}" -a "${CODE_SIGNING_REQUIRED}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then 73 | # Use the current code_sign_identitiy 74 | echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" 75 | local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS} --preserve-metadata=identifier,entitlements '$1'" 76 | 77 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 78 | code_sign_cmd="$code_sign_cmd &" 79 | fi 80 | echo "$code_sign_cmd" 81 | eval "$code_sign_cmd" 82 | fi 83 | } 84 | 85 | # Strip invalid architectures 86 | strip_invalid_archs() { 87 | binary="$1" 88 | # Get architectures for current file 89 | archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | rev)" 90 | stripped="" 91 | for arch in $archs; do 92 | if ! [[ "${ARCHS}" == *"$arch"* ]]; then 93 | # Strip non-valid architectures in-place 94 | lipo -remove "$arch" -output "$binary" "$binary" || exit 1 95 | stripped="$stripped $arch" 96 | fi 97 | done 98 | if [[ "$stripped" ]]; then 99 | echo "Stripped $binary of architectures:$stripped" 100 | fi 101 | } 102 | 103 | 104 | if [[ "$CONFIGURATION" == "Debug" ]]; then 105 | install_framework "${BUILT_PRODUCTS_DIR}/AZPeerToPeerConnection/AZPeerToPeerConnection.framework" 106 | fi 107 | if [[ "$CONFIGURATION" == "Release" ]]; then 108 | install_framework "${BUILT_PRODUCTS_DIR}/AZPeerToPeerConnection/AZPeerToPeerConnection.framework" 109 | fi 110 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 111 | wait 112 | fi 113 | -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods-AZPeerToPeerConectvity/Pods-AZPeerToPeerConectvity-resources.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 5 | 6 | RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt 7 | > "$RESOURCES_TO_COPY" 8 | 9 | XCASSET_FILES=() 10 | 11 | # This protects against multiple targets copying the same framework dependency at the same time. The solution 12 | # was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html 13 | RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") 14 | 15 | case "${TARGETED_DEVICE_FAMILY}" in 16 | 1,2) 17 | TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" 18 | ;; 19 | 1) 20 | TARGET_DEVICE_ARGS="--target-device iphone" 21 | ;; 22 | 2) 23 | TARGET_DEVICE_ARGS="--target-device ipad" 24 | ;; 25 | 3) 26 | TARGET_DEVICE_ARGS="--target-device tv" 27 | ;; 28 | 4) 29 | TARGET_DEVICE_ARGS="--target-device watch" 30 | ;; 31 | *) 32 | TARGET_DEVICE_ARGS="--target-device mac" 33 | ;; 34 | esac 35 | 36 | install_resource() 37 | { 38 | if [[ "$1" = /* ]] ; then 39 | RESOURCE_PATH="$1" 40 | else 41 | RESOURCE_PATH="${PODS_ROOT}/$1" 42 | fi 43 | if [[ ! -e "$RESOURCE_PATH" ]] ; then 44 | cat << EOM 45 | error: Resource "$RESOURCE_PATH" not found. Run 'pod install' to update the copy resources script. 46 | EOM 47 | exit 1 48 | fi 49 | case $RESOURCE_PATH in 50 | *.storyboard) 51 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" || true 52 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 53 | ;; 54 | *.xib) 55 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" || true 56 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 57 | ;; 58 | *.framework) 59 | echo "mkdir -p ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" || true 60 | mkdir -p "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 61 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" $RESOURCE_PATH ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" || true 62 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 63 | ;; 64 | *.xcdatamodel) 65 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH"`.mom\"" || true 66 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodel`.mom" 67 | ;; 68 | *.xcdatamodeld) 69 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd\"" || true 70 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd" 71 | ;; 72 | *.xcmappingmodel) 73 | echo "xcrun mapc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm\"" || true 74 | xcrun mapc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm" 75 | ;; 76 | *.xcassets) 77 | ABSOLUTE_XCASSET_FILE="$RESOURCE_PATH" 78 | XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") 79 | ;; 80 | *) 81 | echo "$RESOURCE_PATH" || true 82 | echo "$RESOURCE_PATH" >> "$RESOURCES_TO_COPY" 83 | ;; 84 | esac 85 | } 86 | 87 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 88 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 89 | if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then 90 | mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 91 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 92 | fi 93 | rm -f "$RESOURCES_TO_COPY" 94 | 95 | if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "$XCASSET_FILES" ] 96 | then 97 | # Find all other xcassets (this unfortunately includes those of path pods and other targets). 98 | OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) 99 | while read line; do 100 | if [[ $line != "${PODS_ROOT}*" ]]; then 101 | XCASSET_FILES+=("$line") 102 | fi 103 | done <<<"$OTHER_XCASSETS" 104 | 105 | printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 106 | fi 107 | -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods-AZPeerToPeerConectvity/Pods-AZPeerToPeerConectvity-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | 14 | FOUNDATION_EXPORT double Pods_AZPeerToPeerConectvityVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char Pods_AZPeerToPeerConectvityVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods-AZPeerToPeerConectvity/Pods-AZPeerToPeerConectvity.debug.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "$PODS_CONFIGURATION_BUILD_DIR/AZPeerToPeerConnection" 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 5 | OTHER_CFLAGS = $(inherited) -iquote "$PODS_CONFIGURATION_BUILD_DIR/AZPeerToPeerConnection/AZPeerToPeerConnection.framework/Headers" 6 | OTHER_LDFLAGS = $(inherited) -framework "AZPeerToPeerConnection" 7 | OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" 8 | PODS_BUILD_DIR = $BUILD_DIR 9 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 10 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 11 | PODS_ROOT = ${SRCROOT}/Pods 12 | -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods-AZPeerToPeerConectvity/Pods-AZPeerToPeerConectvity.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_AZPeerToPeerConectvity { 2 | umbrella header "Pods-AZPeerToPeerConectvity-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Pods/Target Support Files/Pods-AZPeerToPeerConectvity/Pods-AZPeerToPeerConectvity.release.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "$PODS_CONFIGURATION_BUILD_DIR/AZPeerToPeerConnection" 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 5 | OTHER_CFLAGS = $(inherited) -iquote "$PODS_CONFIGURATION_BUILD_DIR/AZPeerToPeerConnection/AZPeerToPeerConnection.framework/Headers" 6 | OTHER_LDFLAGS = $(inherited) -framework "AZPeerToPeerConnection" 7 | OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" 8 | PODS_BUILD_DIR = $BUILD_DIR 9 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 10 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 11 | PODS_ROOT = ${SRCROOT}/Pods 12 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # AZPeerToPeerConnection Controller 2 | 3 | 4 | [![Awesome](https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg)](https://github.com/sindresorhus/awesome) 5 | [![Swift version](https://img.shields.io/badge/swift%20-4.0-orange.svg)](https://img.shields.io/badge/swift%20-4.0-orange.svg) 6 | [![Support Dependecy Manager](https://img.shields.io/badge/support-CocoaPods-red.svg?style=flat.svg)](https://img.shields.io/badge/support-CocoaPods-red.svg?style=flat.svg) 7 | [![Version](https://img.shields.io/cocoapods/v/AZPeerToPeerConnection.svg?style=flat)](https://cocoapods.org/pods/AZPeerToPeerConnection) 8 | [![License](https://img.shields.io/badge/License-MIT-brightgreen.svg?style=flat.svg)](https://img.shields.io/badge/License-MIT-brightgreen.svg?style=flat.svg) 9 | [![Platform](https://img.shields.io/badge/platform-ios-lightgrey.svg)](https://cocoapods.org/pods/AZPeerToPeerConnection) 10 | 11 | 12 |

13 | 14 | 15 | 16 |

17 | 18 | 19 | ## Features 20 | 21 | * Multipeer Connectivity 22 | * Connection via Bluetooth or Wifi 23 | * No need write all session, browser, services delegate 24 | 25 | ## Installation 26 | 27 | ### CocoaPods 28 | 29 | [CocoaPods](http://cocoapods.org) is a dependency manager for Cocoa projects. You can install it with the following command: 30 | 31 | ```bash 32 | $ gem install cocoapods 33 | ``` 34 | 35 | To integrate AZ PeerToPeerConnection into your Xcode project using CocoaPods, specify it in your `Podfile`: 36 | 37 | ```ruby 38 | source 'https://github.com/CocoaPods/Specs.git' 39 | platform :ios, '10.0' 40 | use_frameworks! 41 | 42 | target '' do 43 | pod 'AZPeerToPeerConnection' 44 | end 45 | ``` 46 | 47 | Then, run the following command: 48 | 49 | ```bash 50 | $ pod install 51 | ``` 52 | 53 | ## Usage 54 | 55 | #### Step 1 56 | 57 | * With P2PServiceHandler.sharedInstance setup connection and make sure to implement it's delegate 58 | 59 | ```swift 60 | let connection = P2PServiceHandler.sharedInstance 61 | override func viewDidLoad() { 62 | super.viewDidLoad() 63 | connection.delegate = self 64 | connection.setupConnection(serviceName: "AZP2Ptest") 65 | 66 | tableView.estimatedRowHeight = 50 67 | tableView.rowHeight = UITableViewAutomaticDimension 68 | textField.delegate = self 69 | 70 | } 71 | ``` 72 | #### Step 2 73 | 74 | * Next you need to connect to other devices, to do taht you just need to open McBrowser 75 | * You can pass your own McBrowser or just nil, it will present browser 76 | 77 | ```swift 78 | connection.joinSession(vc: self, mcBrowser: nil) // nil == default mcbrowsr 79 | 80 | ``` 81 | #### Step 3 82 | 83 | * Send data to other devices 84 | * To send data it is better to send in form of Dictionary 85 | 86 | ```swift 87 | connection.sendData(data: ["message": textField.text ?? "defaultValue"]) // send data of type [String: Any] 88 | 89 | ``` 90 | #### Step 4 91 | 92 | * To receive data you have to implement delegate method 93 | 94 | ```swift 95 | func didRecieve(_ serviceHandler: P2PServiceHandler, data: [String : Any]) { 96 | 97 | DispatchQueue.main.async { 98 | if let val = data["message"] { 99 | print(val)// data recieved 100 | } 101 | } 102 | } 103 | ``` 104 | 105 | 106 | #### Done 107 | Thats it, you successfully integrate AZPeerToPeerConnection 108 | 109 | 110 | ## License 111 | 112 | AZPeerToPeerConnection is available under the MIT license. See the LICENSE file for more info. 113 | 114 | ## Author 115 | 116 | **Afroz Zaheer** - (https://github.com/AfrozZaheer) 117 | 118 | 119 | -------------------------------------------------------------------------------- /Source/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AfrozZaheer/AZPeerToPeerConnection/c6510ce776a8001eda07c6929cae44ed54c84ba9/Source/.DS_Store -------------------------------------------------------------------------------- /Source/P2PServiceHandler.swift: -------------------------------------------------------------------------------- 1 | // 2 | // P2PServiceHandler.swift 3 | // CardGame 4 | // 5 | // Created by Muhammad Afroz on 1/23/17. 6 | // Copyright © 2017 Muhammad Afroz. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import MultipeerConnectivity 11 | 12 | 13 | @objc public protocol P2PServiceHandlerDelegate: class { 14 | 15 | func didConnectedTo(_ serviceHandler:P2PServiceHandler,to peer:MCPeerID) 16 | func didFailToConnect(_ serviceHandler:P2PServiceHandler, with peer: MCPeerID) 17 | func connecting(_ serviceHandler:P2PServiceHandler,to peer:MCPeerID) 18 | func didRecieve(_ serviceHandler:P2PServiceHandler, data:[String: Any]) 19 | @objc optional func didCancelBrowserViewController(_ serviceHandler:P2PServiceHandler, browser: MCBrowserViewController) 20 | @objc optional func didFinshedPickingBrowserViewController(_ serviceHandler:P2PServiceHandler, browser: MCBrowserViewController) 21 | 22 | @objc optional func serviceHandler(_ serviceHandler:P2PServiceHandler, _ session: MCSession, didReceive stream: InputStream, withName streamName: String, fromPeer peerID: MCPeerID) 23 | 24 | @objc optional func serviceHandler(_ serviceHandler:P2PServiceHandler, _ session: MCSession, didStartReceivingResourceWithName resourceName: String, fromPeer peerID: MCPeerID, with progress: Progress) 25 | 26 | @objc optional func serviceHandler(_ serviceHandler:P2PServiceHandler, _ session: MCSession, didFinishReceivingResourceWithName resourceName: String, fromPeer peerID: MCPeerID, at localURL: URL?, withError error: Error?) 27 | 28 | } 29 | 30 | open class P2PServiceHandler: NSObject { 31 | 32 | 33 | public static let sharedInstance :P2PServiceHandler = { 34 | let instance = P2PServiceHandler() 35 | return instance 36 | }() 37 | 38 | var peerID : MCPeerID! 39 | var mcSession: MCSession! 40 | var mcAdvertiserAssistant: MCAdvertiserAssistant! 41 | 42 | var serviceName = "AZP2P" 43 | 44 | public weak var delegate: P2PServiceHandlerDelegate? 45 | 46 | //MARK: - Setup Connection Session 47 | 48 | public func setupConnection(serviceName: String) { 49 | peerID = MCPeerID(displayName: UIDevice.current.name) 50 | mcSession = MCSession(peer: peerID, securityIdentity: nil, encryptionPreference: .required) 51 | mcSession.delegate = self 52 | self.serviceName = serviceName 53 | mcAdvertiserAssistant = MCAdvertiserAssistant(serviceType: serviceName, discoveryInfo: nil, session: mcSession) 54 | mcAdvertiserAssistant.start() 55 | 56 | } 57 | public func joinSession(vc: UIViewController, mcBrowser: MCBrowserViewController?) { 58 | if mcBrowser == nil { 59 | let browser = MCBrowserViewController(serviceType: serviceName , session: mcSession) 60 | browser.delegate = self 61 | vc.present(browser, animated: true) 62 | } 63 | else { 64 | mcBrowser?.delegate = self 65 | vc.present(mcBrowser!, animated: true) 66 | } 67 | } 68 | 69 | public func disconnectSession() { 70 | mcSession.disconnect() 71 | } 72 | 73 | //MARK: - SendData to other Peer 74 | public func sendData(data: [String: Any]) { 75 | 76 | if mcSession.connectedPeers.count>0 { 77 | do { 78 | //let dic :[String: [Any]] = [key:array] 79 | 80 | let message : Data = NSKeyedArchiver.archivedData(withRootObject: data) as Data 81 | 82 | try mcSession.send(message as Data, toPeers: mcSession.connectedPeers, with: .reliable); 83 | } catch { 84 | 85 | } 86 | } 87 | } 88 | } 89 | 90 | //MARK: - Connection Service Manager Delegate 91 | 92 | extension P2PServiceHandler: MCSessionDelegate { 93 | 94 | public func session(_ session: MCSession, didReceive stream: InputStream, withName streamName: String, fromPeer peerID: MCPeerID) { 95 | self.delegate?.serviceHandler?(self, session, didReceive: stream, withName: streamName, fromPeer: peerID) 96 | } 97 | 98 | public func session(_ session: MCSession, didStartReceivingResourceWithName resourceName: String, fromPeer peerID: MCPeerID, with progress: Progress) { 99 | self.delegate?.serviceHandler?(self, session, didStartReceivingResourceWithName: resourceName, fromPeer: peerID, with: progress) 100 | } 101 | public func session(_ session: MCSession, didFinishReceivingResourceWithName resourceName: String, fromPeer peerID: MCPeerID, at localURL: URL?, withError error: Error?) { 102 | self.delegate?.serviceHandler?(self, session, didFinishReceivingResourceWithName: resourceName, fromPeer: peerID, at: localURL, withError: error) 103 | } 104 | 105 | public func session(_ session: MCSession, peer peerID: MCPeerID, didChange state: MCSessionState) { 106 | 107 | switch state { 108 | case MCSessionState.connected: 109 | print("Connected: \(peerID.displayName)") 110 | self.delegate?.didConnectedTo(self, to: peerID) 111 | 112 | case MCSessionState.connecting: 113 | print("Connecting: \(peerID.displayName)") 114 | self.delegate?.connecting(self, to: peerID) 115 | case MCSessionState.notConnected: 116 | session.disconnect() 117 | self.delegate?.didFailToConnect(self, with: peerID) 118 | print("Not Connected: \(peerID.displayName)") 119 | } 120 | } 121 | public func session(_ session: MCSession, didReceive data: Data, fromPeer peerID: MCPeerID) { 122 | let dic = NSKeyedUnarchiver.unarchiveObject(with: data) as! [String:Any] 123 | self.delegate?.didRecieve(self, data: dic) 124 | } 125 | 126 | } 127 | extension P2PServiceHandler: MCBrowserViewControllerDelegate { 128 | 129 | public func browserViewControllerDidFinish(_ browserViewController: MCBrowserViewController) { 130 | browserViewController.dismiss(animated: true, completion: nil) 131 | self.delegate?.didFinshedPickingBrowserViewController?(self, browser: browserViewController) 132 | } 133 | public func browserViewControllerWasCancelled(_ browserViewController: MCBrowserViewController) { 134 | browserViewController.dismiss(animated: true, completion: nil) 135 | self.delegate?.didCancelBrowserViewController?(self, browser: browserViewController) 136 | } 137 | } 138 | extension P2PServiceHandler: MCNearbyServiceBrowserDelegate { 139 | public func browser(_ browser: MCNearbyServiceBrowser, foundPeer peerID: MCPeerID, withDiscoveryInfo info: [String : String]?) { 140 | self.mcAdvertiserAssistant.stop() 141 | 142 | } 143 | 144 | public func browser(_ browser: MCNearbyServiceBrowser, lostPeer peerID: MCPeerID) { 145 | self.mcAdvertiserAssistant.start() 146 | 147 | } 148 | } 149 | --------------------------------------------------------------------------------