Skip to content

Commit

Permalink
Merge pull request #163 from devxoul/feature/remove-warning
Browse files Browse the repository at this point in the history
Remove warnings
  • Loading branch information
OhKanghoon authored Jun 20, 2023
2 parents 18ba61f + 9f0a30d commit 8078e3a
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
24 changes: 13 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
- master
pull_request:

concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
test:
runs-on: macOS-latest
Expand All @@ -18,9 +22,6 @@ jobs:
- sdk: iphonesimulator
destination: platform=iOS Simulator,name=iPhone 13 Pro,OS=latest

- sdk: macosx
destination: arch=x86_64

- sdk: appletvsimulator
destination: platform=tvOS Simulator,name=Apple TV,OS=latest

Expand All @@ -36,21 +37,22 @@ jobs:

- name: Build and Test
run: |
set -o pipefail && xcodebuild clean build test \
set -o pipefail
xcodebuild -resolvePackageDependencies
xcodebuild clean build test \
-scheme "$SCHEME" \
-sdk "$SDK" \
-destination "$DESTINATION" \
-configuration Debug \
-enableCodeCoverage YES \
-resultBundlePath "./${{ matrix.env.sdk }}.xcresult" \
CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | xcpretty -c;
env:
SDK: ${{ matrix.env.sdk }}
DESTINATION: ${{ matrix.env.destination }}

- name: Upload Code Coverage
run: |
bash <(curl -s https://codecov.io/bash) \
-X xcodeplist \
-J "$CODECOV_PACKAGE_NAME"
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- name: Upload coverage to Codecov
uses: codecov/[email protected]
with:
xcode: true
xcode_archive_path: "./${{ matrix.env.sdk }}.xcresult"
2 changes: 0 additions & 2 deletions Sources/URLMatcher/URLConvertible.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ public protocol URLConvertible {
/// Returns `queryItems` property of `URLComponents` instance.
///
/// - seealso: `queryParameters`
@available(iOS 8, *)
var queryItems: [URLQueryItem]? { get }
}

Expand All @@ -33,7 +32,6 @@ extension URLConvertible {
return parameters
}

@available(iOS 8, *)
public var queryItems: [URLQueryItem]? {
return URLComponents(string: self.urlStringValue)?.queryItems
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ extension UIViewController {
}

/// Returns the current application's top most view controller.
open class var topMost: UIViewController? {
public class var topMost: UIViewController? {
guard let currentWindows = self.sharedApplication?.windows else { return nil }
var rootViewController: UIViewController?
for window in currentWindows {
Expand All @@ -22,7 +22,7 @@ extension UIViewController {
}

/// Returns the top most view controller from given view controller's stack.
open class func topMost(of viewController: UIViewController?) -> UIViewController? {
public class func topMost(of viewController: UIViewController?) -> UIViewController? {
// presented view controller
if let presentedViewController = viewController?.presentedViewController {
return self.topMost(of: presentedViewController)
Expand Down

0 comments on commit 8078e3a

Please sign in to comment.