43 Commits

Author SHA1 Message Date
Zachary Anderson
f127ba2c14 Clean up engine repo Dart code (flutter/engine#45203)
Also adds a test to ensure that all packages are accounted for.
2023-08-29 11:19:42 -07:00
Tong Mu
c3925d9120 [Web, keyboard] Locale layout mapping (flutter/engine#34625)
* WIP

* WIP: Better debug log

* WIP

* Finish logic (untested)

* Use third_party for layouts

* Update gen

* Fix filtering bugs

* Format

* Fix build

* Add scripts

* Try license

* Copyright

* Rename license

* Use case insensitive

* more lower case

* Sort. Migrate to better types.

* Fix template

* Marshall and unmarshall

* Comments

* Gen types file

* gen json

* engine compilable

* benchmark_detector

* Move github to separate file

* Generate full mapping

* test cases

* Unified dead key

* Correct key

* remove duplicate file

* letter in test cases

* Compile

* int keycode, and fix compile

* Correct gen directory

* Heuristic

* Heuristic benchmark

* Reorganize logical key

* Move to common

* Docs

* Combine into bin

* Remove layout_types

* Rename to locale_keymap

* Rename class

* Rename to heuristicMapper

* Format

* Fix license

* Fix test

* Test license

* Fix tests

* Fix import as

* Fix analyze problem

* Fix license

* Update license pattern

* The MIT license

* License diff

* Fix license

* Update signature

* readme

* fix signature?

* fix signature?

* Fix license count

* Fix build

* Compression

* Fix _eventKeyIsKeyname

* remove gitignore

* Fix nullable

* Fix doc

* Add underscore lead. Make everything lower case. Print by line.

* Better event code encoding

* Signature

* Comment. Change dead key mapping to the last.

* Better digit heuristic. Better _eventKeyIsKeyName

* en-in test

* Remove unnecessary build change

* Better order
2022-11-30 01:28:02 +00:00
Zachary Anderson
d235ec4c44 Delete dead/obsolete spirv transpiler rules (flutter/engine#36422) 2022-09-26 12:56:27 -07:00
Michael Goderbauer
bfd0781318 Analyze all dart code on CI (flutter/engine#35147) 2022-08-05 17:38:05 +00:00
Michael Goderbauer
7224607a1c Make analyzer hints and warnings fatal (flutter/engine#35013) 2022-07-29 22:09:04 +00:00
Michael Goderbauer
f6d473bbd7 Enable analysis for all of dart:ui (flutter/engine#34988) 2022-07-29 05:29:03 +00:00
Yegor
e7c4fcc17d [web] consolidate JS interop code (attempt 2) (flutter/engine#30161)
The original https://github.com/flutter/engine/pull/30007 was reverted
because it broke the framework. Turns out the framework still used the
WebExperiments code, which has been cleaned up in https://github.com/flutter/flutter/pull/94739.

This PR must land after https://github.com/flutter/flutter/pull/94739.

This reverts commit ae31d5a5d82c8091d859c27922e5f52e3a264286.
2021-12-07 09:27:06 -08:00
Jim Graham
ae31d5a5d8 Revert "[web] consolidate JS interop code (#30007)" (flutter/engine#30137)
This reverts commit 01a91d484eab5fae50381ab7c94fcdca9fbb56a9.
2021-12-04 18:54:31 -08:00
Yegor
01a91d484e [web] consolidate JS interop code (flutter/engine#30007)
* Consolidate and check JavaScript access
* Remove all `ignore: implicit_dynamic_function`
* Add `js_access_test.dart` that validates JS access
* Make `engine.dart` an exports-only library
* Fix `sdk_rewriter_test.dart` and `ci/analyze.sh` (they skipped some tests)
2021-12-03 15:46:03 -08:00
Anthony
50adf078fd [Re-land] Add SPIR-V FragmentShader API to painting.dart (flutter/engine#28208)
[Re-land] Add SPIR-V FragmentShader API to painting.dart

- Add a SPIR-V FragmentShader interface in painting.dart
- Create end to end pixel tests for ops supported by the SPIR-V to SkSL transpiler
- The end to end tests also test the c++ fragment shader implementation

Co-authored-by: Christopher Crawford <chriscraws@gmail.com>
2021-08-20 11:24:14 -04:00
Zachary Anderson
e3f282c563 Revert "Add SPIR-V FragmentShader API to painting.dart (#26996)" (flutter/engine#28202)
This reverts commit 1b518619357cc1666a9fca183c9766d1ece16d0f.
2021-08-19 12:38:10 -07:00
Anthony
1b51861935 Add SPIR-V FragmentShader API to painting.dart (flutter/engine#26996)
Add SPIR-V FragmentShader API to painting.dart
2021-08-18 12:58:25 -04:00
Devon Carew
909bde06e8 analyze using the latest sdk from head (flutter/engine#27598) 2021-07-21 12:51:02 -07:00
Devon Carew
c0891990cc refactor and simplify CI dart analysis (flutter/engine#27370) 2021-07-13 21:11:01 -07:00
Dan Field
233a06b114 Fix dart analysis (flutter/engine#27367) 2021-07-13 14:01:05 -07:00
Dan Field
f314bfb910 pub get offline for scenario_app (flutter/engine#27240) 2021-07-08 09:16:02 -07:00
Zachary Anderson
39f533c8b8 Make ci/lint.dart more idiomatic and move to tools/clang_tidy (flutter/engine#26722) 2021-06-22 20:36:01 -07:00
Zachary Anderson
23cb015a33 Add pre-push git hook (flutter/engine#26699) 2021-06-20 16:12:53 -07:00
godofredoc
68417a2806 Remove autoninja calls from the analyze script. (flutter/engine#26831) 2021-06-18 20:29:01 -07:00
godofredoc
f7ececee99 Revert "Remove autoninja calls from the analyze script. (#26752)" (flutter/engine#26812)
This reverts commit 0f363535ba38fb4faed1a17bd9ab8636be258ef4.
2021-06-17 14:56:15 -07:00
godofredoc
0f363535ba Remove autoninja calls from the analyze script. (flutter/engine#26752)
* Remove autoninja calls from the analyze script.

Calling autoninja from this script is preventing the roll of new depot
tools that requires autoninja to run from inside a goma context.

Bug: https://github.com/flutter/flutter/issues/84618

* Also remove gn commands.

* Comment the gn/ninja commands to build java tests.

* Remove the ninja command.

* Remove steps to build host_debug from tests.

* Assert folder exists.

* Remove outdated code.

* Fix path joining instructions.
2021-06-17 14:26:37 -07:00
Christopher Crawford
0ea34941c7 Add Dart SPIR-V transpiler (flutter/engine#25480) 2021-05-25 14:34:03 -07:00
Zachary Anderson
996427a9ea Clean up Dart scripts in ci/ (flutter/engine#26325) 2021-05-21 13:29:23 -07:00
Zachary Anderson
ac61a5fea8 Clean up testing/benchmark (flutter/engine#26313) 2021-05-21 09:49:05 -07:00
Zachary Anderson
485954071d Use 'pub get --offline' for scenario_app deps (flutter/engine#26254) 2021-05-20 12:02:12 -07:00
Zachary Anderson
16371c3379 Use path dependencies for testing/symbols (flutter/engine#26261) 2021-05-20 09:23:21 -07:00
Zachary Anderson
740a85e9f0 Adds package:litetest, uses it instead of package:test under testing/dart (flutter/engine#26215) 2021-05-19 23:08:23 -07:00
Casey Hillers
e45ff82fc0 [ci] Remove null safety experiment flag (flutter/engine#24392) 2021-02-16 09:48:45 -08:00
Ferhat
ba105e0ea0 [web]Update @dart annotation. Change shaders to allocate smaller canvas (flutter/engine#22481) 2020-11-13 13:55:32 -08:00
Greg Spencer
17aa0b4708 Add missing ninja call to analyze.sh so it can be run locally easily (flutter/engine#21782) 2020-10-13 17:57:02 -07:00
nturgut
035d66a75f add api_conform_test to analyze step. remove build script. (flutter/engine#21633) 2020-10-06 15:39:18 -07:00
Greg Spencer
d737cca58e Clean up the CI scripts and make it so that they can be run from anywhere (flutter/engine#20538)
This cleans up the ci scripts so that they can be run from an arbitrary directory, and so that they don't have any bash lint issues, and are more explicit about which dart/pub/dartanalyzer executable they run.

I also fixed the format script to take a "--fix" argument that will fix all of the formatting issues found, including trailing whitespace and gn files.

I added a warning to the license script about untracked/ignored files in the fluttter repo because those so often trip up the license script.

I added missing license information to the ci scripts too.

There's now a bit of boilerplate at the beginning of each script (the follow_links function) in order to reliably find the actual location of the script: I'd put it into a common file, except that that code would be needed to reliably find the common location too, so I needed to duplicate it. It's the same boilerplate as what is used in the flutter/flutter repo for the flutter and dart scripts.

I deleted the ci/test.sh script, since it seems to be obsolete (the test it tries to run doesn't exist anywhere).
2020-08-17 14:03:01 -07:00
Jonah Williams
c8fefe4ed0 [null-safety] remove package references from flutter frontend-server test, ci analyze (flutter/engine#19810) 2020-07-16 12:16:02 -07:00
Yegor
b457938f23 apply null safety syntax to mobile dart:ui (flutter/engine#18933)
* apply null safety syntax to mobile dart:ui
2020-06-12 12:42:12 -07:00
Dan Field
ad95a1aa04 dart analysis of tests, cleanup (flutter/engine#13033) 2019-10-09 15:13:29 -07:00
Alexander Aprelev
d4ec5cbd02 Roll dart to aece1c1e92. (flutter/engine#12997)
* Roll dart to aece1c1e92.

Changes since last roll:
```
aece1c1e92 Update compile_flutter.sh after vm -> frontend_server rename
9293e26fc9 [gardening] Fix flutter hhh patch.
13fbf569f6 [flutter] split frontend_server from vm package
a389015083 Rewrite MethodInvocation to FunctionExpressionInvocation when the target is not a method.
ae251757a9 [vm,aot,bytecode] Performance fixes
01ebf92dde [VM] Consume extension member/is late flag setting when reading kernel file.
8e05cd278c [vm, bytecode] Emit bytecode without ASTs by default.
4539536b34 [eventhandler] generalize socket initialization
7115687beb NNBD i13n: Add a description for discarding just the condition
2bcaf02582 (origin/base) Update dartdoc to 0.28.7.
a0e8c7712d [dart2js] New RTI: Prevent elision of precomputed1 and remove unneeded read.
c38e19cbbe [vm/compiler] bit utilities
f918214f36 Add a unit test reproducing issue #38352.
ad47b1ca64 Remove summary1, part 2.
0881a4a691 Reland "Deprecate TypeParameterTypeImpl.getTypes()"
d93a6b596b Prepare to publish analyzer version 0.38.5
d5feab0c53 [vm] Create builds for LeakSanitizer, MemorySanitizer and ThreadSanitizer.
8c5236f55e [vm/ffi] Fix host-target word mismatch breaking AOT callbacks in ARM_X64.
5f7b837195 Remove unused FunctionElementImpl_forLUB.
2c75771611 Write and read the static type of IntegerLiteral.
b00453c68a Create synthetic FunctionType in quick fixes.
897e197dd4 Flow analysis: Update AssignedVariablesVisitor to track functions/methods.
55466fd3cc Flow analysis: Remove AssignedVariables.capturedAnywhere.
0a5cf36f14 Make exitFunctionBody safer.
```

* Update license hash
2019-10-08 08:07:39 -07:00
Terry Lucas
052cef06f9 Revert "Revert "Use track-widget-creation transformer included in the sdk. (#9085)" (#9134)" (flutter/engine#9707)
This reverts commit 9397cd43160e8adf89936bd8340dffcb1f5b5a14.
2019-07-08 10:53:47 -07:00
Jason Simmons
9397cd4316 Revert "Use track-widget-creation transformer included in the sdk. (#9085)" (flutter/engine#9134)
This reverts commit 03d5bb8f53de789c0d821e2733ef179875629a10.

With this change applied, test/widgets/widget_inspector_test.dart is failing
when run by the dev/bots/test.dart script in the framework tree.
2019-05-29 17:40:28 -07:00
Terry Lucas
03d5bb8f53 Use track-widget-creation transformer included in the sdk. (flutter/engine#9085)
This improves performance as the version in the SDK is able to work more
incrementally and avoids creating an expensive ClassHierarchy.
There is now no measureable performance difference with the option so the
kernel transformer can be enabled by default.
2019-05-25 06:38:51 -07:00
Dan Field
c96714ac5d new lints (flutter/engine#8849)
Dart lints added:
* Avoid optional new
* Avoid optional const
* Prefer single quotes
* Prefer default assignment `=`
2019-05-07 16:10:21 -07:00
Dan Field
4ba5cc8568 Allow specifying the out directory prefix (flutter/engine#7762) 2019-02-09 16:15:56 -08:00
Dan Field
2eae3feaaf fix up analysis for Dart in Engine (flutter/engine#7404)
* fix up analysis for Dart in Engine, particularly for tests
2019-01-11 13:50:58 -08:00
liyuqian
7357a29311 Remove travis directory (flutter/engine#5935)
This reflects that we no longer uses travis. Scripts are moved to ci folder.
2018-08-06 15:06:49 -07:00