@@ -60,18 +60,14 @@ class ExtraViewController: UIViewController {
6060
6161 @IBAction func highEnergyCPU( _ sender: UIButton ) {
6262 highlightButton ( sender)
63- if #available( iOS 15 . 0 , * ) {
64- batteryConsumer = BatteryConsumer ( qos: . userInitiated)
65- batteryConsumer? . start ( )
66- }
63+ batteryConsumer = BatteryConsumer ( qos: . userInitiated)
64+ batteryConsumer? . start ( )
6765 }
6866
6967 @IBAction func lowEnergyCPU( _ sender: UIButton ) {
7068 highlightButton ( sender)
71- if #available( iOS 15 . 0 , * ) {
72- batteryConsumer = BatteryConsumer ( qos: . background)
73- batteryConsumer? . start ( )
74- }
69+ batteryConsumer = BatteryConsumer ( qos: . background)
70+ batteryConsumer? . start ( )
7571 }
7672
7773 @IBAction func stopUsingEnergy( _ sender: UIButton ) {
@@ -187,7 +183,6 @@ class ExtraViewController: UIViewController {
187183 self . present ( safariVC, animated: true )
188184 }
189185
190- @available ( iOS 13 . 0 , * )
191186 @IBAction func openAuthenticationServicesWebView( _ sender: UIButton ) {
192187 let url = URL ( string: " https://sentry.io/auth/login/ " ) !
193188 let session = ASWebAuthenticationSession ( url: url, callbackURLScheme: " sentry-callback " ) { url, error in
@@ -394,19 +389,11 @@ class ExtraViewController: UIViewController {
394389 }
395390
396391 @IBAction func showFeedbackWidget( _ sender: Any ) {
397- if #available( iOS 13 . 0 , * ) {
398- SentrySDK . feedback. showWidget ( )
399- } else {
400- showToast ( in: self , type: . warning, message: " Feedback widget only available in iOS 13 or later. " )
401- }
392+ SentrySDK . feedback. showWidget ( )
402393 }
403394
404395 @IBAction func hideFeedbackWidget( _ sender: Any ) {
405- if #available( iOS 13 . 0 , * ) {
406- SentrySDK . feedback. hideWidget ( )
407- } else {
408- showToast ( in: self , type: . warning, message: " Feedback widget only available in iOS 13 or later. " )
409- }
396+ SentrySDK . feedback. hideWidget ( )
410397 }
411398
412399 @IBAction func showCameraUIAction( _ sender: Any ) {
@@ -425,7 +412,6 @@ class ExtraViewController: UIViewController {
425412 }
426413}
427414
428- @available ( iOS 13 . 0 , * )
429415extension ExtraViewController : ASWebAuthenticationPresentationContextProviding {
430416 func presentationAnchor( for session: ASWebAuthenticationSession ) -> ASPresentationAnchor {
431417 guard let window = view. window else {
0 commit comments