The APKAssetProvider will hold a reference to its Java peer
(see c2b081e229)
After dropping this reference, the UI thread must detach from JNI before exiting.
* Roll dart to cd0c4e4fe1e5b69ac15c0a670f9dde2ee9733fc7.
Changes since last roll:
```
cd0c4e4fe1 Kernel service just returns errors. Leaves printing to the VM.
010d8144bc Add missing copyright notice
70547d8197 Change linter subscriptions from functions to AstVisitor(s).
88a098c71c Improve fasta parser field name recovery
bd76221d58 fix#31489, JS interop to `prototype` getter in dartdevk
ca419a9251 dart2js status refresh
da49615c2c Don't filter out references to constructors.
cc968df178 [test] Fix analyzer warning in the recently added test
1c5d1a56e7 Clean up some hints
5a9a479a73 Fix#32966 too little stack overflow context to be useful
2786b9ff43 [vm/aot] Add detailed error messages and stack traces for null checks
fbfe5691cb Change completionTarget.forOffset to accept & wrap dangling AstNodes.
cb15b43c32 Add support for getting parse results synchronously
e0ddab3c4c Fix bots after preview-dart2 was switched on by default.
88099ffcc3 Stop importing front_end into analyzer_plugin.
115850ca1d Revert "Clean up the use of deprecated API in the analyzer_plugin package"
f95df2a26b [dartfmt] Bump dart:style to 1.0.11
c97d36c127 Add all concrete AST nodes for lints to subscribe.
1afe71c08a Enable preview-dart-2 as default for analyzer.
45e390003f [kernel] Report error for dangling node reference in metadata
c1c90358a2 Record a missing file offset
16be5d1e33 [VM] Fix missing update of off-heap class sizes
c8ad75d44a [VM] Make classes movable in sliding compactor
c59b390806 Update status
93511d523c Track RTI for noSuchMethod
f6db874416 fix some dartdevk behavior to match dartdevc in more cases
c0015fe23f [gardening] Skip tests that are meaningless in AOT configuration.
9f7a247c33 Remove dangling pubspec.lock from pkg/dev_compiler/test/
004ee9cd12 Fix how we use Comparable.compare, so we have a function with the appropriate type in JSArray.sort
30b53ceaab fix#30852, cyclic init errors in some cases in dartdevc
94f45c8876 Bring in the latest pub
328163bba9 [kernel] CloneVisitor should preserve isDefault on switch cases.
613c6d066c [vm][windows] Implement VirtualMemory::FreeSubSegment
7c6594c0bd fix#32302, friendlier `Type.toString()` in dartdevc
e7848a8cda [vm/kernel] Avoid dangling references to DartTypes from constant pool
d47203a71b Fix a crash in type inference
1030189d56 Add NodeLintRule and UnitLintRule that replace AstVisitor in lints.
9e9b50d19d Improve error messages for annotations involving undefined names (issue 27788)
d7ff30c3e1 Add a missing call to greatestClosure
c844011647 Don't skip pkg/kernel/test/metadata_test
```
* Update license hash. No changes to the licenses.
PlatformMessageResponseDart will wrap large responses in Dart external typed
data objects in order to avoid copying the data into a new buffer.
Previously these objects were created with the Dart_TypedData_kByteData type.
A weak persistent handle is then associated with the ByteData to provide a
finalizer that deletes the raw buffer. However, the Dart VM could call
finalizer on the ByteData even if references still existed to the Dart ByteBuffer
object backing the ByteData. The ByteBuffer would then be referencing a deleted
raw buffer.
This PR prevents that scenario by creating a Dart_TypedData_kUint8 object,
attaching the finalizer to that object, and then wrapping it in a ByteData.
Previously libtxt was applying right justification during line layout based on
the line width returned by the Minikin line breaker. However, this width does
not include the width of leading or trailing whitespace.
So in a right justified line the starting offset of the first glyph would not
account for the advance of the leading whitespace, resulting in text being
clipped.
This PR applies line justification after the glyphs are laid out and the full
advance of the text is known.
Fixes https://github.com/flutter/flutter/issues/16333
* add path measure
* fix typo
* getBound and addPathWithMatrix
* Add myself to Authors, add PathOps
* fix linting issues
* update licenses_flutter to add new files
* Use matrix4 instead of matrix3 for consistency/interop
* put pubspec back
* fix bug in getSegment
* fix typo
* Add return value for PathOp
* refactoring from review
* refactoring from review - still TBD on computeMetrics()
* add doc
* lint issue
* fix computeMetrics, add Path.from
* add missing wireup for clone
* change PathMetrics to iterable, fix bug with angle on Tangent
* prefer std::make_unique
* cleanup docs
* add path measure
* fix typo
* getBound and addPathWithMatrix
* Add myself to Authors, add PathOps
* fix linting issues
* update licenses_flutter to add new files
* Use matrix4 instead of matrix3 for consistency/interop
* put pubspec back
* fix bug in getSegment
* fix typo
* Add return value for PathOp
* refactoring from review
* refactoring from review - still TBD on computeMetrics()
* add doc
* lint issue
* fix computeMetrics, add Path.from
* add missing wireup for clone
* change PathMetrics to iterable, fix bug with angle on Tangent
* prefer std::make_unique
* cleanup docs
* fix iterator bug
* remove unnecessary clone for computeMetrics
* fix some doc issues
* fix PathMeasure iterator, extendWithPath, isClosed, and pubspec.lock
* get rid of orElse; use StateException
* StateError, not StateException
* doc improvements and nits
* add unit tests, fix bugs found during testing
* fix two uncommited doc changes
* one more
* change sign of tangent angle, update docs
* update unit tests for inverted angle
* update tangent to include vector
* Doc fixes
* Fix MSVC compilation and unit test
* Added handleEventsForBackgroundURLSession and
performFetchWithCompletionHandler handlers in FlutterAppDelegate to
allow for plugins to perform background downloads and fetch small
amounts of data opportunistically.
Platform messages are only support in the UI isolate. Secondary isolates
do not have a window that can receive incoming messages, and outgoing messages
are not tagged with a destination isolate and thus will always be dispatched
to the UI isolate.
Fixes https://github.com/flutter/flutter/issues/16846