From acbe67372665a1d2c3efb6f19d06f4b4083048ee Mon Sep 17 00:00:00 2001 From: Karim Ebrahem Date: Tue, 7 Apr 2020 18:40:12 +0200 Subject: [PATCH] Update example scheme to be used with SPM --- README.md | 8 +-- Zen.podspec | 2 +- Zen/Zen.xcodeproj/project.pbxproj | 57 ++++++++++++------- .../contents.xcworkspacedata | 2 +- .../xcshareddata/swiftpm/Package.resolved | 16 ++++++ 5 files changed, 60 insertions(+), 25 deletions(-) create mode 100644 Zen/Zen.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved diff --git a/README.md b/README.md index 51b0cef..97e1334 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ Swift Package Manager - Version + Version
Facebook: @KarimEbrahemAbdelaziz @@ -56,7 +56,7 @@ Zen is simple yet powerfull Networking library for iOS. It leverage the powerful [CocoaPods](https://cocoapods.org) is a dependency manager for Cocoa projects. For usage and installation instructions, visit their website. To integrate Zen into your Xcode project using CocoaPods, specify it in your `Podfile`: ```ruby -pod 'Zen', '~> 0.1.1' +pod 'Zen', '~> 0.1.2' ``` ### Carthage @@ -64,7 +64,7 @@ pod 'Zen', '~> 0.1.1' [Carthage](https://github.com/Carthage/Carthage) is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks. To integrate Zen into your Xcode project using Carthage, specify it in your `Cartfile`: ```ogdl -github "KarimEbrahemAbdelaziz/Zen" ~> 0.1.1 +github "KarimEbrahemAbdelaziz/Zen" ~> 0.1.2 ``` ### SPM @@ -75,7 +75,7 @@ Once you have your Swift package set up, adding Zen as a dependency is as easy a ```swift dependencies: [ - .package(url: "https://github.com/KarimEbrahemAbdelaziz/Zen.git", .upToNextMajor(from: "0.1.1")) + .package(url: "https://github.com/KarimEbrahemAbdelaziz/Zen.git", .upToNextMajor(from: "0.1.2")) ] ``` diff --git a/Zen.podspec b/Zen.podspec index f6c4d46..52f480f 100644 --- a/Zen.podspec +++ b/Zen.podspec @@ -8,7 +8,7 @@ Pod::Spec.new do |s| s.name = 'Zen' - s.version = '0.1.1' + s.version = '0.1.2' s.summary = 'Zero Effort Networking Library in Swift.' # This description is used to generate tags and improve search results. diff --git a/Zen/Zen.xcodeproj/project.pbxproj b/Zen/Zen.xcodeproj/project.pbxproj index 62b3485..3af6dd7 100644 --- a/Zen/Zen.xcodeproj/project.pbxproj +++ b/Zen/Zen.xcodeproj/project.pbxproj @@ -3,14 +3,14 @@ archiveVersion = 1; classes = { }; - objectVersion = 50; + objectVersion = 52; objects = { /* Begin PBXBuildFile section */ + BC5E68BB243CE39B00D2FF20 /* Alamofire in Frameworks */ = {isa = PBXBuildFile; productRef = BC5E68BA243CE39B00D2FF20 /* Alamofire */; }; + BC5E68BD243CE3D600D2FF20 /* Alamofire in Frameworks */ = {isa = PBXBuildFile; productRef = BC5E68BC243CE3D600D2FF20 /* Alamofire */; }; BCC88A5A243C12090087AFAB /* Zen.h in Headers */ = {isa = PBXBuildFile; fileRef = BCC88A58243C12090087AFAB /* Zen.h */; settings = {ATTRIBUTES = (Public, ); }; }; BCC88A63243C125F0087AFAB /* GET.swift in Sources */ = {isa = PBXBuildFile; fileRef = BCC88A62243C125F0087AFAB /* GET.swift */; }; - BCC88A66243C1CF20087AFAB /* Alamofire.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BCC88A65243C1CF10087AFAB /* Alamofire.framework */; }; - BCC88A67243C1CF20087AFAB /* Alamofire.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = BCC88A65243C1CF10087AFAB /* Alamofire.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; BCC88A70243C1D0F0087AFAB /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = BCC88A6F243C1D0F0087AFAB /* AppDelegate.swift */; }; BCC88A72243C1D0F0087AFAB /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = BCC88A71243C1D0F0087AFAB /* SceneDelegate.swift */; }; BCC88A74243C1D0F0087AFAB /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = BCC88A73243C1D0F0087AFAB /* ViewController.swift */; }; @@ -21,20 +21,6 @@ BCC88A87243C1D4C0087AFAB /* Todo.swift in Sources */ = {isa = PBXBuildFile; fileRef = BCC88A86243C1D4C0087AFAB /* Todo.swift */; }; /* End PBXBuildFile section */ -/* Begin PBXCopyFilesBuildPhase section */ - BCC88A68243C1CF20087AFAB /* Embed Frameworks */ = { - isa = PBXCopyFilesBuildPhase; - buildActionMask = 2147483647; - dstPath = ""; - dstSubfolderSpec = 10; - files = ( - BCC88A67243C1CF20087AFAB /* Alamofire.framework in Embed Frameworks */, - ); - name = "Embed Frameworks"; - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXCopyFilesBuildPhase section */ - /* Begin PBXFileReference section */ BCC88A55243C12090087AFAB /* Zen.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Zen.framework; sourceTree = BUILT_PRODUCTS_DIR; }; BCC88A58243C12090087AFAB /* Zen.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = Zen.h; sourceTree = ""; }; @@ -58,7 +44,7 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - BCC88A66243C1CF20087AFAB /* Alamofire.framework in Frameworks */, + BC5E68BD243CE3D600D2FF20 /* Alamofire in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -66,6 +52,7 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( + BC5E68BB243CE39B00D2FF20 /* Alamofire in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -163,13 +150,15 @@ BCC88A51243C12090087AFAB /* Sources */, BCC88A52243C12090087AFAB /* Frameworks */, BCC88A53243C12090087AFAB /* Resources */, - BCC88A68243C1CF20087AFAB /* Embed Frameworks */, ); buildRules = ( ); dependencies = ( ); name = Zen; + packageProductDependencies = ( + BC5E68BC243CE3D600D2FF20 /* Alamofire */, + ); productName = Zen; productReference = BCC88A55243C12090087AFAB /* Zen.framework */; productType = "com.apple.product-type.framework"; @@ -187,6 +176,9 @@ dependencies = ( ); name = ZenExample; + packageProductDependencies = ( + BC5E68BA243CE39B00D2FF20 /* Alamofire */, + ); productName = ZenExample; productReference = BCC88A6D243C1D0F0087AFAB /* ZenExample.app */; productType = "com.apple.product-type.application"; @@ -219,6 +211,9 @@ Base, ); mainGroup = BCC88A4B243C12090087AFAB; + packageReferences = ( + BC5E68B9243CE39B00D2FF20 /* XCRemoteSwiftPackageReference "Alamofire" */, + ); productRefGroup = BCC88A56243C12090087AFAB /* Products */; projectDirPath = ""; projectRoot = ""; @@ -534,6 +529,30 @@ defaultConfigurationName = Release; }; /* End XCConfigurationList section */ + +/* Begin XCRemoteSwiftPackageReference section */ + BC5E68B9243CE39B00D2FF20 /* XCRemoteSwiftPackageReference "Alamofire" */ = { + isa = XCRemoteSwiftPackageReference; + repositoryURL = "https://github.com/Alamofire/Alamofire.git"; + requirement = { + kind = exactVersion; + version = 5.1.0; + }; + }; +/* End XCRemoteSwiftPackageReference section */ + +/* Begin XCSwiftPackageProductDependency section */ + BC5E68BA243CE39B00D2FF20 /* Alamofire */ = { + isa = XCSwiftPackageProductDependency; + package = BC5E68B9243CE39B00D2FF20 /* XCRemoteSwiftPackageReference "Alamofire" */; + productName = Alamofire; + }; + BC5E68BC243CE3D600D2FF20 /* Alamofire */ = { + isa = XCSwiftPackageProductDependency; + package = BC5E68B9243CE39B00D2FF20 /* XCRemoteSwiftPackageReference "Alamofire" */; + productName = Alamofire; + }; +/* End XCSwiftPackageProductDependency section */ }; rootObject = BCC88A4C243C12090087AFAB /* Project object */; } diff --git a/Zen/Zen.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/Zen/Zen.xcodeproj/project.xcworkspace/contents.xcworkspacedata index 592d340..919434a 100644 --- a/Zen/Zen.xcodeproj/project.xcworkspace/contents.xcworkspacedata +++ b/Zen/Zen.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -2,6 +2,6 @@ + location = "self:"> diff --git a/Zen/Zen.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved b/Zen/Zen.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved new file mode 100644 index 0000000..7378f58 --- /dev/null +++ b/Zen/Zen.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved @@ -0,0 +1,16 @@ +{ + "object": { + "pins": [ + { + "package": "Alamofire", + "repositoryURL": "https://github.com/Alamofire/Alamofire.git", + "state": { + "branch": null, + "revision": "fca036f7aeca07124067cb6e0c12b0ad6359e3d4", + "version": "5.1.0" + } + } + ] + }, + "version": 1 +}