From f99554bc134b7fe7fe0b3f5bf7555728868176c9 Mon Sep 17 00:00:00 2001 From: abedelaziz-deriv <135210555+abedelaziz-deriv@users.noreply.github.com> Date: Tue, 2 Jul 2024 15:50:32 +0800 Subject: [PATCH] refactor(deriv_auth): Replace uni_links2 with app_links (#664) --- .../social_auth/services/social_web_view_service.dart | 4 ++-- packages/deriv_auth/pubspec.yaml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/deriv_auth/lib/features/social_auth/services/social_web_view_service.dart b/packages/deriv_auth/lib/features/social_auth/services/social_web_view_service.dart index e76cdc0b3..c4353f8af 100644 --- a/packages/deriv_auth/lib/features/social_auth/services/social_web_view_service.dart +++ b/packages/deriv_auth/lib/features/social_auth/services/social_web_view_service.dart @@ -1,9 +1,9 @@ import 'dart:async'; +import 'package:app_links/app_links.dart'; import 'package:deriv_auth/deriv_auth.dart'; import 'package:deriv_web_view/web_view.dart'; import 'package:flutter_deriv_api/helpers/miscellaneous_helper.dart'; -import 'package:uni_links2/uni_links.dart'; /// Service to handle social auth web view. final class SocialAuthWebViewService implements BaseSocialWebViewService { @@ -36,7 +36,7 @@ final class SocialAuthWebViewService implements BaseSocialWebViewService { } void _setupLinkStream(SocialAuthUriHandler uriHandler) { - _uriLinkStream = uriLinkStream.listen( + _uriLinkStream = AppLinks().uriLinkStream.listen( (Uri? uri) { _uriLinkStream?.cancel(); diff --git a/packages/deriv_auth/pubspec.yaml b/packages/deriv_auth/pubspec.yaml index 1f6dfa9a3..d0e221993 100644 --- a/packages/deriv_auth/pubspec.yaml +++ b/packages/deriv_auth/pubspec.yaml @@ -72,7 +72,7 @@ dependencies: package_info_plus: ^4.2.0 crypto: ^3.0.2 http: ^0.13.5 - uni_links2: ^0.6.0+2 + app_links: ^3.4.5 dependency_overrides: deriv_ui: