-
-
Notifications
You must be signed in to change notification settings - Fork 240
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #58 from ra1028/swift5-compatibility
Swift5 compatibility
- Loading branch information
Showing
32 changed files
with
195 additions
and
152 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,51 @@ | ||
env: | ||
global: | ||
- LC_CTYPE=en_US.UTF-8 | ||
matrix: | ||
include: | ||
- os: osx | ||
language: objective-c | ||
osx_image: xcode10 | ||
script: | ||
- set -o pipefail | ||
- xcodebuild build-for-testing test-without-building -scheme DifferenceKit -configuration Release ENABLE_TESTABILITY=YES | xcpretty -c | ||
- xcodebuild build-for-testing test-without-building -scheme DifferenceKit -configuration Release -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 8' ENABLE_TESTABILITY=YES | xcpretty - c | ||
- xcodebuild build-for-testing test-without-building -scheme DifferenceKit -configuration Release -sdk appletvsimulator -destination 'platform=tvOS Simulator,name=Apple TV' ENABLE_TESTABILITY=YES | xcpretty -c | ||
- xcodebuild build -scheme DifferenceKit -configuration Release -sdk watchsimulator -destination 'platform=watchOS Simulator,name=Apple Watch - 38mm' ENABLE_TESTABILITY=YES | xcpretty -c | ||
|
||
- os: osx | ||
language: generic | ||
osx_image: xcode10 | ||
script: | ||
- swift build | ||
- swift test | ||
aliases: | ||
- &testing_xcode | ||
os: osx | ||
language: objective-c | ||
script: | ||
- set -o pipefail | ||
- xcodebuild build-for-testing test-without-building -scheme DifferenceKit -configuration Release ENABLE_TESTABILITY=YES | xcpretty -c | ||
- xcodebuild build-for-testing test-without-building -scheme DifferenceKit -configuration Release -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone X' ENABLE_TESTABILITY=YES | xcpretty - c | ||
- xcodebuild build-for-testing test-without-building -scheme DifferenceKit -configuration Release -sdk appletvsimulator -destination 'platform=tvOS Simulator,name=Apple TV' ENABLE_TESTABILITY=YES | xcpretty -c | ||
- xcodebuild build -scheme DifferenceKit -configuration Release -sdk watchsimulator -destination 'platform=watchOS Simulator,name=Apple Watch Series 4 - 40mm' ENABLE_TESTABILITY=YES | xcpretty -c | ||
|
||
- os: linux | ||
language: generic | ||
dist: trusty | ||
sudo: required | ||
before_install: | ||
- eval "$(curl -sL https://gist.githubusercontent.com/kylef/5c0475ff02b7c7671d2a/raw/9f442512a46d7a2af7b850d65a7e9bd31edfb09b/swiftenv-install.sh)" | ||
script: | ||
- &testing_spm_darwin | ||
os: osx | ||
language: generic | ||
script: | ||
- swift build | ||
- swift test | ||
|
||
- &testing_spm_linux | ||
os: linux | ||
language: generic | ||
dist: trusty | ||
sudo: required | ||
before_install: | ||
- eval "$(curl -sL https://gist.githubusercontent.com/kylef/5c0475ff02b7c7671d2a/raw/9f442512a46d7a2af7b850d65a7e9bd31edfb09b/swiftenv-install.sh)" | ||
script: | ||
- swift build | ||
- swift test | ||
|
||
matrix: | ||
include: | ||
- <<: *testing_xcode | ||
osx_image: xcode10.1 | ||
|
||
- <<: *testing_xcode | ||
osx_image: xcode10.2 | ||
|
||
- <<: *testing_spm_darwin | ||
osx_image: xcode10.1 | ||
|
||
- <<: *testing_spm_darwin | ||
osx_image: xcode10.2 | ||
|
||
- <<: *testing_spm_linux | ||
env: SWIFT_VERSION=4.2 | ||
|
||
- <<: *testing_spm_linux | ||
env: SWIFT_VERSION=5.0 | ||
|
||
notifications: | ||
email: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
Pod::Spec.new do |spec| | ||
spec.name = 'DifferenceKit' | ||
spec.version = '1.0.0' | ||
spec.version = '1.1.0' | ||
spec.author = { 'ra1028' => '[email protected]' } | ||
spec.homepage = 'https://github.com/ra1028/DifferenceKit' | ||
spec.documentation_url = 'https://ra1028.github.io/DifferenceKit' | ||
|
@@ -13,6 +13,7 @@ Pod::Spec.new do |spec| | |
spec.license = { :type => 'MIT', :file => 'LICENSE' } | ||
spec.requires_arc = true | ||
spec.default_subspecs = 'Core', 'UIKitExtension' | ||
spec.swift_version = "4.2" | ||
|
||
spec.ios.deployment_target = '9.0' | ||
spec.tvos.deployment_target = '9.0' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
source "https://rubygems.org" | ||
|
||
gem 'cocoapods', '1.6.0' | ||
gem 'cocoapods', '1.6.1' | ||
gem 'jazzy', '0.9.3' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.