Skip to content

Commit 29ee41c

Browse files
authored
➖ Thin & upgrade dependencies (#409)
* ➖ Thin & upgrade dependencies * 🚨 `flutter_lints` -> `lints`
1 parent 5d1bef6 commit 29ee41c

File tree

17 files changed

+56
-601
lines changed

17 files changed

+56
-601
lines changed

.gitignore

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ android/.idea/
3333

3434
# Flutter/Dart/Pub related
3535
# Libraries should not include pubspec.lock, per https://dart.dev/guides/libraries/private-files#pubspeclock.
36-
pubspec.lock
37-
pubspec_overrides.yaml
36+
**/pubspec.lock
37+
**/pubspec_overrides.yaml
3838
**/doc/api/
3939
.dart_tool/
4040
.flutter-plugins
@@ -45,7 +45,6 @@ pubspec_overrides.yaml
4545
**/build/
4646
generated_plugin_registrant.dart
4747
!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
48-
!/pubspec.lock
4948

5049
# Fastlane related
5150
android/fastlane/report.xml

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
<a href="https://codecov.io/gh/FlutterGen/flutter_gen">
1414
<img src="https://codecov.io/gh/FlutterGen/flutter_gen/branch/main/graph/badge.svg" />
1515
</a>
16-
<a href="https://pub.dev/packages/flutter_lints">
17-
<img src="https://img.shields.io/badge/style-flutter__lints-40c4ff.svg" />
16+
<a href="https://pub.dev/packages/lints">
17+
<img src="https://img.shields.io/badge/style-lints-40c4ff.svg" />
1818
</a>
1919
</p>
2020

analysis_options.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# See: https://dart-lang.github.io/linter/lints/
2-
include: package:flutter_lints/flutter.yaml
2+
include: package:lints/recommended.yaml
33

44
analyzer:
55
exclude:

examples/example/android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@ subprojects {
3030
project.evaluationDependsOn(':app')
3131
}
3232

33-
task clean(type: Delete) {
33+
tasks.register("clean", Delete) {
3434
delete rootProject.buildDir
3535
}

examples/example/lib/firebase_options.dart

Lines changed: 0 additions & 70 deletions
This file was deleted.

examples/example/lib/json_serializable_sample.dart

Lines changed: 0 additions & 13 deletions
This file was deleted.

examples/example/lib/json_serializable_sample.g.dart

Lines changed: 0 additions & 21 deletions
This file was deleted.

examples/example/macos/Flutter/GeneratedPluginRegistrant.swift

Lines changed: 2 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -5,36 +5,8 @@
55
import FlutterMacOS
66
import Foundation
77

8-
import connectivity_plus
9-
import device_info_plus_macos
10-
import flutter_local_notifications
11-
import flutter_secure_storage_macos
12-
import geolocator_apple
13-
import in_app_review
14-
import package_info_plus_macos
15-
import path_provider_foundation
16-
import sentry_flutter
17-
import share_plus_macos
18-
import shared_preferences_macos
19-
import sign_in_with_apple
20-
import sqflite
21-
import url_launcher_macos
22-
import wakelock_macos
8+
import rive_common
239

2410
func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
25-
ConnectivityPlugin.register(with: registry.registrar(forPlugin: "ConnectivityPlugin"))
26-
DeviceInfoPlusMacosPlugin.register(with: registry.registrar(forPlugin: "DeviceInfoPlusMacosPlugin"))
27-
FlutterLocalNotificationsPlugin.register(with: registry.registrar(forPlugin: "FlutterLocalNotificationsPlugin"))
28-
FlutterSecureStorageMacosPlugin.register(with: registry.registrar(forPlugin: "FlutterSecureStorageMacosPlugin"))
29-
GeolocatorPlugin.register(with: registry.registrar(forPlugin: "GeolocatorPlugin"))
30-
InAppReviewPlugin.register(with: registry.registrar(forPlugin: "InAppReviewPlugin"))
31-
FLTPackageInfoPlusPlugin.register(with: registry.registrar(forPlugin: "FLTPackageInfoPlusPlugin"))
32-
PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin"))
33-
SentryFlutterPlugin.register(with: registry.registrar(forPlugin: "SentryFlutterPlugin"))
34-
SharePlusMacosPlugin.register(with: registry.registrar(forPlugin: "SharePlusMacosPlugin"))
35-
SharedPreferencesPlugin.register(with: registry.registrar(forPlugin: "SharedPreferencesPlugin"))
36-
SignInWithApplePlugin.register(with: registry.registrar(forPlugin: "SignInWithApplePlugin"))
37-
SqflitePlugin.register(with: registry.registrar(forPlugin: "SqflitePlugin"))
38-
UrlLauncherPlugin.register(with: registry.registrar(forPlugin: "UrlLauncherPlugin"))
39-
WakelockMacosPlugin.register(with: registry.registrar(forPlugin: "WakelockMacosPlugin"))
11+
RivePlugin.register(with: registry.registrar(forPlugin: "RivePlugin"))
4012
}

examples/example/pubspec.yaml

Lines changed: 7 additions & 95 deletions
Original file line numberDiff line numberDiff line change
@@ -1,116 +1,28 @@
11
name: example
22
description: A sample project using FlutterGen.
3-
43
publish_to: 'none'
54

6-
version: 1.0.0+2
7-
85
environment:
9-
sdk: '>=2.16.0 <3.0.0'
6+
sdk: '>=2.16.0 <4.0.0'
107
flutter: '>=3.0.0'
118

129
dependencies:
1310
flutter:
1411
sdk: flutter
1512

16-
flutter_svg: 2.0.5
17-
flare_flutter: 3.0.2
18-
rive: 0.9.1
19-
lottie: 2.0.0
20-
21-
# Dependency check
22-
collection: 1.17.0
23-
crypto: 3.0.2
24-
glob: 2.0.2
25-
26-
# firebase_analytics: 9.1.8
27-
# firebase_core: 1.14.1
28-
# firebase_auth: 3.3.18
29-
# firebase_remote_config: 2.0.7
30-
# firebase_dynamic_links: 4.1.3
31-
# firebase_performance: 0.8.0+7
32-
# firebase_messaging: 11.2.13
33-
# firebase_app_installations: 0.1.0+8
34-
# is_firebase_test_lab_activated: 2.0.0
35-
sentry_flutter: 6.5.1
36-
sentry_dio: 6.5.1
37-
adjust_sdk: 4.29.2
38-
google_sign_in: 5.3.0
39-
twitter_login: 4.2.3
40-
flutter_facebook_auth: 4.3.3
41-
sign_in_with_apple: 3.3.0
42-
local_auth: 2.0.1
43-
flutter_hooks: 0.18.3
44-
hooks_riverpod: 1.0.3
45-
dio: 4.0.6
46-
connectivity_plus: 3.0.2
47-
ua_client_hints: 1.1.0
48-
retrofit: 3.0.1+1
49-
uuid: 3.0.6
50-
http_parser: 4.0.0
51-
protobuf: 2.0.1
52-
json_annotation: 4.8.0
53-
freezed_annotation: ^2.2.0
54-
intl: 0.17.0
55-
fixnum: 1.0.0
56-
shared_preferences: 2.0.13
57-
flutter_secure_storage: 5.0.2
58-
auto_route: 5.0.2
59-
gap: 2.0.0
60-
flutter_layout_grid: 2.0.0
61-
video_player: 2.4.0
62-
# audio_service: 0.18.4
63-
cached_network_image: 3.2.0
64-
flutter_cache_manager: 3.3.0
65-
visibility_detector: 0.3.3
66-
sliver_tools: 0.2.6
67-
dotted_border: 2.0.0+2
68-
scrollable_positioned_list: 0.2.3
69-
sticky_headers: 0.2.0
70-
infinite_listview: 1.1.0
71-
built_collection: 5.1.1
72-
dartx: 1.1.0
73-
rxdart: 0.27.3
74-
flutter_inappwebview: 5.4.3+7
75-
webview_flutter: 3.0.2
76-
uni_links: 0.5.1
77-
url_launcher: 6.1.0
78-
package_info_plus: 1.4.2
79-
native_device_orientation: 1.0.0
80-
wakelock: 0.6.1+1
81-
device_info_plus: 3.2.3
82-
playbook: 0.0.3
83-
image_picker: 0.8.5
84-
flutter_image_compress: 1.1.0
85-
image_editor: 1.0.2
86-
permission_handler: 9.2.0
87-
camera: 0.9.5
88-
flutter_local_notifications: 9.4.1
89-
logger: 1.1.0
90-
geolocator: 8.2.0
91-
geocoding: 2.0.4
92-
android_intent_plus: 3.1.1
93-
share_plus: 4.0.4
94-
# stack_trace: 1.10.0
95-
in_app_review: 2.0.4
96-
pull_to_refresh: 2.0.0
97-
xml: 6.2.2
13+
flutter_svg: ^2.0.0
14+
flare_flutter: ^3.0.0
15+
rive: ^0.11.0
16+
lottie: ^2.0.0
9817

9918
example_resources:
10019
path: ../example_resources
10120

10221
dev_dependencies:
103-
flutter_test:
104-
sdk: flutter
105-
integration_test:
106-
sdk: flutter
107-
build_runner: ^2.1.11
108-
freezed: ^2.3.2
109-
json_serializable: 6.6.1
22+
lints: ^2.0.0
23+
build_runner: ^2.0.0
11024
flutter_gen_runner: ^5.3.1
11125

112-
flutter_lints: ^2.0.1
113-
11426
flutter_gen:
11527
output: lib/gen/ # Optional (default: lib/gen/)
11628
line_length: 80 # Optional (default: 80)

examples/example_resources/pubspec.yaml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,22 @@
11
name: example_resources
22
description: A sample project using FlutterGen.
3-
43
publish_to: 'none'
54

6-
version: 1.0.0+2
7-
85
environment:
9-
sdk: '>=2.16.0 <3.0.0'
6+
sdk: '>=2.16.0 <4.0.0'
107
flutter: '>=3.0.0'
118

129
dependencies:
1310
flutter:
1411
sdk: flutter
1512

16-
flutter_svg: 2.0.5
17-
flare_flutter: 3.0.2
18-
rive: 0.9.1
19-
lottie: 2.0.0
13+
flutter_svg: ^2.0.0
14+
flare_flutter: ^3.0.0
15+
rive: ^0.11.0
16+
lottie: ^2.0.0
2017

2118
dev_dependencies:
22-
build_runner: ^2.1.11
19+
build_runner: ^2.0.0
2320
flutter_gen_runner: ^5.3.1
2421

2522
flutter_gen:

0 commit comments

Comments
 (0)