From 1e80d50002f98e71f74bbfcf6cb796e484783f12 Mon Sep 17 00:00:00 2001 From: Deepak Mantena Date: Sat, 24 Aug 2019 16:34:25 -0700 Subject: [PATCH] Add Swift Package Manager support. (#3) * Add `Package.swift` for Swift Package Manager support. * Update version to 1.0.1 for release. --- Cully.xcodeproj/project.pbxproj | 4 ++++ Cully/Resources/Info.plist | 2 +- Package.swift | 20 ++++++++++++++++++++ README.md | 4 ++-- 4 files changed, 27 insertions(+), 3 deletions(-) create mode 100644 Package.swift diff --git a/Cully.xcodeproj/project.pbxproj b/Cully.xcodeproj/project.pbxproj index 7b4c5ab..00ec747 100644 --- a/Cully.xcodeproj/project.pbxproj +++ b/Cully.xcodeproj/project.pbxproj @@ -35,6 +35,7 @@ 0008D11622F6E05E006D1408 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 0008D12322F6E1AB006D1408 /* UIView+Cully.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "UIView+Cully.swift"; sourceTree = ""; }; 003609B422F7B9E00080D870 /* Collection+Cully.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "Collection+Cully.swift"; sourceTree = ""; }; + 007BA7DE2311FBCD00592697 /* Package.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Package.swift; sourceTree = SOURCE_ROOT; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -77,6 +78,7 @@ 0008D10822F6E05E006D1408 /* Cully */ = { isa = PBXGroup; children = ( + 007BA7DE2311FBCD00592697 /* Package.swift */, 0008D12222F6E197006D1408 /* Source */, 0008D12122F6E15A006D1408 /* Resources */, ); @@ -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; @@ -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; diff --git a/Cully/Resources/Info.plist b/Cully/Resources/Info.plist index e1fe4cf..82790df 100644 --- a/Cully/Resources/Info.plist +++ b/Cully/Resources/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 1.0 + $(MARKETING_VERSION) CFBundleVersion $(CURRENT_PROJECT_VERSION) diff --git a/Package.swift b/Package.swift new file mode 100644 index 0000000..3a65192 --- /dev/null +++ b/Package.swift @@ -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" + ) + ] +) diff --git a/README.md b/README.md index bccf252..a7af5f1 100644 --- a/README.md +++ b/README.md @@ -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).