File tree Expand file tree Collapse file tree 4 files changed +17
-7
lines changed
Expand file tree Collapse file tree 4 files changed +17
-7
lines changed Original file line number Diff line number Diff line change @@ -21,10 +21,15 @@ Platform alignments
2121# 0.0.4
2222Core SDKS updates
2323
24- * Updated Swift SDK 1.2.0
25- * Updated Android SDK 5.1.0
24+ * Updated Swift SDK 1.2.0.
25+ * Updated Android SDK 5.1.0.
2626
2727# 0.0.5
2828Core SDKS update
2929
30- * Updated Android SDK 5.1.1 (security)
30+ * Updated Android SDK 5.1.1 (security).
31+
32+ # 0.0.6
33+ Account Model Patch
34+
35+ * Fix to main account model (sessionInfo type).
Original file line number Diff line number Diff line change @@ -66,4 +66,7 @@ struct UserHost: GigyaAccountProtocol {
6666 }
6767 return " "
6868 }
69+
70+ var sessionInfo : [ String : AnyCodable ] ?
6971}
72+
Original file line number Diff line number Diff line change 1- import 'dart:convert ' ;
1+ import 'dart:io ' ;
22
33/// Available interruptions.
44enum Interruption {
@@ -149,12 +149,12 @@ class Account extends GigyaResponse {
149149class SessionInfo {
150150 String sessionToken;
151151 String sessionSecret;
152- double expirationTime ;
152+ dynamic expiresIn ;
153153
154154 SessionInfo .fromJson (Map <String , dynamic > json) {
155155 sessionToken = json['sessionToken' ];
156156 sessionSecret = json['sessionSecret' ];
157- expirationTime = json['expires_in' ];
157+ expiresIn = json['expires_in' ];
158158 }
159159
160160 Map <String , dynamic > toJson () {
@@ -164,6 +164,8 @@ class SessionInfo {
164164 data['expires_in' ] = this .expirationTime;
165165 return data;
166166 }
167+
168+ double get expirationTime => Platform .isIOS ? double .parse (expiresIn) : expiresIn;
167169}
168170
169171/// Account profile schema object.
Original file line number Diff line number Diff line change 11name : gigya_flutter_plugin
22description : SAP Gigya Flutter plugin
3- version : 0.0.5
3+ version : 0.0.6
44homepage : https://github.com/SAP/gigya-flutter-plugin
55
66environment :
You can’t perform that action at this time.
0 commit comments