diff --git a/Sources/Common/Extensions/UIApplicationExtensions.swift b/Sources/Common/Extensions/UIApplicationExtensions.swift index fc16cfb08..ff60efadb 100644 --- a/Sources/Common/Extensions/UIApplicationExtensions.swift +++ b/Sources/Common/Extensions/UIApplicationExtensions.swift @@ -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 } } diff --git a/Sources/Tracking/CustomerIOImplementation+ScreenViews.swift b/Sources/Tracking/CustomerIOImplementation+ScreenViews.swift index 4bdbf040f..a303014c4 100644 --- a/Sources/Tracking/CustomerIOImplementation+ScreenViews.swift +++ b/Sources/Tracking/CustomerIOImplementation+ScreenViews.swift @@ -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( @@ -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()