From 1f6ae4635d92c5926bc51d26ab756b4c06121b9f Mon Sep 17 00:00:00 2001 From: Arthur Ariel Sabintsev Date: Sat, 31 Oct 2020 08:40:54 -0400 Subject: [PATCH] Removed iOS 13-specific code that's no longer needed or was never working in SirenVC --- .build/manifest.db | Bin 24576 -> 0 bytes Example/Example.xcodeproj/project.pbxproj | 8 ++++---- Example/Siren/Info.plist | 2 ++ Siren.podspec | 4 ++-- .../View Controllers/SirenViewController.swift | 10 ---------- 5 files changed, 8 insertions(+), 16 deletions(-) delete mode 100644 .build/manifest.db diff --git a/.build/manifest.db b/.build/manifest.db deleted file mode 100644 index 2ffcf8e8eaa93be7de36ae4eab21892106d1caa0..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 24576 zcmeHPOLN=S6$VAhvOKnwEK)6v;f!bO8IT0{6xA+FiIBuGMKU1eN;N$g5V)iefdGSt zOhr*UcH9|v+jiAWS8X%>0o^wa+a$$qGIQKli zb8#P_F5Bc!b@oH#a%f(FdmD zdNzqzIkxBNhAYDoGZf}n)f$dGmuPcD$5m{Xg)r+JOH3^+X=DU9#8h?SgeJC|l33em zpzSC?VBQubv9Tq#S&Z3KhQzrKkv~utme%gxjXi(Yk9<-$Da7Yuo{(7(j{Kbu7FgJJ zN2)b;!el%U;y2dByD`R3qVu5vi)vZ%T+6?gCn{xOQpBb7O>FOHv8A>5-itjy^u5!~ zJ_z-#g*l&)a-{2Cp+vK4oR^}!u*Ah!Ay1OMqk5ugZA1SkR& z0g3=cfFeKNdy^z55f8zE5v-0nizpnfm3iO}|Py{Ff z6ak6=MSvne5ugZA1SkS;iNMQJBEh_J&XStqD#?u}LN>?c@|+-KxpIjsmpOrlO9?JH zI0deR7v3)l0$hb6lncQ%E1+m$Jx~BdzXFtj95O>?K0l*95YBTYup;ESB3Kau&Y)(d zEEGc3^ZrE|0<&e`emTqKOWZp8gf5^GjHkc_6-BH-0y>UYw3?49*WpI+!$vxf;m>;! zC<*)wOhgnk7U~XVLQnY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YyI5FQTsd|0|>s;&47#htt$LJgZwjyzFIlNkq}|UsTLF`1LZ+$OWv+m zcCelwV|RlTV0v8J66J7MMKb8|-MKghSx2eiX$tdqe(o<5e*cTV|HWS}{PN>}rWTf& zY%~*`HpD_Y3)858{STjiDf{dvAHVB=|G)YLv-Hq)$ diff --git a/Example/Example.xcodeproj/project.pbxproj b/Example/Example.xcodeproj/project.pbxproj index bddd38cf..a37abd24 100755 --- a/Example/Example.xcodeproj/project.pbxproj +++ b/Example/Example.xcodeproj/project.pbxproj @@ -607,7 +607,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 11.0; + IPHONEOS_DEPLOYMENT_TARGET = 10.0; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; @@ -656,7 +656,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 11.0; + IPHONEOS_DEPLOYMENT_TARGET = 10.0; MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = iphoneos; SWIFT_VERSION = 4.2; @@ -674,7 +674,7 @@ INFOPLIST_FILE = "$(SRCROOT)/Siren/Info.plist"; IPHONEOS_DEPLOYMENT_TARGET = 12.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - PRODUCT_BUNDLE_IDENTIFIER = com.apple.AppStoreConnect; + PRODUCT_BUNDLE_IDENTIFIER = com.facebook.Facebook; PRODUCT_NAME = Example; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; @@ -691,7 +691,7 @@ INFOPLIST_FILE = "$(SRCROOT)/Siren/Info.plist"; IPHONEOS_DEPLOYMENT_TARGET = 12.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - PRODUCT_BUNDLE_IDENTIFIER = com.apple.AppStoreConnect; + PRODUCT_BUNDLE_IDENTIFIER = com.facebook.Facebook; PRODUCT_NAME = Example; SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; SWIFT_VERSION = 5.0; diff --git a/Example/Siren/Info.plist b/Example/Siren/Info.plist index e913ff95..0d667e2d 100644 --- a/Example/Siren/Info.plist +++ b/Example/Siren/Info.plist @@ -25,6 +25,8 @@ UIMainStoryboardFile Main + UIStatusBarStyle + UIStatusBarStyleLightContent UISupportedInterfaceOrientations UIInterfaceOrientationPortrait diff --git a/Siren.podspec b/Siren.podspec index 3f78e9cc..0f93c268 100755 --- a/Siren.podspec +++ b/Siren.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| # Version - s.version = "5.5.0" + s.version = "5.5.1" s.swift_version = "5.3" # Meta @@ -14,7 +14,7 @@ Pod::Spec.new do |s| DESC # Compatibility & Sources - s.platform = :ios, "9.0" + s.platform = :ios, "10.0" s.source = { :git => "https://github.com/ArtSabintsev/Siren.git", :tag => s.version.to_s } s.source_files = 'Sources/**/*.swift' s.resources = 'Sources/Siren.bundle' diff --git a/Sources/View Controllers/SirenViewController.swift b/Sources/View Controllers/SirenViewController.swift index aacefba3..4bb7cdec 100644 --- a/Sources/View Controllers/SirenViewController.swift +++ b/Sources/View Controllers/SirenViewController.swift @@ -10,20 +10,10 @@ import UIKit /// `UIViewController` Extension for Siren final class SirenViewController: UIViewController { - /// This creates a retain cycle. /// This is needed to retain the UIAlertController in iOS 13.0+ var retainedWindow: UIWindow? - /// `UIStatusBarStyle` override. - override var preferredStatusBarStyle: UIStatusBarStyle { - if #available(iOS 13.0, *) { - return retainedWindow?.windowScene?.statusBarManager?.statusBarStyle ?? .default - } else { - return UIApplication.shared.statusBarStyle - } - } - deinit { retainedWindow = nil }