Skip to content

Commit f458319

Browse files
Merge pull request #11 from SomeRandomiOSDev/1.2.0
1.2.0
2 parents b08ee2a + 9119255 commit f458319

30 files changed

+540
-292
lines changed

.github/workflows/swift.yml

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,28 @@
11
name: Swift
22

3-
on: [push]
3+
on: [push, pull_request]
44

55
jobs:
66
build:
7-
8-
runs-on: macOS-latest
9-
7+
strategy:
8+
matrix:
9+
os: [macOS-latest, ubuntu-latest]
10+
swift: ["5.1"]
11+
runs-on: ${{ matrix.os }}
12+
env:
13+
SWIFT_VERSION: ${{ matrix.swift }}
14+
SWIFT_EXEC: .swiftenv/shims/swift
1015
steps:
1116
- uses: actions/checkout@v2
17+
- name: Install Swift
18+
run: |
19+
git clone https://github.com/kylef/swiftenv.git ~/.swiftenv
20+
~/.swiftenv/bin/swiftenv install $SWIFT_VERSION --skip-existing
21+
~/.swiftenv/bin/swiftenv rehash
1222
- name: Build
13-
run: swift build -v
14-
- name: Run Tests
15-
run: swift test -v
23+
run: |
24+
~/$SWIFT_EXEC --version
25+
~/$SWIFT_EXEC build -v
26+
- name: Test
27+
run: |
28+
~/$SWIFT_EXEC test -v

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
CBORCoding.xcodeproj/project.xcworkspace
1+
CBORCoding.xcodeproj/project.xcworkspace/xcuserdata
22
CBORCoding.xcodeproj/xcuserdata
33
CBORCoding.xcworkspace/xcuserdata
44
.build

.swiftlint.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ opt_in_rules:
4444
- multiple_closures_with_trailing_closure
4545
- nesting
4646
- notification_center_detachment
47-
- number_separator
4847
- object_literal
4948
- operator_usage_whitespace
5049
- override_in_extension
@@ -60,8 +59,9 @@ opt_in_rules:
6059
- yoda_condition
6160

6261
excluded:
63-
- Pods
64-
- Carthage
62+
- .build
63+
- Tests/LinuxMain.swift
64+
- Tests/CBORCodingTests/XCTestManifests.swift
6565

6666
reporter: "xcode"
6767

.travis.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,8 @@ os: osx
22
language: swift
33
osx_image: xcode11.3
44
xcode_project: CBORCoding.xcodeproj
5-
addons:
6-
homebrew:
7-
packages:
8-
carthage
95

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

CBORCoding.podspec

Lines changed: 14 additions & 7 deletions
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.1.0"
4+
s.version = "1.2.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.
@@ -16,12 +16,19 @@ Pod::Spec.new do |s|
1616
s.tvos.deployment_target = '9.0'
1717
s.watchos.deployment_target = '2.0'
1818

19-
s.source = { :git => "https://github.com/SomeRandomiOSDev/CBORCoding.git", :tag => s.version.to_s }
20-
s.source_files = 'CBORCoding/**/*.swift'
21-
s.frameworks = 'Foundation'
22-
s.swift_version = '5.0'
23-
s.requires_arc = true
19+
s.source = { :git => "https://github.com/SomeRandomiOSDev/CBORCoding.git", :tag => s.version.to_s }
20+
s.source_files = 'Sources/**/*.swift'
21+
s.swift_versions = ['4.2', '5.0']
22+
s.cocoapods_version = '>= 1.7.3'
2423

25-
s.dependency 'Half', '~> 1.0'
24+
s.dependency 'Half', '~> 1.2'
25+
26+
s.test_spec 'Tests' do |ts|
27+
ts.ios.deployment_target = '8.0'
28+
ts.macos.deployment_target = '10.10'
29+
ts.tvos.deployment_target = '9.0'
30+
31+
ts.source_files = 'Tests/CBORCodingTests/*Tests.swift'
32+
end
2633

2734
end

CBORCoding.xcodeproj/project.pbxproj

Lines changed: 234 additions & 247 deletions
Large diffs are not rendered by default.

CBORCoding.xcodeproj/project.xcworkspace/contents.xcworkspacedata

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

CBORCoding.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cartfile

Lines changed: 0 additions & 1 deletion
This file was deleted.

Cartfile.resolved

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)