refactor: Switch from maestro to flutter integration tests
This commit is contained in:
parent
c15be05246
commit
0a42f28cf1
34 changed files with 495 additions and 727 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue