Skip to content

Commit

Permalink
Merge pull request #9 from SomeRandomiOSDev/1.1.0
Browse files Browse the repository at this point in the history
Added support for encoding/decoding Half-Precision floating point numbers
  • Loading branch information
SomeRandomiOSDev authored Feb 13, 2020
2 parents 554b294 + 7564a4e commit 9895542
Show file tree
Hide file tree
Showing 22 changed files with 392 additions and 190 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
CBORCoding.xcodeproj/project.xcworkspace
CBORCoding.xcodeproj/xcuserdata
CBORCoding.xcworkspace/xcuserdata
.build
.swiftpm
IDEWorkspaceChecks.plist
Pods
Carthage
7 changes: 6 additions & 1 deletion .swiftlint.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
disabled_rules:
disabled_rules:
- file_length
- line_length
- cyclomatic_complexity
- type_body_length
- type_name
- function_body_length

opt_in_rules:
- anyobject_protocol
Expand Down Expand Up @@ -58,6 +59,10 @@ opt_in_rules:
- unneeded_parentheses_in_closure_argument
- yoda_condition

excluded:
- Pods
- Carthage

reporter: "xcode"

identifier_name:
Expand Down
16 changes: 11 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
os: osx
language: swift
osx_image: xcode10.2
osx_image: xcode11.3
xcode_project: CBORCoding.xcodeproj
addons:
homebrew:
packages:
carthage

script:
- 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
- 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
- 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
- set -o pipefail && travis_retry xcodebuild -scheme "CBORCoding macOS" -destination "platform=macOS" -configuration Debug ONLY_ACTIVE_ARCH=YES -enableCodeCoverage YES test
- carthage bootstrap

- 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
- set -o pipefail && travis_retry xcodebuild -scheme "CBORCoding macOS Tests" -destination "platform=macOS" -configuration Debug ONLY_ACTIVE_ARCH=YES -enableCodeCoverage YES test
- 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
- 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

after_success:
- bash <(curl -s https://codecov.io/bash)
4 changes: 3 additions & 1 deletion CBORCoding.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|

s.name = "CBORCoding"
s.version = "1.0.6"
s.version = "1.1.0"
s.summary = "A CBOR Encoder and Decoder"
s.description = <<-DESC
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.
Expand All @@ -21,5 +21,7 @@ Pod::Spec.new do |s|
s.frameworks = 'Foundation'
s.swift_version = '5.0'
s.requires_arc = true

s.dependency 'Half', '~> 1.0'

end
Loading

0 comments on commit 9895542

Please sign in to comment.