Skip to content

Commit

Permalink
fix: Remove overriding the debug default target platform in debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
maznnwell committed Oct 6, 2024
1 parent d294605 commit 7adff15
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ import 'dart:async';
import 'dart:io';
import 'dart:isolate';

import 'package:flutter/foundation.dart'
show debugDefaultTargetPlatformOverride, kDebugMode;
import 'package:flutter/foundation.dart' show kDebugMode;
import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart';
import 'package:get_it/get_it.dart';
Expand Down Expand Up @@ -48,9 +47,6 @@ main() async {
WidgetsFlutterBinding.ensureInitialized();

Provider.debugCheckInvalidValueType = null;
if (kDebugMode) {
debugDefaultTargetPlatformOverride = TargetPlatform.fuchsia;
}

ensureDirectoriesExist();
Hive.init(znnDefaultPaths.cache.path.toString());
Expand Down Expand Up @@ -87,11 +83,9 @@ main() async {
// Setup services
setup();

retry(
() => web3WalletService!.init(),
retryIf: (e) => e is SocketException || e is TimeoutException,
maxAttempts: 0x7FFFFFFFFFFFFFFF
);
retry(() => web3WalletService!.init(),
retryIf: (e) => e is SocketException || e is TimeoutException,
maxAttempts: 0x7FFFFFFFFFFFFFFF);

// Setup local_notifier
await localNotifier.setup(
Expand Down

0 comments on commit 7adff15

Please sign in to comment.