refactor: Switch from maestro to flutter integration tests

This commit is contained in:
Christian Kußowski 2026-03-19 16:25:20 +01:00
commit 0a42f28cf1
No known key found for this signature in database
GPG key ID: E067ECD60F1A0652
34 changed files with 495 additions and 727 deletions

View file

@ -3,7 +3,6 @@ import 'dart:ui';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter/semantics.dart';
import 'package:collection/collection.dart';
import 'package:flutter_secure_storage/flutter_secure_storage.dart';
@ -22,6 +21,8 @@ import 'widgets/fluffy_chat_app.dart';
ReceivePort? mainIsolateReceivePort;
bool _vodozemacInitialized = false;
void main() async {
if (PlatformInfos.isAndroid) {
final port = mainIsolateReceivePort = ReceivePort();
@ -49,7 +50,10 @@ void main() async {
final store = await AppSettings.init();
Logs().i('Welcome to ${AppSettings.applicationName.value} <3');
await vod.init(wasmPath: './assets/assets/vodozemac/');
if (!_vodozemacInitialized) {
await vod.init(wasmPath: './assets/assets/vodozemac/');
_vodozemacInitialized = true;
}
Logs().nativeColors = !PlatformInfos.isIOS;
final clients = await ClientManager.getClients(store: store);
@ -103,9 +107,6 @@ Future<void> startGui(List<Client> clients, SharedPreferences store) async {
await firstClient?.accountDataLoading;
runApp(FluffyChatApp(clients: clients, pincode: pin, store: store));
if (const String.fromEnvironment('WITH_SEMANTICS') == 'true') {
SemanticsBinding.instance.ensureSemantics();
}
}
/// Watches the lifecycle changes to start the application when it