diff --git a/auth/lib/services/billing_service.dart b/auth/lib/services/billing_service.dart index 926a11e4d..363425cd5 100644 --- a/auth/lib/services/billing_service.dart +++ b/auth/lib/services/billing_service.dart @@ -28,8 +28,6 @@ class BillingService { final _dio = Network.instance.getDio(); final _config = Configuration.instance; - bool _isOnSubscriptionPage = false; - Subscription? _cachedSubscription; Future? _future; @@ -176,8 +174,4 @@ class BillingService { rethrow; } } - - void setIsOnSubscriptionPage(bool isOnSubscriptionPage) { - _isOnSubscriptionPage = isOnSubscriptionPage; - } } diff --git a/auth/lib/store/user_store.dart b/auth/lib/store/user_store.dart index 30409671b..20f3ead72 100644 --- a/auth/lib/store/user_store.dart +++ b/auth/lib/store/user_store.dart @@ -3,6 +3,7 @@ import 'package:shared_preferences/shared_preferences.dart'; class UserStore { UserStore._privateConstructor(); + // ignore: unused_field late SharedPreferences _preferences; static final UserStore instance = UserStore._privateConstructor(); diff --git a/auth/lib/ui/account/recovery_page.dart b/auth/lib/ui/account/recovery_page.dart index 762bb1a6c..1d55fbb53 100644 --- a/auth/lib/ui/account/recovery_page.dart +++ b/auth/lib/ui/account/recovery_page.dart @@ -1,3 +1,5 @@ +import 'dart:ui'; + import 'package:ente_auth/core/configuration.dart'; import 'package:ente_auth/l10n/l10n.dart'; import 'package:ente_auth/ui/account/password_entry_page.dart'; diff --git a/auth/lib/ui/account/verify_recovery_page.dart b/auth/lib/ui/account/verify_recovery_page.dart index e4b3fbdb2..146f3ea92 100644 --- a/auth/lib/ui/account/verify_recovery_page.dart +++ b/auth/lib/ui/account/verify_recovery_page.dart @@ -1,3 +1,5 @@ +import 'dart:ui'; + import 'package:bip39/bip39.dart' as bip39; import 'package:dio/dio.dart'; import 'package:ente_auth/core/configuration.dart'; diff --git a/auth/lib/ui/passkey_page.dart b/auth/lib/ui/passkey_page.dart index 6efc23474..5b4cbf18d 100644 --- a/auth/lib/ui/passkey_page.dart +++ b/auth/lib/ui/passkey_page.dart @@ -1,12 +1,12 @@ import 'dart:convert'; +import 'package:app_links/app_links.dart'; import 'package:ente_auth/core/configuration.dart'; import 'package:ente_auth/ente_theme_data.dart'; import 'package:ente_auth/l10n/l10n.dart'; import 'package:ente_auth/services/user_service.dart'; import 'package:flutter/material.dart'; import 'package:logging/logging.dart'; -import 'package:uni_links/uni_links.dart'; import 'package:url_launcher/url_launcher_string.dart'; class PasskeyPage extends StatefulWidget { @@ -14,8 +14,8 @@ class PasskeyPage extends StatefulWidget { const PasskeyPage( this.sessionID, { - Key? key, - }) : super(key: key); + super.key, + }); @override State createState() => _PasskeyPageState(); @@ -61,8 +61,9 @@ class _PasskeyPageState extends State { } Future _initDeepLinks() async { + final appLinks = AppLinks(); // Attach a listener to the stream - linkStream.listen( + appLinks.stringLinkStream.listen( _handleDeeplink, onError: (err) { _logger.severe(err); diff --git a/auth/lib/ui/settings/data/import/plain_text_import.dart b/auth/lib/ui/settings/data/import/plain_text_import.dart index 9681f3c1a..d76effd8c 100644 --- a/auth/lib/ui/settings/data/import/plain_text_import.dart +++ b/auth/lib/ui/settings/data/import/plain_text_import.dart @@ -1,5 +1,6 @@ import 'dart:async'; import 'dart:io'; +import 'dart:ui'; import 'package:ente_auth/ente_theme_data.dart'; import 'package:ente_auth/l10n/l10n.dart'; diff --git a/auth/lib/ui/tools/debug/log_file_viewer.dart b/auth/lib/ui/tools/debug/log_file_viewer.dart index bcee33bc2..2a85969ed 100644 --- a/auth/lib/ui/tools/debug/log_file_viewer.dart +++ b/auth/lib/ui/tools/debug/log_file_viewer.dart @@ -1,4 +1,5 @@ import 'dart:io'; +import 'dart:ui'; import 'package:ente_auth/ui/common/loading_widget.dart'; import 'package:ente_auth/utils/platform_util.dart'; diff --git a/auth/lib/ui/two_factor_recovery_page.dart b/auth/lib/ui/two_factor_recovery_page.dart index 12ace414f..c8a8b1aa6 100644 --- a/auth/lib/ui/two_factor_recovery_page.dart +++ b/auth/lib/ui/two_factor_recovery_page.dart @@ -1,3 +1,5 @@ +import 'dart:ui'; + import 'package:ente_auth/l10n/l10n.dart'; import 'package:ente_auth/services/user_service.dart'; import 'package:ente_auth/utils/dialog_util.dart';