Skip to content

Commit 818eda1

Browse files
committed
add iOS 9 support
1 parent a011f36 commit 818eda1

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

UserReport.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Pod::Spec.new do |s|
6161
# the deployment target. You can optionally include the target after the platform.
6262
#
6363

64-
s.platform = :ios, "10.0"
64+
s.platform = :ios, "9.0"
6565

6666

6767
# ――― Source Location ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #

UserReport/UserReport/UI/SurveyViewController.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,11 @@ internal class SurveyViewController: UIViewController, WKNavigationDelegate, WKS
137137
if let url = navigationAction.request.url {
138138
let shared = UIApplication.shared
139139
if shared.canOpenURL(url) {
140-
shared.open(url, options: [:], completionHandler: nil)
140+
if #available(iOS 10.0, *) {
141+
shared.open(url, options: [:], completionHandler: nil)
142+
} else {
143+
shared.openURL(url)
144+
}
141145
}
142146
}
143147
decisionHandler(.cancel)

UserReport/UserReportSDK.xcodeproj/project.pbxproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@
433433
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
434434
GCC_WARN_UNUSED_FUNCTION = YES;
435435
GCC_WARN_UNUSED_VARIABLE = YES;
436-
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
436+
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
437437
MTL_ENABLE_DEBUG_INFO = YES;
438438
ONLY_ACTIVE_ARCH = YES;
439439
SDKROOT = iphoneos;
@@ -490,7 +490,7 @@
490490
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
491491
GCC_WARN_UNUSED_FUNCTION = YES;
492492
GCC_WARN_UNUSED_VARIABLE = YES;
493-
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
493+
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
494494
MTL_ENABLE_DEBUG_INFO = NO;
495495
SDKROOT = iphoneos;
496496
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
@@ -512,7 +512,7 @@
512512
DYLIB_INSTALL_NAME_BASE = "@rpath";
513513
INFOPLIST_FILE = UserReport/Info.plist;
514514
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
515-
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
515+
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
516516
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
517517
PRODUCT_BUNDLE_IDENTIFIER = com.userreport;
518518
PRODUCT_NAME = "$(TARGET_NAME)";
@@ -533,7 +533,7 @@
533533
DYLIB_INSTALL_NAME_BASE = "@rpath";
534534
INFOPLIST_FILE = UserReport/Info.plist;
535535
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
536-
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
536+
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
537537
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
538538
PRODUCT_BUNDLE_IDENTIFIER = com.userreport;
539539
PRODUCT_NAME = "$(TARGET_NAME)";

0 commit comments

Comments
 (0)