Skip to content

Commit

Permalink
Merge pull request #13 from SomeRandomiOSDev/updates
Browse files Browse the repository at this point in the history
Bulk updates
  • Loading branch information
SomeRandomiOSDev authored Oct 18, 2022
2 parents 8c80711 + 928a1b6 commit 9f95ddc
Show file tree
Hide file tree
Showing 38 changed files with 71 additions and 62 deletions.
14 changes: 7 additions & 7 deletions 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.1"
s.version = "1.3.2"
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 All @@ -12,20 +12,20 @@ Pod::Spec.new do |s|
s.author = { "Joe Newton" => "somerandomiosdev@gmail.com" }
s.source = { :git => "https://github.com/SomeRandomiOSDev/Half.git", :tag => s.version.to_s }

s.ios.deployment_target = '9.0'
s.ios.deployment_target = '11.0'
s.macos.deployment_target = '10.10'
s.tvos.deployment_target = '9.0'
s.watchos.deployment_target = '2.0'
s.tvos.deployment_target = '11.0'
s.watchos.deployment_target = '4.0'

s.source_files = 'Sources/**/*.{swift,h,c}'
s.swift_versions = ['4.0', '4.2', '5.0']
s.cocoapods_version = '>= 1.7.3'

s.test_spec 'Tests' do |ts|
ts.ios.deployment_target = '9.0'
ts.ios.deployment_target = '11.0'
ts.macos.deployment_target = '10.10'
ts.tvos.deployment_target = '9.0'
ts.watchos.deployment_target = '2.0'
ts.tvos.deployment_target = '11.0'
ts.watchos.deployment_target = '4.0'

