Skip to content
This repository has been archived by the owner on Dec 9, 2023. It is now read-only.

Commit

Permalink
Add Swift Package Manager support. (#3)
Browse files Browse the repository at this point in the history
* Add `Package.swift` for Swift Package Manager support.
* Update version to 1.0.1 for release.
  • Loading branch information
staykids authored Aug 24, 2019
1 parent c2cf746 commit 1e80d50
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 3 deletions.
4 changes: 4 additions & 0 deletions Cully.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
0008D11622F6E05E006D1408 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
0008D12322F6E1AB006D1408 /* UIView+Cully.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "UIView+Cully.swift"; sourceTree = "<group>"; };
003609B422F7B9E00080D870 /* Collection+Cully.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "Collection+Cully.swift"; sourceTree = "<group>"; };
007BA7DE2311FBCD00592697 /* Package.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Package.swift; sourceTree = SOURCE_ROOT; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand Down Expand Up @@ -77,6 +78,7 @@
0008D10822F6E05E006D1408 /* Cully */ = {
isa = PBXGroup;
children = (
007BA7DE2311FBCD00592697 /* Package.swift */,
0008D12222F6E197006D1408 /* Source */,
0008D12122F6E15A006D1408 /* Resources */,
);
Expand Down Expand Up @@ -385,6 +387,7 @@
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
MARKETING_VERSION = 1.0.1;
PRODUCT_BUNDLE_IDENTIFIER = com.staykids.Cully;
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
SKIP_INSTALL = YES;
Expand Down Expand Up @@ -412,6 +415,7 @@
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
MARKETING_VERSION = 1.0.1;
PRODUCT_BUNDLE_IDENTIFIER = com.staykids.Cully;
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
SKIP_INSTALL = YES;
Expand Down
2 changes: 1 addition & 1 deletion Cully/Resources/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<string>$(MARKETING_VERSION)</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
</dict>
Expand Down
20 changes: 20 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// swift-tools-version:4.0
import PackageDescription

let package = Package(
name: "Cully",
products: [
.library(
name: "Cully",
targets: ["Cully"]
),
],
dependencies: [],
targets: [
.target(
name: "Cully",
dependencies: [],
path: "Cully"
)
]
)
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,12 @@ myView.constraints(activate: topConstraint)

## Installation

Give [Carthage](https://github.com/Carthage/Carthage) a try, how 'bout?
Cully supports the Swift Package Manager in Xcode 11. Or give [Carthage](https://github.com/Carthage/Carthage) a try, how 'bout?

1. Add the following to your `Cartfile`:

```swift
github "staykids/Cully" "1.0"
github "staykids/Cully" "1.0.1"
```

2. Follow the [Carthage instructions for adding a framework to your project](https://github.com/Carthage/Carthage#adding-frameworks-to-an-application).
Expand Down

0 comments on commit 1e80d50

Please sign in to comment.