Skip to content

Commit

Permalink
removed unused dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
quetool committed Jan 5, 2024
1 parent af7364e commit 9bb7c63
Show file tree
Hide file tree
Showing 21 changed files with 579 additions and 630 deletions.
42 changes: 9 additions & 33 deletions example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -408,14 +408,6 @@ packages:
url: "https://pub.dev"
source: hosted
version: "3.2.0"
get_it:
dependency: "direct main"
description:
name: get_it
sha256: f79870884de16d689cf9a7d15eedf31ed61d750e813c538a6efb92660fea83c3
url: "https://pub.dev"
source: hosted
version: "7.6.4"
glob:
dependency: transitive
description:
Expand Down Expand Up @@ -481,7 +473,7 @@ packages:
source: hosted
version: "0.6.7"
json_annotation:
dependency: "direct main"
dependency: transitive
description:
name: json_annotation
sha256: b10a7b2ff83d83c777edba3c6a0f97045ddadd56c944e1a23a3fdf43a1bf4467
Expand Down Expand Up @@ -513,7 +505,7 @@ packages:
source: hosted
version: "3.0.0"
logger:
dependency: "direct main"
dependency: transitive
description:
name: logger
sha256: "6bbb9d6f7056729537a4309bda2e74e18e5d9f14302489cc1e93f33b3fe32cac"
Expand Down Expand Up @@ -560,14 +552,6 @@ packages:
url: "https://pub.dev"
source: hosted
version: "1.0.4"
mockito:
dependency: transitive
description:
name: mockito
sha256: "4b693867cee1853c9d1d7ecc1871f27f39b2ef2c13c0d8d8507dfe5bebd8aaf1"
url: "https://pub.dev"
source: hosted
version: "5.4.3"
octo_image:
dependency: transitive
description:
Expand All @@ -588,10 +572,10 @@ packages:
dependency: transitive
description:
name: package_info_plus
sha256: "7e76fad405b3e4016cd39d08f455a4eb5199723cf594cd1b8916d47140d93017"
sha256: "88bc797f44a94814f2213db1c9bd5badebafdfb8290ca9f78d4b9ee2a3db4d79"
url: "https://pub.dev"
source: hosted
version: "4.2.0"
version: "5.0.1"
package_info_plus_platform_interface:
dependency: transitive
description:
Expand Down Expand Up @@ -837,14 +821,6 @@ packages:
description: flutter
source: sdk
version: "0.0.99"
smooth_page_indicator:
dependency: "direct main"
description:
name: smooth_page_indicator
sha256: "725bc638d5e79df0c84658e1291449996943f93bacbc2cec49963dbbab48d8ae"
url: "https://pub.dev"
source: hosted
version: "1.1.0"
source_gen:
dependency: transitive
description:
Expand Down Expand Up @@ -966,7 +942,7 @@ packages:
source: hosted
version: "1.3.2"
universal_io:
dependency: "direct main"
dependency: transitive
description:
name: universal_io
sha256: "1722b2dcc462b4b2f3ee7d188dad008b6eb4c40bbd03a3de451d82c78bba9aad"
Expand Down Expand Up @@ -1089,10 +1065,10 @@ packages:
dependency: transitive
description:
name: walletconnect_flutter_v2
sha256: "60f56018f69401799dfcfdee2d5112132aa922eea613018155132b87849ea1b5"
sha256: a3654aa71221f15be6b20663759fad3eb3a37dc486f72860d7eb69c1e39d682b
url: "https://pub.dev"
source: hosted
version: "2.1.11"
version: "2.1.12"
watcher:
dependency: transitive
description:
Expand Down Expand Up @@ -1128,10 +1104,10 @@ packages:
dependency: transitive
description:
name: web_socket_channel
sha256: d88238e5eac9a42bb43ca4e721edba3c08c6354d4a53063afaa568516217621b
sha256: cc1f6c632a248278a091fd7d9a68f624906830f7c1c5aa66503fae0804633e1c
url: "https://pub.dev"
source: hosted
version: "2.4.0"
version: "2.4.2"
win32:
dependency: transitive
description:
Expand Down
9 changes: 2 additions & 7 deletions example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,11 @@ environment:
dependencies:
flutter:
sdk: flutter
web3modal_flutter:
path: ../
cupertino_icons: ^1.0.2
get_it: ^7.6.0
logger: ^2.0.2+1
fl_toast: ^3.1.0
smooth_page_indicator: ^1.1.0
universal_io: ^2.2.2
json_annotation: ^4.8.1
shared_preferences: ^2.2.0
web3modal_flutter:
path: ../

dev_dependencies:
flutter_test:
Expand Down
1 change: 0 additions & 1 deletion lib/pages/get_wallet_page.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import 'dart:io';
import 'dart:math';

