Skip to content

Commit

Permalink
Add cocoapods support (#14)
Browse files Browse the repository at this point in the history
* chore: add podspec file

* chore: update package.swift for cocoapods compatibility

* chore: update license file for cocoapods compatibility

* chore: refine podspec

* chore: remove unrecognized spec keys
  • Loading branch information
mflknr committed Oct 2, 2021
1 parent 83e1a57 commit 12a22fe
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 8 deletions.
9 changes: 4 additions & 5 deletions LICENSE → LICENSE.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,13 @@ in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
9 changes: 8 additions & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ import PackageDescription

let package = Package(
name: "SwiftVersionCompare",
platforms: [
.iOS(.v13),
.macOS(.v10_15),
.watchOS(.v7),
.tvOS(.v13)
],
products: [
.library(
name: "SwiftVersionCompare",
Expand All @@ -18,5 +24,6 @@ let package = Package(
name: "SwiftVersionCompareTests",
dependencies: ["SwiftVersionCompare"]
),
]
],
swiftLanguageVersions: [.v5]
)
20 changes: 20 additions & 0 deletions SwiftVersionCompare.podspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
Pod::Spec.new do |s|
s.name = 'SwiftVersionCompare'
s.version = '1.0.4'
s.summary = 'Create and compare semantic versions in swift.'
s.homepage = 'https://github.com/mflknr/SwiftVersionCompare'
s.license = { :type => 'MIT', :file => 'LICENSE.md' }
s.author = 'mflknr'
s.documentation_url = 'https://mflknr.github.io/SwiftVersionCompare/'
s.source = { :git => 'https://github.com/mflknr/SwiftVersionCompare.git', :tag => s.version.to_s }
s.source_files = 'Sources/SwiftVersionCompare/**/*'

s.ios.deployment_target = '13.0'
s.osx.deployment_target = '10.15'
s.watchos.deployment_target = '7.0'
s.tvos.deployment_target = '13.0'

s.swift_version = '5.0'

s.cocoapods_version = '>= 0.36'
end
6 changes: 4 additions & 2 deletions SwiftVersionCompare.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@
/* Begin PBXFileReference section */
249FC1BA26B35DF700079A22 /* .codecov.yml */ = {isa = PBXFileReference; lastKnownFileType = text.yaml; path = .codecov.yml; sourceTree = "<group>"; };
249FC1BB26B35DF700079A22 /* .jazzy.yml */ = {isa = PBXFileReference; lastKnownFileType = text.yaml; path = .jazzy.yml; sourceTree = "<group>"; };
24E69AF92708BCA600620658 /* LICENSE.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; path = LICENSE.md; sourceTree = "<group>"; };
24E69AFA2708BEAD00620658 /* SwiftVersionCompare.podspec */ = {isa = PBXFileReference; lastKnownFileType = text; path = SwiftVersionCompare.podspec; sourceTree = "<group>"; };
OBJ_10 /* Character+Extensions.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "Character+Extensions.swift"; sourceTree = "<group>"; };
OBJ_11 /* String+Regex.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "String+Regex.swift"; sourceTree = "<group>"; };
OBJ_12 /* VersionCompareResult.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = VersionCompareResult.swift; sourceTree = "<group>"; };
Expand All @@ -84,7 +86,6 @@
OBJ_32 /* SemanticVersionComparableTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SemanticVersionComparableTests.swift; sourceTree = "<group>"; };
OBJ_33 /* VersionTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = VersionTests.swift; sourceTree = "<group>"; };
OBJ_38 /* Example */ = {isa = PBXFileReference; lastKnownFileType = folder; path = Example; sourceTree = SOURCE_ROOT; };
OBJ_39 /* LICENSE */ = {isa = PBXFileReference; lastKnownFileType = text; path = LICENSE; sourceTree = "<group>"; };
OBJ_40 /* CHANGELOG.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; path = CHANGELOG.md; sourceTree = "<group>"; };
OBJ_41 /* README.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = "<group>"; };
OBJ_6 /* Package.swift */ = {isa = PBXFileReference; explicitFileType = sourcecode.swift; path = Package.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -178,9 +179,10 @@
OBJ_30 /* Tests */,
OBJ_35 /* Products */,
OBJ_38 /* Example */,
OBJ_39 /* LICENSE */,
OBJ_40 /* CHANGELOG.md */,
24E69AF92708BCA600620658 /* LICENSE.md */,
OBJ_41 /* README.md */,
24E69AFA2708BEAD00620658 /* SwiftVersionCompare.podspec */,
249FC1BA26B35DF700079A22 /* .codecov.yml */,
249FC1BB26B35DF700079A22 /* .jazzy.yml */,
);
Expand Down

0 comments on commit 12a22fe

Please sign in to comment.