Skip to content

Commit 9895542

Browse files
Merge pull request #9 from SomeRandomiOSDev/1.1.0
Added support for encoding/decoding Half-Precision floating point numbers
2 parents 554b294 + 7564a4e commit 9895542

22 files changed

+392
-190
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
CBORCoding.xcodeproj/project.xcworkspace
22
CBORCoding.xcodeproj/xcuserdata
3+
CBORCoding.xcworkspace/xcuserdata
34
.build
45
.swiftpm
6+
IDEWorkspaceChecks.plist
7+
Pods
8+
Carthage

.swiftlint.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
disabled_rules:
1+
disabled_rules:
22
- file_length
33
- line_length
44
- cyclomatic_complexity
55
- type_body_length
66
- type_name
7+
- function_body_length
78

89
opt_in_rules:
910
- anyobject_protocol
@@ -58,6 +59,10 @@ opt_in_rules:
5859
- unneeded_parentheses_in_closure_argument
5960
- yoda_condition
6061

62+
excluded:
63+
- Pods
64+
- Carthage
65+
6166
reporter: "xcode"
6267

6368
identifier_name:

.travis.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,19 @@
11
os: osx
22
language: swift
3-
osx_image: xcode10.2
3+
osx_image: xcode11.3
44
xcode_project: CBORCoding.xcodeproj
5+
addons:
6+
homebrew:
7+
packages:
8+
carthage
59

610
script:
7-
- set -o pipefail && travis_retry xcodebuild -scheme "CBORCoding" -destination "platform=iOS Simulator,name=iPhone XS Max" -configuration Debug ONLY_ACTIVE_ARCH=YES -enableCodeCoverage YES test
8-
- set -o pipefail && travis_retry xcodebuild -scheme "CBORCoding tvOS" -destination "platform=tvOS Simulator,name=Apple TV 4K" -configuration Debug ONLY_ACTIVE_ARCH=YES -enableCodeCoverage YES test
9-
- set -o pipefail && travis_retry xcodebuild -scheme "CBORCoding watchOS" -destination "platform=watchOS Simulator,name=Apple Watch Series 4 - 44mm" -configuration Debug ONLY_ACTIVE_ARCH=YES
10-
- set -o pipefail && travis_retry xcodebuild -scheme "CBORCoding macOS" -destination "platform=macOS" -configuration Debug ONLY_ACTIVE_ARCH=YES -enableCodeCoverage YES test
11+
- carthage bootstrap
12+
13+
- set -o pipefail && travis_retry xcodebuild -scheme "CBORCodingTests" -destination "platform=iOS Simulator,name=iPhone 11 Pro Max" -configuration Debug ONLY_ACTIVE_ARCH=YES -enableCodeCoverage YES test
14+
- set -o pipefail && travis_retry xcodebuild -scheme "CBORCoding macOS Tests" -destination "platform=macOS" -configuration Debug ONLY_ACTIVE_ARCH=YES -enableCodeCoverage YES test
15+
- set -o pipefail && travis_retry xcodebuild -scheme "CBORCoding tvOS Tests" -destination "platform=tvOS Simulator,name=Apple TV 4K" -configuration Debug ONLY_ACTIVE_ARCH=YES -enableCodeCoverage YES test
16+
- set -o pipefail && travis_retry xcodebuild -scheme "CBORCoding watchOS" -destination "platform=watchOS Simulator,name=Apple Watch Series 5 - 44mm" -configuration Debug ONLY_ACTIVE_ARCH=YES
1117

1218
after_success:
1319
- bash <(curl -s https://codecov.io/bash)

CBORCoding.podspec

Lines changed: 3 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 = "CBORCoding"
4-
s.version = "1.0.6"
4+
s.version = "1.1.0"
55
s.summary = "A CBOR Encoder and Decoder"
66
s.description = <<-DESC
77
A lightweight framework containing a coder pair for encoding and decoding `Codable` conforming types to and from CBOR document format for iOS, macOS, tvOS, and watchOS.
@@ -21,5 +21,7 @@ Pod::Spec.new do |s|
2121
s.frameworks = 'Foundation'
2222
s.swift_version = '5.0'
2323
s.requires_arc = true
24+
25+
s.dependency 'Half', '~> 1.0'
2426

2527
end

0 commit comments

Comments
 (0)