import 'package:flutter/material.dart';
Expand Down
3 changes: 1 addition & 2 deletions lib/pages/qr_code_page.dart
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import 'package:event/event.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';

import 'package:web3modal_flutter/constants/key_constants.dart';
import 'package:web3modal_flutter/services/w3m_service/i_w3m_service.dart';
import 'package:web3modal_flutter/theme/constants.dart';
import 'package:web3modal_flutter/theme/w3m_theme.dart';
import 'package:web3modal_flutter/web3modal_flutter.dart';
import 'package:web3modal_flutter/widgets/buttons/simple_icon_button.dart';
import 'package:web3modal_flutter/widgets/w3m_qr_code.dart';
import 'package:web3modal_flutter/widgets/miscellaneous/responsive_container.dart';
Expand Down
1 change: 0 additions & 1 deletion lib/services/coinbase_service/coinbase_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import 'dart:convert';

import 'package:flutter/foundation.dart';

import 'package:event/event.dart';
import 'package:flutter/services.dart';
import 'package:web3modal_flutter/services/coinbase_service/i_coinbase_service.dart';
import 'package:web3modal_flutter/services/coinbase_service/models/coinbase_events.dart';
Expand Down
1 change: 0 additions & 1 deletion lib/services/coinbase_service/i_coinbase_service.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import 'package:event/event.dart';
import 'package:web3modal_flutter/services/coinbase_service/models/coinbase_events.dart';
import 'package:web3modal_flutter/web3modal_flutter.dart';

Expand Down
2 changes: 1 addition & 1 deletion lib/services/coinbase_service/models/coinbase_events.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:event/event.dart';
import 'package:web3modal_flutter/web3modal_flutter.dart';
import 'package:web3modal_flutter/services/coinbase_service/models/coinbase_data.dart';

