Skip to content

Commit 22d6751

Browse files
authored
Apply dart format (#160)
* Apply dart format * Fix lints and check lints in CI
1 parent 923ac08 commit 22d6751

30 files changed

+299
-214
lines changed

Diff for: .github/workflows/test.yml

+12
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,18 @@ env:
99
PUB_ENVIRONMENT: bot.github
1010

1111
jobs:
12+
lints:
13+
name: Format + Lints
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
- uses: subosito/flutter-action@v2
18+
with:
19+
channel: 'stable'
20+
cache: true
21+
- run: flutter pub get
22+
- run: dart format --output none --set-exit-if-changed .
23+
- run: dart analyze --fatal-warnings .
1224
linux:
1325
name: webcrypto on Linux desktop / Chrome / Firefox
1426
runs-on: ubuntu-latest

Diff for: bin/setup.dart

+1-2
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,7 @@ void main() async {
6363
'cmake',
6464
[
6565
'-S',
66-
Directory(_joinPaths(webcryptoRoot.toFilePath(), 'src'))
67-
.path,
66+
Directory(_joinPaths(webcryptoRoot.toFilePath(), 'src')).path,
6867
'-B',
6968
root.resolve('.dart_tool/webcrypto').toFilePath(),
7069
],

Diff for: example/pubspec.lock

+77-56
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,31 @@ packages:
55
dependency: transitive
66
description:
77
name: _fe_analyzer_shared
8-
sha256: "0b2f2bd91ba804e53a61d757b986f89f1f9eaed5b11e4b2f5a2468d86d6c9fc7"
8+
sha256: f256b0c0ba6c7577c15e2e4e114755640a875e885099367bf6e012b19314c834
99
url: "https://pub.dev"
1010
source: hosted
11-
version: "67.0.0"
11+
version: "72.0.0"
12+
_macros:
13+
dependency: transitive
14+
description: dart
15+
source: sdk
16+
version: "0.3.2"
1217
analyzer:
1318
dependency: transitive
1419
description:
1520
name: analyzer
16-
sha256: "37577842a27e4338429a1cbc32679d508836510b056f1eedf0c8d20e39c1383d"
21+
sha256: b652861553cd3990d8ed361f7979dc6d7053a9ac8843fa73820ab68ce5410139
1722
url: "https://pub.dev"
1823
source: hosted
19-
version: "6.4.1"
24+
version: "6.7.0"
2025
args:
2126
dependency: transitive
2227
description:
2328
name: args
24-
sha256: "7cf60b9f0cc88203c5a190b4cd62a99feea42759a7fa695010eb5de1c0b2252a"
29+
sha256: bf9f5caeea8d8fe6721a9c358dd8a5c1947b27f1cfaa18b39c301273594919e6
2530
url: "https://pub.dev"
2631
source: hosted
27-
version: "2.5.0"
32+
version: "2.6.0"
2833
async:
2934
dependency: transitive
3035
description:
@@ -69,26 +74,26 @@ packages:
6974
dependency: "direct main"
7075
description:
7176
name: convert
72-
sha256: "0f08b14755d163f6e2134cb58222dd25ea2a2ee8a195e53983d57c075324d592"
77+
sha256: b30acd5944035672bc15c6b7a8b47d773e41e2f17de064350988c5d02adb1c68
7378
url: "https://pub.dev"
7479
source: hosted
75-
version: "3.1.1"
80+
version: "3.1.2"
7681
coverage:
7782
dependency: transitive
7883
description:
7984
name: coverage
80-
sha256: "8acabb8306b57a409bf4c83522065672ee13179297a6bb0cb9ead73948df7c76"
85+
sha256: "88b0fddbe4c92910fefc09cc0248f5e7f0cd23e450ded4c28f16ab8ee8f83268"
8186
url: "https://pub.dev"
8287
source: hosted
83-
version: "1.7.2"
88+
version: "1.10.0"
8489
crypto:
8590
dependency: transitive
8691
description:
8792
name: crypto
88-
sha256: ff625774173754681d66daaf4a448684fb04b78f902da9cb3d308c19cc5e8bab
93+
sha256: "1e445881f28f22d6140f181e07737b22f1e099a5e1ff94b0af2f9e4a463f4855"
8994
url: "https://pub.dev"
9095
source: hosted
91-
version: "3.0.3"
96+
version: "3.0.6"
9297
cupertino_icons:
9398
dependency: "direct main"
9499
description:
@@ -109,10 +114,10 @@ packages:
109114
dependency: transitive
110115
description:
111116
name: ffi
112-
sha256: "493f37e7df1804778ff3a53bd691d8692ddf69702cf4c1c1096a2e41b4779e21"
117+
sha256: "16ed7b077ef01ad6170a3d0c57caa4a112a38d7a2ed5602e0aca9ca6f3d98da6"
113118
url: "https://pub.dev"
114119
source: hosted
115-
version: "2.1.2"
120+
version: "2.1.3"
116121
file:
117122
dependency: transitive
118123
description:
@@ -145,10 +150,10 @@ packages:
145150
dependency: transitive
146151
description:
147152
name: frontend_server_client
148-
sha256: "408e3ca148b31c20282ad6f37ebfa6f4bdc8fede5b74bc2f08d9d92b55db3612"
153+
sha256: f64a0333a82f30b0cca061bc3d143813a486dc086b574bfb233b7c1372427694
149154
url: "https://pub.dev"
150155
source: hosted
151-
version: "3.2.0"
156+
version: "4.0.0"
152157
fuchsia_remote_debug_protocol:
153158
dependency: transitive
154159
description: flutter
@@ -195,42 +200,50 @@ packages:
195200
dependency: transitive
196201
description:
197202
name: js
198-
sha256: f2c445dce49627136094980615a031419f7f3eb393237e4ecd97ac15dea343f3
203+
sha256: c1b2e9b5ea78c45e1a0788d29606ba27dc5f71f019f32ca5140f61ef071838cf
199204
url: "https://pub.dev"
200205
source: hosted
201-
version: "0.6.7"
206+
version: "0.7.1"
202207
leak_tracker:
203208
dependency: transitive
204209
description:
205210
name: leak_tracker
206-
sha256: "78eb209deea09858f5269f5a5b02be4049535f568c07b275096836f01ea323fa"
211+
sha256: "3f87a60e8c63aecc975dda1ceedbc8f24de75f09e4856ea27daf8958f2f0ce05"
207212
url: "https://pub.dev"
208213
source: hosted
209-
version: "10.0.0"
214+
version: "10.0.5"
210215
leak_tracker_flutter_testing:
211216
dependency: transitive
212217
description:
213218
name: leak_tracker_flutter_testing
214-
sha256: b46c5e37c19120a8a01918cfaf293547f47269f7cb4b0058f21531c2465d6ef0
219+
sha256: "932549fb305594d82d7183ecd9fa93463e9914e1b67cacc34bc40906594a1806"
215220
url: "https://pub.dev"
216221
source: hosted
217-
version: "2.0.1"
222+
version: "3.0.5"
218223
leak_tracker_testing:
219224
dependency: transitive
220225
description:
221226
name: leak_tracker_testing
222-
sha256: a597f72a664dbd293f3bfc51f9ba69816f84dcd403cdac7066cb3f6003f3ab47
227+
sha256: "6ba465d5d76e67ddf503e1161d1f4a6bc42306f9d66ca1e8f079a47290fb06d3"
223228
url: "https://pub.dev"
224229
source: hosted
225-
version: "2.0.1"
230+
version: "3.0.1"
226231
logging:
227232
dependency: transitive
228233
description:
229234
name: logging
230-
sha256: "623a88c9594aa774443aa3eb2d41807a48486b5613e67599fb4c41c0ad47c340"
235+
sha256: c8245ada5f1717ed44271ed1c26b8ce85ca3228fd2ffdb75468ab01979309d61
231236
url: "https://pub.dev"
232237
source: hosted
233-
version: "1.2.0"
238+
version: "1.3.0"
239+
macros:
240+
dependency: transitive
241+
description:
242+
name: macros
243+
sha256: "0acaed5d6b7eab89f63350bccd82119e6c602df0f391260d0e32b5e23db79536"
244+
url: "https://pub.dev"
245+
source: hosted
246+
version: "0.1.2-main.4"
234247
matcher:
235248
dependency: transitive
236249
description:
@@ -243,26 +256,26 @@ packages:
243256
dependency: transitive
244257
description:
245258
name: material_color_utilities
246-
sha256: "0e0a020085b65b6083975e499759762399b4475f766c21668c4ecca34ea74e5a"
259+
sha256: f7142bb1154231d7ea5f96bc7bde4bda2a0945d2806bb11670e30b850d56bdec
247260
url: "https://pub.dev"
248261
source: hosted
249-
version: "0.8.0"
262+
version: "0.11.1"
250263
meta:
251264
dependency: transitive
252265
description:
253266
name: meta
254-
sha256: d584fa6707a52763a52446f02cc621b077888fb63b93bbcb1143a7be5a0c0c04
267+
sha256: bdb68674043280c3428e9ec998512fb681678676b3c54e773629ffe74419f8c7
255268
url: "https://pub.dev"
256269
source: hosted
257-
version: "1.11.0"
270+
version: "1.15.0"
258271
mime:
259272
dependency: transitive
260273
description:
261274
name: mime
262-
sha256: "2e123074287cc9fd6c09de8336dae606d1ddb88d9ac47358826db698c176a1f2"
275+
sha256: "41a20518f0cb1256669420fdba0cd90d21561e560ac240f26ef8322e45bb7ed6"
263276
url: "https://pub.dev"
264277
source: hosted
265-
version: "1.0.5"
278+
version: "2.0.0"
266279
node_preamble:
267280
dependency: transitive
268281
description:
@@ -291,10 +304,10 @@ packages:
291304
dependency: transitive
292305
description:
293306
name: platform
294-
sha256: "12220bb4b65720483f8fa9450b4332347737cf8213dd2840d8b2c823e47243ec"
307+
sha256: "9b71283fc13df574056616011fb138fd3b793ea47cc509c189a6c3fa5f8a1a65"
295308
url: "https://pub.dev"
296309
source: hosted
297-
version: "3.1.4"
310+
version: "3.1.5"
298311
pool:
299312
dependency: transitive
300313
description:
@@ -339,18 +352,18 @@ packages:
339352
dependency: transitive
340353
description:
341354
name: shelf_static
342-
sha256: a41d3f53c4adf0f57480578c1d61d90342cd617de7fc8077b1304643c2d85c1e
355+
sha256: c87c3875f91262785dade62d135760c2c69cb217ac759485334c5857ad89f6e3
343356
url: "https://pub.dev"
344357
source: hosted
345-
version: "1.1.2"
358+
version: "1.1.3"
346359
shelf_web_socket:
347360
dependency: transitive
348361
description:
349362
name: shelf_web_socket
350-
sha256: "9ca081be41c60190ebcb4766b2486a7d50261db7bd0f5d9615f2d653637a84c1"
363+
sha256: "073c147238594ecd0d193f3456a5fe91c4b0abbcc68bf5cd95b36c4e194ac611"
351364
url: "https://pub.dev"
352365
source: hosted
353-
version: "1.0.4"
366+
version: "2.0.0"
354367
sky_engine:
355368
dependency: transitive
356369
description: flutter
@@ -360,10 +373,10 @@ packages:
360373
dependency: transitive
361374
description:
362375
name: source_map_stack_trace
363-
sha256: "84cf769ad83aa6bb61e0aa5a18e53aea683395f196a6f39c4c881fb90ed4f7ae"
376+
sha256: c0713a43e323c3302c2abe2a1cc89aa057a387101ebd280371d6a6c9fa68516b
364377
url: "https://pub.dev"
365378
source: hosted
366-
version: "2.1.1"
379+
version: "2.1.2"
367380
source_maps:
368381
dependency: transitive
369382
description:
@@ -424,34 +437,34 @@ packages:
424437
dependency: "direct dev"
425438
description:
426439
name: test
427-
sha256: a1f7595805820fcc05e5c52e3a231aedd0b72972cb333e8c738a8b1239448b6f
440+
sha256: "7ee44229615f8f642b68120165ae4c2a75fe77ae2065b1e55ae4711f6cf0899e"
428441
url: "https://pub.dev"
429442
source: hosted
430-
version: "1.24.9"
443+
version: "1.25.7"
431444
test_api:
432445
dependency: transitive
433446
description:
434447
name: test_api
435-
sha256: "5c2f730018264d276c20e4f1503fd1308dfbbae39ec8ee63c5236311ac06954b"
448+
sha256: "5b8a98dafc4d5c4c9c72d8b31ab2b23fc13422348d2997120294d3bac86b4ddb"
436449
url: "https://pub.dev"
437450
source: hosted
438-
version: "0.6.1"
451+
version: "0.7.2"
439452
test_core:
440453
dependency: transitive
441454
description:
442455
name: test_core
443-
sha256: a757b14fc47507060a162cc2530d9a4a2f92f5100a952c7443b5cad5ef5b106a
456+
sha256: "55ea5a652e38a1dfb32943a7973f3681a60f872f8c3a05a14664ad54ef9c6696"
444457
url: "https://pub.dev"
445458
source: hosted
446-
version: "0.5.9"
459+
version: "0.6.4"
447460
typed_data:
448461
dependency: transitive
449462
description:
450463
name: typed_data
451-
sha256: facc8d6582f16042dd49f2463ff1bd6e2c9ef9f3d5da3d9b087e244a7b564b3c
464+
sha256: f9049c039ebfeb4cf7a7104a675823cd72dba8297f264b6637062516699fa006
452465
url: "https://pub.dev"
453466
source: hosted
454-
version: "1.3.2"
467+
version: "1.4.0"
455468
vector_math:
456469
dependency: transitive
457470
description:
@@ -464,10 +477,10 @@ packages:
464477
dependency: transitive
465478
description:
466479
name: vm_service
467-
sha256: b3d56ff4341b8f182b96aceb2fa20e3dcb336b9f867bc0eafc0de10f1048e957
480+
sha256: "5c5f338a667b4c644744b661f309fb8080bb94b18a7e91ef1dbd343bed00ed6d"
468481
url: "https://pub.dev"
469482
source: hosted
470-
version: "13.0.0"
483+
version: "14.2.5"
471484
watcher:
472485
dependency: transitive
473486
description:
@@ -480,25 +493,33 @@ packages:
480493
dependency: transitive
481494
description:
482495
name: web
483-
sha256: "97da13628db363c635202ad97068d47c5b8aa555808e7a9411963c533b449b27"
496+
sha256: cd3543bd5798f6ad290ea73d210f423502e71900302dde696f8bff84bf89a1cb
497+
url: "https://pub.dev"
498+
source: hosted
499+
version: "1.1.0"
500+
web_socket:
501+
dependency: transitive
502+
description:
503+
name: web_socket
504+
sha256: "3c12d96c0c9a4eec095246debcea7b86c0324f22df69893d538fcc6f1b8cce83"
484505
url: "https://pub.dev"
485506
source: hosted
486-
version: "0.5.1"
507+
version: "0.1.6"
487508
web_socket_channel:
488509
dependency: transitive
489510
description:
490511
name: web_socket_channel
491-
sha256: "58c6666b342a38816b2e7e50ed0f1e261959630becd4c879c4f26bfa14aa5a42"
512+
sha256: "9f187088ed104edd8662ca07af4b124465893caf063ba29758f97af57e61da8f"
492513
url: "https://pub.dev"
493514
source: hosted
494-
version: "2.4.5"
515+
version: "3.0.1"
495516
webcrypto:
496517
dependency: "direct main"
497518
description:
498519
path: ".."
499520
relative: true
500521
source: path
501-
version: "0.5.6"
522+
version: "0.5.7"
502523
webdriver:
503524
dependency: transitive
504525
description:
@@ -524,5 +545,5 @@ packages:
524545
source: hosted
525546
version: "3.1.2"
526547
sdks:
527-
dart: ">=3.3.0 <4.0.0"
548+
dart: ">=3.5.0 <4.0.0"
528549
flutter: ">=3.19.0"

Diff for: example/test/widget_test.dart

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ void main() {
3232
// Verify that platform version is retrieved.
3333
expect(
3434
find.byWidgetPredicate(
35-
(Widget widget) => widget is Text &&
36-
widget.data.startsWith('Running on:'),
35+
(Widget widget) =>
36+
widget is Text && widget.data.startsWith('Running on:'),
3737
),
3838
findsOneWidget,
3939
);

Diff for: lib/src/impl_ffi/impl_ffi.aescbc.dart

+2-2
Original file line numberDiff line numberDiff line change
@@ -104,12 +104,12 @@ final class _StaticAesCbcSecretKeyImpl implements StaticAesCbcSecretKeyImpl {
104104
}
105105

106106
@override
107-
Future<AesCbcSecretKeyImpl> importJsonWebKey(Map<String, dynamic> jwk) async {
107+
Future<AesCbcSecretKeyImpl> importJsonWebKey(Map<String, dynamic> jwk) async {
108108
return await aesCbc_importJsonWebKey(jwk);
109109
}
110110

111111
@override
112-
Future<AesCbcSecretKeyImpl> generateKey(int length) async {
112+
Future<AesCbcSecretKeyImpl> generateKey(int length) async {
113113
return await aesCbc_generateKey(length);
114114
}
115115
}

0 commit comments

Comments
 (0)