Skip to content

Commit

Permalink
Merge branch 'develop' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
tal-mi committed Apr 20, 2021
2 parents 0c126bf + 4ae43b9 commit 552238e
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 7 deletions.
11 changes: 8 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,15 @@ Platform alignments
# 0.0.4
Core SDKS updates

* Updated Swift SDK 1.2.0
* Updated Android SDK 5.1.0
* Updated Swift SDK 1.2.0.
* Updated Android SDK 5.1.0.

# 0.0.5
Core SDKS update

* Updated Android SDK 5.1.1 (security)
* Updated Android SDK 5.1.1 (security).

# 0.0.6
Account Model Patch

* Fix to main account model (sessionInfo type).
3 changes: 3 additions & 0 deletions example/ios/Runner/UserHost.swift
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,7 @@ struct UserHost: GigyaAccountProtocol {
}
return ""
}

var sessionInfo: [String: AnyCodable]?
}

8 changes: 5 additions & 3 deletions lib/models/gigya_models.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'dart:convert';
import 'dart:io';

/// Available interruptions.
enum Interruption {
Expand Down Expand Up @@ -149,12 +149,12 @@ class Account extends GigyaResponse {
class SessionInfo {
String sessionToken;
String sessionSecret;
double expirationTime;
dynamic expiresIn;

SessionInfo.fromJson(Map<String, dynamic> json) {
sessionToken = json['sessionToken'];
sessionSecret = json['sessionSecret'];
expirationTime = json['expires_in'];
expiresIn = json['expires_in'];
}

Map<String, dynamic> toJson() {
Expand All @@ -164,6 +164,8 @@ class SessionInfo {
data['expires_in'] = this.expirationTime;
return data;
}

double get expirationTime => Platform.isIOS ? double.parse(expiresIn) : expiresIn;
}

/// Account profile schema object.
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: gigya_flutter_plugin
description: SAP Gigya Flutter plugin
version: 0.0.5
version: 0.0.6
homepage: https://github.com/SAP/gigya-flutter-plugin

environment:
Expand Down

0 comments on commit 552238e

Please sign in to comment.