Skip to content

Commit 1e9deea

Browse files
authored
Make FIAM tvOS minimum version consistent with Firebase (#7263)
1 parent f88689a commit 1e9deea

10 files changed

+12
-12
lines changed

FirebaseInAppMessaging.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ See more product details at https://firebase.google.com/products/in-app-messagin
1818
}
1919
s.social_media_url = 'https://twitter.com/Firebase'
2020
s.ios.deployment_target = '10.0'
21-
s.tvos.deployment_target = '13.0'
21+
s.tvos.deployment_target = '10.0'
2222

2323
s.cocoapods_version = '>= 1.4.0'
2424
s.prefix_header_file = false

FirebaseInAppMessaging/Sources/Analytics/FIRIAMClearcutLogStorage.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ - (instancetype)initWithExpireAfterInSeconds:(NSInteger)expireInSeconds
9696
name:UIApplicationWillResignActiveNotification
9797
object:nil];
9898
#if defined(__IPHONE_13_0) && __IPHONE_OS_VERSION_MAX_ALLOWED >= 130000
99-
if (@available(iOS 13.0, *)) {
99+
if (@available(iOS 13.0, tvOS 13.0, *)) {
100100
[[NSNotificationCenter defaultCenter] addObserver:self
101101
selector:@selector(appWillBecomeInactive:)
102102
name:UISceneWillDeactivateNotification

FirebaseInAppMessaging/Sources/Analytics/FIRIAMClearcutUploader.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ - (instancetype)initWithRequestSender:(FIRIAMClearcutHttpRequestSender *)request
102102
name:UIApplicationWillEnterForegroundNotification
103103
object:nil];
104104
#if defined(__IPHONE_13_0) && __IPHONE_OS_VERSION_MAX_ALLOWED >= 130000
105-
if (@available(iOS 13.0, *)) {
105+
if (@available(iOS 13.0, tvOS 13.0, *)) {
106106
[[NSNotificationCenter defaultCenter] addObserver:self
107107
selector:@selector(scheduleNextSendFromForeground:)
108108
name:UISceneWillEnterForegroundNotification

FirebaseInAppMessaging/Sources/DefaultUI/Banner/FIRIAMBannerViewController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ - (void)viewDidLoad {
161161
// Calculate status bar height.
162162
CGFloat statusBarHeight = 0;
163163
#if defined(__IPHONE_13_0) && __IPHONE_OS_VERSION_MAX_ALLOWED >= 130000
164-
if (@available(iOS 13.0, *)) {
164+
if (@available(iOS 13.0, tvOS 13.0, *)) {
165165
UIStatusBarManager *manager =
166166
[UIApplication sharedApplication].keyWindow.windowScene.statusBarManager;
167167

FirebaseInAppMessaging/Sources/DefaultUI/FIRIAMBaseRenderingViewController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ - (void)viewDidLoad {
5656
name:UIApplicationDidBecomeActiveNotification
5757
object:nil];
5858
#if defined(__IPHONE_13_0) && __IPHONE_OS_VERSION_MAX_ALLOWED >= 130000
59-
if (@available(iOS 13.0, *)) {
59+
if (@available(iOS 13.0, tvOS 13.0, *)) {
6060
[[NSNotificationCenter defaultCenter] addObserver:self
6161
selector:@selector(appWillBecomeInactive:)
6262
name:UISceneWillDeactivateNotification

FirebaseInAppMessaging/Sources/DefaultUI/FIRIAMRenderingWindowHelper.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ + (UIWindow *)UIWindowForModalView {
2828

2929
dispatch_once(&onceToken, ^{
3030
#if defined(__IPHONE_13_0) && __IPHONE_OS_VERSION_MAX_ALLOWED >= 130000
31-
if (@available(iOS 13.0, *)) {
31+
if (@available(iOS 13.0, tvOS 13.0, *)) {
3232
UIWindowForModal = [[self class] iOS13PlusWindow];
3333
} else {
3434
#endif // defined(__IPHONE_13_0) && __IPHONE_OS_VERSION_MAX_ALLOWED >= 130000
@@ -47,7 +47,7 @@ + (UIWindow *)UIWindowForBannerView {
4747

4848
dispatch_once(&onceToken, ^{
4949
#if defined(__IPHONE_13_0) && __IPHONE_OS_VERSION_MAX_ALLOWED >= 130000
50-
if (@available(iOS 13.0, *)) {
50+
if (@available(iOS 13.0, tvOS 13.0, *)) {
5151
UIWindowForBanner = [[self class] iOS13PlusBannerWindow];
5252
} else {
5353
#endif // defined(__IPHONE_13_0) && __IPHONE_OS_VERSION_MAX_ALLOWED >= 130000
@@ -68,7 +68,7 @@ + (UIWindow *)UIWindowForImageOnlyView {
6868

6969
dispatch_once(&onceToken, ^{
7070
#if defined(__IPHONE_13_0) && __IPHONE_OS_VERSION_MAX_ALLOWED >= 130000
71-
if (@available(iOS 13.0, *)) {
71+
if (@available(iOS 13.0, tvOS 13.0, *)) {
7272
UIWindowForImageOnly = [[self class] iOS13PlusWindow];
7373
} else {
7474
#endif // defined(__IPHONE_13_0) && __IPHONE_OS_VERSION_MAX_ALLOWED >= 130000

FirebaseInAppMessaging/Sources/Flows/FIRIAMActivityLogger.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ - (instancetype)initWithMaxCountBeforeReduce:(NSInteger)maxBeforeReduce
110110
name:UIApplicationWillResignActiveNotification
111111
object:nil];
112112
#if defined(__IPHONE_13_0) && __IPHONE_OS_VERSION_MAX_ALLOWED >= 130000
113-
if (@available(iOS 13.0, *)) {
113+
if (@available(iOS 13.0, tvOS 13.0, *)) {
114114
[[NSNotificationCenter defaultCenter] addObserver:self
115115
selector:@selector(appWillBecomeInactive:)
116116
name:UISceneWillDeactivateNotification

FirebaseInAppMessaging/Sources/Flows/FIRIAMDisplayCheckOnAppForegroundFlow.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ - (void)start {
3434
name:UIApplicationWillEnterForegroundNotification
3535
object:nil];
3636
#if defined(__IPHONE_13_0) && __IPHONE_OS_VERSION_MAX_ALLOWED >= 130000
37-
if (@available(iOS 13.0, *)) {
37+
if (@available(iOS 13.0, tvOS 13.0, *)) {
3838
[[NSNotificationCenter defaultCenter]
3939
addObserver:self
4040
selector:@selector(checkAndDisplayNextAppForegroundMessageFromForeground:)

FirebaseInAppMessaging/Sources/Flows/FIRIAMDisplayExecutor.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ - (void)displayMessageLoadError:(NSError *)error {
338338

339339
dispatch_async(dispatch_get_main_queue(), ^{
340340
#if defined(__IPHONE_13_0) && __IPHONE_OS_VERSION_MAX_ALLOWED >= 130000
341-
if (@available(iOS 13.0, *)) {
341+
if (@available(iOS 13.0, tvOS 13.0, *)) {
342342
UIWindowScene *foregroundedScene = nil;
343343
for (UIWindowScene *connectedScene in [UIApplication sharedApplication].connectedScenes) {
344344
if (connectedScene.activationState == UISceneActivationStateForegroundActive) {

FirebaseInAppMessaging/Sources/Flows/FIRIAMFetchOnAppForegroundFlow.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ - (void)start {
3030
name:UIApplicationWillEnterForegroundNotification
3131
object:nil];
3232
#if defined(__IPHONE_13_0) && __IPHONE_OS_VERSION_MAX_ALLOWED >= 130000
33-
if (@available(iOS 13.0, *)) {
33+
if (@available(iOS 13.0, tvOS 13.0, *)) {
3434
[[NSNotificationCenter defaultCenter] addObserver:self
3535
selector:@selector(appWillEnterForeground:)
3636
name:UISceneWillEnterForegroundNotification

0 commit comments

Comments
 (0)