Skip to content

Commit 0a8dfc1

Browse files
committed
Update .travis.yml
1 parent 077ce96 commit 0a8dfc1

File tree

5 files changed

+30
-9
lines changed

5 files changed

+30
-9
lines changed

.travis.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
osx_image: xcode10.2
1+
osx_image: xcode12.3
22
language: objective-c
33
sudo: required
44
env:
55
global:
66
- PROJECT="RxKeyboard.xcodeproj"
77
- SCHEME="RxKeyboard-Package"
88
- IOS_SDK="iphonesimulator"
9-
- MACOS_SDK="macosx10.14"
10-
- TVOS_SDK="appletvsimulator12.2"
11-
- WATCHOS_SDK="watchsimulator5.2"
9+
- MACOS_SDK="macosx11.0"
10+
- TVOS_SDK="appletvsimulator9.0"
11+
- WATCHOS_SDK="watchsimulator3.0"
1212
- FRAMEWORK="RxKeyboard"
1313
matrix:
14-
- SDK="$IOS_SDK" TEST=0 SWIFT_VERSION=5.0 DESTINATION="platform=iOS Simulator,name=iPhone 8"
14+
- SDK="$IOS_SDK" TEST=0 SWIFT_VERSION=5.1 DESTINATION="platform=iOS Simulator,name=iPhone 8"
1515

1616
install:
1717
- swift --version
@@ -49,7 +49,7 @@ before_deploy:
4949
- bundle exec swiftproj configure-scheme --project RxKeyboard.xcodeproj --scheme RxKeyboard-Package --buildable-targets RxKeyboard
5050
- bundle exec swiftproj remove-framework --project RxKeyboard.xcodeproj --target RxKeyboard --framework RxCocoa.framework
5151
- bundle exec swiftproj remove-framework --project RxKeyboard.xcodeproj --target RxKeyboard --framework RxCocoaRuntime.framework
52-
- carthage bootstrap
52+
- ./carthage.sh bootstrap
5353
- carthage build --no-skip-current --verbose | xcpretty -c
5454
- carthage archive RxKeyboard
5555

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// swift-tools-version:5.0
1+
// swift-tools-version:5.1
22

33
import PackageDescription
44

RxKeyboard.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Pod::Spec.new do |s|
1010
s.source_files = 'Sources/**/*.swift'
1111
s.frameworks = 'UIKit'
1212
s.requires_arc = true
13-
s.swift_version = "5.0"
13+
s.swift_version = "5.1"
1414

1515
s.dependency 'RxSwift', '~> 6.0'
1616
s.dependency 'RxCocoa', '~> 6.0'

Sources/RxKeyboard/RxKeyboard.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ extension RxKeyboard: UIGestureRecognizerDelegate {
159159
_ gestureRecognizer: UIGestureRecognizer,
160160
shouldRecognizeSimultaneouslyWith otherGestureRecognizer: UIGestureRecognizer
161161
) -> Bool {
162-
return gestureRecognizer === self.panRecognizer
162+
gestureRecognizer === self.panRecognizer
163163
}
164164

165165
}

scripts/carthage.sh

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/usr/bin/env bash
2+
3+
# carthage.sh
4+
# Usage example: ./carthage.sh build --platform iOS
5+
6+
set -euo pipefail
7+
8+
xcconfig=$(mktemp /tmp/static.xcconfig.XXXXXX)
9+
trap 'rm -f "$xcconfig"' INT TERM HUP EXIT
10+
11+
# For Xcode 12 make sure EXCLUDED_ARCHS is set to arm architectures otherwise
12+
# the build will fail on lipo due to duplicate architectures.
13+
14+
CURRENT_XCODE_VERSION=$(xcodebuild -version | grep "Build version" | cut -d' ' -f3)
15+
echo "EXCLUDED_ARCHS__EFFECTIVE_PLATFORM_SUFFIX_simulator__NATIVE_ARCH_64_BIT_x86_64__XCODE_1200__BUILD_$CURRENT_XCODE_VERSION = arm64 arm64e armv7 armv7s armv6 armv8" >> $xcconfig
16+
17+
echo 'EXCLUDED_ARCHS__EFFECTIVE_PLATFORM_SUFFIX_simulator__NATIVE_ARCH_64_BIT_x86_64__XCODE_1200 = $(EXCLUDED_ARCHS__EFFECTIVE_PLATFORM_SUFFIX_simulator__NATIVE_ARCH_64_BIT_x86_64__XCODE_1200__BUILD_$(XCODE_PRODUCT_BUILD_VERSION))' >> $xcconfig
18+
echo 'EXCLUDED_ARCHS = $(inherited) $(EXCLUDED_ARCHS__EFFECTIVE_PLATFORM_SUFFIX_$(EFFECTIVE_PLATFORM_SUFFIX)__NATIVE_ARCH_64_BIT_$(NATIVE_ARCH_64_BIT)__XCODE_$(XCODE_VERSION_MAJOR))' >> $xcconfig
19+
20+
export XCODE_XCCONFIG_FILE="$xcconfig"
21+
carthage build "$@"

0 commit comments

Comments
 (0)