File tree Expand file tree Collapse file tree 5 files changed +30
-9
lines changed Expand file tree Collapse file tree 5 files changed +30
-9
lines changed Original file line number Diff line number Diff line change 1
- osx_image : xcode10.2
1
+ osx_image : xcode12.3
2
2
language : objective-c
3
3
sudo : required
4
4
env :
5
5
global :
6
6
- PROJECT="RxKeyboard.xcodeproj"
7
7
- SCHEME="RxKeyboard-Package"
8
8
- 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 "
12
12
- FRAMEWORK="RxKeyboard"
13
13
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"
15
15
16
16
install :
17
17
- swift --version
@@ -49,7 +49,7 @@ before_deploy:
49
49
- bundle exec swiftproj configure-scheme --project RxKeyboard.xcodeproj --scheme RxKeyboard-Package --buildable-targets RxKeyboard
50
50
- bundle exec swiftproj remove-framework --project RxKeyboard.xcodeproj --target RxKeyboard --framework RxCocoa.framework
51
51
- bundle exec swiftproj remove-framework --project RxKeyboard.xcodeproj --target RxKeyboard --framework RxCocoaRuntime.framework
52
- - carthage bootstrap
52
+ - ./ carthage.sh bootstrap
53
53
- carthage build --no-skip-current --verbose | xcpretty -c
54
54
- carthage archive RxKeyboard
55
55
Original file line number Diff line number Diff line change 1
- // swift-tools-version:5.0
1
+ // swift-tools-version:5.1
2
2
3
3
import PackageDescription
4
4
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ Pod::Spec.new do |s|
10
10
s . source_files = 'Sources/**/*.swift'
11
11
s . frameworks = 'UIKit'
12
12
s . requires_arc = true
13
- s . swift_version = "5.0 "
13
+ s . swift_version = "5.1 "
14
14
15
15
s . dependency 'RxSwift' , '~> 6.0'
16
16
s . dependency 'RxCocoa' , '~> 6.0'
Original file line number Diff line number Diff line change @@ -159,7 +159,7 @@ extension RxKeyboard: UIGestureRecognizerDelegate {
159
159
_ gestureRecognizer: UIGestureRecognizer ,
160
160
shouldRecognizeSimultaneouslyWith otherGestureRecognizer: UIGestureRecognizer
161
161
) -> Bool {
162
- return gestureRecognizer === self . panRecognizer
162
+ gestureRecognizer === self . panRecognizer
163
163
}
164
164
165
165
}
Original file line number Diff line number Diff line change
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 " $@ "
You can’t perform that action at this time.
0 commit comments