diff --git a/.metadata b/.metadata
index 4129ce95..b05acbb3 100644
--- a/.metadata
+++ b/.metadata
@@ -1,10 +1,36 @@
# This file tracks properties of this Flutter project.
# Used by Flutter tool to assess capabilities and perform upgrades etc.
#
-# This file should be version controlled and should not be manually edited.
+# This file should be version controlled.
version:
- revision: 84f3d28555368a70270e9ac8390a9441df95e752
+ revision: 2ad6cd72c040113b47ee9055e722606a490ef0da
channel: stable
project_type: plugin
+
+# Tracks metadata for the flutter migrate command
+migration:
+ platforms:
+ - platform: root
+ create_revision: 2ad6cd72c040113b47ee9055e722606a490ef0da
+ base_revision: 2ad6cd72c040113b47ee9055e722606a490ef0da
+ - platform: android
+ create_revision: 2ad6cd72c040113b47ee9055e722606a490ef0da
+ base_revision: 2ad6cd72c040113b47ee9055e722606a490ef0da
+ - platform: ios
+ create_revision: 2ad6cd72c040113b47ee9055e722606a490ef0da
+ base_revision: 2ad6cd72c040113b47ee9055e722606a490ef0da
+ - platform: web
+ create_revision: 2ad6cd72c040113b47ee9055e722606a490ef0da
+ base_revision: 2ad6cd72c040113b47ee9055e722606a490ef0da
+
+ # User provided section
+
+ # List of Local paths (relative to this file) that should be
+ # ignored by the migrate tool.
+ #
+ # Files that are not part of the templates will be ignored by default.
+ unmanaged_files:
+ - 'lib/main.dart'
+ - 'ios/Runner.xcodeproj/project.pbxproj'
diff --git a/analysis_options.yaml b/analysis_options.yaml
index 252a174a..1093cbfd 100644
--- a/analysis_options.yaml
+++ b/analysis_options.yaml
@@ -11,6 +11,10 @@ analyzer:
strict-inference: true
strict-raw-types: true
+ # TODO: remove this once it is no longer an experiment
+ enable-experiment:
+ - inline-class
+
linter:
rules:
always_declare_return_types: true
diff --git a/example/android/app/src/main/res/drawable-v21/launch_background.xml b/example/android/app/src/main/res/drawable-v21/launch_background.xml
new file mode 100644
index 00000000..f74085f3
--- /dev/null
+++ b/example/android/app/src/main/res/drawable-v21/launch_background.xml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
diff --git a/example/android/app/src/main/res/values-night/styles.xml b/example/android/app/src/main/res/values-night/styles.xml
new file mode 100644
index 00000000..06952be7
--- /dev/null
+++ b/example/android/app/src/main/res/values-night/styles.xml
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+
diff --git a/example/lib/main.dart b/example/lib/main.dart
index e9ffcb71..56aab2bd 100644
--- a/example/lib/main.dart
+++ b/example/lib/main.dart
@@ -17,8 +17,7 @@ void main() async {
// Demonstrate explicit initialization before calling `runApp()`,
// using the configuration for the example app.
- const String exampleAppApiKey =
- 'YOUR-API-KEY-HERE';
+ const String exampleAppApiKey = 'YOUR-API-KEY-HERE';
const String exampleAppApiDomain = 'us1.gigya.com';
try {
diff --git a/example/lib/routes/account_information_page.dart b/example/lib/routes/account_information_page.dart
index df9462a8..f200f9f4 100644
--- a/example/lib/routes/account_information_page.dart
+++ b/example/lib/routes/account_information_page.dart
@@ -238,9 +238,9 @@ class _AccountInformationPageState extends State {
case ConnectionState.active:
case ConnectionState.none:
case ConnectionState.waiting:
- return Column(
+ return const Column(
mainAxisAlignment: MainAxisAlignment.center,
- children: const [
+ children: [
CircularProgressIndicator(),
Text('Fetching account...'),
],
diff --git a/example/lib/routes/home_page.dart b/example/lib/routes/home_page.dart
index c0e2acb3..381db7af 100644
--- a/example/lib/routes/home_page.dart
+++ b/example/lib/routes/home_page.dart
@@ -192,9 +192,9 @@ class _HomePageState extends State {
case ConnectionState.none:
case ConnectionState.active:
case ConnectionState.waiting:
- return Column(
+ return const Column(
mainAxisAlignment: MainAxisAlignment.center,
- children: const [
+ children: [
CircularProgressIndicator(),
Padding(
padding: EdgeInsets.all(8),
diff --git a/example/lib/routes/login_with_credentials_page.dart b/example/lib/routes/login_with_credentials_page.dart
index c7827dca..d88c327f 100644
--- a/example/lib/routes/login_with_credentials_page.dart
+++ b/example/lib/routes/login_with_credentials_page.dart
@@ -66,7 +66,7 @@ class _LoginWithCredentialsPageState extends State {
if (mounted) {
setState(() {
_inProgress = false;
- _requestResult = 'Login success: \n\n ${account.uid}';
+ _requestResult = 'Login success: \n\n ${account.toJson()}';
});
}
}
@@ -112,15 +112,15 @@ class _LoginWithCredentialsPageState extends State {
}
void _resolveLinkAccount(LinkAccountResolver resolver) async {
- final ConflictingAccounts? conflictingAccounts =
- await resolver.conflictingAccounts;
+ final ConflictingAccount? conflictingAccount =
+ await resolver.conflictingAccount;
- if (!mounted || conflictingAccounts == null) {
+ if (!mounted || conflictingAccount == null) {
return;
}
- if (conflictingAccounts.loginProviders.contains('site')) {
- _showLinkToSiteBottomSheet(conflictingAccounts.loginID, resolver);
+ if (conflictingAccount.loginProviders.contains('site')) {
+ _showLinkToSiteBottomSheet(conflictingAccount.loginID, resolver);
} else {
_showLinkToSocialBottomSheet(resolver);
}
@@ -234,6 +234,7 @@ class _LoginWithCredentialsPageState extends State {
),
TextField(
controller: _linkPasswordController,
+ obscureText: true,
decoration: const InputDecoration(hintText: 'password'),
),
Padding(
@@ -351,6 +352,7 @@ class _LoginWithCredentialsPageState extends State {
padding: const EdgeInsets.all(8.0),
child: TextFormField(
controller: _passwordController,
+ obscureText: true,
decoration: const InputDecoration(hintText: 'Enter password'),
validator: (String? value) {
if (value == null || value.trim().isEmpty) {
diff --git a/example/lib/routes/manage_connections_page.dart b/example/lib/routes/manage_connections_page.dart
index 581e913f..74bf268e 100644
--- a/example/lib/routes/manage_connections_page.dart
+++ b/example/lib/routes/manage_connections_page.dart
@@ -79,9 +79,9 @@ class _ManageConnectionsPageState extends State {
case ConnectionState.none:
case ConnectionState.active:
case ConnectionState.waiting:
- return Column(
+ return const Column(
mainAxisAlignment: MainAxisAlignment.center,
- children: const [
+ children: [
CircularProgressIndicator(),
Text('Fetching account...'),
],
@@ -109,19 +109,23 @@ class _ManageConnectionsPageState extends State {
}
final Account account = snapshot.data!;
- final String socialProviders = account.socialProviders ?? '';
return Column(
children: [
const Text('Social connections for this account'),
Expanded(
- child: socialProviders.isEmpty
+ child: account.socialProviders.isEmpty
? const Center(
child: Text(
'No social connections for this account',
),
)
- : Text(socialProviders),
+ : ListView.builder(
+ itemBuilder: (_, int index) => Text(
+ account.socialProviders[index],
+ ),
+ itemCount: account.socialProviders.length,
+ ),
),
Padding(
padding: const EdgeInsets.symmetric(vertical: 16),
diff --git a/example/pubspec.lock b/example/pubspec.lock
index 1e32caed..768b558e 100644
--- a/example/pubspec.lock
+++ b/example/pubspec.lock
@@ -1,6 +1,30 @@
# Generated by pub
# See https://dart.dev/tools/pub/glossary#lockfile
packages:
+ _fe_analyzer_shared:
+ dependency: transitive
+ description:
+ name: _fe_analyzer_shared
+ sha256: ae92f5d747aee634b87f89d9946000c2de774be1d6ac3e58268224348cd0101a
+ url: "https://pub.dev"
+ source: hosted
+ version: "61.0.0"
+ analyzer:
+ dependency: transitive
+ description:
+ name: analyzer
+ sha256: ea3d8652bda62982addfd92fdc2d0214e5f82e43325104990d4f4c4a2a313562
+ url: "https://pub.dev"
+ source: hosted
+ version: "5.13.0"
+ args:
+ dependency: transitive
+ description:
+ name: args
+ sha256: eef6c46b622e0494a36c5a12d10d77fb4e855501a91c1b9ef9339326e58f0596
+ url: "https://pub.dev"
+ source: hosted
+ version: "2.4.2"
async:
dependency: transitive
description:
@@ -37,10 +61,26 @@ packages:
dependency: transitive
description:
name: collection
- sha256: "4a07be6cb69c84d677a6c3096fcf960cc3285a8330b4603e0d463d15d9bd934c"
+ sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a
+ url: "https://pub.dev"
+ source: hosted
+ version: "1.18.0"
+ convert:
+ dependency: transitive
+ description:
+ name: convert
+ sha256: "0f08b14755d163f6e2134cb58222dd25ea2a2ee8a195e53983d57c075324d592"
+ url: "https://pub.dev"
+ source: hosted
+ version: "3.1.1"
+ crypto:
+ dependency: transitive
+ description:
+ name: crypto
+ sha256: ff625774173754681d66daaf4a448684fb04b78f902da9cb3d308c19cc5e8bab
url: "https://pub.dev"
source: hosted
- version: "1.17.1"
+ version: "3.0.3"
fake_async:
dependency: transitive
description:
@@ -49,6 +89,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "1.3.1"
+ file:
+ dependency: transitive
+ description:
+ name: file
+ sha256: "5fc22d7c25582e38ad9a8515372cd9a93834027aacf1801cf01164dac0ffa08c"
+ url: "https://pub.dev"
+ source: hosted
+ version: "7.0.0"
flutter:
dependency: "direct main"
description: flutter
@@ -82,10 +130,10 @@ packages:
dependency: "direct dev"
description:
name: flutter_lints
- sha256: aeb0b80a8b3709709c9cc496cdc027c5b3216796bc0af0ce1007eaf24464fd4c
+ sha256: a25a15ebbdfc33ab1cd26c63a6ee519df92338a9c10f122adda92938253bef04
url: "https://pub.dev"
source: hosted
- version: "2.0.1"
+ version: "2.0.3"
flutter_test:
dependency: "direct dev"
description: flutter
@@ -102,7 +150,15 @@ packages:
path: ".."
relative: true
source: path
- version: "1.0.0"
+ version: "1.0.1"
+ glob:
+ dependency: transitive
+ description:
+ name: glob
+ sha256: "0e7014b3b7d4dac1ca4d6114f82bf1782ee86745b9b42a92c9289c23d8a0ab63"
+ url: "https://pub.dev"
+ source: hosted
+ version: "2.1.2"
google_sign_in:
dependency: "direct main"
description:
@@ -115,26 +171,26 @@ packages:
dependency: transitive
description:
name: google_sign_in_android
- sha256: "2a8b90b766ce00b03e7543f4ffeec97b6eb51fb6c3f31ce2a364bd1f1b9dd7fc"
+ sha256: "6031f59074a337fdd81be821aba84cee3a41338c6e958499a5cd34d3e1db80ef"
url: "https://pub.dev"
source: hosted
- version: "6.1.14"
+ version: "6.1.20"
google_sign_in_ios:
dependency: transitive
description:
name: google_sign_in_ios
- sha256: "6ec0e13a4c5c646471b9f6a25ceb3ae76d339889d4c0f79b729bf0714215a63e"
+ sha256: "974944859f9cd40eb8a15b3fe8efb2d47fb7e99438f763f61a1ccd28d74ff4ce"
url: "https://pub.dev"
source: hosted
- version: "5.6.2"
+ version: "5.6.4"
google_sign_in_platform_interface:
dependency: transitive
description:
name: google_sign_in_platform_interface
- sha256: e69553c0fc6a76216e9d06a8c3767e291ad9be42171f879aab7ab708569d4393
+ sha256: "35ceee5f0eadc1c07b0b4af7553246e315c901facbb7d3dadf734ba2693ceec4"
url: "https://pub.dev"
source: hosted
- version: "2.4.1"
+ version: "2.4.2"
google_sign_in_web:
dependency: transitive
description:
@@ -155,34 +211,42 @@ packages:
dependency: transitive
description:
name: lints
- sha256: "6b0206b0bf4f04961fc5438198ccb3a885685cd67d4d4a32cc20ad7f8adbe015"
+ sha256: "0a217c6c989d21039f1498c3ed9f3ed71b354e69873f13a8dfc3c9fe76f1b452"
url: "https://pub.dev"
source: hosted
- version: "2.1.0"
+ version: "2.1.1"
matcher:
dependency: transitive
description:
name: matcher
- sha256: "6501fbd55da300384b768785b83e5ce66991266cec21af89ab9ae7f5ce1c4cbb"
+ sha256: "1803e76e6653768d64ed8ff2e1e67bea3ad4b923eb5c56a295c3e634bad5960e"
url: "https://pub.dev"
source: hosted
- version: "0.12.15"
+ version: "0.12.16"
material_color_utilities:
dependency: transitive
description:
name: material_color_utilities
- sha256: d92141dc6fe1dad30722f9aa826c7fbc896d021d792f80678280601aff8cf724
+ sha256: "9528f2f296073ff54cb9fee677df673ace1218163c3bc7628093e7eed5203d41"
url: "https://pub.dev"
source: hosted
- version: "0.2.0"
+ version: "0.5.0"
meta:
dependency: transitive
description:
name: meta
- sha256: "3c74dbf8763d36539f114c799d8a2d87343b5067e9d796ca22b5eb8437090ee3"
+ sha256: a6e590c838b18133bb482a2745ad77c5bb7715fb0451209e1a7567d416678b8e
url: "https://pub.dev"
source: hosted
- version: "1.9.1"
+ version: "1.10.0"
+ package_config:
+ dependency: transitive
+ description:
+ name: package_config
+ sha256: "1c5b77ccc91e4823a5af61ee74e6b972db1ef98c2ff5a18d3161c982a55448bd"
+ url: "https://pub.dev"
+ source: hosted
+ version: "2.1.0"
path:
dependency: transitive
description:
@@ -191,11 +255,27 @@ packages:
url: "https://pub.dev"
source: hosted
version: "1.8.3"
+ pigeon:
+ dependency: transitive
+ description:
+ name: pigeon
+ sha256: "5a79fd0b10423f6b5705525e32015597f861c31220b522a67d1e6b580da96719"
+ url: "https://pub.dev"
+ source: hosted
+ version: "11.0.1"
plugin_platform_interface:
dependency: transitive
description:
name: plugin_platform_interface
- sha256: "6a2128648c854906c53fa8e33986fc0247a1116122f9534dd20e3ab9e16a32bc"
+ sha256: da3fdfeccc4d4ff2da8f8c556704c08f912542c5fb3cf2233ed75372384a034d
+ url: "https://pub.dev"
+ source: hosted
+ version: "2.1.6"
+ pub_semver:
+ dependency: transitive
+ description:
+ name: pub_semver
+ sha256: "40d3ab1bbd474c4c2328c91e3a7df8c6dd629b79ece4c4bd04bee496a224fb0c"
url: "https://pub.dev"
source: hosted
version: "2.1.4"
@@ -216,26 +296,26 @@ packages:
dependency: transitive
description:
name: source_span
- sha256: dd904f795d4b4f3b870833847c461801f6750a9fa8e61ea5ac53f9422b31f250
+ sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c"
url: "https://pub.dev"
source: hosted
- version: "1.9.1"
+ version: "1.10.0"
stack_trace:
dependency: transitive
description:
name: stack_trace
- sha256: c3c7d8edb15bee7f0f74debd4b9c5f3c2ea86766fe4178eb2a18eb30a0bdaed5
+ sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b"
url: "https://pub.dev"
source: hosted
- version: "1.11.0"
+ version: "1.11.1"
stream_channel:
dependency: transitive
description:
name: stream_channel
- sha256: "83615bee9045c1d322bbbd1ba209b7a749c2cbcdcb3fdd1df8eb488b3279c1c8"
+ sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7
url: "https://pub.dev"
source: hosted
- version: "2.1.1"
+ version: "2.1.2"
string_scanner:
dependency: transitive
description:
@@ -256,10 +336,18 @@ packages:
dependency: transitive
description:
name: test_api
- sha256: eb6ac1540b26de412b3403a163d919ba86f6a973fe6cc50ae3541b80092fdcfb
+ sha256: "5c2f730018264d276c20e4f1503fd1308dfbbae39ec8ee63c5236311ac06954b"
+ url: "https://pub.dev"
+ source: hosted
+ version: "0.6.1"
+ typed_data:
+ dependency: transitive
+ description:
+ name: typed_data
+ sha256: facc8d6582f16042dd49f2463ff1bd6e2c9ef9f3d5da3d9b087e244a7b564b3c
url: "https://pub.dev"
source: hosted
- version: "0.5.1"
+ version: "1.3.2"
vector_math:
dependency: transitive
description:
@@ -268,6 +356,30 @@ packages:
url: "https://pub.dev"
source: hosted
version: "2.1.4"
+ watcher:
+ dependency: transitive
+ description:
+ name: watcher
+ sha256: "3d2ad6751b3c16cf07c7fca317a1413b3f26530319181b37e3b9039b84fc01d8"
+ url: "https://pub.dev"
+ source: hosted
+ version: "1.1.0"
+ web:
+ dependency: transitive
+ description:
+ name: web
+ sha256: "14f1f70c51119012600c5f1f60ca68efda5a9b6077748163c6af2893ec5df8fc"
+ url: "https://pub.dev"
+ source: hosted
+ version: "0.2.1-beta"
+ yaml:
+ dependency: transitive
+ description:
+ name: yaml
+ sha256: "75769501ea3489fca56601ff33454fe45507ea3bfb014161abc3b43ae25989d5"
+ url: "https://pub.dev"
+ source: hosted
+ version: "3.1.2"
sdks:
- dart: ">=3.0.0-417 <4.0.0"
- flutter: ">=3.3.0"
+ dart: ">=3.2.0-157.0.dev <4.0.0"
+ flutter: ">=3.10.0"
diff --git a/example/pubspec.yaml b/example/pubspec.yaml
index 9f4dd951..51cc89b2 100644
--- a/example/pubspec.yaml
+++ b/example/pubspec.yaml
@@ -5,7 +5,8 @@ homepage: https://www.sap.com
publish_to: none
environment:
- sdk: ">=2.18.0 <4.0.0"
+ sdk: ">=3.0.0 <4.0.0"
+ flutter: ">=3.10.0"
dependencies:
flutter:
diff --git a/example/web/favicon.png b/example/web/favicon.png
new file mode 100644
index 00000000..8aaa46ac
Binary files /dev/null and b/example/web/favicon.png differ
diff --git a/example/web/icons/Icon-192.png b/example/web/icons/Icon-192.png
new file mode 100644
index 00000000..b749bfef
Binary files /dev/null and b/example/web/icons/Icon-192.png differ
diff --git a/example/web/icons/Icon-512.png b/example/web/icons/Icon-512.png
new file mode 100644
index 00000000..88cfd48d
Binary files /dev/null and b/example/web/icons/Icon-512.png differ
diff --git a/example/web/icons/Icon-maskable-192.png b/example/web/icons/Icon-maskable-192.png
new file mode 100644
index 00000000..eb9b4d76
Binary files /dev/null and b/example/web/icons/Icon-maskable-192.png differ
diff --git a/example/web/icons/Icon-maskable-512.png b/example/web/icons/Icon-maskable-512.png
new file mode 100644
index 00000000..d69c5669
Binary files /dev/null and b/example/web/icons/Icon-maskable-512.png differ
diff --git a/example/web/index.html b/example/web/index.html
new file mode 100644
index 00000000..8ccf713b
--- /dev/null
+++ b/example/web/index.html
@@ -0,0 +1,59 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ gigya_flutter_plugin_example
+
+
+
+
+
+
+
+
+
+
diff --git a/example/web/manifest.json b/example/web/manifest.json
new file mode 100644
index 00000000..7db4a594
--- /dev/null
+++ b/example/web/manifest.json
@@ -0,0 +1,35 @@
+{
+ "name": "gigya_flutter_plugin_example",
+ "short_name": "gigya_flutter_plugin_example",
+ "start_url": ".",
+ "display": "standalone",
+ "background_color": "#0175C2",
+ "theme_color": "#0175C2",
+ "description": "Demonstrates how to use the gigya_flutter_plugin plugin.",
+ "orientation": "portrait-primary",
+ "prefer_related_applications": false,
+ "icons": [
+ {
+ "src": "icons/Icon-192.png",
+ "sizes": "192x192",
+ "type": "image/png"
+ },
+ {
+ "src": "icons/Icon-512.png",
+ "sizes": "512x512",
+ "type": "image/png"
+ },
+ {
+ "src": "icons/Icon-maskable-192.png",
+ "sizes": "192x192",
+ "type": "image/png",
+ "purpose": "maskable"
+ },
+ {
+ "src": "icons/Icon-maskable-512.png",
+ "sizes": "512x512",
+ "type": "image/png",
+ "purpose": "maskable"
+ }
+ ]
+}
diff --git a/lib/gigya_flutter_plugin.dart b/lib/gigya_flutter_plugin.dart
index 074f9205..1dfc6dc1 100644
--- a/lib/gigya_flutter_plugin.dart
+++ b/lib/gigya_flutter_plugin.dart
@@ -1,14 +1,14 @@
import 'src/models/enums/social_provider.dart';
import 'src/models/screenset_event.dart';
import 'src/platform_interface/gigya_flutter_plugin_platform_interface.dart';
-import 'src/services/interruption_resolver/interruption_resolver.dart';
-import 'src/services/otp_service/otp_service.dart';
-import 'src/services/web_authentication_service/web_authentication_service.dart';
+import 'src/services/interruption_resolver.dart';
+import 'src/services/otp_service.dart';
+import 'src/services/web_authentication_service.dart';
export 'src/models/account.dart';
export 'src/models/address.dart';
export 'src/models/certification.dart';
-export 'src/models/conflicting_accounts.dart';
+export 'src/models/conflicting_account.dart';
export 'src/models/education.dart';
export 'src/models/emails.dart';
export 'src/models/enums/screen_set_event_type.dart';
@@ -26,9 +26,9 @@ export 'src/models/screenset_event.dart';
export 'src/models/session_info.dart';
export 'src/models/skill.dart';
export 'src/models/work.dart';
-export 'src/services/interruption_resolver/interruption_resolver.dart';
-export 'src/services/otp_service/otp_service.dart';
-export 'src/services/web_authentication_service/web_authentication_service.dart';
+export 'src/services/interruption_resolver.dart';
+export 'src/services/otp_service.dart';
+export 'src/services/web_authentication_service.dart';
/// This class represents the Gigya SDK plugin.
class GigyaSdk {
diff --git a/lib/src/platform_interface/gigya_flutter_plugin_method_channel.dart b/lib/src/method_channel/gigya_flutter_plugin_method_channel.dart
similarity index 89%
rename from lib/src/platform_interface/gigya_flutter_plugin_method_channel.dart
rename to lib/src/method_channel/gigya_flutter_plugin_method_channel.dart
index 278f481b..280489ea 100644
--- a/lib/src/platform_interface/gigya_flutter_plugin_method_channel.dart
+++ b/lib/src/method_channel/gigya_flutter_plugin_method_channel.dart
@@ -7,13 +7,13 @@ import '../models/enums/methods.dart';
import '../models/enums/social_provider.dart';
import '../models/gigya_error.dart';
import '../models/screenset_event.dart';
-import '../services/interruption_resolver/interruption_resolver.dart';
-import '../services/interruption_resolver/method_channel_interruption_resolver.dart';
-import '../services/otp_service/method_channel_otp_service.dart';
-import '../services/otp_service/otp_service.dart';
-import '../services/web_authentication_service/method_channel_web_authentication_service.dart';
-import '../services/web_authentication_service/web_authentication_service.dart';
-import 'gigya_flutter_plugin_platform_interface.dart';
+import '../platform_interface/gigya_flutter_plugin_platform_interface.dart';
+import '../services/interruption_resolver.dart';
+import '../services/otp_service.dart';
+import '../services/web_authentication_service.dart';
+import 'method_channel_interruption_resolver.dart';
+import 'method_channel_otp_service.dart';
+import 'method_channel_web_authentication_service.dart';
/// An implementation of [GigyaFlutterPluginPlatform] that uses method channels.
class MethodChannelGigyaFlutterPlugin extends GigyaFlutterPluginPlatform {
@@ -122,7 +122,7 @@ class MethodChannelGigyaFlutterPlugin extends GigyaFlutterPluginPlatform {
Future initSdk({
required String apiDomain,
required String apiKey,
- bool forceLogout = true,
+ bool forceLogout = false,
}) async {
// First, initialize the Gigya SDK.
try {
@@ -350,26 +350,12 @@ class MethodChannelGigyaFlutterPlugin extends GigyaFlutterPluginPlatform {
throw GigyaError.fromPlatformException(exception);
}
- yield* screenSetEvents.receiveBroadcastStream().map((dynamic event) {
- // The binary messenger sends things back as `dynamic`.
- // If the event is a `Map`,
- // it does not have type information and comes back as `Map