Skip to content

Commit 6b6c640

Browse files
enedkroikie
authored andcommitted
[firebase_auth] use long datatype for timestamps (iOS) (#1973)
* [firebase_auth] use long datatype for timestamps (iOS)
1 parent 5d2c2ca commit 6b6c640

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

packages/firebase_auth/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.14.0+2
2+
3+
* Reduce compiler warnings on iOS port by replacing `int` with `long` backing in returned timestamps.
4+
15
## 0.14.0+1
26

37
* Add dependency on `androidx.annotation:annotation:1.0.0`.

packages/firebase_auth/ios/Classes/FirebaseAuthPlugin.m

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -217,9 +217,10 @@ - (void)handleMethodCall:(FlutterMethodCall *)call result:(FlutterResult)result
217217
tokenData = [[NSMutableDictionary alloc] initWithDictionary:@{
218218
@"token" : tokenResult.token,
219219
@"expirationTimestamp" :
220-
[NSNumber numberWithInt:expirationTimestamp],
221-
@"authTimestamp" : [NSNumber numberWithInt:authTimestamp],
222-
@"issuedAtTimestamp" : [NSNumber numberWithInt:issuedAtTimestamp],
220+
[NSNumber numberWithLong:expirationTimestamp],
221+
@"authTimestamp" : [NSNumber numberWithLong:authTimestamp],
222+
@"issuedAtTimestamp" :
223+
[NSNumber numberWithLong:issuedAtTimestamp],
223224
@"claims" : tokenResult.claims,
224225
}];
225226

packages/firebase_auth/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Flutter plugin for Firebase Auth, enabling Android and iOS
44
like Google, Facebook and Twitter.
55
author: Flutter Team <[email protected]>
66
homepage: https://github.com/flutter/plugins/tree/master/packages/firebase_auth
7-
version: 0.14.0+1
7+
version: 0.14.0+2
88

99
flutter:
1010
plugin:

0 commit comments

Comments
 (0)