Skip to content

Commit ad592c6

Browse files
tommyzedmehmetf
authored andcommitted
Fixes strict compilation errors. (#1331)
1 parent b522b2b commit ad592c6

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

packages/firebase_messaging/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 5.1.9
2+
3+
* Fix strict compilation errors.
4+
15
## 5.1.8
26

37
* Updated README instructions for contributing for consistency with other Flutterfire plugins.

packages/firebase_messaging/ios/Classes/FirebaseMessagingPlugin.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ @interface FLTFirebaseMessagingPlugin () <FIRMessagingDelegate>
1414

1515
static FlutterError *getFlutterError(NSError *error) {
1616
if (error == nil) return nil;
17-
return [FlutterError errorWithCode:[NSString stringWithFormat:@"Error %ld", error.code]
17+
return [FlutterError errorWithCode:[NSString stringWithFormat:@"Error %ld", (long)error.code]
1818
message:error.domain
1919
details:error.localizedDescription];
2020
}
@@ -175,7 +175,7 @@ - (void)applicationDidBecomeActive:(UIApplication *)application {
175175
application.applicationIconBadgeNumber = 0;
176176
}
177177

178-
- (bool)application:(UIApplication *)application
178+
- (BOOL)application:(UIApplication *)application
179179
didReceiveRemoteNotification:(NSDictionary *)userInfo
180180
fetchCompletionHandler:(void (^)(UIBackgroundFetchResult result))completionHandler {
181181
[self didReceiveRemoteNotification:userInfo];

packages/firebase_messaging/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ description: Flutter plugin for Firebase Cloud Messaging, a cross-platform
33
messaging solution that lets you reliably deliver messages on Android and iOS.
44
author: Flutter Team <[email protected]>
55
homepage: https://github.com/FirebaseExtended/flutterfire/tree/master/packages/firebase_messaging
6-
version: 5.1.8
6+
version: 5.1.9
77

88
flutter:
99
plugin:

0 commit comments

Comments
 (0)