40 Commits

Author SHA1 Message Date
Jonah Williams
67f25caf72
Remove package:typed_data from package:flutter dependencies (#99604) 2022-03-07 10:41:21 -08:00
Ian Hickson
61a0add286
Enable avoid_redundant_argument_values lint (#91409) (#91462) 2021-10-08 09:25:14 -07:00
Zachary Anderson
b9d2177da0
Revert "Enable avoid_redundant_argument_values lint (#91409)" (#91461)
This reverts commit 5fd259be244244e14ff87fee9b6a721625f952cd.
2021-10-07 21:11:07 -07:00
Ian Hickson
5fd259be24
Enable avoid_redundant_argument_values lint (#91409) 2021-10-07 20:13:02 -07:00
Jeff Ward
841beff520
Support Float32Lists in StandardMessageCodec (#72613) (#83318) 2021-07-20 14:31:07 -07:00
Viren Khatri
0581c05c88
📝 Added tests for toString to increase coverage (#82235) 2021-05-11 14:44:02 -07:00
Alexandre Ardhuin
c78c913343
add missing trailing commas (#81042) 2021-04-23 21:00:42 +02:00
Ian Hickson
f3c25fa07a
Align more closely with package:test (#77118) (#78343) 2021-03-16 13:58:02 -07:00
Zachary Anderson
e7e1a04aa3
Revert "Align more closely with package:test (#77118)" (#78329)
This reverts commit 0cbe597540f6b51ab7157ab8747906e9923b79e4.
2021-03-16 09:26:34 -07:00
Ian Hickson
0cbe597540
Align more closely with package:test (#77118) 2021-03-15 16:28:02 -07:00
Konstantin Scheglov
3e7b208512
Fix UNNECESSARY_TYPE_CHECK_TRUE hints. (#77753) 2021-03-10 17:55:02 -08:00
Sam Rawlins
c4400008b2
Remove "unnecessary" imports in test/services (#75707) 2021-02-16 16:46:03 -08:00
Shi-Hao Hong
7cb2834a8b
StandardMethodCodec.decodeEnvelope should allow null error message (#71807)
* StandardMethodCodec.decodeEnvelope should allow null error message
2020-12-08 08:04:30 +08:00
Greg Spencer
58287aceef
Convert services tests to NNBD (#62694)
This converts the packages/flutter/test/services directory to NNBD, now that the services package is converted.

I changed the signature of checkMessageHandler and checkMockMessageHandler on BinaryMessenger to take a nullable handler, since the tests wanted to check to make sure a handler wasn't set, and that functionality no longer works if the handler is non-nullable.
2020-10-08 13:46:44 -07:00
LI DONGZE
abbd5b149a
Add native stacktrace field for PlatformException. (#64199) 2020-08-20 15:01:06 -07:00
Jonah Williams
9e162cb310
Revert "Add native stacktrace field for PlatformException (#63502)" (#63705)
This reverts commit c67eafa87d2de441a195a8aa46c92eac37ce4616.
2020-08-13 14:03:11 -07:00
LI DONGZE
c67eafa87d
Add native stacktrace field for PlatformException (#63502)
* Add native stacktrace field for PlatformException

* Mute the readValue check for stacktrace.

* polish

* Add unit test and further polish

* Added more comments

* remove unnecessary import

* fill in stacktrace to JSONMethodCodec and fix tests

* fix style

* Fix format

* Remove unnecessary TODO since not all explicitly declared errors have stacktrace in it from native side.

* Handle case for exception without stacktrace on jsonMethodCodec

* Add more unit tests

* format test

Co-authored-by: Ben Li <libe@google.com>
2020-08-13 11:43:50 -07:00
Jonah Williams
f4e442fe80
Revert "Add native stacktrace field for PlatformException (#62828)" (#63431)
This reverts commit 74b5051cd67aeaa1344a31f7a731e619ec82168b.
2020-08-10 15:16:29 -07:00
LI DONGZE
74b5051cd6
Add native stacktrace field for PlatformException (#62828)
* Add native stacktrace field for PlatformException

* Mute the readValue check for stacktrace.

* polish

* Add unit test and further polish

* Added more comments

* remove unnecessary import

* fill in stacktrace to JSONMethodCodec and fix tests

Co-authored-by: Ben Li <libe@google.com>
2020-08-10 13:29:58 -07:00
Alexandre Ardhuin
4d7525f05c
Opt out nnbd in packages/flutter (#59186)
* add language version 2.8 in packages/flutter

* enable non-nullable analyzer flag
2020-06-11 14:11:30 +02:00
Ian Hickson
449f4a6673
License update (#45373)
* Update project.pbxproj files to say Flutter rather than Chromium

Also, the templates now have an empty organization so that we don't cause people to give their apps a Flutter copyright.

* Update the copyright notice checker to require a standard notice on all files

* Update copyrights on Dart files. (This was a mechanical commit.)

* Fix weird license headers on Dart files that deviate from our conventions; relicense Shrine.

Some were already marked "The Flutter Authors", not clear why. Their
dates have been normalized. Some were missing the blank line after the
license. Some were randomly different in trivial ways for no apparent
reason (e.g. missing the trailing period).

* Clean up the copyrights in non-Dart files. (Manual edits.)

Also, make sure templates don't have copyrights.

* Fix some more ORGANIZATIONNAMEs
2019-11-27 15:04:02 -08:00
Alexandre Ardhuin
f11c34109c
fix bad indentations(mainly around collection literals) (#41355) 2019-09-27 10:46:45 +02:00
Yegor
ecd89fb7ad
fix message codecs for the Web (#36549) 2019-07-19 13:49:15 -07:00
Alexandre Ardhuin
919dcf53f3
enable lints prefer_spread_collections and prefer_inlined_adds (#35189) 2019-06-27 21:23:16 +02:00
Jonah Williams
c88f64ed50
Compatibility pass on flutter/services tests for JavaScript compilation. (4) (#33354) 2019-06-10 15:46:36 -07:00
Alexandre Ardhuin
bfa1d25bf9
some formatting of map, parameters and spaces (#29760) 2019-03-23 00:02:21 +01:00
Alexandre Ardhuin
387f885481
Add missing trailing commas (#28673)
* add trailing commas on list/map/parameters

* add trailing commas on Invocation with nb of arg>1

* add commas for widget containing widgets

* add trailing commas if instantiation contains trailing comma

* revert bad change
2019-03-01 08:17:55 +01:00
Alexandre Ardhuin
d927c93310
Unnecessary new (#20138)
* enable lint unnecessary_new

* fix tests

* fix tests

* fix tests
2018-09-12 08:29:29 +02:00
amirh
510c0eeaff
Don't ignore the ByteData buffer offset in StringCodec.decode(). (#21011) 2018-08-24 17:19:30 -07:00
Ian Hickson
686d8f8a22 Shim package:test to avoid matcher issues (#20602)
* Upgrade everything except matcher.
* Roll matcher (and test)
* Adjust tests that depend on flutter:test directly to depend on a shim
* Require use of package:test shim and remove other references to package:test
2018-08-14 20:33:58 -07:00
Alexandre Ardhuin
eda03e2586
re-re-enable lint unnecessary_const (#20103) 2018-08-02 12:02:32 +02:00
Todd Volkert
00aac68e2d
Revert flutter/flutter#19592 (#19861)
It was causing problems rolling Flutter into Fuchsia
2018-07-27 08:44:39 -07:00
Alexandre Ardhuin
27018359d2
re-enable lint unnecessary_const (#19592)
* re-enable lint unnecessary_const

* remove trailling whitespaces

* remove unnecessary const (after merge)
2018-07-23 08:31:48 +02:00
Ian Hickson
f630f90d6d
Revert "enable lint unnecessary_const (#19342)" (#19423)
This reverts commit cc1cf13eec6752af992d3db0265cf04cc90bfd13.
2018-07-16 13:30:27 -07:00
Alexandre Ardhuin
cc1cf13eec
enable lint unnecessary_const (#19342) 2018-07-16 21:43:48 +02:00
Jason Simmons
466d15433f
Use Dart 2 camel case constants (#15360) 2018-03-12 11:06:32 -07:00
Alexander Markov
54052048f2
Roll engine with Dart 2.0 fixed-size integers (#13856)
* Roll engine to 37789650cb1254199426e5de5cc66c2ba63cbaf2
* Fix large integer literals in packages/flutter/test/services/message_codecs_test.dart
2018-01-02 17:22:46 -08:00
Jason Simmons
6965312822 Align doubles to 8 bytes in the StandardMessageCodec (#10758)
See https://github.com/flutter/flutter/issues/10701
2017-06-16 10:05:18 -07:00
Mikkel Nygaard Ravn
789c2f1f7a Fixed endianness unit test (#8753) 2017-03-14 01:01:49 +01:00
Mikkel Nygaard Ravn
ddaba8992f PlatformMessageChannel: code cleanup, bugfixes, and unit tests (#8509) 2017-03-02 07:24:18 +01:00