mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-12-24 14:32:37 +01:00
Merge branch 'ci-bot/dependency-updates' into 'main'
chore: automated dependency update See merge request famedly/fluffychat!648
This commit is contained in:
commit
a7ec4ff860
@ -67,16 +67,15 @@ class ChatController extends State<Chat> {
|
|||||||
void onDragExited(_) => setState(() => dragging = false);
|
void onDragExited(_) => setState(() => dragging = false);
|
||||||
void onDragDone(DropDoneDetails details) async {
|
void onDragDone(DropDoneDetails details) async {
|
||||||
setState(() => dragging = false);
|
setState(() => dragging = false);
|
||||||
for (final url in details.urls) {
|
for (final xfile in details.files) {
|
||||||
final file = File.fromUri(url);
|
final bytes = await xfile.readAsBytes();
|
||||||
final bytes = await file.readAsBytes();
|
|
||||||
await showDialog(
|
await showDialog(
|
||||||
context: context,
|
context: context,
|
||||||
useRootNavigator: false,
|
useRootNavigator: false,
|
||||||
builder: (c) => SendFileDialog(
|
builder: (c) => SendFileDialog(
|
||||||
file: MatrixFile(
|
file: MatrixFile(
|
||||||
bytes: bytes,
|
bytes: bytes,
|
||||||
name: file.path.split('/').last,
|
name: xfile.name,
|
||||||
).detectFileType,
|
).detectFileType,
|
||||||
room: room,
|
room: room,
|
||||||
),
|
),
|
||||||
|
@ -7,6 +7,7 @@ import 'dart:typed_data';
|
|||||||
import 'package:flutter/foundation.dart' hide Key;
|
import 'package:flutter/foundation.dart' hide Key;
|
||||||
import 'package:flutter/services.dart';
|
import 'package:flutter/services.dart';
|
||||||
|
|
||||||
|
import 'package:fluffybox/hive.dart' as fluffybox;
|
||||||
import 'package:flutter_secure_storage/flutter_secure_storage.dart';
|
import 'package:flutter_secure_storage/flutter_secure_storage.dart';
|
||||||
import 'package:hive_flutter/hive_flutter.dart';
|
import 'package:hive_flutter/hive_flutter.dart';
|
||||||
import 'package:matrix/matrix.dart';
|
import 'package:matrix/matrix.dart';
|
||||||
@ -19,7 +20,7 @@ class FlutterFluffyBoxDatabase extends FluffyBoxDatabase {
|
|||||||
FlutterFluffyBoxDatabase(
|
FlutterFluffyBoxDatabase(
|
||||||
String name,
|
String name,
|
||||||
String path, {
|
String path, {
|
||||||
HiveCipher? key,
|
fluffybox.HiveCipher? key,
|
||||||
}) : super(
|
}) : super(
|
||||||
name,
|
name,
|
||||||
path,
|
path,
|
||||||
@ -30,7 +31,7 @@ class FlutterFluffyBoxDatabase extends FluffyBoxDatabase {
|
|||||||
|
|
||||||
static Future<FluffyBoxDatabase> databaseBuilder(Client client) async {
|
static Future<FluffyBoxDatabase> databaseBuilder(Client client) async {
|
||||||
Logs().d('Open FluffyBox...');
|
Logs().d('Open FluffyBox...');
|
||||||
HiveAesCipher? hiverCipher;
|
fluffybox.HiveAesCipher? hiverCipher;
|
||||||
try {
|
try {
|
||||||
// Workaround for secure storage is calling Platform.operatingSystem on web
|
// Workaround for secure storage is calling Platform.operatingSystem on web
|
||||||
if (kIsWeb) throw MissingPluginException();
|
if (kIsWeb) throw MissingPluginException();
|
||||||
@ -50,7 +51,7 @@ class FlutterFluffyBoxDatabase extends FluffyBoxDatabase {
|
|||||||
final rawEncryptionKey = await secureStorage.read(key: _cipherStorageKey);
|
final rawEncryptionKey = await secureStorage.read(key: _cipherStorageKey);
|
||||||
if (rawEncryptionKey == null) throw MissingPluginException();
|
if (rawEncryptionKey == null) throw MissingPluginException();
|
||||||
|
|
||||||
hiverCipher = HiveAesCipher(base64Url.decode(rawEncryptionKey));
|
hiverCipher = fluffybox.HiveAesCipher(base64Url.decode(rawEncryptionKey));
|
||||||
} on MissingPluginException catch (_) {
|
} on MissingPluginException catch (_) {
|
||||||
Logs().i('FluffyBox encryption is not supported on this platform');
|
Logs().i('FluffyBox encryption is not supported on this platform');
|
||||||
} catch (_) {
|
} catch (_) {
|
||||||
|
24
pubspec.lock
24
pubspec.lock
@ -224,7 +224,7 @@ packages:
|
|||||||
name: dart_style
|
name: dart_style
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "2.2.0"
|
version: "2.2.1"
|
||||||
dbus:
|
dbus:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
@ -238,7 +238,7 @@ packages:
|
|||||||
name: desktop_drop
|
name: desktop_drop
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "0.2.0"
|
version: "0.3.0"
|
||||||
desktop_notifications:
|
desktop_notifications:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
@ -301,7 +301,7 @@ packages:
|
|||||||
name: file_picker
|
name: file_picker
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "4.2.7"
|
version: "4.3.0"
|
||||||
file_picker_cross:
|
file_picker_cross:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
@ -364,7 +364,7 @@ packages:
|
|||||||
name: fluffybox
|
name: fluffybox
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "0.3.5"
|
version: "0.4.1"
|
||||||
flutter:
|
flutter:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description: flutter
|
description: flutter
|
||||||
@ -650,7 +650,7 @@ packages:
|
|||||||
name: hive
|
name: hive
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "2.0.4"
|
version: "2.0.5"
|
||||||
hive_flutter:
|
hive_flutter:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
@ -818,7 +818,7 @@ packages:
|
|||||||
name: matrix
|
name: matrix
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "0.7.0"
|
version: "0.7.1"
|
||||||
matrix_api_lite:
|
matrix_api_lite:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
@ -895,7 +895,7 @@ packages:
|
|||||||
name: open_noti_settings
|
name: open_noti_settings
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "0.3.0"
|
version: "0.4.0"
|
||||||
package_config:
|
package_config:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
@ -986,7 +986,7 @@ packages:
|
|||||||
name: path_provider_android
|
name: path_provider_android
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "2.0.9"
|
version: "2.0.11"
|
||||||
path_provider_ios:
|
path_provider_ios:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
@ -1224,7 +1224,7 @@ packages:
|
|||||||
name: sentry
|
name: sentry
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "6.2.1"
|
version: "6.2.2"
|
||||||
share:
|
share:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
@ -1607,14 +1607,14 @@ packages:
|
|||||||
name: video_player_platform_interface
|
name: video_player_platform_interface
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "4.2.0"
|
version: "5.0.0"
|
||||||
video_player_web:
|
video_player_web:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: video_player_web
|
name: video_player_web
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "2.0.4"
|
version: "2.0.5"
|
||||||
vm_service:
|
vm_service:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
@ -1698,7 +1698,7 @@ packages:
|
|||||||
name: win32
|
name: win32
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "2.3.1"
|
version: "2.3.3"
|
||||||
wkt_parser:
|
wkt_parser:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
|
@ -14,7 +14,7 @@ dependencies:
|
|||||||
blurhash_dart: ^1.1.0
|
blurhash_dart: ^1.1.0
|
||||||
cached_network_image: ^3.1.0
|
cached_network_image: ^3.1.0
|
||||||
cupertino_icons: any
|
cupertino_icons: any
|
||||||
desktop_drop: ^0.2.0
|
desktop_drop: ^0.3.0
|
||||||
desktop_notifications: ^0.6.1
|
desktop_notifications: ^0.6.1
|
||||||
email_validator: ^2.0.1
|
email_validator: ^2.0.1
|
||||||
emoji_picker_flutter: ^1.0.7
|
emoji_picker_flutter: ^1.0.7
|
||||||
@ -51,7 +51,7 @@ dependencies:
|
|||||||
lottie: ^1.2.1
|
lottie: ^1.2.1
|
||||||
matrix: ^0.7.0
|
matrix: ^0.7.0
|
||||||
matrix_link_text: ^1.0.2
|
matrix_link_text: ^1.0.2
|
||||||
open_noti_settings: ^0.3.0
|
open_noti_settings: ^0.4.0
|
||||||
package_info_plus: ^1.2.1
|
package_info_plus: ^1.2.1
|
||||||
path_provider: ^2.0.5
|
path_provider: ^2.0.5
|
||||||
permission_handler: ^8.3.0
|
permission_handler: ^8.3.0
|
||||||
|
@ -99,5 +99,5 @@ index e1670a32..7e3238b0 100644
|
|||||||
+ fcm_shared_isolate:
|
+ fcm_shared_isolate:
|
||||||
+ git: https://gitlab.com/famedly/libraries/fcm_shared_isolate.git
|
+ git: https://gitlab.com/famedly/libraries/fcm_shared_isolate.git
|
||||||
file_picker_cross: ^4.5.0
|
file_picker_cross: ^4.5.0
|
||||||
|
flick_video_player: ^0.3.1
|
||||||
flutter:
|
flutter:
|
||||||
sdk: flutter
|
|
||||||
|
Loading…
Reference in New Issue
Block a user