[firebase_auth] use long datatype for timestamps (iOS) (#1973)
* [firebase_auth] use long datatype for timestamps (iOS)
diff --git a/packages/firebase_auth/CHANGELOG.md b/packages/firebase_auth/CHANGELOG.md
index 1565e4f..d2b0aa1 100644
--- a/packages/firebase_auth/CHANGELOG.md
+++ b/packages/firebase_auth/CHANGELOG.md
@@ -1,3 +1,7 @@
+## 0.14.0+2
+
+* Reduce compiler warnings on iOS port by replacing `int` with `long` backing in returned timestamps.
+
## 0.14.0+1
* Add dependency on `androidx.annotation:annotation:1.0.0`.
diff --git a/packages/firebase_auth/ios/Classes/FirebaseAuthPlugin.m b/packages/firebase_auth/ios/Classes/FirebaseAuthPlugin.m
index 682ffe1..28a3f3e 100644
--- a/packages/firebase_auth/ios/Classes/FirebaseAuthPlugin.m
+++ b/packages/firebase_auth/ios/Classes/FirebaseAuthPlugin.m
@@ -217,9 +217,10 @@
tokenData = [[NSMutableDictionary alloc] initWithDictionary:@{
@"token" : tokenResult.token,
@"expirationTimestamp" :
- [NSNumber numberWithInt:expirationTimestamp],
- @"authTimestamp" : [NSNumber numberWithInt:authTimestamp],
- @"issuedAtTimestamp" : [NSNumber numberWithInt:issuedAtTimestamp],
+ [NSNumber numberWithLong:expirationTimestamp],
+ @"authTimestamp" : [NSNumber numberWithLong:authTimestamp],
+ @"issuedAtTimestamp" :
+ [NSNumber numberWithLong:issuedAtTimestamp],
@"claims" : tokenResult.claims,
}];
diff --git a/packages/firebase_auth/pubspec.yaml b/packages/firebase_auth/pubspec.yaml
index d4cf41b..163957b 100755
--- a/packages/firebase_auth/pubspec.yaml
+++ b/packages/firebase_auth/pubspec.yaml
@@ -4,7 +4,7 @@
like Google, Facebook and Twitter.
author: Flutter Team <flutter-dev@googlegroups.com>
homepage: https://github.com/flutter/plugins/tree/master/packages/firebase_auth
-version: 0.14.0+1
+version: 0.14.0+2
flutter:
plugin: