Skip to content

Commit

Permalink
Comment out leak tracker and update package
Browse files Browse the repository at this point in the history
versions
  • Loading branch information
dhzdhd committed Nov 12, 2023
1 parent 42872e3 commit 9132667
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 62 deletions.
9 changes: 4 additions & 5 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import 'package:excode/src/home/services/api.dart';
import 'package:excode/src/settings/providers/settings_provider.dart';
import 'package:excode/src/settings/services/settings_service.dart';
import 'package:flutter/foundation.dart';
import 'package:leak_tracker/leak_tracker.dart';
// import 'package:leak_tracker/leak_tracker.dart';
import 'package:sentry_flutter/sentry_flutter.dart';

import 'src/factory.dart';
Expand All @@ -28,12 +28,11 @@ void main() async {

if (kDebugMode) {
// ! Update package to enable links https://pub.dev/packages/leak_tracker
enableLeakTracking();
MemoryAllocations.instance.addListener(
(ObjectEvent event) => dispatchObjectEvent(event.toMap()),
);
// LeakTracking.start();

runApp(const ProviderScope(child: MyApp()));

// LeakTracking.stop();
} else if (!kIsWeb && getSentryFromStorage()) {
await SentryFlutter.init(
(options) {
Expand Down
50 changes: 17 additions & 33 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -205,10 +205,10 @@ packages:
dependency: transitive
description:
name: cli_util
sha256: "66f86e916d285c1a93d3b79587d94bd71984a66aac4ff74e524cfa7877f1395c"
sha256: b8db3080e59b2503ca9e7922c3df2072cf13992354d5e944074ffa836fba43b7
url: "https://pub.dev"
source: hosted
version: "0.3.5"
version: "0.4.0"
clipboard:
dependency: "direct main"
description:
Expand Down Expand Up @@ -253,10 +253,10 @@ packages:
dependency: "direct main"
description:
name: connectivity_plus
sha256: "8875e8ed511a49f030e313656154e4bbbcef18d68dfd32eb853fac10bce48e96"
sha256: b502a681ba415272ecc41400bd04fe543ed1a62632137dc84d25a91e7746f55f
url: "https://pub.dev"
source: hosted
version: "3.0.3"
version: "5.0.1"
connectivity_plus_platform_interface:
dependency: transitive
description:
Expand Down Expand Up @@ -435,26 +435,26 @@ packages:
dependency: "direct main"
description:
name: flutter_hooks
sha256: "6a126f703b89499818d73305e4ce1e3de33b4ae1c5512e3b8eab4b986f46774c"
sha256: "7c8db779c2d1010aa7f9ea3fbefe8f86524fcb87b69e8b0af31e1a4b55422dec"
url: "https://pub.dev"
source: hosted
version: "0.18.6"
version: "0.20.3"
flutter_launcher_icons:
dependency: "direct dev"
description:
name: flutter_launcher_icons
sha256: "02dcaf49d405f652b7160e882bacfc02cb497041bb2eab2a49b1c393cf9aac12"
sha256: "526faf84284b86a4cb36d20a5e45147747b7563d921373d4ee0559c54fcdbcea"
url: "https://pub.dev"
source: hosted
version: "0.12.0"
version: "0.13.1"
flutter_lints:
dependency: "direct dev"
description:
name: flutter_lints
sha256: b543301ad291598523947dc534aaddc5aaad597b709d2426d3a0e0d44c5cb493
sha256: e2a421b7e59244faef694ba7b30562e489c2b489866e505074eb005cd7060db7
url: "https://pub.dev"
source: hosted
version: "1.0.4"
version: "3.0.1"
flutter_native_splash:
dependency: "direct main"
description:
Expand Down Expand Up @@ -501,10 +501,10 @@ packages:
dependency: "direct main"
description:
name: fpdart
sha256: "4a0d047c3359a4bdd19e4941603bbe394bd133b3772a38049e17f9534d47106e"
sha256: "7413acc5a6569a3fe8277928fc7487f3198530f0c4e635d0baef199ea36e8ee9"
url: "https://pub.dev"
source: hosted
version: "0.6.0"
version: "1.1.0"
freezed:
dependency: "direct dev"
description:
Expand Down Expand Up @@ -641,14 +641,6 @@ packages:
url: "https://pub.dev"
source: hosted
version: "4.1.3"
intl:
dependency: transitive
description:
name: intl
sha256: "3bc132a9dbce73a7e4a21a17d06e1878839ffbf975568bc875c60537824b0c4d"
url: "https://pub.dev"
source: hosted
version: "0.18.1"
io:
dependency: transitive
description:
Expand Down Expand Up @@ -689,14 +681,6 @@ packages:
url: "https://pub.dev"
source: hosted
version: "0.3.1"
leak_tracker:
dependency: "direct main"
description:
name: leak_tracker
sha256: "7e0c8bf9692922ad6bb22490f8fb35166661b6470e499e4ddffbb0548c72e627"
url: "https://pub.dev"
source: hosted
version: "5.0.0"
linked_scroll_controller:
dependency: "direct main"
description:
Expand All @@ -709,10 +693,10 @@ packages:
dependency: transitive
description:
name: lints
sha256: a2c3d198cb5ea2e179926622d433331d8b58374ab8f29cdda6e863bd62fd369c
sha256: cbf8d4b858bb0134ef3ef87841abdf8d63bfc255c266b7bf6b39daa1085c4290
url: "https://pub.dev"
source: hosted
version: "1.0.1"
version: "3.0.0"
logging:
dependency: transitive
description:
Expand Down Expand Up @@ -765,10 +749,10 @@ packages:
dependency: "direct dev"
description:
name: msix
sha256: "68679afc7d7117467250363dea4fb62db7520a23a9490bf4b65794655235a1d5"
sha256: "957d04eee260e4bd15bec1fdb988dfc73718285e201cf89d97ef01ef38e66d4c"
url: "https://pub.dev"
source: hosted
version: "3.9.1"
version: "3.16.6"
multi_split_view:
dependency: "direct main"
description:
Expand Down Expand Up @@ -1528,4 +1512,4 @@ packages:
version: "1.1.1"
sdks:
dart: ">=3.1.0 <4.0.0"
flutter: ">=3.13.0"
flutter: ">=3.13.9"
48 changes: 24 additions & 24 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ version: 1.3.1

environment:
sdk: ">=3.0.0 <4.0.0"
flutter: 3.10.0
flutter: 3.13.9

dependencies:
flutter:
sdk: flutter
flutter_hooks: ^0.18.6
hooks_riverpod: ^2.3.6
flutter_hooks: ^0.20.3
hooks_riverpod: ^2.4.5
# flutter_localizations:
# sdk: flutter
linked_scroll_controller: ^0.2.0
Expand All @@ -23,32 +23,32 @@ dependencies:
resizable_widget: ^1.0.5
multi_split_view: ^2.4.0
dropdown_search: ^5.0.6
shared_preferences: ^2.1.1
sqlite3_flutter_libs: ^0.5.14
path_provider: ^2.0.15
shared_preferences: ^2.2.2
sqlite3_flutter_libs: ^0.5.18
path_provider: ^2.1.1
path: ^1.8.3
hive: ^2.2.3
hive_flutter: ^1.1.0
freezed_annotation: ^2.2.0
freezed_annotation: ^2.4.1
bitsdojo_window: ^0.1.5
connectivity_plus: 3.0.3
package_info_plus: ^3.0.3
connectivity_plus: ^5.0.1
package_info_plus: ^3.1.2
clipboard: ^0.1.3
fpdart: ^0.6.0
supabase_flutter: ^1.9.0
desktop_drop: ^0.4.1
fpdart: ^1.1.0
supabase_flutter: ^1.10.25
desktop_drop: ^0.4.4
flutter_downloader: ^1.11.4
flutter_svg: ^2.0.5
leak_tracker: ^5.0.0
sentry_flutter: ^7.5.2
dio: ^5.1.2
flutter_svg: ^2.0.9
# leak_tracker: ^9.0.15
sentry_flutter: ^7.12.0
dio: ^5.3.3
file_picker: ^5.2.10
url_launcher: ^6.1.11
url_launcher: ^6.2.1
flutter_code_editor:
git:
url: https://github.com/dhzdhd/flutter-code-editor-package.git
ref: 391a498
flutter_native_splash: ^2.2.19
flutter_native_splash: ^2.3.5
after_layout: ^1.2.0

dev_dependencies:
Expand All @@ -57,12 +57,12 @@ dev_dependencies:

build_runner: ^2.3.3

flutter_lints: ^1.0.0
freezed: ^2.3.2
json_serializable: ^6.6.1
json_annotation: ^4.8.0
flutter_launcher_icons: ^0.12.0
msix: ^3.8.2
flutter_lints: ^3.0.1
freezed: ^2.4.5
json_serializable: ^6.7.1
json_annotation: ^4.8.1
flutter_launcher_icons: ^0.13.1
msix: ^3.16.6

flutter:
uses-material-design: true
Expand Down

0 comments on commit 9132667

Please sign in to comment.