Skip to content

Commit

Permalink
Removed iOS 13-specific code that's no longer needed or was never wor…
Browse files Browse the repository at this point in the history
…king in SirenVC
  • Loading branch information
ArtSabintsev committed Oct 31, 2020
1 parent eeb1864 commit 1f6ae46
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 16 deletions.
Binary file removed .build/manifest.db
Binary file not shown.
8 changes: 4 additions & 4 deletions Example/Example.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand All @@ -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";
Expand All @@ -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;
Expand Down
2 changes: 2 additions & 0 deletions Example/Siren/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
</dict>
<key>UIMainStoryboardFile</key>
<string>Main</string>
<key>UIStatusBarStyle</key>
<string>UIStatusBarStyleLightContent</string>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
Expand Down
4 changes: 2 additions & 2 deletions Siren.podspec
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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'
Expand Down
10 changes: 0 additions & 10 deletions Sources/View Controllers/SirenViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 1f6ae46

Please sign in to comment.