Skip to content

Commit c7f8d7f

Browse files
author
Kyle Ju
authored
Merge pull request #576 from firebase/release-4.8.0
Release 4.8.0
2 parents ea3369c + 163eeee commit c7f8d7f

12 files changed

+16
-19
lines changed

Example/Podfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ target 'Core_Example_iOS' do
88
# The next line is the forcing function for the Firebase pod. The Firebase
99
# version's subspecs should depend on the component versions in their
1010
# corresponding podspec's.
11-
pod 'Firebase/Core', '4.7.0'
11+
pod 'Firebase/Core', '4.8.0'
1212

1313
target 'Core_Tests_iOS' do
1414
inherit! :search_paths

Firebase/Core/FIROptions.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
NSString *const kFIRLibraryVersionID =
4343
@"4" // Major version (one or more digits)
4444
@"00" // Minor version (exactly 2 digits)
45-
@"12" // Build number (exactly 2 digits)
45+
@"13" // Build number (exactly 2 digits)
4646
@"000"; // Fixed "000"
4747
// Plist file name.
4848
NSString *const kServiceInfoFileName = @"GoogleService-Info";

Firebase/Messaging/FIRMessaging.m

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,7 @@ - (void)handleIncomingLinkIfNeededFromMessage:(NSDictionary *)message {
384384
id<UIApplicationDelegate> appDelegate = application.delegate;
385385
SEL continueUserActivitySelector =
386386
@selector(application:continueUserActivity:restorationHandler:);
387+
SEL openURLWithOptionsSelector = @selector(application:openURL:options:);
387388
SEL openURLWithSourceApplicationSelector =
388389
@selector(application:openURL:sourceApplication:annotation:);
389390
SEL handleOpenURLSelector = @selector(application:handleOpenURL:);
@@ -402,7 +403,7 @@ - (void)handleIncomingLinkIfNeededFromMessage:(NSDictionary *)message {
402403
// Do nothing, as we don't support the app calling this block
403404
}];
404405

405-
} else if (@available(iOS 9.0, *)) {
406+
} else if ([appDelegate respondsToSelector:openURLWithOptionsSelector]) {
406407
[appDelegate application:application openURL:url options:@{}];
407408

408409
// Similarly, |application:openURL:sourceApplication:annotation:| will also always be called, due
@@ -726,7 +727,7 @@ - (void)setAPNSToken:(NSData *)apnsToken error:(NSError *)error {
726727

727728
- (void)receiver:(FIRMessagingReceiver *)receiver
728729
receivedRemoteMessage:(FIRMessagingRemoteMessage *)remoteMessage {
729-
if (@available(iOS 10.0, *)) {
730+
if ([self.delegate respondsToSelector:@selector(messaging:didReceiveMessage:)]) {
730731
[self.delegate messaging:self didReceiveMessage:remoteMessage];
731732
} else if ([self.delegate respondsToSelector:@selector(applicationReceivedRemoteMessage:)]) {
732733
#pragma clang diagnostic push

Firebase/Messaging/FIRMessagingContextManagerService.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ + (void)scheduleLocalNotificationForMessage:(NSDictionary *)message
143143
}
144144
if ([apsDictionary[kFIRMessagingContextManagerTitleKey] length]) {
145145
// |alertTitle| is iOS 8.2+, so check if we can set it
146-
if (@available(iOS 8.2, *)) {
146+
if ([notification respondsToSelector:@selector(setAlertTitle:)]) {
147147
notification.alertTitle = apsDictionary[kFIRMessagingContextManagerTitleKey];
148148
}
149149
}

Firebase/Messaging/FIRMessagingRmq2PersistentStore.m

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -104,13 +104,9 @@
104104

105105
// Utility to create an NSString from a sqlite3 result code
106106
NSString * _Nonnull FIRMessagingStringFromSQLiteResult(int result) {
107-
const char *errorStr;
108-
if (@available(iOS 8.2, *)) {
109-
errorStr = sqlite3_errstr(result);
110-
} else {
111-
errorStr = "pre iOS 8.2";
112-
}
113-
return [NSString stringWithFormat:@"%d%s", result, errorStr];
107+
const char *errorStr = sqlite3_errstr(result);
108+
NSString *errorString = [NSString stringWithFormat:@"%d - %s", result, errorStr];
109+
return errorString;
114110
}
115111

116112
@interface FIRMessagingRmq2PersistentStore () {

FirebaseAuth.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'FirebaseAuth'
3-
s.version = '4.4.0'
3+
s.version = '4.4.1'
44
s.summary = 'The official iOS client for Firebase Authentication'
55

66
s.description = <<-DESC

FirebaseCore.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'FirebaseCore'
3-
s.version = '4.0.12'
3+
s.version = '4.0.13'
44
s.summary = 'Firebase Core for iOS'
55

66
s.description = <<-DESC

FirebaseDatabase.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'FirebaseDatabase'
3-
s.version = '4.1.2'
3+
s.version = '4.1.3'
44
s.summary = 'Firebase Open Source Libraries for iOS.'
55

66
s.description = <<-DESC

FirebaseFirestore.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
Pod::Spec.new do |s|
1010
s.name = 'FirebaseFirestore'
11-
s.version = '0.9.3'
11+
s.version = '0.9.4'
1212
s.summary = 'Google Cloud Firestore for iOS'
1313

1414
s.description = <<-DESC

FirebaseMessaging.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'FirebaseMessaging'
3-
s.version = '2.0.7'
3+
s.version = '2.0.8'
44
s.summary = 'Firebase Messaging for iOS'
55

66
s.description = <<-DESC

0 commit comments

Comments
 (0)