Skip to content

Commit

Permalink
fix some code linter changed
Browse files Browse the repository at this point in the history
  • Loading branch information
levibostian committed Nov 17, 2022
1 parent c208835 commit dec4535
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
6 changes: 2 additions & 4 deletions Sources/Common/Extensions/UIApplicationExtensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,8 @@ import Foundation
import UIKit

public extension UIApplication {
@available(
iOSApplicationExtension,
unavailable
) // since some extension functions may be able to run in iOS app extensions, only disable for this 1 function
// since some extension functions may be able to run in iOS app extensions, only disable for this 1 function
@available(iOSApplicationExtension, unavailable)
func open(url: URL) {
open(url, options: [:]) { _ in }
}
Expand Down
12 changes: 4 additions & 8 deletions Sources/Tracking/CustomerIOImplementation+ScreenViews.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@ import Foundation
#if canImport(UIKit)
import UIKit

@available(
iOSApplicationExtension,
unavailable
) // screen view tracking is not available for notification service extension. disable all functions having to deal with
// screen view tracking is not available for notification service extension. disable all functions having to deal with
// screen view tracking feature.
@available(iOSApplicationExtension, unavailable)
extension CustomerIO {
func setupAutoScreenviewTracking() {
swizzle(
Expand All @@ -28,11 +26,9 @@ extension CustomerIO {
}
}

@available(
iOSApplicationExtension,
unavailable
) // screen view tracking is not available for notification service extension. disable all functions having to deal with
// screen view tracking is not available for notification service extension. disable all functions having to deal with
// screen view tracking feature.
@available(iOSApplicationExtension, unavailable)
internal extension UIViewController {
var defaultScreenViewBody: ScreenViewData {
ScreenViewData()
Expand Down

0 comments on commit dec4535

Please sign in to comment.