Skip to content

Commit f40c243

Browse files
Merge pull request #6 from SomeRandomiOSDev/1.2.0
Added test_spec for cocopods, incremented podspec version, resolved package build issue & light cleanup
2 parents 95d4926 + c3e3426 commit f40c243

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

Half.podspec

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Pod::Spec.new do |s|
22

33
s.name = "Half"
4-
s.version = "1.1.0"
4+
s.version = "1.2.0"
55
s.summary = "Swift Half-Precision Floating Point"
66
s.description = <<-DESC
77
A lightweight framework containing a Swift implementation for a half-precision floating point type for iOS, macOS, tvOS, and watchOS.
@@ -21,5 +21,14 @@ Pod::Spec.new do |s|
2121
s.frameworks = 'Foundation'
2222
s.swift_versions = ['4.0', '4.2', '5.0']
2323
s.cocoapods_version = '>= 1.7.3'
24+
25+
s.test_spec 'Tests' do |ts|
26+
ts.ios.deployment_target = '8.0'
27+
ts.macos.deployment_target = '10.10'
28+
ts.tvos.deployment_target = '9.0'
29+
30+
ts.source_files = 'Tests/CHalfTests/*Tests.swift',
31+
'Tests/HalfTests/*Tests.swift'
32+
end
2433

2534
end

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ let package = Package(
1717

1818
targets: [
1919
.target(name: "CHalf"),
20-
.testTarget(name: "CHalfTests", dependencies: ["CHalf"]),
20+
.testTarget(name: "CHalfTests", dependencies: ["CHalf", "Half"]),
2121

2222
.target(name: "Half", dependencies: ["CHalf"]),
2323
.testTarget(name: "HalfTests", dependencies: ["Half"])

Sources/Half/Half.swift.gyb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//
2-
// Half.swift.gyb
2+
// Half.swift
33
// Half
44
//
55
// Copyright © 2020 SomeRandomiOSDev. All rights reserved.

0 commit comments

Comments
 (0)