File tree Expand file tree Collapse file tree 3 files changed +15
-15
lines changed
Expand file tree Collapse file tree 3 files changed +15
-15
lines changed Original file line number Diff line number Diff line change 66 - master
77 pull_request :
88
9+ concurrency :
10+ group : ${{ github.head_ref || github.run_id }}
11+ cancel-in-progress : true
12+
913jobs :
1014 test :
1115 runs-on : macOS-latest
1822 - sdk : iphonesimulator
1923 destination : platform=iOS Simulator,name=iPhone 13 Pro,OS=latest
2024
21- - sdk : macosx
22- destination : arch=x86_64
23-
2425 - sdk : appletvsimulator
2526 destination : platform=tvOS Simulator,name=Apple TV,OS=latest
2627
@@ -36,21 +37,22 @@ jobs:
3637
3738 - name : Build and Test
3839 run : |
39- set -o pipefail && xcodebuild clean build test \
40+ set -o pipefail
41+ xcodebuild -resolvePackageDependencies
42+ xcodebuild clean build test \
4043 -scheme "$SCHEME" \
4144 -sdk "$SDK" \
4245 -destination "$DESTINATION" \
4346 -configuration Debug \
4447 -enableCodeCoverage YES \
48+ -resultBundlePath "./${{ matrix.env.sdk }}.xcresult" \
4549 CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | xcpretty -c;
4650 env :
4751 SDK : ${{ matrix.env.sdk }}
4852 DESTINATION : ${{ matrix.env.destination }}
4953
50- - name : Upload Code Coverage
51- run : |
52- bash <(curl -s https://codecov.io/bash) \
53- -X xcodeplist \
54- -J "$CODECOV_PACKAGE_NAME"
55- env :
56- CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
54+ - name : Upload coverage to Codecov
55+ uses : codecov/codecov-action@v3.1.0
56+ with :
57+ xcode : true
58+ xcode_archive_path : " ./${{ matrix.env.sdk }}.xcresult"
Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ public protocol URLConvertible {
1515 /// Returns `queryItems` property of `URLComponents` instance.
1616 ///
1717 /// - seealso: `queryParameters`
18- @available ( iOS 8 , * )
1918 var queryItems : [ URLQueryItem ] ? { get }
2019}
2120
@@ -33,7 +32,6 @@ extension URLConvertible {
3332 return parameters
3433 }
3534
36- @available ( iOS 8 , * )
3735 public var queryItems : [ URLQueryItem ] ? {
3836 return URLComponents ( string: self . urlStringValue) ? . queryItems
3937 }
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ extension UIViewController {
88 }
99
1010 /// Returns the current application's top most view controller.
11- open class var topMost : UIViewController ? {
11+ public class var topMost : UIViewController ? {
1212 guard let currentWindows = self . sharedApplication? . windows else { return nil }
1313 var rootViewController : UIViewController ?
1414 for window in currentWindows {
@@ -22,7 +22,7 @@ extension UIViewController {
2222 }
2323
2424 /// Returns the top most view controller from given view controller's stack.
25- open class func topMost( of viewController: UIViewController ? ) -> UIViewController ? {
25+ public class func topMost( of viewController: UIViewController ? ) -> UIViewController ? {
2626 // presented view controller
2727 if let presentedViewController = viewController? . presentedViewController {
2828 return self . topMost ( of: presentedViewController)
You can’t perform that action at this time.
0 commit comments