Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
luckyrat committed Jan 6, 2024
1 parent 322e88e commit f6ea8de
Show file tree
Hide file tree
Showing 4 changed files with 123 additions and 104 deletions.
2 changes: 1 addition & 1 deletion .fvm/fvm_config.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"flutterSdkVersion": "3.13.9",
"flutterSdkVersion": "3.16.5",
"flavors": {}
}
4 changes: 2 additions & 2 deletions lib/config/route_handlers.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ import 'package:keevault/widgets/vault.dart';
import '../widgets/blocking_overlay.dart';
import '../widgets/change_email_prefs.dart';
import '../widgets/change_password.dart';
import '../widgets/root.dart';
import '../widgets/root.dart' as kv_root;

var rootHandler = Handler(handlerFunc: (BuildContext? context, Map<String, List<String>> params) {
return const RootWidget();
return const kv_root.RootWidget();
});

var vaultHandler = Handler(handlerFunc: (BuildContext? context, Map<String, List<String>> params) {
Expand Down
9 changes: 6 additions & 3 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import 'dart:async';

import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:keevault/config/platform.dart';
import 'package:keevault/logging/logger.dart';
import 'package:keevault/payment_service.dart';
import 'package:keevault/widgets/dialog_utils.dart';
Expand Down Expand Up @@ -29,9 +30,11 @@ void main() async {
url: 'https://matomo.kee.pm/js/',
dispatchSettings: DispatchSettings.persistent(onLoad: DispatchSettings.whereNotOlderThan(Duration(days: 14))),
);
// Responsibility to check initialisation completed is deferred to any
// Flutter views that actually want to use the IAP feature
unawaited(PaymentService.instance.initConnection());
if (!KeeVaultPlatform.isWeb) {
// Responsibility to check initialisation completed is deferred to any
// Flutter views that actually want to use the IAP feature
unawaited(PaymentService.instance.initConnection());
}
WidgetsFlutterBinding.ensureInitialized();
l.i('Initialized WidgetsFlutterBinding');
var suffixList = await rootBundle.loadString('assets/public_suffix_list.dat');
Expand Down
Loading

0 comments on commit f6ea8de

Please sign in to comment.