Skip to content

Commit

Permalink
fix: run rebase from main
Browse files Browse the repository at this point in the history
  • Loading branch information
dshukertjr committed Jul 24, 2022
1 parent 21d2270 commit db3fcd9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions lib/src/supabase_auth.dart
@@ -1,9 +1,9 @@
import 'dart:async';
import 'package:app_links/app_links.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:supabase_flutter/supabase_flutter.dart';
import 'package:uni_links/uni_links.dart';

import 'package:url_launcher/url_launcher.dart';

Expand Down Expand Up @@ -44,6 +44,8 @@ class SupabaseAuth with WidgetsBindingObserver {

StreamSubscription<Uri?>? _deeplinkSubscription;

final _appLinks = AppLinks();

/// Listen to auth change events.
///
/// ```dart
Expand Down Expand Up @@ -218,7 +220,7 @@ class SupabaseAuth with WidgetsBindingObserver {
if (!kIsWeb) {
// It will handle app links while the app is already started - be it in
// the foreground or in the background.
_deeplinkSubscription = uriLinkStream.listen(
_deeplinkSubscription = _appLinks.uriLinkStream.listen(
(Uri? uri) {
if (uri != null) {
_handleDeeplink(uri);
Expand All @@ -243,7 +245,7 @@ class SupabaseAuth with WidgetsBindingObserver {
_initialDeeplinkIsHandled = true;

try {
final uri = await getInitialUri();
final uri = await _appLinks.getInitialAppLink();
if (uri != null) {
_handleDeeplink(uri);
}
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Expand Up @@ -9,12 +9,12 @@ environment:
flutter: '>=2.5.0'

dependencies:
app_links: ^3.2.0
flutter:
sdk: flutter
hive: ^2.2.1
hive_flutter: ^1.1.0
supabase: ^0.3.6
uni_links: ^0.5.1
url_launcher: ^6.1.2

dev_dependencies:
Expand Down

0 comments on commit db3fcd9

Please sign in to comment.