Skip to content

Commit

Permalink
Update example scheme to be used with SPM
Browse files Browse the repository at this point in the history
  • Loading branch information
KarimEbrahemAbdelaziz committed Apr 7, 2020
1 parent aa0c001 commit acbe673
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 25 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<a href="https://github.com/KarimEbrahemAbdelaziz/Zen">
<img src="http://img.shields.io/badge/Swift Package Manager-available-green.svg?style=flat" alt="Swift Package Manager" />
</a>
<img src="http://img.shields.io/badge/version-0.1.1-green.svg?style=flat" alt="Version" />
<img src="http://img.shields.io/badge/version-0.1.2-green.svg?style=flat" alt="Version" />
<br>
<a href="https://www.facebook.com/KarimEbrahemAbdelaziz">
<img src="http://img.shields.io/badge/facebook-%40KarimEbrahemAbdelaziz-70a1fb.svg?style=flat" alt="Facebook: @KarimEbrahemAbdelaziz" />
Expand Down Expand Up @@ -56,15 +56,15 @@ 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

[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
Expand All @@ -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"))
]
```

Expand Down
2 changes: 1 addition & 1 deletion Zen.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
57 changes: 38 additions & 19 deletions Zen/Zen.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -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 */; };
Expand All @@ -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 = "<group>"; };
Expand All @@ -58,14 +44,15 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
BCC88A66243C1CF20087AFAB /* Alamofire.framework in Frameworks */,
BC5E68BD243CE3D600D2FF20 /* Alamofire in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
BCC88A6A243C1D0F0087AFAB /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
BC5E68BB243CE39B00D2FF20 /* Alamofire in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -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";
Expand All @@ -187,6 +176,9 @@
dependencies = (
);
name = ZenExample;
packageProductDependencies = (
BC5E68BA243CE39B00D2FF20 /* Alamofire */,
);
productName = ZenExample;
productReference = BCC88A6D243C1D0F0087AFAB /* ZenExample.app */;
productType = "com.apple.product-type.application";
Expand Down Expand Up @@ -219,6 +211,9 @@
Base,
);
mainGroup = BCC88A4B243C12090087AFAB;
packageReferences = (
BC5E68B9243CE39B00D2FF20 /* XCRemoteSwiftPackageReference "Alamofire" */,
);
productRefGroup = BCC88A56243C12090087AFAB /* Products */;
projectDirPath = "";
projectRoot = "";
Expand Down Expand Up @@ -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 */;
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -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
}

0 comments on commit acbe673

Please sign in to comment.