- 07 Dec, 2023 1 commit
-
-
Daco Harkes authored
Support for FFI calls with `@Native external` functions through Native assets on Android. This enables bundling native code without any build-system boilerplate code. For more info see: * https://github.com/flutter/flutter/issues/129757 ### Implementation details for Android. Mainly follows the design of the previous PRs. For Android, we detect the compilers inside the NDK inside SDK. And bundling of the assets is done by the flutter.groovy file. The `minSdkVersion` is propagated from the flutter.groovy file as well. The NDK is not part of `flutter doctor`, and users can omit it if no native assets have to be build. However, if any native assets must be built, flutter throws a tool exit if the NDK is not installed. Add 2 app is not part of this PR yet, instead `flutter build aar` will tool exit if there are any native assets.
-
- 10 Sep, 2023 1 commit
-
-
Daco Harkes authored
Support for FFI calls with `@Native external` functions through Native assets on MacOS and iOS. This enables bundling native code without any build-system boilerplate code. For more info see: * https://github.com/flutter/flutter/issues/129757 ### Implementation details for MacOS and iOS. Dylibs are bundled by (1) making them fat binaries if multiple architectures are targeted, (2) code signing these, and (3) copying them to the frameworks folder. These steps are done manual rather than via CocoaPods. CocoaPods would have done the same steps, but (a) needs the dylibs to be there before the `xcodebuild` invocation (we could trick it, by having a minimal dylib in the place and replace it during the build process, that works), and (b) can't deal with having no dylibs to be bundled (we'd have to bundle a dummy dylib or include some dummy C code in the build file). The dylibs are build as a new target inside flutter assemble, as that is the moment we know what build-mode and architecture to target. The mapping from asset id to dylib-path is passed in to every kernel compilation path. The interesting case is hot-restart where the initial kernel file is compiled by the "inner" flutter assemble, while after hot restart the "outer" flutter run compiled kernel file is pushed to the device. Both kernel files need to contain the mapping. The "inner" flutter assemble gets its mapping from the NativeAssets target which builds the native assets. The "outer" flutter run get its mapping from a dry-run invocation. Since this hot restart can be used for multiple target devices (`flutter run -d all`) it contains the mapping for all known targets. ### Example vs template The PR includes a new template that uses the new native assets in a package and has an app importing that. Separate discussion in: https://github.com/flutter/flutter/issues/131209. ### Tests This PR adds new tests to cover the various use cases. * dev/devicelab/bin/tasks/native_assets_ios.dart * Runs an example app with native assets in all build modes, doing hot reload and hot restart in debug mode. * dev/devicelab/bin/tasks/native_assets_ios_simulator.dart * Runs an example app with native assets, doing hot reload and hot restart. * packages/flutter_tools/test/integration.shard/native_assets_test.dart * Runs (incl hot reload/hot restart), builds, builds frameworks for iOS, MacOS and flutter-tester. * packages/flutter_tools/test/general.shard/build_system/targets/native_assets_test.dart * Unit tests the new Target in the backend. * packages/flutter_tools/test/general.shard/ios/native_assets_test.dart * packages/flutter_tools/test/general.shard/macos/native_assets_test.dart * Unit tests the native assets being packaged on a iOS/MacOS build. It also extends various existing tests: * dev/devicelab/bin/tasks/module_test_ios.dart * Exercises the add2app scenario. * packages/flutter_tools/test/general.shard/features_test.dart * Unit test the new feature flag.
-
- 26 Aug, 2022 1 commit
-
-
Jonah Williams authored
-
- 13 Jul, 2021 1 commit
-
-
Darren Austin authored
-
- 12 Jul, 2021 2 commits
-
-
Darren Austin authored
This reverts commit 9d3563a8.
-
Darren Austin authored
-
- 07 Jun, 2021 1 commit
-
-
Dan Field authored
-
- 05 Jun, 2021 1 commit
-
-
Jenn Magder authored
-
- 21 Apr, 2021 1 commit
-
-
Phil Quitslund authored
-
- 16 Sep, 2020 1 commit
-
-
Michael R Fairhurst authored
-
- 27 Nov, 2019 1 commit
-
-
Ian Hickson authored
* 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
-
- 02 Oct, 2019 2 commits
-
-
Greg Spencer authored
This reverts c9d920f3 so that we can attempt to fix the build. The build dashboard clearly shows that things started failing at this change, although it's not totally clear that it is the cause: tests succeed locally. If it doesn't fix things we can re-land this.
- 01 Oct, 2019 1 commit
-
-
liyuqian authored
This test is flaky if CPU/GPU measurement is enabled due to https://github.com/flutter/flutter/issues/41577
-
- 29 Sep, 2019 2 commits
-
- 28 Sep, 2019 1 commit
-
-
liyuqian authored
This reverts commit f1e7fe81. This fix is in https://github.com/flutter/packages/pull/39
-
- 26 Sep, 2019 2 commits
-
-
Jonah Williams authored
-
liyuqian authored
This reverts commit 652be88e. This fix is in https://github.com/flutter/packages/pull/37
-
- 16 Sep, 2019 2 commits
-
-
liyuqian authored
For https://github.com/flutter/flutter/issues/33899 Test added: - simple_animation_perf_ios Test modified: - backdrop_filter_perf_ios__timeline_summary We'll add the CPU/GPU measurement to more iOS tests once it's proven to be non-flaky.
- 20 Aug, 2019 1 commit
-
-
liyuqian authored
For https://github.com/flutter/flutter/issues/36064 That performance regression is iOS-only so we'd better get the benchmarks running on iOS.
-
- 25 Jun, 2019 1 commit
-
-
Jim Graham authored
* Add test case for Flutter Issue #27677 as a benchmark. See https://github.com/flutter/flutter/issues/27677 I got the following results running the test on a Moto E2 which will help us determine how much we can gain by analyzing the operations and eliminating unnecessary repaints based on dirty rectangles/regions. no blurs - avg 216.0 fps over 3 samples blur the group - avg 22.9 fps over 3 samples blur each txt - avg 3.4 fps over 3 samples * Added the new benchmark to be tracked on the dashboard.
-
- 27 Feb, 2019 1 commit
-
-
liyuqian authored
This reverts commit adc8e159. This should be safe to land once https://github.com/flutter/flutter/pull/28530 gets merged Merge on yellow doc test because the doc test is actually green.
-
- 18 Dec, 2018 1 commit
-
-
liyuqian authored
For https://github.com/flutter/flutter/issues/24712 This test verifies that https://github.com/flutter/engine/pull/6923 will speedup the average rasterize time of this test from ~150ms to ~10ms Please see non-auto-generated files in https://github.com/flutter/flutter/pull/25381/commits/37b21d9fb4756a8d8d12ae0def1d0640740c8818
-
- 04 Oct, 2018 1 commit
-
-
Alexandre Ardhuin authored
-
- 16 Jun, 2018 1 commit
-
-
Michael Goderbauer authored
-
- 16 May, 2018 1 commit
-
-
Sarah Zakarias authored
-
- 23 Mar, 2017 1 commit
-
-
Sarah Zakarias authored
* Add start-up test for flutter_view sample * add reportMetrics flag to startup test * rewording in manifest.yaml
-
- 20 Mar, 2017 1 commit
-
-
Sarah Zakarias authored
-
- 02 Dec, 2016 1 commit
-
-
Yegor authored
-
- 29 Sep, 2016 1 commit
-
-
Yegor authored
* fix flutter watch benchmark Syncs https://github.com/flutter/cocoon/commit/d2d7950ecd2c72421d75d9b5d54805cc554e92a8 * Split Android/iOS impl behind a unified interface Syncs https://github.com/flutter/cocoon/commit/db87e10fa54317115479d0b85280c7e5eed08ff7 * Switch from pub get to flutter packages get Syncs https://github.com/flutter/cocoon/commit/b378005cbbc5330058d5240a2970ca477c2c9722 * "silent" option in test runner; fix analysis errors;
-
- 14 Sep, 2016 1 commit
-
-
Yegor authored
-