ts.source_files = 'Tests/CHalfTests/*Tests.swift',
'Tests/HalfTests/*Tests.swift'
Expand Down
29 changes: 19 additions & 10 deletions Half.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
archiveVersion = 1;
classes = {
};
objectVersion = 52;
objectVersion = 54;
objects = {

/* Begin PBXAggregateTarget section */
Expand Down Expand Up @@ -650,7 +650,7 @@
isa = PBXProject;
attributes = {
LastSwiftUpdateCheck = 1310;
LastUpgradeCheck = 1310;
LastUpgradeCheck = 1401;
ORGANIZATIONNAME = SomeRandomiOSDev;
TargetAttributes = {
DD02B86527488D3C007F5569 = {
Expand Down Expand Up @@ -797,15 +797,19 @@
inputFileListPaths = (
);
inputPaths = (
"$(SRCROOT)/Sources/Half/Half.swift.gyb",
);
name = "Generate Sources";
outputFileListPaths = (
);
outputPaths = (
"$(SRCROOT)/Sources/Half/Half.swift",
"$(SRCROOT)/Sources/Half/Half@swift-4.2.swift",
"$(SRCROOT)/Sources/Half/Half@swift-4.0.swift",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "DERIVED_DATA_DIR=\"$(dirname \"$(dirname \"$(xcodebuild -project \"$PROJECT_FILE_PATH\" -showBuildSettings | grep -m 1 \"BUILD_DIR\" | grep -oEi \"\\/.*\")\")\")\"\n\n\"$DERIVED_DATA_DIR/SourcePackages/checkouts/gyb/gyb\" --line-directive '' -Dswift_version='5.0' -o ./Sources/Half/Half.swift ./Sources/Half/Half.swift.gyb\n\"$DERIVED_DATA_DIR/SourcePackages/checkouts/gyb/gyb\" --line-directive '' -Dswift_version='4.2' -o ./Sources/Half/Half@swift-4.2.swift ./Sources/Half/Half.swift.gyb\n\"$DERIVED_DATA_DIR/SourcePackages/checkouts/gyb/gyb\" --line-directive '' -Dswift_version='4.0' -o ./Sources/Half/Half@swift-4.0.swift ./Sources/Half/Half.swift.gyb\n";
shellScript = "DERIVED_DATA_DIR=\"$(dirname \"$(dirname \"$(xcodebuild -project \"$PROJECT_FILE_PATH\" -showBuildSettings | grep -m 1 \"BUILD_DIR\" | grep -oEi \"\\/.*\")\")\")\"\n\n\"$DERIVED_DATA_DIR/SourcePackages/checkouts/gyb/gyb\" --line-directive '' -Dswift_version='5.0' -o \"$SCRIPT_OUTPUT_FILE_0\" \"$SCRIPT_INPUT_FILE_0\"\n\"$DERIVED_DATA_DIR/SourcePackages/checkouts/gyb/gyb\" --line-directive '' -Dswift_version='4.2' -o \"$SCRIPT_OUTPUT_FILE_1\" \"$SCRIPT_INPUT_FILE_0\"\n\"$DERIVED_DATA_DIR/SourcePackages/checkouts/gyb/gyb\" --line-directive '' -Dswift_version='4.0' -o \"$SCRIPT_OUTPUT_FILE_2\" \"$SCRIPT_INPUT_FILE_0\"\n";
};
DD2FBC33258BE8C600DB3211 /* Build XCFramework */ = {
isa = PBXShellScriptBuildPhase;
Expand All @@ -827,6 +831,7 @@
};
DD86D56823D11C550046E63E /* Run SwiftLint */ = {
isa = PBXShellScriptBuildPhase;
alwaysOutOfDate = 1;
buildActionMask = 2147483647;
files = (
);
Expand All @@ -841,7 +846,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "if (echo \"$SKIP_SWIFTLINT\" | grep -iq \"^YES$\"); then\n echo \"SKIP_SWIFTLINT=YES | Skipping SwiftLint\"\nelse\n if which swiftlint >/dev/null; then\n swiftlint\n else\n echo \"warning: SwiftLint not installed, download from https://github.com/realm/SwiftLint\"\n fi\nfi\n";
shellScript = "export PATH=\"$PATH:/opt/homebrew/bin\"\n\nif (echo \"$SKIP_SWIFTLINT\" | grep -iq \"^YES$\"); then\n echo \"SKIP_SWIFTLINT=YES | Skipping SwiftLint\"\nelse\n if which swiftlint >/dev/null; then\n swiftlint\n else\n echo \"warning: SwiftLint not installed, download from https://github.com/realm/SwiftLint\"\n fi\nfi\n";
};
/* End PBXShellScriptBuildPhase section */

Expand Down Expand Up @@ -1151,7 +1156,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
MACOSX_DEPLOYMENT_TARGET = 10.10;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
Expand All @@ -1160,10 +1165,10 @@
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 5.0;
TVOS_DEPLOYMENT_TARGET = 9.0;
TVOS_DEPLOYMENT_TARGET = 11.0;
VERSIONING_SYSTEM = "apple-generic";
VERSION_INFO_PREFIX = "";
WATCHOS_DEPLOYMENT_TARGET = 2.0;
WATCHOS_DEPLOYMENT_TARGET = 4.0;
};
name = Debug;
};
Expand Down Expand Up @@ -1214,19 +1219,19 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
MACOSX_DEPLOYMENT_TARGET = 10.10;
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
SDKROOT = iphoneos;
SWIFT_COMPILATION_MODE = wholemodule;
SWIFT_OPTIMIZATION_LEVEL = "-O";
SWIFT_VERSION = 5.0;
TVOS_DEPLOYMENT_TARGET = 9.0;
TVOS_DEPLOYMENT_TARGET = 11.0;
VALIDATE_PRODUCT = YES;
VERSIONING_SYSTEM = "apple-generic";
VERSION_INFO_PREFIX = "";
WATCHOS_DEPLOYMENT_TARGET = 2.0;
WATCHOS_DEPLOYMENT_TARGET = 4.0;
};
name = Release;
};
Expand Down Expand Up @@ -1342,6 +1347,7 @@
CODE_SIGN_IDENTITY = "-";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
DEAD_CODE_STRIPPING = YES;
DEFINES_MODULE = YES;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
Expand Down Expand Up @@ -1370,6 +1376,7 @@
CODE_SIGN_IDENTITY = "-";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
DEAD_CODE_STRIPPING = YES;
DEFINES_MODULE = YES;
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
Expand Down Expand Up @@ -1398,6 +1405,7 @@
CODE_SIGN_IDENTITY = "-";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
DEAD_CODE_STRIPPING = YES;
INFOPLIST_FILE = "Plists/HalfTests-Info.plist";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
Expand All @@ -1420,6 +1428,7 @@
CODE_SIGN_IDENTITY = "-";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
DEAD_CODE_STRIPPING = YES;
INFOPLIST_FILE = "Plists/HalfTests-Info.plist";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1310"
LastUpgradeVersion = "1401"
version = "1.7">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
2 changes: 1 addition & 1 deletion Half.xcodeproj/xcshareddata/xcschemes/Half macOS.xcscheme
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1310"
LastUpgradeVersion = "1401"
version = "1.7">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1310"
LastUpgradeVersion = "1401"
version = "1.7">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
2 changes: 1 addition & 1 deletion Half.xcodeproj/xcshareddata/xcschemes/Half tvOS.xcscheme
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1310"
LastUpgradeVersion = "1401"
version = "1.7">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1310"
LastUpgradeVersion = "1401"
version = "1.7">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1310"
LastUpgradeVersion = "1401"
version = "1.7">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
2 changes: 1 addition & 1 deletion Half.xcodeproj/xcshareddata/xcschemes/Half.xcscheme
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1310"
LastUpgradeVersion = "1401"
version = "1.7">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
2 changes: 1 addition & 1 deletion Half.xcodeproj/xcshareddata/xcschemes/HalfTests.xcscheme
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1310"
LastUpgradeVersion = "1401"
version = "1.7">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1310"
LastUpgradeVersion = "1401"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
2 changes: 1 addition & 1 deletion Half.xcodeproj/xcshareddata/xcschemes/XCFramework.xcscheme
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1310"
LastUpgradeVersion = "1401"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2021 Joe Newton <somerandomiosdev@gmail.com>
Copyright (c) 2022 Joe Newton <somerandomiosdev@gmail.com>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
8 changes: 4 additions & 4 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
// swift-tools-version:5.5
// swift-tools-version:5.7
import PackageDescription