class CoinbaseConnectEvent implements EventArgs {
Expand Down
1 change: 0 additions & 1 deletion lib/services/explorer_service/explorer_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import 'dart:math';
import 'package:collection/collection.dart';
import 'package:flutter/foundation.dart';
import 'package:http/http.dart' as http;
import 'package:universal_io/io.dart';
import 'package:web3modal_flutter/services/coinbase_service/coinbase_service.dart';
import 'package:web3modal_flutter/services/explorer_service/models/redirect.dart';
import 'package:web3modal_flutter/utils/debouncer.dart';
Expand Down
2 changes: 1 addition & 1 deletion lib/services/ledger_service/ledger_service.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'package:http/http.dart';
import 'package:web3dart/web3dart.dart';
import 'package:web3modal_flutter/services/ledger_service/i_ledger_service.dart';
import 'package:web3modal_flutter/web3modal_flutter.dart';

class LedgerService extends ILedgerService {
@override
Expand Down
2 changes: 1 addition & 1 deletion lib/services/storage_service/storage_service.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'package:shared_preferences/shared_preferences.dart';
import 'package:web3modal_flutter/constants/string_constants.dart';
import 'package:web3modal_flutter/services/storage_service/i_storage_service.dart';
import 'package:web3modal_flutter/web3modal_flutter.dart';

class StorageService implements IStorageService {
SharedPreferences? _prefs;
Expand Down
1 change: 0 additions & 1 deletion lib/services/w3m_service/i_w3m_service.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import 'package:event/event.dart';
import 'package:flutter/material.dart';
import 'package:web3modal_flutter/services/coinbase_service/coinbase_service.dart';
import 'package:web3modal_flutter/services/explorer_service/models/redirect.dart';
Expand Down
1 change: 0 additions & 1 deletion lib/services/w3m_service/w3m_service.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import 'dart:async';
import 'dart:convert';

import 'package:event/event.dart';
import 'package:flutter/material.dart';
import 'package:url_launcher/url_launcher.dart';

Expand Down
2 changes: 1 addition & 1 deletion lib/utils/platform/platform_utils.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'package:flutter/material.dart';
import 'package:universal_io/io.dart';
import 'package:flutter/foundation.dart' show kIsWeb;
import 'package:web3modal_flutter/utils/platform/i_platform_utils.dart';
import 'package:web3modal_flutter/web3modal_flutter.dart';

class PlatformUtils extends IPlatformUtils {
@override
Expand Down
1 change: 0 additions & 1 deletion lib/utils/w3m_logger.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import 'package:flutter/foundation.dart';
import 'package:logger/logger.dart';
import 'package:web3modal_flutter/web3modal_flutter.dart';

class W3MLoggerUtil {
Expand Down
2 changes: 0 additions & 2 deletions lib/web3modal_flutter.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ library web3modal_flutter;

/// libraries
export 'package:walletconnect_flutter_v2/walletconnect_flutter_v2.dart';
export 'package:web3dart/web3dart.dart';
export 'package:web3dart/crypto.dart';

/// Models
export 'models/w3m_chain_info.dart';
Expand Down
2 changes: 0 additions & 2 deletions lib/widgets/lists/list_items/download_wallet_item.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import 'dart:io';

import 'package:flutter/material.dart';
import 'package:url_launcher/url_launcher_string.dart';

Expand Down
24 changes: 12 additions & 12 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ packages:
source: hosted
version: "1.0.2"
event:
dependency: "direct main"
dependency: transitive
description:
name: event
sha256: eb4814de94cbf6a10da9c4f652bc654087d7066e33566b5036822e6c0b24befb
Expand Down Expand Up @@ -473,7 +473,7 @@ packages:
source: hosted
version: "3.0.0"
logger:
dependency: "direct main"
dependency: transitive
description:
name: logger
sha256: "6bbb9d6f7056729537a4309bda2e74e18e5d9f14302489cc1e93f33b3fe32cac"
Expand Down Expand Up @@ -521,7 +521,7 @@ packages:
source: hosted
version: "1.0.4"
mockito:
dependency: "direct main"
dependency: "direct dev"
description:
name: mockito
sha256: "4b693867cee1853c9d1d7ecc1871f27f39b2ef2c13c0d8d8507dfe5bebd8aaf1"
Expand Down Expand Up @@ -556,10 +556,10 @@ packages:
dependency: transitive
description:
name: package_info_plus
sha256: "7e76fad405b3e4016cd39d08f455a4eb5199723cf594cd1b8916d47140d93017"
sha256: "88bc797f44a94814f2213db1c9bd5badebafdfb8290ca9f78d4b9ee2a3db4d79"
url: "https://pub.dev"
source: hosted
version: "4.2.0"
version: "5.0.1"
package_info_plus_platform_interface:
dependency: transitive
description:
Expand Down Expand Up @@ -721,7 +721,7 @@ packages:
source: hosted
version: "1.1.0"
shared_preferences:
dependency: "direct main"
dependency: transitive
description:
name: shared_preferences
sha256: "81429e4481e1ccfb51ede496e916348668fd0921627779233bd24cc3ff6abd02"
Expand Down Expand Up @@ -926,7 +926,7 @@ packages:
source: hosted
version: "1.3.2"
universal_io:
dependency: "direct main"
dependency: transitive
description:
name: universal_io
sha256: "1722b2dcc462b4b2f3ee7d188dad008b6eb4c40bbd03a3de451d82c78bba9aad"
Expand Down Expand Up @@ -1049,10 +1049,10 @@ packages:
dependency: "direct main"
description:
name: walletconnect_flutter_v2
sha256: "60f56018f69401799dfcfdee2d5112132aa922eea613018155132b87849ea1b5"
sha256: a3654aa71221f15be6b20663759fad3eb3a37dc486f72860d7eb69c1e39d682b
url: "https://pub.dev"
source: hosted
version: "2.1.11"
version: "2.1.12"
watcher:
dependency: transitive
description:
Expand All @@ -1070,7 +1070,7 @@ packages:
source: hosted
version: "0.3.0"
web3dart:
dependency: "direct main"
dependency: transitive
description:
name: web3dart
sha256: "31f93cf84b8c874d7ffb363959249d7e479115fe12cf46f30b037dcad6750b22"
Expand All @@ -1081,10 +1081,10 @@ packages:
dependency: transitive
description:
name: web_socket_channel
sha256: d88238e5eac9a42bb43ca4e721edba3c08c6354d4a53063afaa568516217621b
sha256: cc1f6c632a248278a091fd7d9a68f624906830f7c1c5aa66503fae0804633e1c
url: "https://pub.dev"
source: hosted
version: "2.4.0"
version: "2.4.2"
win32:
dependency: transitive
description:
Expand Down
9 changes: 2 additions & 7 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,16 @@ dependencies:
collection: ^1.17.2
cupertino_icons: ^1.0.2
custom_sliding_segmented_control: ^1.8.1
event: ^2.1.2
flutter:
sdk: flutter
flutter_svg: ^2.0.9
freezed_annotation: ^2.2.0
http: ^1.1.2
json_annotation: ^4.8.1
logger: ^2.0.2+1
mockito: ^5.4.3
qr_flutter_wc: ^0.0.3
shared_preferences: ^2.2.2
shimmer: ^3.0.0
universal_io: ^2.2.0
url_launcher: ^6.2.2
walletconnect_flutter_v2: ^2.1.11
web3dart: ^2.7.2
walletconnect_flutter_v2: ^2.1.12

dev_dependencies:
build_runner: ^2.4.7
Expand All @@ -38,6 +32,7 @@ dev_dependencies:
freezed: ^2.4.5
json_serializable: ^6.7.0
lints: ^3.0.0
mockito: ^5.4.3
network_image_mock: ^2.1.1

flutter:
Expand Down
Loading

0 comments on commit 9bb7c63

Please sign in to comment.