Skip to content

Commit

Permalink
Updated path of documentation catalog for compatibility with Swift Pa…
Browse files Browse the repository at this point in the history
…ckages
  • Loading branch information
SomeRandomiOSDev committed Nov 29, 2021
1 parent a02fa04 commit 541aec7
Show file tree
Hide file tree
Showing 11 changed files with 37 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Half.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|

s.name = "Half"
s.version = "1.3.0"
s.version = "1.3.1"
s.summary = "Swift Half-Precision Floating Point"
s.description = <<-DESC
A lightweight framework containing a Swift implementation for a half-precision floating point type for iOS, macOS, tvOS, and watchOS.
Expand Down
6 changes: 4 additions & 2 deletions Half.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,9 @@
DD02B88C27488FAE007F5569 /* Package@swift-4.0.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "Package@swift-4.0.swift"; sourceTree = "<group>"; };
DD02B88D27488FAE007F5569 /* Package@swift-4.2.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "Package@swift-4.2.swift"; sourceTree = "<group>"; };
DD02B88E27489027007F5569 /* ATTRIBUTIONS */ = {isa = PBXFileReference; lastKnownFileType = text; path = ATTRIBUTIONS; sourceTree = "<group>"; };
DD02B8CE27551396007F5569 /* Package@swift-5.0.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "Package@swift-5.0.swift"; sourceTree = "<group>"; };
DD17A9F9257744BC00D30599 /* scripts */ = {isa = PBXFileReference; lastKnownFileType = folder; path = scripts; sourceTree = "<group>"; };
DD3BB7202731ADDA00DB55F8 /* Half.docc */ = {isa = PBXFileReference; lastKnownFileType = folder.documentationcatalog; path = Half.docc; sourceTree = "<group>"; };
DD3BB7202731ADDA00DB55F8 /* Half.docc */ = {isa = PBXFileReference; lastKnownFileType = folder.documentationcatalog; name = Half.docc; path = Sources/Half/Half.docc; sourceTree = "<group>"; };
DD438A452742CFD900F0A1F6 /* .remarkrc */ = {isa = PBXFileReference; explicitFileType = text.json; path = .remarkrc; sourceTree = "<group>"; };
DD438A462742D18A00F0A1F6 /* Plists */ = {isa = PBXFileReference; lastKnownFileType = folder; path = Plists; sourceTree = "<group>"; };
DD48BC94270E0DE800D842BC /* HalfTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = HalfTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
Expand Down Expand Up @@ -341,7 +342,7 @@
children = (
DD3BB7202731ADDA00DB55F8 /* Half.docc */,
);
path = Documentation;
name = Documentation;
sourceTree = "<group>";
};
DD48BC9E270E0F1300D842BC /* Test Plans */ = {
Expand Down Expand Up @@ -420,6 +421,7 @@
DD17A9F9257744BC00D30599 /* scripts */,
DD86D5E023D22DB90046E63E /* Half.podspec */,
DD86D5DF23D22DB90046E63E /* Package.swift */,
DD02B8CE27551396007F5569 /* Package@swift-5.0.swift */,
DD02B88D27488FAE007F5569 /* Package@swift-4.2.swift */,
DD02B88C27488FAE007F5569 /* Package@swift-4.0.swift */,
DDB1DE5C2405EEE300C20FED /* codecov.yml */,
Expand Down
4 changes: 2 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// swift-tools-version:5.0
// swift-tools-version:5.5
import PackageDescription

let package = Package(
Expand All @@ -19,7 +19,7 @@ let package = Package(
.target(name: "CHalf"),
.testTarget(name: "CHalfTests", dependencies: ["CHalf", "Half"]),

.target(name: "Half", dependencies: ["CHalf"]),
.target(name: "Half", dependencies: ["CHalf"], exclude: ["Half.swift.gyb"]),
.testTarget(name: "HalfTests", dependencies: ["Half"])
],

Expand Down
2 changes: 1 addition & 1 deletion Package@swift-4.0.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ let package = Package(
.target(name: "CHalf"),
.testTarget(name: "CHalfTests", dependencies: ["CHalf"]),

.target(name: "Half", dependencies: ["CHalf"]),
.target(name: "Half", dependencies: ["CHalf"], exclude: ["Half.swift.gyb"]),
.testTarget(name: "HalfTests", dependencies: ["Half"])
],

Expand Down
2 changes: 1 addition & 1 deletion Package@swift-4.2.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ let package = Package(
.target(name: "CHalf"),
.testTarget(name: "CHalfTests", dependencies: ["CHalf"]),

.target(name: "Half", dependencies: ["CHalf"]),
.target(name: "Half", dependencies: ["CHalf"], exclude: ["Half.swift.gyb"]),
.testTarget(name: "HalfTests", dependencies: ["Half"])
],

Expand Down
27 changes: 27 additions & 0 deletions Package@swift-5.0.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
// swift-tools-version:5.0
import PackageDescription

let package = Package(
name: "Half",

platforms: [
.iOS("9.0"),
.macOS("10.10"),
.tvOS("9.0"),
.watchOS("2.0")
],

products: [
.library(name: "Half", targets: ["Half", "CHalf"])
],

targets: [
.target(name: "CHalf"),
.testTarget(name: "CHalfTests", dependencies: ["CHalf", "Half"]),

.target(name: "Half", dependencies: ["CHalf"], exclude: ["Half.swift.gyb"]),
.testTarget(name: "HalfTests", dependencies: ["Half"])
],

swiftLanguageVersions: [.version("4"), .version("4.2"), .version("5")]
)
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

### Converting with No Loss of Precision

These initializers result in nil if the value passed can't be represented without any loss of precision.
These initializers result in `nil` if the value passed can't be represented without any loss of precision.

- ``init(exactly:)-6m48t``
- ``init(exactly:)-5u1uj``
Expand Down Expand Up @@ -107,7 +107,6 @@ These initializers result in nil if the value passed can't be represented withou
- ``init(bitPattern:)``
- ``init(sign:exponentBitPattern:significandBitPattern:)``
- ``init(nan:signaling:)``
- ``Half/half_t``

### Querying a Half's State

Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 541aec7

Please sign in to comment.