Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.
Dart blogconfluence-alternativecontent-managementcontent-servicesdocumentationflutternote-takingnotion-alternativeproject-managementtask-managementteam-collaborationwiki
fix: unable to login on android when building in release mode (#3994)
Lucas.Xubddaac05ae43
diff --git a/frontend/appflowy_flutter/android/app/src/main/AndroidManifest.xml b/frontend/appflowy_flutter/android/app/src/main/AndroidManifest.xmlindex 43f4005b72..74a83ed9f2 100644--- a/frontend/appflowy_flutter/android/app/src/main/AndroidManifest.xml+++ b/frontend/appflowy_flutter/android/app/src/main/AndroidManifest.xml@@ -3,7 +3,7 @@android:name="${applicationName}"><activity android:name=".MainActivity"android:exported="true"- android:launchMode="singleTop"+ android:launchMode="singleInstance"android:theme="@style/LaunchTheme"android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"android:hardwareAccelerated="true" android:windowSoftInputMode="adjustResize">@@ -45,4 +45,6 @@--><meta-data android:name="flutterEmbedding" android:value="2" /></application>+ <uses-permission android:name="android.permission.INTERNET" />+ <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /></manifest>\ No newline at end of filediff --git a/frontend/appflowy_flutter/android/app/src/main/Classes/binding.h b/frontend/appflowy_flutter/android/app/src/main/Classes/binding.hindex 3d42bf55ce..710af508fd 100644--- a/frontend/appflowy_flutter/android/app/src/main/Classes/binding.h+++ b/frontend/appflowy_flutter/android/app/src/main/Classes/binding.h@@ -3,7 +3,7 @@#include <stdint.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);diff --git a/frontend/appflowy_flutter/lib/startup/tasks/supabase_task.dart b/frontend/appflowy_flutter/lib/startup/tasks/supabase_task.dartindex aa1f6eebe2..b8763f2e20 100644--- a/frontend/appflowy_flutter/lib/startup/tasks/supabase_task.dart+++ b/frontend/appflowy_flutter/lib/startup/tasks/supabase_task.dart@@ -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.Supabase? supabase;-SupbaseRealtimeService? realtimeService;+SupabaseRealtimeService? realtimeService;class InitSupabaseTask extends LaunchTask {@override@@ -46,7 +46,7 @@ class InitSupabaseTask extends LaunchTask {await realtimeService?.dispose();realtimeService = null;}- realtimeService = SupbaseRealtimeService(supabase: initializedSupabase);+ realtimeService = SupabaseRealtimeService(supabase: initializedSupabase);supabase = initializedSupabase;diff --git a/frontend/appflowy_flutter/lib/user/application/auth/supabase_auth_service.dart b/frontend/appflowy_flutter/lib/user/application/auth/supabase_auth_service.dartindex 0263f7bcaf..954db2b485 100644--- a/frontend/appflowy_flutter/lib/user/application/auth/supabase_auth_service.dart+++ b/frontend/appflowy_flutter/lib/user/application/auth/supabase_auth_service.dart@@ -1,8 +1,8 @@import 'dart:async';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/backend_auth_service.dart';import 'package:appflowy/user/application/auth/device_id.dart';import 'package:appflowy/user/application/user_service.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:flutter/foundation.dart';import 'package:supabase_flutter/supabase_flutter.dart';+import 'auth_error.dart';class SupabaseAuthService implements AuthService {diff --git a/frontend/appflowy_flutter/lib/user/application/supabase_realtime.dart b/frontend/appflowy_flutter/lib/user/application/supabase_realtime.dartindex c71869ab2a..595ac4e354 100644--- a/frontend/appflowy_flutter/lib/user/application/supabase_realtime.dart+++ b/frontend/appflowy_flutter/lib/user/application/supabase_realtime.dart@@ -17,7 +17,7 @@ import 'auth/auth_service.dart';/// 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/// accordingly.-class SupbaseRealtimeService {+class SupabaseRealtimeService {final Supabase supabase;final _authStateListener = UserAuthStateListener();@@ -26,7 +26,7 @@ class SupbaseRealtimeService {RealtimeChannel? channel;StreamSubscription<AuthState>? authStateSubscription;- SupbaseRealtimeService({required this.supabase}) {+ SupabaseRealtimeService({required this.supabase}) {_subscribeAuthState();_subscribeTablesChanges();diff --git a/frontend/appflowy_flutter/pubspec.lock b/frontend/appflowy_flutter/pubspec.lockindex d8b659421f..ee135343cd 100644--- a/frontend/appflowy_flutter/pubspec.lock+++ b/frontend/appflowy_flutter/pubspec.lock@@ -713,10 +713,10 @@ packages:dependency: "direct main"description:name: go_router- sha256: "5668e6d3dbcb2d0dfa25f7567554b88c57e1e3f3c440b672b24d4a9477017d5b"+ sha256: c247a4f76071c3b97bb5ae8912968870d5565644801c5e09f3bc961b4d874895url: "https://pub.dev"source: hosted- version: "10.1.2"+ version: "12.1.1"google_fonts:dependency: "direct main"description:@@ -729,10 +729,10 @@ packages:dependency: transitivedescription:name: gotrue- sha256: "6ba95e38c06af30d4a365112b433567df70f83d5853923274cb894ea9702c5fa"+ sha256: f3a47cdbc59e543f453a1ef150050cd7650fe756254ac1fcac1d2a2f6f2b5a21url: "https://pub.dev"source: hosted- version: "1.11.2"+ version: "1.12.6"graphs:dependency: transitivedescription:@@ -970,6 +970,14 @@ packages:url: "https://pub.dev"source: hostedversion: "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:dependency: "direct main"description:@@ -1286,10 +1294,10 @@ packages:dependency: transitivedescription:name: postgrest- sha256: d6cc0f60c7dc761f84d1c6d11d9e02b3ad90399bd84639a28c1c024adbaa9bde+ sha256: f190eddc5779842dfa529fa239ec4b1025f6f968c18052ba6fffc0aecac93e6burl: "https://pub.dev"source: hosted- version: "1.5.0"+ version: "1.5.2"process:dependency: transitivedescription:@@ -1334,10 +1342,10 @@ packages:dependency: transitivedescription:name: realtime_client- sha256: b4b7bb293417dafc73943ed639209b2dcb796db8495e56bba29a4e26fadef5cd+ sha256: "2027358cdbe65d5f1770c3f768aa9adecd394de486c5dbbd2cfe19d5c6dbbc4a"url: "https://pub.dev"source: hosted- version: "1.2.1"+ version: "1.4.0"reorderables:dependency: "direct main"description:@@ -1651,10 +1659,10 @@ packages:dependency: transitivedescription:name: storage_client- sha256: a3024569213b064587d616827747b766f9bc796e80cec99bd5ffb597b8aeb018+ sha256: f02d4d8967bec77767dcaf9daf24ca5b8d5a9f1cc093f14dffb77930b52589a3url: "https://pub.dev"source: hosted- version: "1.5.1"+ version: "1.5.4"stream_channel:dependency: transitivedescription:@@ -1699,19 +1707,19 @@ packages:dependency: transitivedescription:name: supabase- sha256: c48671b62720f15067f6b31abe964950bf1405b7eec367a97f683dee25715a77+ sha256: "1434bb9375f88f51802dadf7b99568117c434f6a9af7f8a55e5be94c8b4da7c9"url: "https://pub.dev"source: hosted- version: "1.11.1"+ version: "1.11.11"supabase_flutter:dependency: "direct main"description:path: "packages/supabase_flutter"- ref: "852119e"- resolved-ref: "852119e110224cce83b332e8681bc6f216a56c05"+ ref: "4bd9139"+ resolved-ref: "4bd9139826d9c5125b737a43ebe56211dd0a9be5"url: "https://github.com/LucasXu0/supabase-flutter"source: git- version: "1.10.14"+ version: "1.10.25"super_clipboard:dependency: "direct main"description:diff --git a/frontend/appflowy_flutter/pubspec.yaml b/frontend/appflowy_flutter/pubspec.yamlindex 3f5bd6ca48..540ccd4eb5 100644--- a/frontend/appflowy_flutter/pubspec.yaml+++ b/frontend/appflowy_flutter/pubspec.yaml@@ -149,8 +149,9 @@ dependency_overrides:supabase_flutter:git:url: https://github.com/LucasXu0/supabase-flutter- ref: 852119e+ ref: 4bd9139path: packages/supabase_flutter+app_links:git:url: https://github.com/LucasXu0/app_links