mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
fix: unable to login on android when building in release mode (#3994)
This commit is contained in:
parent
3e5fae002b
commit
bddaac05ae
@ -3,7 +3,7 @@
|
|||||||
android:name="${applicationName}">
|
android:name="${applicationName}">
|
||||||
<activity android:name=".MainActivity"
|
<activity android:name=".MainActivity"
|
||||||
android:exported="true"
|
android:exported="true"
|
||||||
android:launchMode="singleTop"
|
android:launchMode="singleInstance"
|
||||||
android:theme="@style/LaunchTheme"
|
android:theme="@style/LaunchTheme"
|
||||||
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
|
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
|
||||||
android:hardwareAccelerated="true" android:windowSoftInputMode="adjustResize">
|
android:hardwareAccelerated="true" android:windowSoftInputMode="adjustResize">
|
||||||
@ -45,4 +45,6 @@
|
|||||||
-->
|
-->
|
||||||
<meta-data android:name="flutterEmbedding" android:value="2" />
|
<meta-data android:name="flutterEmbedding" android:value="2" />
|
||||||
</application>
|
</application>
|
||||||
|
<uses-permission android:name="android.permission.INTERNET" />
|
||||||
|
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
|
||||||
</manifest>
|
</manifest>
|
@ -3,7 +3,7 @@
|
|||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
int64_t init_sdk(char *path);
|
int64_t init_sdk(char *data);
|
||||||
|
|
||||||
void async_event(int64_t port, const uint8_t *input, uintptr_t len);
|
void async_event(int64_t port, const uint8_t *input, uintptr_t len);
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ const hiveBoxName = 'appflowy_supabase_authentication';
|
|||||||
|
|
||||||
// Used to store the session of the supabase in case of the user switch the different folder.
|
// Used to store the session of the supabase in case of the user switch the different folder.
|
||||||
Supabase? supabase;
|
Supabase? supabase;
|
||||||
SupbaseRealtimeService? realtimeService;
|
SupabaseRealtimeService? realtimeService;
|
||||||
|
|
||||||
class InitSupabaseTask extends LaunchTask {
|
class InitSupabaseTask extends LaunchTask {
|
||||||
@override
|
@override
|
||||||
@ -46,7 +46,7 @@ class InitSupabaseTask extends LaunchTask {
|
|||||||
await realtimeService?.dispose();
|
await realtimeService?.dispose();
|
||||||
realtimeService = null;
|
realtimeService = null;
|
||||||
}
|
}
|
||||||
realtimeService = SupbaseRealtimeService(supabase: initializedSupabase);
|
realtimeService = SupabaseRealtimeService(supabase: initializedSupabase);
|
||||||
|
|
||||||
supabase = initializedSupabase;
|
supabase = initializedSupabase;
|
||||||
|
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
import 'dart:async';
|
import 'dart:async';
|
||||||
|
|
||||||
import 'package:appflowy/startup/tasks/prelude.dart';
|
import 'package:appflowy/startup/tasks/prelude.dart';
|
||||||
import 'package:appflowy/user/application/auth/backend_auth_service.dart';
|
|
||||||
import 'package:appflowy/user/application/auth/auth_service.dart';
|
import 'package:appflowy/user/application/auth/auth_service.dart';
|
||||||
|
import 'package:appflowy/user/application/auth/backend_auth_service.dart';
|
||||||
import 'package:appflowy/user/application/auth/device_id.dart';
|
import 'package:appflowy/user/application/auth/device_id.dart';
|
||||||
import 'package:appflowy/user/application/user_service.dart';
|
import 'package:appflowy/user/application/user_service.dart';
|
||||||
import 'package:appflowy_backend/dispatch/dispatch.dart';
|
import 'package:appflowy_backend/dispatch/dispatch.dart';
|
||||||
@ -12,6 +12,7 @@ import 'package:appflowy_backend/protobuf/flowy-user/protobuf.dart';
|
|||||||
import 'package:dartz/dartz.dart';
|
import 'package:dartz/dartz.dart';
|
||||||
import 'package:flutter/foundation.dart';
|
import 'package:flutter/foundation.dart';
|
||||||
import 'package:supabase_flutter/supabase_flutter.dart';
|
import 'package:supabase_flutter/supabase_flutter.dart';
|
||||||
|
|
||||||
import 'auth_error.dart';
|
import 'auth_error.dart';
|
||||||
|
|
||||||
class SupabaseAuthService implements AuthService {
|
class SupabaseAuthService implements AuthService {
|
||||||
|
@ -17,7 +17,7 @@ import 'auth/auth_service.dart';
|
|||||||
/// based on the authentication state of a user. The service is initialized with
|
/// based on the authentication state of a user. The service is initialized with
|
||||||
/// a reference to a Supabase instance and sets up the necessary subscriptions
|
/// a reference to a Supabase instance and sets up the necessary subscriptions
|
||||||
/// accordingly.
|
/// accordingly.
|
||||||
class SupbaseRealtimeService {
|
class SupabaseRealtimeService {
|
||||||
final Supabase supabase;
|
final Supabase supabase;
|
||||||
final _authStateListener = UserAuthStateListener();
|
final _authStateListener = UserAuthStateListener();
|
||||||
|
|
||||||
@ -26,7 +26,7 @@ class SupbaseRealtimeService {
|
|||||||
RealtimeChannel? channel;
|
RealtimeChannel? channel;
|
||||||
StreamSubscription<AuthState>? authStateSubscription;
|
StreamSubscription<AuthState>? authStateSubscription;
|
||||||
|
|
||||||
SupbaseRealtimeService({required this.supabase}) {
|
SupabaseRealtimeService({required this.supabase}) {
|
||||||
_subscribeAuthState();
|
_subscribeAuthState();
|
||||||
_subscribeTablesChanges();
|
_subscribeTablesChanges();
|
||||||
|
|
||||||
|
@ -713,10 +713,10 @@ packages:
|
|||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
name: go_router
|
name: go_router
|
||||||
sha256: "5668e6d3dbcb2d0dfa25f7567554b88c57e1e3f3c440b672b24d4a9477017d5b"
|
sha256: c247a4f76071c3b97bb5ae8912968870d5565644801c5e09f3bc961b4d874895
|
||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "10.1.2"
|
version: "12.1.1"
|
||||||
google_fonts:
|
google_fonts:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
@ -729,10 +729,10 @@ packages:
|
|||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: gotrue
|
name: gotrue
|
||||||
sha256: "6ba95e38c06af30d4a365112b433567df70f83d5853923274cb894ea9702c5fa"
|
sha256: f3a47cdbc59e543f453a1ef150050cd7650fe756254ac1fcac1d2a2f6f2b5a21
|
||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.11.2"
|
version: "1.12.6"
|
||||||
graphs:
|
graphs:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
@ -970,6 +970,14 @@ packages:
|
|||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "0.3.1"
|
version: "0.3.1"
|
||||||
|
keyboard_height_plugin:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: keyboard_height_plugin
|
||||||
|
sha256: "9fd5cd9e3e80d8f530aaa26ad17b4d18d34a63956cf0d530920a54c228200510"
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "0.0.4"
|
||||||
linked_scroll_controller:
|
linked_scroll_controller:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
@ -1286,10 +1294,10 @@ packages:
|
|||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: postgrest
|
name: postgrest
|
||||||
sha256: d6cc0f60c7dc761f84d1c6d11d9e02b3ad90399bd84639a28c1c024adbaa9bde
|
sha256: f190eddc5779842dfa529fa239ec4b1025f6f968c18052ba6fffc0aecac93e6b
|
||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.5.0"
|
version: "1.5.2"
|
||||||
process:
|
process:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
@ -1334,10 +1342,10 @@ packages:
|
|||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: realtime_client
|
name: realtime_client
|
||||||
sha256: b4b7bb293417dafc73943ed639209b2dcb796db8495e56bba29a4e26fadef5cd
|
sha256: "2027358cdbe65d5f1770c3f768aa9adecd394de486c5dbbd2cfe19d5c6dbbc4a"
|
||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.2.1"
|
version: "1.4.0"
|
||||||
reorderables:
|
reorderables:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
@ -1651,10 +1659,10 @@ packages:
|
|||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: storage_client
|
name: storage_client
|
||||||
sha256: a3024569213b064587d616827747b766f9bc796e80cec99bd5ffb597b8aeb018
|
sha256: f02d4d8967bec77767dcaf9daf24ca5b8d5a9f1cc093f14dffb77930b52589a3
|
||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.5.1"
|
version: "1.5.4"
|
||||||
stream_channel:
|
stream_channel:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
@ -1699,19 +1707,19 @@ packages:
|
|||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: supabase
|
name: supabase
|
||||||
sha256: c48671b62720f15067f6b31abe964950bf1405b7eec367a97f683dee25715a77
|
sha256: "1434bb9375f88f51802dadf7b99568117c434f6a9af7f8a55e5be94c8b4da7c9"
|
||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.11.1"
|
version: "1.11.11"
|
||||||
supabase_flutter:
|
supabase_flutter:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
path: "packages/supabase_flutter"
|
path: "packages/supabase_flutter"
|
||||||
ref: "852119e"
|
ref: "4bd9139"
|
||||||
resolved-ref: "852119e110224cce83b332e8681bc6f216a56c05"
|
resolved-ref: "4bd9139826d9c5125b737a43ebe56211dd0a9be5"
|
||||||
url: "https://github.com/LucasXu0/supabase-flutter"
|
url: "https://github.com/LucasXu0/supabase-flutter"
|
||||||
source: git
|
source: git
|
||||||
version: "1.10.14"
|
version: "1.10.25"
|
||||||
super_clipboard:
|
super_clipboard:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
|
@ -149,8 +149,9 @@ dependency_overrides:
|
|||||||
supabase_flutter:
|
supabase_flutter:
|
||||||
git:
|
git:
|
||||||
url: https://github.com/LucasXu0/supabase-flutter
|
url: https://github.com/LucasXu0/supabase-flutter
|
||||||
ref: 852119e
|
ref: 4bd9139
|
||||||
path: packages/supabase_flutter
|
path: packages/supabase_flutter
|
||||||
|
|
||||||
app_links:
|
app_links:
|
||||||
git:
|
git:
|
||||||
url: https://github.com/LucasXu0/app_links
|
url: https://github.com/LucasXu0/app_links
|
||||||
|
Loading…
Reference in New Issue
Block a user