let package = Package(
name: "Half",

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

products: [
Expand Down
2 changes: 1 addition & 1 deletion Sources/CHalf/include/half.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// half.h
// Half
//
// Copyright © 2021 SomeRandomiOSDev. All rights reserved.
// Copyright © 2022 SomeRandomiOSDev. All rights reserved.
//

#ifndef half_h
Expand Down
2 changes: 1 addition & 1 deletion Sources/CHalf/src/half.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// half.c
// Half
//
// Copyright © 2021 SomeRandomiOSDev. All rights reserved.
// Copyright © 2022 SomeRandomiOSDev. All rights reserved.
//

#include "half.h"
Expand Down
2 changes: 1 addition & 1 deletion Sources/Half/Functions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Functions.swift
// Half
//
// Copyright © 2021 SomeRandomiOSDev. All rights reserved.
// Copyright © 2022 SomeRandomiOSDev. All rights reserved.
//

#if os(Linux)
Expand Down
2 changes: 1 addition & 1 deletion Sources/Half/Half+Coding.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Half+Coding.swift
// Half
//
// Copyright © 2021 SomeRandomiOSDev. All rights reserved.
// Copyright © 2022 SomeRandomiOSDev. All rights reserved.
//

// MARK: - Codable Protocol Conformance
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ Perform arithmetic and bitwise operations or compare values.
- ``Half/Half/...(_:)-1tjn1``
- ``Half/Half/...(_:)-4kfvw``

<!-- Copyright (c) 2021 SomeRandomiOSDev. All Rights Reserved. -->
<!-- Copyright (c) 2022 SomeRandomiOSDev. All Rights Reserved. -->
6 changes: 3 additions & 3 deletions Sources/Half/Half.docc/Half-swift.struct.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
- ``init(_:)-303gr``
- ``init(_:)-27j5y``
- ``init(_:)-sx6z``
- ``init(_:)-93ytu``
- ``init(_:)-77sk``
- ``init(_:)-7en2n``
- ``init(_:)-7dq13``
- ``init(sign:exponent:significand:)``
- ``init(signOf:magnitudeOf:)``
- ``init(_:)-5317f``
Expand Down Expand Up @@ -147,4 +147,4 @@ These initializers result in `nil` if the value passed can't be represented with
- ``write(to:)``
- ``hashValue``

<!-- Copyright (c) 2021 SomeRandomiOSDev. All Rights Reserved. -->
<!-- Copyright (c) 2022 SomeRandomiOSDev. All Rights Reserved. -->
2 changes: 1 addition & 1 deletion Sources/Half/Half.docc/Half.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ Swift Half-Precision Floating Point

- <doc:Standard-Library-Functions>

<!-- Copyright (c) 2021 SomeRandomiOSDev. All Rights Reserved. -->
<!-- Copyright (c) 2022 SomeRandomiOSDev. All Rights Reserved. -->
2 changes: 1 addition & 1 deletion Sources/Half/Half.docc/Standard-Library-Functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ Functions provided by this library with custom implementations for the ``Half/Ha
- ``tanh(_:)``
- ``tgamma(_:)``

<!-- Copyright (c) 2021 SomeRandomiOSDev. All Rights Reserved. -->
<!-- Copyright (c) 2022 SomeRandomiOSDev. All Rights Reserved. -->
2 changes: 1 addition & 1 deletion Sources/Half/Half.docc/half_t.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

A C structure for representing the low-level structure used for a half-precision floating-point value.

<!-- Copyright (c) 2021 SomeRandomiOSDev. All Rights Reserved. -->
<!-- Copyright (c) 2022 SomeRandomiOSDev. All Rights Reserved. -->
2 changes: 1 addition & 1 deletion Sources/Half/Half.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Half.swift
// Half
//
// Copyright © 2021 SomeRandomiOSDev. All rights reserved.
// Copyright © 2022 SomeRandomiOSDev. All rights reserved.
//

#if SWIFT_PACKAGE
Expand Down
2 changes: 1 addition & 1 deletion Sources/Half/Half.swift.gyb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Half.swift
// Half
//
// Copyright © 2021 SomeRandomiOSDev. All rights reserved.
// Copyright © 2022 SomeRandomiOSDev. All rights reserved.
//

#if SWIFT_PACKAGE
Expand Down
2 changes: 1 addition & 1 deletion Sources/Half/Half@swift-4.0.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Half.swift
// Half
//
// Copyright © 2021 SomeRandomiOSDev. All rights reserved.
// Copyright © 2022 SomeRandomiOSDev. All rights reserved.
//

#if SWIFT_PACKAGE
Expand Down
2 changes: 1 addition & 1 deletion Sources/Half/Half@swift-4.2.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Half.swift
// Half
//
// Copyright © 2021 SomeRandomiOSDev. All rights reserved.
// Copyright © 2022 SomeRandomiOSDev. All rights reserved.
//

#if SWIFT_PACKAGE
Expand Down
2 changes: 1 addition & 1 deletion Tests/CHalfTests/CHalfTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// CHalfTests.swift
// Half
//
// Copyright © 2021 SomeRandomiOSDev. All rights reserved.
// Copyright © 2022 SomeRandomiOSDev. All rights reserved.
//

#if SWIFT_PACKAGE
Expand Down
Loading

0 comments on commit 9f95ddc

Please sign in to comment.