Merge branches 'testing_branch' and 'testing_branch' of https://gitlab.com/Crondung/hsma_cpd into testing_branch

main
Kai Mannweiler 2023-03-06 21:55:46 +01:00
commit 2ff821447f
3 changed files with 6 additions and 3 deletions

View File

@ -1,10 +1,8 @@
library app.globals;
import 'package:smoke_cess_app/mock/db_mock.dart';
import 'package:smoke_cess_app/services/database_service.dart';
DatabaseService databaseService = DatabaseMock();
// DatabaseService databaseService = DatabaseService.instance;
DatabaseService databaseService = DatabaseService.instance;
// set this to read settings from local json file instead of scanning a qr code
bool useLocalConfig = false;

View File

@ -1,3 +1,5 @@
import 'package:shared_preferences/shared_preferences.dart';
Map<String, Object> mockSettings = {
"group": 3,
"HITT_time": 35,
@ -15,3 +17,6 @@ Map<String, Object> mockSettings = {
},
"startedAt": DateTime.now().toIso8601String(),
};
void mockSharedPreferences() =>
SharedPreferences.setMockInitialValues(mockSettings);