mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Merge branch 'master' into android_it_rot
This commit is contained in:
commit
0465f44efa
113
.ci.yaml
113
.ci.yaml
@ -51,7 +51,7 @@ platform_properties:
|
||||
[
|
||||
{"dependency": "android_sdk", "version": "version:35v1"},
|
||||
{"dependency": "android_virtual_device", "version": "android_35_google_apis_x64.textpb"},
|
||||
{"dependency": "avd_cipd_version", "version": "build_id:8735216702926189361"},
|
||||
{"dependency": "avd_cipd_version", "version": "build_id:8733065022087935185"},
|
||||
{"dependency": "open_jdk", "version": "version:17"}
|
||||
]
|
||||
os: Ubuntu
|
||||
@ -68,7 +68,7 @@ platform_properties:
|
||||
[
|
||||
{"dependency": "android_sdk", "version": "version:35v1"},
|
||||
{"dependency": "android_virtual_device", "version": "android_34_google_apis_x64.textpb"},
|
||||
{"dependency": "avd_cipd_version", "version": "build_id:8735216702926189361"},
|
||||
{"dependency": "avd_cipd_version", "version": "build_id:8733065022087935185"},
|
||||
{"dependency": "open_jdk", "version": "version:17"}
|
||||
]
|
||||
os: Ubuntu
|
||||
@ -362,6 +362,7 @@ targets:
|
||||
# are intentionally running it in the devicelab to ensure that it does not
|
||||
# run on a VM in order to avoid noisy results from the benchmark.
|
||||
- name: Linux analyzer_benchmark
|
||||
bringup: true # Flaky https://github.com/flutter/flutter/issues/158243
|
||||
recipe: devicelab/devicelab_drone
|
||||
timeout: 60
|
||||
properties:
|
||||
@ -391,6 +392,7 @@ targets:
|
||||
|
||||
- name: Linux packages_autoroller
|
||||
presubmit: false
|
||||
bringup: true # https://github.com/flutter/flutter/issues/160055
|
||||
recipe: pub_autoroller/pub_autoroller
|
||||
# This takes a while because we need to fetch network dependencies and run
|
||||
# Gradle for every android app in the repo
|
||||
@ -411,7 +413,7 @@ targets:
|
||||
|
||||
- name: Linux_android_emu android views
|
||||
recipe: devicelab/devicelab_drone
|
||||
bringup: true # https://github.com/flutter/flutter/issues/153445
|
||||
bringup: true
|
||||
properties:
|
||||
tags: >
|
||||
["framework","hostonly","linux"]
|
||||
@ -505,7 +507,6 @@ targets:
|
||||
["framework", "hostonly", "shard", "linux"]
|
||||
|
||||
- name: Linux build_tests_4_5
|
||||
bringup: true
|
||||
recipe: flutter/flutter_drone
|
||||
timeout: 60
|
||||
properties:
|
||||
@ -566,6 +567,7 @@ targets:
|
||||
shard: customer_testing
|
||||
tags: >
|
||||
["framework", "hostonly", "shard", "linux"]
|
||||
test_timeout_secs: "2700" # Allows 45 minutes (up from 30 default)
|
||||
|
||||
- name: Linux docs_publish
|
||||
recipe: flutter/docs
|
||||
@ -635,39 +637,6 @@ targets:
|
||||
- bin/**
|
||||
- .ci.yaml
|
||||
|
||||
- name: Linux firebase_abstract_method_smoke_test
|
||||
presubmit: false
|
||||
bringup: true # https://github.com/flutter/flutter/issues/147335
|
||||
recipe: firebaselab/firebaselab
|
||||
timeout: 60
|
||||
properties:
|
||||
dependencies: >-
|
||||
[
|
||||
{"dependency": "android_sdk", "version": "version:35v1"},
|
||||
{"dependency": "open_jdk", "version": "version:17"}
|
||||
]
|
||||
tags: >
|
||||
["firebaselab"]
|
||||
task_name: abstract_method_smoke_test
|
||||
physical_devices: >-
|
||||
[
|
||||
"--device", "model=shiba,version=34",
|
||||
"--device", "model=panther,version=33",
|
||||
"--device", "model=redfin,version=30"
|
||||
]
|
||||
# TODO(flutter/flutter#123331): This device is flaking.
|
||||
# "--device", "model=Nexus6P,version=25"
|
||||
virtual_devices: >-
|
||||
[
|
||||
"--device", "model=Nexus5.gce_x86,version=21",
|
||||
"--device", "model=Nexus5.gce_x86,version=22",
|
||||
"--device", "model=Nexus5.gce_x86,version=23",
|
||||
"--device", "model=Nexus6P,version=25",
|
||||
"--device", "model=Nexus6P,version=26",
|
||||
"--device", "model=Nexus6P,version=27",
|
||||
"--device", "model=NexusLowRes,version=29"
|
||||
]
|
||||
|
||||
- name: Linux firebase_release_smoke_test
|
||||
recipe: firebaselab/firebaselab
|
||||
bringup: true # https://github.com/flutter/flutter/issues/147335
|
||||
@ -1039,6 +1008,10 @@ targets:
|
||||
{"dependency": "chrome_and_driver", "version": "version:125.0.6422.141"},
|
||||
{"dependency": "open_jdk", "version": "version:17"}
|
||||
]
|
||||
# TODO(fujino): delete once propagation from
|
||||
# https://github.com/flutter/flutter/issues/158521 completes.
|
||||
drone_dimensions: >
|
||||
["os=Linux", "os=Ubuntu-20"]
|
||||
tags: >
|
||||
["devicelab", "hostonly", "linux"]
|
||||
task_name: plugin_test
|
||||
@ -1105,6 +1078,24 @@ targets:
|
||||
["devicelab", "hostonly", "linux"]
|
||||
task_name: linux_desktop_impeller
|
||||
|
||||
- name: Linux android_release_builds_exclude_dev_dependencies_test
|
||||
recipe: devicelab/devicelab_drone
|
||||
timeout: 60
|
||||
properties:
|
||||
dependencies: >-
|
||||
[
|
||||
{"dependency": "android_sdk", "version": "version:35v1"},
|
||||
{"dependency": "chrome_and_driver", "version": "version:125.0.6422.141"},
|
||||
{"dependency": "open_jdk", "version": "version:17"}
|
||||
]
|
||||
tags: >
|
||||
["devicelab", "hostonly", "linux"]
|
||||
task_name: android_release_builds_exclude_dev_dependencies_test
|
||||
runIf:
|
||||
- dev/**
|
||||
- bin/**
|
||||
- .ci.yaml
|
||||
|
||||
- name: Linux run_release_test_linux
|
||||
recipe: devicelab/devicelab_drone
|
||||
timeout: 60
|
||||
@ -1170,7 +1161,6 @@ targets:
|
||||
- .ci.yaml
|
||||
|
||||
- name: Linux tool_integration_tests_1_6
|
||||
bringup: true
|
||||
recipe: flutter/flutter_drone
|
||||
timeout: 60
|
||||
properties:
|
||||
@ -1197,7 +1187,6 @@ targets:
|
||||
- .ci.yaml
|
||||
|
||||
- name: Linux tool_integration_tests_2_6
|
||||
bringup: true
|
||||
recipe: flutter/flutter_drone
|
||||
timeout: 60
|
||||
properties:
|
||||
@ -1224,7 +1213,6 @@ targets:
|
||||
- .ci.yaml
|
||||
|
||||
- name: Linux tool_integration_tests_3_6
|
||||
bringup: true
|
||||
recipe: flutter/flutter_drone
|
||||
timeout: 60
|
||||
properties:
|
||||
@ -1251,7 +1239,6 @@ targets:
|
||||
- .ci.yaml
|
||||
|
||||
- name: Linux tool_integration_tests_4_6
|
||||
bringup: true
|
||||
recipe: flutter/flutter_drone
|
||||
timeout: 60
|
||||
properties:
|
||||
@ -1278,7 +1265,6 @@ targets:
|
||||
- .ci.yaml
|
||||
|
||||
- name: Linux tool_integration_tests_5_6
|
||||
bringup: true
|
||||
recipe: flutter/flutter_drone
|
||||
timeout: 60
|
||||
properties:
|
||||
@ -1305,7 +1291,6 @@ targets:
|
||||
- .ci.yaml
|
||||
|
||||
- name: Linux tool_integration_tests_6_6
|
||||
bringup: true
|
||||
recipe: flutter/flutter_drone
|
||||
timeout: 60
|
||||
properties:
|
||||
@ -1467,7 +1452,7 @@ targets:
|
||||
|
||||
- name: Linux_android_emu flutter_driver_android_test
|
||||
recipe: flutter/flutter_drone
|
||||
bringup: true # https://github.com/flutter/flutter/issues/153445
|
||||
bringup: true
|
||||
timeout: 60
|
||||
properties:
|
||||
shard: flutter_driver_android
|
||||
@ -1519,23 +1504,6 @@ targets:
|
||||
["devicelab","hostonly", "linux"]
|
||||
task_name: web_benchmarks_canvaskit
|
||||
|
||||
- name: Linux web_benchmarks_html
|
||||
recipe: devicelab/devicelab_drone
|
||||
timeout: 60
|
||||
properties:
|
||||
dependencies: >-
|
||||
[
|
||||
{"dependency": "android_sdk", "version": "version:35v1"},
|
||||
{"dependency": "chrome_and_driver", "version": "version:125.0.6422.141"}
|
||||
]
|
||||
tags: >
|
||||
["devicelab"]
|
||||
task_name: web_benchmarks_html
|
||||
runIf:
|
||||
- dev/**
|
||||
- bin/**
|
||||
- .ci.yaml
|
||||
|
||||
- name: Linux web_benchmarks_skwasm
|
||||
recipe: devicelab/devicelab_drone
|
||||
presubmit: false
|
||||
@ -1556,7 +1524,6 @@ targets:
|
||||
|
||||
- name: Linux web_benchmarks_skwasm_st
|
||||
recipe: devicelab/devicelab_drone
|
||||
bringup: true
|
||||
presubmit: false
|
||||
timeout: 60
|
||||
properties:
|
||||
@ -2236,7 +2203,7 @@ targets:
|
||||
|
||||
- name: Linux_android_emu android_defines_test
|
||||
recipe: devicelab/devicelab_drone
|
||||
bringup: true # https://github.com/flutter/flutter/issues/153445
|
||||
bringup: true
|
||||
timeout: 60
|
||||
properties:
|
||||
tags: >
|
||||
@ -2649,7 +2616,7 @@ targets:
|
||||
|
||||
- name: Linux_android_emu external_textures_integration_test
|
||||
recipe: devicelab/devicelab_drone
|
||||
bringup: true # https://github.com/flutter/flutter/issues/153445
|
||||
bringup: true
|
||||
timeout: 60
|
||||
# Functionally the same as "presubmit: false", except that we will run on
|
||||
# presubmit during engine rolls. This test is the *only* automated e2e
|
||||
@ -3828,6 +3795,7 @@ targets:
|
||||
task_name: complex_layout_macos__start_up
|
||||
|
||||
- name: Mac_benchmark complex_layout_scroll_perf_macos__timeline_summary
|
||||
bringup: true # Flaky https://github.com/flutter/flutter/issues/158251
|
||||
presubmit: false
|
||||
recipe: devicelab/devicelab_drone
|
||||
timeout: 60
|
||||
@ -3848,6 +3816,7 @@ targets:
|
||||
shard: customer_testing
|
||||
tags: >
|
||||
["framework", "hostonly", "shard", "mac"]
|
||||
test_timeout_secs: "2700" # Allows 45 minutes (up from 30 default)
|
||||
|
||||
- name: Mac dart_plugin_registry_test
|
||||
recipe: devicelab/devicelab_drone
|
||||
@ -3918,6 +3887,7 @@ targets:
|
||||
- dev/bots/**
|
||||
|
||||
- name: Mac_benchmark flutter_view_macos__start_up
|
||||
bringup: true # Flaky https://github.com/flutter/flutter/issues/159540
|
||||
presubmit: false
|
||||
recipe: devicelab/devicelab_drone
|
||||
timeout: 60
|
||||
@ -4079,6 +4049,7 @@ targets:
|
||||
- .ci.yaml
|
||||
|
||||
- name: Mac_benchmark hello_world_macos__compile
|
||||
bringup: true # Flaky https://github.com/flutter/flutter/issues/159542
|
||||
presubmit: false
|
||||
recipe: devicelab/devicelab_drone
|
||||
timeout: 60
|
||||
@ -4873,6 +4844,7 @@ targets:
|
||||
task_name: hello_world_ios__compile
|
||||
|
||||
- name: Mac_x64 hot_mode_dev_cycle_macos_target__benchmark
|
||||
bringup: true # Flaky https://github.com/flutter/flutter/issues/158568
|
||||
recipe: devicelab/devicelab_drone
|
||||
timeout: 60
|
||||
properties:
|
||||
@ -5037,6 +5009,7 @@ targets:
|
||||
task_name: macos_chrome_dev_mode
|
||||
|
||||
- name: Mac_ios microbenchmarks_ios
|
||||
bringup: true # Flakey https://github.com/flutter/flutter/issues/156457
|
||||
recipe: devicelab/devicelab_drone
|
||||
presubmit: false
|
||||
timeout: 60
|
||||
@ -5405,7 +5378,6 @@ targets:
|
||||
- name: Mac_arm64 mac_desktop_impeller
|
||||
recipe: devicelab/devicelab_drone
|
||||
presubmit: false
|
||||
bringup: true
|
||||
timeout: 60
|
||||
properties:
|
||||
dependencies: >-
|
||||
@ -5417,7 +5389,6 @@ targets:
|
||||
task_name: run_release_test_macos
|
||||
|
||||
- name: Windows build_tests_1_9
|
||||
bringup: true
|
||||
recipe: flutter/flutter_drone
|
||||
timeout: 60
|
||||
properties:
|
||||
@ -5436,7 +5407,6 @@ targets:
|
||||
["framework", "hostonly", "shard", "windows"]
|
||||
|
||||
- name: Windows build_tests_2_9
|
||||
bringup: true
|
||||
recipe: flutter/flutter_drone
|
||||
timeout: 60
|
||||
properties:
|
||||
@ -5455,7 +5425,6 @@ targets:
|
||||
["framework", "hostonly", "shard", "windows"]
|
||||
|
||||
- name: Windows build_tests_3_9
|
||||
bringup: true
|
||||
recipe: flutter/flutter_drone
|
||||
timeout: 60
|
||||
properties:
|
||||
@ -5474,7 +5443,6 @@ targets:
|
||||
["framework", "hostonly", "shard", "windows"]
|
||||
|
||||
- name: Windows build_tests_4_9
|
||||
bringup: true
|
||||
recipe: flutter/flutter_drone
|
||||
timeout: 60
|
||||
properties:
|
||||
@ -5493,7 +5461,6 @@ targets:
|
||||
["framework", "hostonly", "shard", "windows"]
|
||||
|
||||
- name: Windows build_tests_5_9
|
||||
bringup: true
|
||||
recipe: flutter/flutter_drone
|
||||
timeout: 60
|
||||
properties:
|
||||
@ -5512,7 +5479,6 @@ targets:
|
||||
["framework", "hostonly", "shard", "windows"]
|
||||
|
||||
- name: Windows build_tests_6_9
|
||||
bringup: true
|
||||
recipe: flutter/flutter_drone
|
||||
timeout: 60
|
||||
properties:
|
||||
@ -5531,7 +5497,6 @@ targets:
|
||||
["framework", "hostonly", "shard", "windows"]
|
||||
|
||||
- name: Windows build_tests_7_9
|
||||
bringup: true
|
||||
recipe: flutter/flutter_drone
|
||||
timeout: 60
|
||||
properties:
|
||||
@ -5550,7 +5515,6 @@ targets:
|
||||
["framework", "hostonly", "shard", "windows"]
|
||||
|
||||
- name: Windows build_tests_8_9
|
||||
bringup: true
|
||||
recipe: flutter/flutter_drone
|
||||
timeout: 60
|
||||
properties:
|
||||
@ -5569,7 +5533,6 @@ targets:
|
||||
["framework", "hostonly", "shard", "windows"]
|
||||
|
||||
- name: Windows build_tests_9_9
|
||||
bringup: true
|
||||
recipe: flutter/flutter_drone
|
||||
timeout: 60
|
||||
properties:
|
||||
@ -5597,6 +5560,7 @@ targets:
|
||||
shard: customer_testing
|
||||
tags: >
|
||||
["framework", "hostonly", "shard", "windows"]
|
||||
test_timeout_secs: "2700" # Allows 45 minutes (up from 30 default)
|
||||
|
||||
- name: Windows framework_tests_libraries
|
||||
recipe: flutter/flutter_drone
|
||||
@ -6373,7 +6337,6 @@ targets:
|
||||
|
||||
- name: Windows windows_desktop_impeller
|
||||
recipe: devicelab/devicelab_drone
|
||||
bringup: true
|
||||
presubmit: false
|
||||
timeout: 60
|
||||
properties:
|
||||
|
||||
@ -45,6 +45,7 @@ body:
|
||||
- flutter_template_images
|
||||
- go_router
|
||||
- go_router_builder
|
||||
- google_adsense
|
||||
- google_identity_services_web
|
||||
- google_maps_flutter
|
||||
- google_sign_in
|
||||
|
||||
30
.github/dependabot.yml
vendored
30
.github/dependabot.yml
vendored
@ -3,38 +3,16 @@
|
||||
|
||||
version: 2
|
||||
updates:
|
||||
- package-ecosystem: "bundler"
|
||||
directory: "/dev/ci/mac"
|
||||
schedule:
|
||||
interval: "weekly"
|
||||
reviewers:
|
||||
- "christopherfujino"
|
||||
- "jmagman"
|
||||
- "keyonghan"
|
||||
labels:
|
||||
- "team"
|
||||
- "team-infra"
|
||||
- "autosubmit"
|
||||
- package-ecosystem: "docker"
|
||||
directory: "/dev/ci/docker_linux"
|
||||
schedule:
|
||||
interval: "weekly"
|
||||
reviewers:
|
||||
- "christopherfujino"
|
||||
- "jmagman"
|
||||
- "keyonghan"
|
||||
labels:
|
||||
- "team"
|
||||
- "team-infra"
|
||||
- "autosubmit"
|
||||
- package-ecosystem: "github-actions"
|
||||
directory: "/"
|
||||
schedule:
|
||||
interval: "daily"
|
||||
interval: "weekly"
|
||||
groups:
|
||||
all-github-actions:
|
||||
patterns: [ "*" ]
|
||||
reviewers:
|
||||
- "christopherfujino"
|
||||
- "jmagman"
|
||||
- "keyonghan"
|
||||
labels:
|
||||
- "team"
|
||||
- "team-infra"
|
||||
|
||||
4
.github/labeler.yml
vendored
4
.github/labeler.yml
vendored
@ -3,6 +3,8 @@
|
||||
# found in the LICENSE file.
|
||||
|
||||
# See https://github.com/actions/labeler/blob/main/README.md for docs.
|
||||
# Use git ls-files '<pattern>' to see the list of matching files.
|
||||
|
||||
'a: accessibility':
|
||||
- changed-files:
|
||||
- any-glob-to-any-file:
|
||||
@ -136,6 +138,8 @@ platform-android:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file:
|
||||
- docs/platform/android/**/*
|
||||
- packages/flutter_tools/*android*'
|
||||
- packages/flutter_tools/gradle/**/*
|
||||
|
||||
platform-ios:
|
||||
- changed-files:
|
||||
|
||||
4
.github/workflows/coverage.yml
vendored
4
.github/workflows/coverage.yml
vendored
@ -19,11 +19,11 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
if: ${{ github.repository == 'flutter/flutter' }}
|
||||
steps:
|
||||
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871
|
||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
|
||||
- name: ./bin/flutter test --coverage
|
||||
run: pushd packages/flutter;../../bin/flutter test --coverage -j 1;popd
|
||||
- name: upload coverage
|
||||
uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238
|
||||
uses: codecov/codecov-action@7f8b4b4bde536c465e797be725718b88c5d95e0e
|
||||
with:
|
||||
files: packages/flutter/coverage/lcov.info
|
||||
verbose: true
|
||||
|
||||
2
.github/workflows/easy-cp.yml
vendored
2
.github/workflows/easy-cp.yml
vendored
@ -30,7 +30,7 @@ jobs:
|
||||
run: |
|
||||
echo "COMMIT_SHA=$(echo ${{ github.event.pull_request.merge_commit_sha }})" >> $GITHUB_ENV
|
||||
- name: Checkout Flutter Repo
|
||||
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871
|
||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
|
||||
with:
|
||||
repository: flutteractionsbot/flutter
|
||||
path: flutter
|
||||
|
||||
2
.github/workflows/minimal.yml
vendored
2
.github/workflows/minimal.yml
vendored
@ -18,7 +18,7 @@ jobs:
|
||||
pull-requests: write
|
||||
steps:
|
||||
- name: Checkout Flutter Repo
|
||||
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871
|
||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
|
||||
with:
|
||||
repository: flutter/flutter
|
||||
token: ${{ github.token }}
|
||||
|
||||
1
AUTHORS
1
AUTHORS
@ -129,3 +129,4 @@ Flop <kukuzuo@gmail.com>
|
||||
Dimil Kalathiya <kalathiyadimil@gmail.com>
|
||||
Nate Wilson <nate.w5687@gmail.com>
|
||||
dy0gu <support@dy0gu.com>
|
||||
Albert Wolszon <albert@wolszon.me>
|
||||
|
||||
@ -24,6 +24,12 @@ docs/releases/Hotfix-Documentation-Best-Practices.md
|
||||
|
||||
INTERNAL NOTE
|
||||
-->
|
||||
|
||||
## Flutter 3.27 Changes
|
||||
|
||||
### [3.27.0](https://github.com/flutter/flutter/releases/tag/3.27.0)
|
||||
Initial stable release.
|
||||
|
||||
## Flutter 3.24 Changes
|
||||
### [3.24.4](https://github.com/flutter/flutter/releases/tag/3.24.4)
|
||||
- [dart 3.5.4 changelog](https://github.com/dart-lang/sdk/blob/stable/CHANGELOG.md#354---2024-10-17)
|
||||
|
||||
@ -230,6 +230,7 @@
|
||||
|
||||
## Host only DeviceLab tests
|
||||
/dev/devicelab/bin/tasks/animated_complex_opacity_perf_macos__e2e_summary.dart @cbracken @flutter/desktop
|
||||
/dev/devicelab/bin/tasks/android_release_builds_exclude_dev_dependencies_test.dart @camsim99 @flutter/android
|
||||
/dev/devicelab/bin/tasks/basic_material_app_macos__compile.dart @cbracken @flutter/desktop
|
||||
/dev/devicelab/bin/tasks/build_aar_module_test.dart @andrewkolos @flutter/tool
|
||||
/dev/devicelab/bin/tasks/build_ios_framework_module_test.dart @jmagman @flutter/tool
|
||||
@ -290,7 +291,6 @@
|
||||
/dev/devicelab/bin/tasks/run_release_test_windows.dart @loic-sharma @flutter/tool
|
||||
/dev/devicelab/bin/tasks/technical_debt__cost.dart @Piinks @flutter/framework
|
||||
/dev/devicelab/bin/tasks/web_benchmarks_canvaskit.dart @yjbanov @flutter/web
|
||||
/dev/devicelab/bin/tasks/web_benchmarks_html.dart @yjbanov @flutter/web
|
||||
/dev/devicelab/bin/tasks/web_benchmarks_skwasm.dart @eyebrowsoffire @flutter/web
|
||||
/dev/devicelab/bin/tasks/web_benchmarks_skwasm_st.dart @eyebrowsoffire @flutter/web
|
||||
/dev/devicelab/bin/tasks/windows_home_scroll_perf__timeline_summary.dart @jonahwilliams @flutter/engine
|
||||
@ -316,7 +316,6 @@
|
||||
/dev/integration_tests/deferred_components_test @gmackall @flutter/android
|
||||
|
||||
## Firebase tests
|
||||
/dev/integration_tests/abstract_method_smoke_test @reidbaker @flutter/android
|
||||
/dev/integration_tests/release_smoke_test @reidbaker @flutter/android
|
||||
|
||||
## Shards tests
|
||||
|
||||
@ -30,6 +30,9 @@ analyzer:
|
||||
# Ignore protoc generated files
|
||||
- "dev/conductor/lib/proto/*"
|
||||
|
||||
formatter:
|
||||
page_width: 100
|
||||
|
||||
linter:
|
||||
rules:
|
||||
# This list is derived from the list of all available lints located at
|
||||
@ -219,7 +222,7 @@ linter:
|
||||
# - unnecessary_lambdas # has false positives: https://github.com/dart-lang/linter/issues/498
|
||||
- unnecessary_late
|
||||
- unnecessary_library_directive
|
||||
# - unnecessary_library_name # blocked on https://github.com/dart-lang/lints/issues/181#issuecomment-2018919034
|
||||
# - unnecessary_library_name # blocked on https://github.com/dart-lang/dartdoc/issues/3882
|
||||
- unnecessary_new
|
||||
- unnecessary_null_aware_assignments
|
||||
- unnecessary_null_aware_operator_on_extension_on_nullable
|
||||
|
||||
@ -1 +1 @@
|
||||
44d788f4651be9addc9cbca34ac2da7fdba80648
|
||||
3c263a38f56b74d63c0a8fcc7425f9e499e7d917
|
||||
|
||||
@ -1 +1 @@
|
||||
bb5a25815cae4125f2a5903a2b376db58cff2e66
|
||||
56886ffe11ad677729ffeabcba227c9ad4218635
|
||||
|
||||
@ -1 +1 @@
|
||||
pG2aukmcwvp71aKuS7CLjA4I9qz5FE1c2Spyk7WPYL4C
|
||||
iWMEbVYaNdH8RJmXZRvPyKsdgjmdNLMZsYIlAJ3xgE0C
|
||||
|
||||
@ -52,18 +52,24 @@ GOTO :after_subroutine
|
||||
CALL "%bootstrap_path%"
|
||||
)
|
||||
|
||||
REM Check that git exists and get the revision
|
||||
SET git_exists=false
|
||||
REM Check that git exists and get the revision.
|
||||
WHERE git >NUL 2>&1
|
||||
IF "%ERRORLEVEL%" NEQ "0" (
|
||||
REM Could not find git. Exit without /B to avoid retrying.
|
||||
ECHO Error: Unable to find git in your PATH. && EXIT 1
|
||||
)
|
||||
2>NUL (
|
||||
PUSHD "%flutter_root%"
|
||||
FOR /f %%r IN ('git rev-parse HEAD') DO (
|
||||
SET git_exists=true
|
||||
REM 'FOR /f' spawns a new terminal instance to run the command. If an
|
||||
REM 'AutoRun' command is defined in the user's registry, that command could
|
||||
REM change the working directory, and then we wouldn't be in the directory
|
||||
REM we expect to be in. To prevent this, we need to 'PUSHD %FLUTTER_ROOT%'
|
||||
REM before getting the git revision.
|
||||
REM
|
||||
REM See https://github.com/flutter/flutter/issues/159018
|
||||
FOR /f %%r IN ('PUSHD %FLUTTER_ROOT% ^& $git rev-parse HEAD') DO (
|
||||
SET revision=%%r
|
||||
)
|
||||
POPD
|
||||
)
|
||||
REM If git didn't execute we don't have git. Exit without /B to avoid retrying.
|
||||
if %git_exists% == false echo Error: Unable to find git in your PATH. && EXIT 1
|
||||
SET compilekey="%revision%:%FLUTTER_TOOL_ARGS%"
|
||||
|
||||
REM Invalidate cache if:
|
||||
|
||||
@ -3,7 +3,7 @@ description: A new Flutter project
|
||||
version: 5.0.0+5
|
||||
|
||||
environment:
|
||||
sdk: '>=3.2.0-22.0.dev <4.0.0'
|
||||
sdk: ^3.7.0-0
|
||||
|
||||
dependencies:
|
||||
flutter:
|
||||
|
||||
@ -14,7 +14,7 @@ void main() {
|
||||
expect(find.byType(ExpansionTile), findsExactly(3));
|
||||
});
|
||||
|
||||
testWidgets('exapansion tile has one h1 tag', (WidgetTester tester) async {
|
||||
testWidgets('expansion tile has one h1 tag', (WidgetTester tester) async {
|
||||
await pumpsUseCase(tester, ExpansionTileUseCase());
|
||||
final Finder findHeadingLevelOnes = find.bySemanticsLabel('ExpansionTile Demo');
|
||||
await tester.pumpAndSettle();
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
name: flutter_automated_tests
|
||||
|
||||
environment:
|
||||
sdk: '>=3.2.0-0 <4.0.0'
|
||||
sdk: ^3.7.0-0
|
||||
|
||||
dependencies:
|
||||
flutter:
|
||||
|
||||
@ -50,6 +50,7 @@
|
||||
ignoresPersistentStateOnLaunch = "NO"
|
||||
debugDocumentVersioning = "YES"
|
||||
debugServiceExtension = "internal"
|
||||
enableGPUValidationMode = "1"
|
||||
allowLocationSimulation = "YES">
|
||||
<BuildableProductRunnable
|
||||
runnableDebuggingMode = "0">
|
||||
|
||||
@ -48,6 +48,7 @@
|
||||
ignoresPersistentStateOnLaunch = "NO"
|
||||
debugDocumentVersioning = "YES"
|
||||
debugServiceExtension = "internal"
|
||||
enableGPUValidationMode = "1"
|
||||
allowLocationSimulation = "YES">
|
||||
<BuildableProductRunnable
|
||||
runnableDebuggingMode = "0">
|
||||
|
||||
@ -2,7 +2,7 @@ name: complex_layout
|
||||
description: A benchmark of a relatively complex layout.
|
||||
|
||||
environment:
|
||||
sdk: '>=3.2.0-0 <4.0.0'
|
||||
sdk: ^3.7.0-0
|
||||
|
||||
dependencies:
|
||||
flutter:
|
||||
|
||||
@ -111,7 +111,7 @@ in `lib/web_benchmarks.dart`.
|
||||
### How to run a web benchmark
|
||||
|
||||
Web benchmarks can be run using `flutter run` in debug, profile, and release
|
||||
modes, using either the HTML or the CanvasKit rendering backend. Note, however,
|
||||
modes, using either the CanvasKit or the Skwasm rendering backend. Note, however,
|
||||
that running in debug mode will result in worse numbers. Profile mode is useful
|
||||
for profiling in Chrome DevTools because the numbers are close to release mode
|
||||
and the profile contains unobfuscated names.
|
||||
@ -121,9 +121,6 @@ Example:
|
||||
```sh
|
||||
cd dev/benchmarks/macrobenchmarks
|
||||
|
||||
# Runs in profile mode using the HTML renderer
|
||||
flutter run --web-renderer=html --profile -d web-server lib/web_benchmarks.dart
|
||||
|
||||
# Runs in profile mode using the CanvasKit renderer
|
||||
flutter run --web-renderer=canvaskit --profile -d web-server lib/web_benchmarks.dart
|
||||
```
|
||||
@ -133,9 +130,6 @@ You can also run all benchmarks exactly as the devicelab runs them:
|
||||
```sh
|
||||
cd dev/devicelab
|
||||
|
||||
# Runs using the HTML renderer
|
||||
../../bin/cache/dart-sdk/bin/dart bin/run.dart -t bin/tasks/web_benchmarks_html.dart
|
||||
|
||||
# Runs using the CanvasKit renderer
|
||||
../../bin/cache/dart-sdk/bin/dart bin/run.dart -t bin/tasks/web_benchmarks_canvaskit.dart
|
||||
```
|
||||
|
||||
@ -48,6 +48,7 @@
|
||||
ignoresPersistentStateOnLaunch = "NO"
|
||||
debugDocumentVersioning = "YES"
|
||||
debugServiceExtension = "internal"
|
||||
enableGPUValidationMode = "1"
|
||||
enableGPUFrameCaptureMode = "1"
|
||||
allowLocationSimulation = "YES">
|
||||
<BuildableProductRunnable
|
||||
|
||||
@ -9,8 +9,7 @@ import 'recorder.dart';
|
||||
/// Repeatedly paints a grid of rectangles where each rectangle is drawn in its
|
||||
/// own [Picture].
|
||||
///
|
||||
/// Measures the performance of updating many layers. For example, the HTML
|
||||
/// rendering backend attempts to reuse the DOM nodes created for engine layers.
|
||||
/// Measures the performance of updating many layers.
|
||||
///
|
||||
/// See also `bench_draw_rect.dart`, which draws nearly identical UI but puts all
|
||||
/// rectangles into the same picture.
|
||||
|
||||
@ -18,10 +18,6 @@ import 'recorder.dart';
|
||||
// WASM codecs execute on the main thread and block the UI, leading to jank,
|
||||
// but the browser's WebCodecs API is asynchronous running on a separate thread
|
||||
// and does not jank. However, the benchmark result may be the same.
|
||||
//
|
||||
// This benchmark does not support the HTML renderer because the HTML renderer
|
||||
// cannot decode image frames (it always returns 1 dummy frame, even for
|
||||
// animated images).
|
||||
class BenchImageDecoding extends RawRecorder {
|
||||
BenchImageDecoding() : super(
|
||||
name: benchmarkName,
|
||||
|
||||
@ -45,27 +45,13 @@ class ParagraphGenerator {
|
||||
}
|
||||
}
|
||||
|
||||
/// Which mode to run [BenchBuildColorsGrid] in.
|
||||
enum _TestMode {
|
||||
/// Uses the HTML rendering backend with the canvas 2D text layout.
|
||||
useCanvasTextLayout,
|
||||
|
||||
/// Uses CanvasKit for everything.
|
||||
useCanvasKit,
|
||||
}
|
||||
|
||||
/// Repeatedly lays out a paragraph.
|
||||
///
|
||||
/// Creates a different paragraph each time in order to avoid hitting the cache.
|
||||
class BenchTextLayout extends RawRecorder {
|
||||
BenchTextLayout.canvas()
|
||||
: super(name: canvasBenchmarkName);
|
||||
BenchTextLayout() : super(name: benchmarkName);
|
||||
|
||||
BenchTextLayout.canvasKit()
|
||||
: super(name: canvasKitBenchmarkName);
|
||||
|
||||
static const String canvasBenchmarkName = 'text_canvas_layout';
|
||||
static const String canvasKitBenchmarkName = 'text_canvaskit_layout';
|
||||
static const String benchmarkName = 'text_canvaskit_layout';
|
||||
|
||||
final ParagraphGenerator generator = ParagraphGenerator();
|
||||
|
||||
@ -143,14 +129,9 @@ class BenchTextLayout extends RawRecorder {
|
||||
/// use the same paragraph instance because the layout method will shortcircuit
|
||||
/// in that case.
|
||||
class BenchTextCachedLayout extends RawRecorder {
|
||||
BenchTextCachedLayout.canvas()
|
||||
: super(name: canvasBenchmarkName);
|
||||
BenchTextCachedLayout() : super(name: benchmarkName);
|
||||
|
||||
BenchTextCachedLayout.canvasKit()
|
||||
: super(name: canvasKitBenchmarkName);
|
||||
|
||||
static const String canvasBenchmarkName = 'text_canvas_cached_layout';
|
||||
static const String canvasKitBenchmarkName = 'text_canvas_kit_cached_layout';
|
||||
static const String benchmarkName = 'text_canvas_kit_cached_layout';
|
||||
|
||||
@override
|
||||
void body(Profile profile) {
|
||||
@ -179,11 +160,7 @@ int _counter = 0;
|
||||
/// The benchmark constructs a tabbed view, where each tab displays a list of
|
||||
/// colors. Each color's description is made of several [Text] nodes.
|
||||
class BenchBuildColorsGrid extends WidgetBuildRecorder {
|
||||
BenchBuildColorsGrid.canvas()
|
||||
: _mode = _TestMode.useCanvasTextLayout, super(name: canvasBenchmarkName);
|
||||
|
||||
BenchBuildColorsGrid.canvasKit()
|
||||
: _mode = _TestMode.useCanvasKit, super(name: canvasKitBenchmarkName);
|
||||
BenchBuildColorsGrid() : super(name: benchmarkName);
|
||||
|
||||
/// Disables tracing for this benchmark.
|
||||
///
|
||||
@ -193,47 +170,7 @@ class BenchBuildColorsGrid extends WidgetBuildRecorder {
|
||||
@override
|
||||
bool get isTracingEnabled => false;
|
||||
|
||||
static const String canvasBenchmarkName = 'text_canvas_color_grid';
|
||||
static const String canvasKitBenchmarkName = 'text_canvas_kit_color_grid';
|
||||
|
||||
/// Whether to use the new canvas-based text measurement implementation.
|
||||
final _TestMode _mode;
|
||||
|
||||
num _textLayoutMicros = 0;
|
||||
|
||||
@override
|
||||
Future<void> setUpAll() async {
|
||||
super.setUpAll();
|
||||
registerEngineBenchmarkValueListener('text_layout', (num value) {
|
||||
_textLayoutMicros += value;
|
||||
});
|
||||
}
|
||||
|
||||
@override
|
||||
Future<void> tearDownAll() async {
|
||||
stopListeningToEngineBenchmarkValues('text_layout');
|
||||
}
|
||||
|
||||
@override
|
||||
void frameWillDraw() {
|
||||
super.frameWillDraw();
|
||||
_textLayoutMicros = 0;
|
||||
}
|
||||
|
||||
@override
|
||||
void frameDidDraw() {
|
||||
// We need to do this before calling [super.frameDidDraw] because the latter
|
||||
// updates the value of [showWidget] in preparation for the next frame.
|
||||
// TODO(yjbanov): https://github.com/flutter/flutter/issues/53877
|
||||
if (showWidget && _mode != _TestMode.useCanvasKit) {
|
||||
profile!.addDataPoint(
|
||||
'text_layout',
|
||||
Duration(microseconds: _textLayoutMicros.toInt()),
|
||||
reported: true,
|
||||
);
|
||||
}
|
||||
super.frameDidDraw();
|
||||
}
|
||||
static const String benchmarkName = 'text_canvas_kit_color_grid';
|
||||
|
||||
@override
|
||||
Widget createWidget() {
|
||||
|
||||
@ -36,8 +36,8 @@ const int kDefaultTotalSampleCount = _kDefaultWarmUpSampleCount + _kDefaultMeasu
|
||||
|
||||
/// A benchmark metric that includes frame-related computations prior to
|
||||
/// submitting layer and picture operations to the underlying renderer, such as
|
||||
/// HTML and CanvasKit. During this phase we compute transforms, clips, and
|
||||
/// other information needed for rendering.
|
||||
/// CanvasKit. During this phase we compute transforms, clips, and other
|
||||
/// information needed for rendering.
|
||||
const String kProfilePrerollFrame = 'preroll_frame';
|
||||
|
||||
/// A benchmark metric that includes submitting layer and picture information
|
||||
|
||||
@ -36,9 +36,6 @@ import 'src/web/recorder.dart';
|
||||
|
||||
typedef RecorderFactory = Recorder Function();
|
||||
|
||||
const bool isCanvasKit = bool.fromEnvironment('FLUTTER_WEB_USE_SKIA');
|
||||
const bool isSkwasm = bool.fromEnvironment('FLUTTER_WEB_USE_SKWASM');
|
||||
|
||||
/// List of all benchmarks that run in the devicelab.
|
||||
///
|
||||
/// When adding a new benchmark, add it to this map. Make sure that the name
|
||||
@ -70,34 +67,17 @@ final Map<String, RecorderFactory> benchmarks = <String, RecorderFactory>{
|
||||
BenchMouseRegionGridHover.benchmarkName: () => BenchMouseRegionGridHover(),
|
||||
BenchMouseRegionMixedGridHover.benchmarkName: () => BenchMouseRegionMixedGridHover(),
|
||||
BenchWrapBoxScroll.benchmarkName: () => BenchWrapBoxScroll(),
|
||||
if (!isSkwasm) ...<String, RecorderFactory>{
|
||||
// Platform views are not yet supported with Skwasm.
|
||||
// https://github.com/flutter/flutter/issues/126346
|
||||
BenchPlatformViewInfiniteScroll.benchmarkName: () => BenchPlatformViewInfiniteScroll.forward(),
|
||||
BenchPlatformViewInfiniteScroll.benchmarkNameBackward: () => BenchPlatformViewInfiniteScroll.backward(),
|
||||
},
|
||||
BenchPlatformViewInfiniteScroll.benchmarkName: () => BenchPlatformViewInfiniteScroll.forward(),
|
||||
BenchPlatformViewInfiniteScroll.benchmarkNameBackward: () => BenchPlatformViewInfiniteScroll.backward(),
|
||||
BenchMaterial3Components.benchmarkName: () => BenchMaterial3Components(),
|
||||
BenchMaterial3Semantics.benchmarkName: () => BenchMaterial3Semantics(),
|
||||
BenchMaterial3ScrollSemantics.benchmarkName: () => BenchMaterial3ScrollSemantics(),
|
||||
|
||||
// Skia-only benchmarks
|
||||
if (isCanvasKit || isSkwasm) ...<String, RecorderFactory>{
|
||||
BenchTextLayout.canvasKitBenchmarkName: () => BenchTextLayout.canvasKit(),
|
||||
BenchBuildColorsGrid.canvasKitBenchmarkName: () => BenchBuildColorsGrid.canvasKit(),
|
||||
BenchTextCachedLayout.canvasKitBenchmarkName: () => BenchTextCachedLayout.canvasKit(),
|
||||
BenchTextLayout.benchmarkName: () => BenchTextLayout(),
|
||||
BenchBuildColorsGrid.benchmarkName: () => BenchBuildColorsGrid(),
|
||||
BenchTextCachedLayout.benchmarkName: () => BenchTextCachedLayout(),
|
||||
|
||||
// The HTML renderer does not decode frame-by-frame. It just drops an <img>
|
||||
// element and lets it animate automatically with no feedback to the
|
||||
// framework. So this benchmark only makes sense in CanvasKit.
|
||||
BenchImageDecoding.benchmarkName: () => BenchImageDecoding(),
|
||||
},
|
||||
|
||||
// HTML-only benchmarks
|
||||
if (!isCanvasKit && !isSkwasm) ...<String, RecorderFactory>{
|
||||
BenchTextLayout.canvasBenchmarkName: () => BenchTextLayout.canvas(),
|
||||
BenchTextCachedLayout.canvasBenchmarkName: () => BenchTextCachedLayout.canvas(),
|
||||
BenchBuildColorsGrid.canvasBenchmarkName: () => BenchBuildColorsGrid.canvas(),
|
||||
},
|
||||
BenchImageDecoding.benchmarkName: () => BenchImageDecoding(),
|
||||
};
|
||||
|
||||
final LocalBenchmarkServerClient _client = LocalBenchmarkServerClient();
|
||||
|
||||
@ -48,6 +48,7 @@
|
||||
ignoresPersistentStateOnLaunch = "NO"
|
||||
debugDocumentVersioning = "YES"
|
||||
debugServiceExtension = "internal"
|
||||
enableGPUValidationMode = "1"
|
||||
allowLocationSimulation = "YES">
|
||||
<BuildableProductRunnable
|
||||
runnableDebuggingMode = "0">
|
||||
|
||||
@ -2,7 +2,7 @@ name: macrobenchmarks
|
||||
description: Performance benchmarks using flutter drive.
|
||||
|
||||
environment:
|
||||
sdk: '>=3.2.0-0 <4.0.0'
|
||||
sdk: ^3.7.0-0
|
||||
|
||||
dependencies:
|
||||
flutter:
|
||||
|
||||
@ -16,6 +16,7 @@ import 'foundation/change_notifier_bench.dart' as change_notifier_bench;
|
||||
import 'foundation/clamp.dart' as clamp;
|
||||
import 'foundation/decode_and_parse_asset_manifest.dart'
|
||||
as decode_and_parse_asset_manifest;
|
||||
import 'foundation/observer_list_bench.dart' as observer_list_bench;
|
||||
import 'foundation/platform_asset_bundle.dart' as platform_asset_bundle;
|
||||
import 'foundation/standard_message_codec_bench.dart'
|
||||
as standard_message_codec_bench;
|
||||
@ -64,6 +65,7 @@ Future<void> main() async {
|
||||
'foundation/decode_and_parse_asset_manifest.dart',
|
||||
decode_and_parse_asset_manifest.execute
|
||||
),
|
||||
('foundation/observer_list_bench.dart', observer_list_bench.execute),
|
||||
(
|
||||
'geometry/matrix_utils_transform_bench.dart',
|
||||
matrix_utils_transform_bench.execute
|
||||
@ -125,8 +127,8 @@ Future<void> main() async {
|
||||
final ArgResults results = parser.parse(mainArgs);
|
||||
final List<String> selectedTests = results.multiOption('tests');
|
||||
|
||||
// Shuffle the tests becauase we don't want order dependent tests.
|
||||
// It is the responsibily of the infra to tell us what the seed value is,
|
||||
// Shuffle the tests because we don't want order dependent tests.
|
||||
// It is the responsibility of the infra to tell us what the seed value is,
|
||||
// in case we want to have the seed stable for some time period.
|
||||
final List<Benchmark> tests = benchmarks.where((Benchmark e) => selectedTests.contains(e.$1)).toList();
|
||||
tests.shuffle(Random(int.parse(results.option('seed')!)));
|
||||
|
||||
@ -0,0 +1,172 @@
|
||||
// Copyright 2014 The Flutter Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
import 'package:flutter/animation.dart';
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
|
||||
import '../common.dart';
|
||||
|
||||
const int _kNumIterationsList = 2 << 10;
|
||||
const int _kNumIterationsHashed = 2 << 15;
|
||||
const List<int> callbackCounts = <int>[1, 10, 100, 500];
|
||||
|
||||
class TestAnimationController extends AnimationController {
|
||||
TestAnimationController() : super(vsync: const TestVSync());
|
||||
|
||||
@override
|
||||
void notifyListeners() => super.notifyListeners();
|
||||
}
|
||||
|
||||
Future<void> execute() async {
|
||||
assert(false,
|
||||
"Don't run benchmarks in debug mode! Use 'flutter run --release'.");
|
||||
|
||||
final BenchmarkResultPrinter printer = BenchmarkResultPrinter();
|
||||
|
||||
void runNotifyListenersLoopWithObserverList(
|
||||
int totalIterations, {
|
||||
bool failRemoval = false,
|
||||
bool addResult = true,
|
||||
}) {
|
||||
final String suffix = failRemoval ? 'removalFail' : 'removalSuccess';
|
||||
final String name = 'notifyListeners:ObserverList:$suffix';
|
||||
|
||||
void miss() {}
|
||||
|
||||
for (final int callbackCount in callbackCounts) {
|
||||
final int iterations = totalIterations ~/ callbackCount;
|
||||
|
||||
final ObserverList<VoidCallback> observerList =
|
||||
ObserverList<VoidCallback>();
|
||||
for (int i = 0; i < callbackCount; ++i) {
|
||||
observerList.add(
|
||||
switch (failRemoval) {
|
||||
false => () {
|
||||
final VoidCallback first =
|
||||
(observerList.iterator..moveNext()).current;
|
||||
|
||||
observerList.remove(first);
|
||||
observerList.add(first);
|
||||
},
|
||||
true => () => observerList.remove(miss),
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
final Stopwatch watch = Stopwatch()..start();
|
||||
|
||||
for (int i = 0; i < iterations; ++i) {
|
||||
final List<VoidCallback> list = observerList.toList(growable: false);
|
||||
for (final VoidCallback cb in list) {
|
||||
if (observerList.contains(cb)) {
|
||||
cb();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
watch.stop();
|
||||
|
||||
if (addResult) {
|
||||
printer.addResult(
|
||||
description: '$name ($callbackCount callbacks)',
|
||||
value: watch.elapsedMicroseconds / iterations,
|
||||
unit: 'µs per iteration',
|
||||
name: '$name$callbackCount',
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void runNotifyListenersLoopWithHashedObserverList(
|
||||
int totalIterations, {
|
||||
bool addResult = true,
|
||||
}) {
|
||||
const String name = 'notifyListeners:HashedObserverList';
|
||||
|
||||
for (final int callbackCount in callbackCounts) {
|
||||
final int iterations = totalIterations ~/ callbackCount;
|
||||
|
||||
final HashedObserverList<VoidCallback> observerList =
|
||||
HashedObserverList<VoidCallback>();
|
||||
for (int i = 0; i < callbackCount; ++i) {
|
||||
observerList.add(() {
|
||||
final VoidCallback first =
|
||||
(observerList.iterator..moveNext()).current;
|
||||
|
||||
observerList.remove(first);
|
||||
observerList.add(first);
|
||||
});
|
||||
}
|
||||
|
||||
final Stopwatch watch = Stopwatch()..start();
|
||||
|
||||
for (int i = 0; i < iterations; ++i) {
|
||||
final List<VoidCallback> list = observerList.toList(growable: false);
|
||||
for (final VoidCallback cb in list) {
|
||||
if (observerList.contains(cb)) {
|
||||
cb();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
watch.stop();
|
||||
|
||||
if (addResult) {
|
||||
printer.addResult(
|
||||
description: '$name ($callbackCount callbacks)',
|
||||
value: watch.elapsedMicroseconds / iterations,
|
||||
unit: 'µs per iteration',
|
||||
name: '$name$callbackCount',
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void runNotifyListenersLoopWithAnimationController(
|
||||
int totalIterations, {
|
||||
bool addResult = true,
|
||||
}) {
|
||||
const String name = 'notifyListeners:AnimationController';
|
||||
|
||||
for (final int callbackCount in callbackCounts) {
|
||||
final int iterations = totalIterations ~/ callbackCount;
|
||||
|
||||
final TestAnimationController controller = TestAnimationController();
|
||||
for (int i = 0; i < callbackCount; ++i) {
|
||||
late final VoidCallback cb;
|
||||
cb = () {
|
||||
controller.removeListener(cb);
|
||||
controller.addListener(cb);
|
||||
};
|
||||
controller.addListener(cb);
|
||||
}
|
||||
|
||||
final Stopwatch watch = Stopwatch()..start();
|
||||
|
||||
for (int i = 0; i < iterations; ++i) {
|
||||
controller.notifyListeners();
|
||||
}
|
||||
|
||||
watch.stop();
|
||||
|
||||
if (addResult) {
|
||||
printer.addResult(
|
||||
description: '$name ($callbackCount callbacks)',
|
||||
value: watch.elapsedMicroseconds / iterations,
|
||||
unit: 'µs per iteration',
|
||||
name: '$name$callbackCount',
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
runNotifyListenersLoopWithObserverList(_kNumIterationsList);
|
||||
runNotifyListenersLoopWithObserverList(_kNumIterationsList,
|
||||
failRemoval: true);
|
||||
runNotifyListenersLoopWithHashedObserverList(_kNumIterationsHashed);
|
||||
runNotifyListenersLoopWithAnimationController(_kNumIterationsHashed);
|
||||
|
||||
printer.printToStdout();
|
||||
}
|
||||
@ -2,7 +2,7 @@ name: microbenchmarks
|
||||
description: Small benchmarks for very specific parts of the Flutter framework.
|
||||
|
||||
environment:
|
||||
sdk: '>=3.2.0-0 <4.0.0'
|
||||
sdk: ^3.7.0-0
|
||||
|
||||
dependencies:
|
||||
meta: 1.15.0
|
||||
|
||||
@ -4,7 +4,7 @@ description: A module that is embedded in the multiple_flutters benchmark test.
|
||||
version: 1.0.0+1
|
||||
|
||||
environment:
|
||||
sdk: '>=3.2.0-0 <4.0.0'
|
||||
sdk: ^3.7.0-0
|
||||
|
||||
dependencies:
|
||||
flutter:
|
||||
|
||||
@ -5,7 +5,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
|
||||
version: 1.0.0+1
|
||||
|
||||
environment:
|
||||
sdk: '>=3.2.0-0 <4.0.0'
|
||||
sdk: ^3.7.0-0
|
||||
|
||||
dependencies:
|
||||
flutter:
|
||||
|
||||
@ -2,7 +2,7 @@ name: platform_views_layout
|
||||
description: A benchmark for platform views.
|
||||
|
||||
environment:
|
||||
sdk: '>=3.2.0-0 <4.0.0'
|
||||
sdk: ^3.7.0-0
|
||||
|
||||
dependencies:
|
||||
flutter:
|
||||
|
||||
@ -2,7 +2,7 @@ name: platform_views_layout_hybrid_composition
|
||||
description: A benchmark for platform views, using hybrid composition on android.
|
||||
|
||||
environment:
|
||||
sdk: '>=3.2.0-0 <4.0.0'
|
||||
sdk: ^3.7.0-0
|
||||
|
||||
dependencies:
|
||||
flutter:
|
||||
|
||||
@ -50,6 +50,7 @@
|
||||
ignoresPersistentStateOnLaunch = "NO"
|
||||
debugDocumentVersioning = "YES"
|
||||
debugServiceExtension = "internal"
|
||||
enableGPUValidationMode = "1"
|
||||
allowLocationSimulation = "YES">
|
||||
<BuildableProductRunnable
|
||||
runnableDebuggingMode = "0">
|
||||
|
||||
@ -5,6 +5,8 @@
|
||||
// THE FOLLOWING FILES WERE GENERATED BY `flutter gen-l10n`.
|
||||
|
||||
|
||||
// ignore: unused_import
|
||||
import 'package:intl/intl.dart' as intl;
|
||||
import 'stock_strings.dart';
|
||||
|
||||
// ignore_for_file: type=lint
|
||||
|
||||
@ -5,6 +5,8 @@
|
||||
// THE FOLLOWING FILES WERE GENERATED BY `flutter gen-l10n`.
|
||||
|
||||
|
||||
// ignore: unused_import
|
||||
import 'package:intl/intl.dart' as intl;
|
||||
import 'stock_strings.dart';
|
||||
|
||||
// ignore_for_file: type=lint
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
name: stocks
|
||||
|
||||
environment:
|
||||
sdk: '>=3.2.0-0 <4.0.0'
|
||||
sdk: ^3.7.0-0
|
||||
|
||||
dependencies:
|
||||
flutter:
|
||||
|
||||
@ -22,6 +22,7 @@ import 'custom_rules/analyze.dart';
|
||||
import 'custom_rules/avoid_future_catcherror.dart';
|
||||
import 'custom_rules/no_double_clamp.dart';
|
||||
import 'custom_rules/no_stop_watches.dart';
|
||||
import 'custom_rules/protect_public_state_subtypes.dart';
|
||||
import 'custom_rules/render_box_intrinsics.dart';
|
||||
import 'run_command.dart';
|
||||
import 'utils.dart';
|
||||
@ -180,7 +181,12 @@ Future<void> run(List<String> arguments) async {
|
||||
// Only run the private lints when the code is free of type errors. The
|
||||
// lints are easier to write when they can assume, for example, there is no
|
||||
// inheritance cycles.
|
||||
final List<AnalyzeRule> rules = <AnalyzeRule>[noDoubleClamp, noStopwatches, renderBoxIntrinsicCalculation];
|
||||
final List<AnalyzeRule> rules = <AnalyzeRule>[
|
||||
noDoubleClamp,
|
||||
noStopwatches,
|
||||
renderBoxIntrinsicCalculation,
|
||||
protectPublicStateSubtypes,
|
||||
];
|
||||
final String ruleNames = rules.map((AnalyzeRule rule) => '\n * $rule').join();
|
||||
printProgress('Analyzing code in the framework with the following rules:$ruleNames');
|
||||
await analyzeWithRules(flutterRoot, rules,
|
||||
@ -2120,7 +2126,8 @@ Future<void> lintKotlinFiles(String workingDirectory) async {
|
||||
'To reproduce this lint locally:\n'
|
||||
'1. Identify the CIPD version tag used to resolve this particular version of ktlint (check the dependencies section of this shard in the ci.yaml). \n'
|
||||
'2. Download that version from https://chrome-infra-packages.appspot.com/p/flutter/ktlint/linux-amd64/+/<version_tag>\n'
|
||||
'3. From the repository root, run `<path_to_ktlint>/ktlint --editorconfig=$editorConfigRelativePath --baseline=$baselineRelativePath`';
|
||||
'3. From the repository root, run `<path_to_ktlint>/ktlint --editorconfig=$editorConfigRelativePath --baseline=$baselineRelativePath`\n'
|
||||
'Alternatively, if you use Android Studio, follow the docs at docs/platforms/android/Kotlin-android-studio-formatting.md to enable auto formatting.';
|
||||
foundError(<String>[errorMessage]);
|
||||
}
|
||||
}
|
||||
@ -2239,6 +2246,7 @@ const Set<String> kExecutableAllowlist = <String>{
|
||||
'dev/tools/gen_keycodes/bin/gen_keycodes',
|
||||
'dev/tools/repackage_gradle_wrapper.sh',
|
||||
'dev/tools/bin/engine_hash.sh',
|
||||
'dev/tools/format.sh',
|
||||
|
||||
'packages/flutter_tools/bin/macos_assemble.sh',
|
||||
'packages/flutter_tools/bin/tool_backend.sh',
|
||||
|
||||
@ -142,29 +142,18 @@ class SampleChecker {
|
||||
// Get a list of the filenames that were not found in the source files.
|
||||
final List<String> missingFilenames = checkForMissingLinks(exampleFilenames, exampleLinks);
|
||||
|
||||
// Get a list of any tests that are missing, as well as any that used to be
|
||||
// missing, but have been implemented.
|
||||
final (List<File> missingTests, List<File> noLongerMissing) = checkForMissingTests(exampleFilenames);
|
||||
// Get a list of any tests that are missing.
|
||||
final List<File> missingTests = checkForMissingTests(exampleFilenames);
|
||||
|
||||
// Remove any that we know are exceptions (examples that aren't expected to be
|
||||
// linked into any source files). These are typically template files used to
|
||||
// generate new examples.
|
||||
missingFilenames.removeWhere((String file) => _knownUnlinkedExamples.contains(file));
|
||||
|
||||
if (missingFilenames.isEmpty && missingTests.isEmpty && noLongerMissing.isEmpty && malformedLinks.isEmpty) {
|
||||
if (missingFilenames.isEmpty && missingTests.isEmpty && malformedLinks.isEmpty) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (noLongerMissing.isNotEmpty) {
|
||||
final StringBuffer buffer = StringBuffer('The following tests have been implemented! Huzzah!:\n');
|
||||
for (final File name in noLongerMissing) {
|
||||
buffer.writeln(' ${getRelativePath(name)}');
|
||||
}
|
||||
buffer.writeln('However, they now need to be removed from the _knownMissingTests');
|
||||
buffer.write('list in the script $_scriptLocation.');
|
||||
foundError(buffer.toString().split('\n'));
|
||||
}
|
||||
|
||||
if (missingTests.isNotEmpty) {
|
||||
final StringBuffer buffer = StringBuffer('The following example test files are missing:\n');
|
||||
for (final File name in missingTests) {
|
||||
@ -279,35 +268,14 @@ class SampleChecker {
|
||||
return '${path.join(testPath, path.basenameWithoutExtension(example.path))}_test.dart';
|
||||
}
|
||||
|
||||
(List<File>, List<File>) checkForMissingTests(List<File> exampleFilenames) {
|
||||
List<File> checkForMissingTests(List<File> exampleFilenames) {
|
||||
final List<File> missingTests = <File>[];
|
||||
final List<File> noLongerMissingTests = <File>[];
|
||||
for (final File example in exampleFilenames) {
|
||||
final File testFile = filesystem.file(getTestNameForExample(example, examples));
|
||||
final String name = path.relative(testFile.absolute.path, from: flutterRoot.absolute.path);
|
||||
if (!testFile.existsSync()) {
|
||||
missingTests.add(testFile);
|
||||
} else if (_knownMissingTests.contains(name.replaceAll(r'\', '/'))) {
|
||||
noLongerMissingTests.add(testFile);
|
||||
}
|
||||
}
|
||||
// Skip any that we know are missing.
|
||||
missingTests.removeWhere(
|
||||
(File test) {
|
||||
final String name = path.relative(test.absolute.path, from: flutterRoot.absolute.path).replaceAll(r'\', '/');
|
||||
return _knownMissingTests.contains(name);
|
||||
},
|
||||
);
|
||||
return (missingTests, noLongerMissingTests);
|
||||
return missingTests;
|
||||
}
|
||||
}
|
||||
|
||||
// These tests are known to be missing. They should all eventually be
|
||||
// implemented, but until they are we allow them, so that we can catch any new
|
||||
// examples that are added without tests.
|
||||
//
|
||||
// TODO(gspencergoog): implement the missing tests.
|
||||
// See https://github.com/flutter/flutter/issues/130459
|
||||
final Set<String> _knownMissingTests = <String>{
|
||||
'examples/api/test/material/color_scheme/dynamic_content_color.0_test.dart',
|
||||
};
|
||||
|
||||
101
dev/bots/custom_rules/protect_public_state_subtypes.dart
Normal file
101
dev/bots/custom_rules/protect_public_state_subtypes.dart
Normal file
@ -0,0 +1,101 @@
|
||||
// Copyright 2014 The Flutter Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
// TODO(nate-thegrate): remove this file if @protected changes, or add a test if it doesn't.
|
||||
// https://github.com/dart-lang/sdk/issues/57094
|
||||
|
||||
import 'package:analyzer/dart/analysis/results.dart';
|
||||
import 'package:analyzer/dart/ast/ast.dart';
|
||||
import 'package:analyzer/dart/ast/visitor.dart';
|
||||
import 'package:analyzer/dart/element/element.dart';
|
||||
import 'package:analyzer/dart/element/type.dart';
|
||||
|
||||
import '../utils.dart';
|
||||
import 'analyze.dart';
|
||||
|
||||
final AnalyzeRule protectPublicStateSubtypes = _ProtectPublicStateSubtypes();
|
||||
|
||||
class _ProtectPublicStateSubtypes implements AnalyzeRule {
|
||||
final Map<ResolvedUnitResult, List<MethodDeclaration>> _errors = <ResolvedUnitResult, List<MethodDeclaration>>{};
|
||||
|
||||
@override
|
||||
void applyTo(ResolvedUnitResult unit) {
|
||||
final _StateSubclassVisitor visitor = _StateSubclassVisitor();
|
||||
unit.unit.visitChildren(visitor);
|
||||
final List<MethodDeclaration> unprotected = visitor.unprotectedMethods;
|
||||
if (unprotected.isNotEmpty) {
|
||||
_errors.putIfAbsent(unit, () => <MethodDeclaration>[]).addAll(unprotected);
|
||||
}
|
||||
}
|
||||
|
||||
@override
|
||||
void reportViolations(String workingDirectory) {
|
||||
if (_errors.isEmpty) {
|
||||
return;
|
||||
}
|
||||
|
||||
foundError(
|
||||
<String>[
|
||||
for (final MapEntry<ResolvedUnitResult, List<MethodDeclaration>> entry in _errors.entries)
|
||||
for (final MethodDeclaration method in entry.value)
|
||||
'${locationInFile(entry.key, method, workingDirectory)}: $method - missing "@protected" annotation.',
|
||||
'\nPublic State subtypes should add @protected when overriding methods,',
|
||||
'to avoid exposing internal logic to developers.',
|
||||
],
|
||||
);
|
||||
}
|
||||
|
||||
@override
|
||||
String toString() => 'Add "@protected" to public State subtypes';
|
||||
}
|
||||
|
||||
class _StateSubclassVisitor extends SimpleAstVisitor<void> {
|
||||
final List<MethodDeclaration> unprotectedMethods = <MethodDeclaration>[];
|
||||
|
||||
/// Holds the `State` class [DartType].
|
||||
static DartType? stateType;
|
||||
|
||||
static bool isPublicStateSubtype(InterfaceElement element) {
|
||||
if (!element.isPublic) {
|
||||
return false;
|
||||
}
|
||||
if (stateType != null) {
|
||||
return element.allSupertypes.contains(stateType);
|
||||
}
|
||||
for (final InterfaceType superType in element.allSupertypes) {
|
||||
if (superType.element.name == 'State') {
|
||||
stateType = superType;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@override
|
||||
void visitClassDeclaration(ClassDeclaration node) {
|
||||
if (isPublicStateSubtype(node.declaredElement!)) {
|
||||
node.visitChildren(this);
|
||||
}
|
||||
}
|
||||
|
||||
/// Checks whether overridden `State` methods have the `@protected` annotation,
|
||||
/// and adds the declaration to [unprotectedMethods] if not.
|
||||
@override
|
||||
void visitMethodDeclaration(MethodDeclaration node) {
|
||||
switch (node.name.lexeme) {
|
||||
case 'initState':
|
||||
case 'didUpdateWidget':
|
||||
case 'didChangeDependencies':
|
||||
case 'reassemble':
|
||||
case 'deactivate':
|
||||
case 'activate':
|
||||
case 'dispose':
|
||||
case 'build':
|
||||
case 'debugFillProperties':
|
||||
if (!node.declaredElement!.hasProtected) {
|
||||
unprotectedMethods.add(node);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -121,7 +121,7 @@ function generate_docs() {
|
||||
# Install and activate dartdoc.
|
||||
# When updating to a new dartdoc version, please also update
|
||||
# `dartdoc_options.yaml` to include newly introduced error and warning types.
|
||||
"$DART" pub global activate dartdoc 8.2.0
|
||||
"$DART" pub global activate dartdoc 8.3.0
|
||||
|
||||
# Build and install the snippets tool, which resides in
|
||||
# the dev/docs/snippets directory.
|
||||
|
||||
@ -2,7 +2,7 @@ name: tests_on_bots
|
||||
description: Scripts which run on bots.
|
||||
|
||||
environment:
|
||||
sdk: '>=3.2.0-0 <4.0.0'
|
||||
sdk: ^3.7.0-0
|
||||
|
||||
dependencies:
|
||||
analyzer: 6.11.0
|
||||
|
||||
@ -162,6 +162,15 @@ Future<CommandResult> runCommand(String executable, List<String> arguments, {
|
||||
}) async {
|
||||
final String commandDescription = '${path.relative(executable, from: workingDirectory)} ${arguments.join(' ')}';
|
||||
final String relativeWorkingDir = workingDirectory ?? path.relative(io.Directory.current.path);
|
||||
if (dryRun) {
|
||||
printProgress(_prettyPrintRunCommand(executable, arguments, workingDirectory));
|
||||
return CommandResult._(
|
||||
0,
|
||||
Duration.zero,
|
||||
'$executable ${arguments.join(' ')}',
|
||||
'Simulated execution due to --dry-run',
|
||||
);
|
||||
}
|
||||
|
||||
final Command command = await startCommand(executable, arguments,
|
||||
workingDirectory: workingDirectory,
|
||||
@ -205,6 +214,23 @@ Future<CommandResult> runCommand(String executable, List<String> arguments, {
|
||||
return result;
|
||||
}
|
||||
|
||||
final String _flutterRoot = path.dirname(path.dirname(path.dirname(path.fromUri(io.Platform.script))));
|
||||
|
||||
String _prettyPrintRunCommand(String executable, List<String> arguments, String? workingDirectory) {
|
||||
final StringBuffer output = StringBuffer();
|
||||
|
||||
// Print CWD relative to the root.
|
||||
output.write('|> ');
|
||||
output.write(path.relative(executable, from: _flutterRoot));
|
||||
if (workingDirectory != null) {
|
||||
output.write(' (${path.relative(workingDirectory, from: _flutterRoot)})');
|
||||
}
|
||||
output.writeln(': ');
|
||||
output.writeAll(arguments.map((String a) => ' $a'), '\n');
|
||||
|
||||
return output.toString();
|
||||
}
|
||||
|
||||
/// Specifies what to do with the command output from [runCommand] and [startCommand].
|
||||
enum OutputMode {
|
||||
/// Forwards standard output and standard error streams to the test process'
|
||||
|
||||
@ -8,6 +8,20 @@ import 'package:path/path.dart' as path;
|
||||
|
||||
import '../utils.dart';
|
||||
|
||||
/// To run this test locally:
|
||||
///
|
||||
/// 1. Connect an Android device or emulator.
|
||||
/// 2. Run `dart pub get` in dev/bots
|
||||
/// 3. Set flutter to use Java 11
|
||||
/// flutter config --jdk-dir=<Path to java 11>
|
||||
/// On a Mac you can run `/usr/libexec/java_home -V1 to find the installed
|
||||
/// versions of java. Remember to clear this value after testing.
|
||||
/// `flutter config --jdk-dir=`
|
||||
/// 4. Run the following command from the root of the Flutter repository:
|
||||
///
|
||||
/// ```sh
|
||||
/// SHARD=android_java11_tool_integration_tests bin/cache/dart-sdk/bin/dart dev/bots/test.dart
|
||||
/// ```
|
||||
Future<void> androidJava11IntegrationToolTestsRunner() async {
|
||||
final String toolsPath = path.join(flutterRoot, 'packages', 'flutter_tools');
|
||||
|
||||
|
||||
@ -9,14 +9,16 @@ import '../utils.dart';
|
||||
/// To run this test locally:
|
||||
///
|
||||
/// 1. Connect an Android device or emulator.
|
||||
/// 2. Run the following command from the root of the Flutter repository:
|
||||
/// 2. Run `dart pub get` in dev/bots
|
||||
/// 3. Run the following command from the root of the Flutter repository:
|
||||
///
|
||||
/// ```sh
|
||||
/// SHARD=flutter_driver_android bin/cache/dart-sdk/bin/dart dev/bots/test.dart
|
||||
/// ```
|
||||
///
|
||||
/// For debugging, it is recommended to instead just run and launch these tests
|
||||
/// For debugging, you need to instead run and launch these tests
|
||||
/// individually _in_ the `dev/integration_tests/native_driver_test` directory.
|
||||
/// Comparisons against goldens cant happen locally.
|
||||
Future<void> runFlutterDriverAndroidTests() async {
|
||||
print('Running Flutter Driver Android tests...');
|
||||
|
||||
|
||||
@ -105,7 +105,7 @@ class WebTestsSuite {
|
||||
testAppDirectory: path.join('packages', 'integration_test', 'example'),
|
||||
target: path.join('test_driver', 'failure.dart'),
|
||||
buildMode: buildMode,
|
||||
renderer: 'canvaskit',
|
||||
webRenderer: 'canvaskit',
|
||||
// This test intentionally fails and prints stack traces in the browser
|
||||
// logs. To avoid confusion, silence browser output.
|
||||
silenceBrowserOutput: true,
|
||||
@ -115,7 +115,7 @@ class WebTestsSuite {
|
||||
target: path.join('integration_test', 'example_test.dart'),
|
||||
driver: path.join('test_driver', 'integration_test.dart'),
|
||||
buildMode: buildMode,
|
||||
renderer: 'canvaskit',
|
||||
webRenderer: 'canvaskit',
|
||||
expectWriteResponseFile: true,
|
||||
expectResponseFileContent: 'null',
|
||||
),
|
||||
@ -124,7 +124,7 @@ class WebTestsSuite {
|
||||
target: path.join('integration_test', 'extended_test.dart'),
|
||||
driver: path.join('test_driver', 'extended_integration_test.dart'),
|
||||
buildMode: buildMode,
|
||||
renderer: 'canvaskit',
|
||||
webRenderer: 'canvaskit',
|
||||
expectWriteResponseFile: true,
|
||||
expectResponseFileContent: '''
|
||||
{
|
||||
@ -177,7 +177,7 @@ class WebTestsSuite {
|
||||
testAppDirectory: path.join(flutterRoot, 'examples', 'hello_world'),
|
||||
target: 'test_driver/smoke_web_engine.dart',
|
||||
buildMode: 'profile',
|
||||
renderer: 'auto',
|
||||
webRenderer: 'auto',
|
||||
),
|
||||
() => _runGalleryE2eWebTest('debug'),
|
||||
() => _runGalleryE2eWebTest('debug', canvasKit: true),
|
||||
@ -278,7 +278,7 @@ class WebTestsSuite {
|
||||
await _runFlutterDriverWebTest(
|
||||
target: path.join('test_driver', '$name.dart'),
|
||||
buildMode: buildMode,
|
||||
renderer: renderer,
|
||||
webRenderer: renderer,
|
||||
testAppDirectory: path.join(flutterRoot, 'dev', 'integration_tests', 'web_e2e_tests'),
|
||||
);
|
||||
}
|
||||
@ -286,7 +286,7 @@ class WebTestsSuite {
|
||||
Future<void> _runFlutterDriverWebTest({
|
||||
required String target,
|
||||
required String buildMode,
|
||||
required String renderer,
|
||||
required String webRenderer,
|
||||
required String testAppDirectory,
|
||||
String? driver,
|
||||
bool expectFailure = false,
|
||||
@ -318,7 +318,24 @@ class WebTestsSuite {
|
||||
'-d',
|
||||
'web-server',
|
||||
'--$buildMode',
|
||||
'--web-renderer=$renderer',
|
||||
// '--web-renderer=$webRenderer',
|
||||
'--dart-define=FLUTTER_WEB_AUTO_DETECT=false',
|
||||
if (webRenderer == 'skwasm') ...<String>[
|
||||
// See: WebRendererMode.dartDefines[skwasm]
|
||||
'--dart-define=FLUTTER_WEB_USE_SKIA=false',
|
||||
'--dart-define=FLUTTER_WEB_USE_SKWASM=true',
|
||||
],
|
||||
if (webRenderer == 'canvaskit') ...<String>[
|
||||
// See: WebRendererMode.dartDefines[canvaskit]
|
||||
'--dart-define=FLUTTER_WEB_USE_SKIA=true',
|
||||
'--dart-define=FLUTTER_WEB_USE_SKWASM=false',
|
||||
],
|
||||
if (webRenderer == 'html') ...<String>[
|
||||
// See: WebRendererMode.dartDefines[html]
|
||||
'--dart-define=FLUTTER_WEB_USE_SKIA=false',
|
||||
'--dart-define=FLUTTER_WEB_USE_SKWASM=false',
|
||||
],
|
||||
|
||||
],
|
||||
expectNonZeroExit: expectFailure,
|
||||
workingDirectory: testAppDirectory,
|
||||
@ -695,7 +712,23 @@ class WebTestsSuite {
|
||||
'-v',
|
||||
'--platform=chrome',
|
||||
if (useWasm) '--wasm',
|
||||
'--web-renderer=$webRenderer',
|
||||
'--dart-define=FLUTTER_WEB_AUTO_DETECT=false',
|
||||
// '--web-renderer=$webRenderer',
|
||||
if (webRenderer == 'skwasm') ...<String>[
|
||||
// See: WebRendererMode.dartDefines[skwasm]
|
||||
'--dart-define=FLUTTER_WEB_USE_SKIA=false',
|
||||
'--dart-define=FLUTTER_WEB_USE_SKWASM=true',
|
||||
],
|
||||
if (webRenderer == 'canvaskit') ...<String>[
|
||||
// See: WebRendererMode.dartDefines[canvaskit]
|
||||
'--dart-define=FLUTTER_WEB_USE_SKIA=true',
|
||||
'--dart-define=FLUTTER_WEB_USE_SKWASM=false',
|
||||
],
|
||||
if (webRenderer == 'html') ...<String>[
|
||||
// See: WebRendererMode.dartDefines[html]
|
||||
'--dart-define=FLUTTER_WEB_USE_SKIA=false',
|
||||
'--dart-define=FLUTTER_WEB_USE_SKWASM=false',
|
||||
],
|
||||
'--dart-define=DART_HHH_BOT=$runningInDartHHHBot',
|
||||
...flutterTestArgs,
|
||||
...tests,
|
||||
@ -708,7 +741,9 @@ class WebTestsSuite {
|
||||
// metriciFile is a transitional file that needs to be deleted once it is parsed.
|
||||
// TODO(godofredoc): Ensure metricFile is parsed and aggregated before deleting.
|
||||
// https://github.com/flutter/flutter/issues/146003
|
||||
metricFile.deleteSync();
|
||||
if (!dryRun) {
|
||||
metricFile.deleteSync();
|
||||
}
|
||||
}
|
||||
|
||||
// The `chromedriver` process created by this test.
|
||||
|
||||
@ -4,14 +4,12 @@
|
||||
|
||||
// Runs the tests for the flutter/flutter repository.
|
||||
//
|
||||
//
|
||||
// By default, test output is filtered and only errors are shown. (If a
|
||||
// particular test takes longer than _quietTimeout in utils.dart, the output is
|
||||
// shown then also, in case something has hung.)
|
||||
//
|
||||
// --verbose stops the output cleanup and just outputs everything verbatim.
|
||||
//
|
||||
//
|
||||
// By default, errors are non-fatal; all tests are executed and the output
|
||||
// ends with a summary of the errors that were detected.
|
||||
//
|
||||
@ -19,10 +17,10 @@
|
||||
//
|
||||
// --abort-on-error causes the script to exit immediately when hitting an error.
|
||||
//
|
||||
//
|
||||
// By default, all tests are run. However, the tests support being split by
|
||||
// shard and subshard. (Inspect the code to see what shards and subshards are
|
||||
// supported.)
|
||||
// shard and subshard. Inspect the code to see what shards and subshards are
|
||||
// supported, or run with `--dry-run` to get a list of tests that _would_ have
|
||||
// been executed.
|
||||
//
|
||||
// If the CIRRUS_TASK_NAME environment variable exists, it is used to determine
|
||||
// the shard and sub-shard, by parsing it in the form shard-subshard-platform,
|
||||
@ -43,7 +41,6 @@
|
||||
//
|
||||
// --test-randomize-ordering-seed=<n> sets the shuffle seed for reproducing runs.
|
||||
//
|
||||
//
|
||||
// All other arguments are treated as arguments to pass to the flutter tool when
|
||||
// running tests.
|
||||
|
||||
@ -96,6 +93,7 @@ const String CIRRUS_TASK_NAME = 'CIRRUS_TASK_NAME';
|
||||
Future<void> main(List<String> args) async {
|
||||
try {
|
||||
printProgress('STARTING ANALYSIS');
|
||||
bool dryRunArgSet = false;
|
||||
for (final String arg in args) {
|
||||
if (arg.startsWith('--local-engine=')) {
|
||||
localEngineEnv['FLUTTER_LOCAL_ENGINE'] = arg.substring('--local-engine='.length);
|
||||
@ -116,10 +114,16 @@ Future<void> main(List<String> args) async {
|
||||
onError = () {
|
||||
system.exit(1);
|
||||
};
|
||||
} else if (arg == '--dry-run') {
|
||||
dryRunArgSet = true;
|
||||
printProgress('--dry-run enabled. Tests will not actually be executed.');
|
||||
} else {
|
||||
flutterTestArgs.add(arg);
|
||||
}
|
||||
}
|
||||
if (dryRunArgSet) {
|
||||
enableDryRun();
|
||||
}
|
||||
if (Platform.environment.containsKey(CIRRUS_TASK_NAME)) {
|
||||
printProgress('Running task: ${Platform.environment[CIRRUS_TASK_NAME]}');
|
||||
}
|
||||
@ -527,6 +531,9 @@ Future<void> _flutterBuild(
|
||||
}
|
||||
|
||||
bool _allTargetsCached(File performanceFile) {
|
||||
if (dryRun) {
|
||||
return true;
|
||||
}
|
||||
final Map<String, Object?> data = json.decode(performanceFile.readAsStringSync())
|
||||
as Map<String, Object?>;
|
||||
final List<Map<String, Object?>> targets = (data['targets']! as List<Object?>)
|
||||
|
||||
@ -154,6 +154,15 @@ void main() {
|
||||
expectExitCode(result, 255);
|
||||
expect(result.stdout, contains('Invalid subshard name'));
|
||||
});
|
||||
|
||||
test('--dry-run prints every test that would run', () async {
|
||||
final ProcessResult result = await runScript(
|
||||
<String, String> {},
|
||||
<String>['--dry-run'],
|
||||
);
|
||||
expectExitCode(result, 0);
|
||||
expect(result.stdout, contains('|> bin/flutter'));
|
||||
}, testOn: 'posix');
|
||||
});
|
||||
|
||||
test('selectTestsForSubShard distributes tests amongst subshards correctly', () async {
|
||||
|
||||
@ -68,9 +68,27 @@ const String CIRRUS_TASK_NAME = 'CIRRUS_TASK_NAME';
|
||||
final Map<String,String> localEngineEnv = <String, String>{};
|
||||
|
||||
/// The arguments to pass to `flutter test` (typically the local engine
|
||||
/// configuration) -- prefilled with the arguments passed to test.dart.
|
||||
/// configuration) -- prefilled with the arguments passed to test.dart.
|
||||
final List<String> flutterTestArgs = <String>[];
|
||||
|
||||
/// Whether execution should be simulated for debugging purposes.
|
||||
///
|
||||
/// When `true`, calls to [runCommand] print to [io.stdout] instead of running
|
||||
/// the process. This is useful for determining what an invocation of `test.dart`
|
||||
/// _might_ due if not invoked with `--dry-run`, or otherwise determine what the
|
||||
/// different test shards and sub-shards are configured as.
|
||||
bool get dryRun => _dryRun ?? false;
|
||||
|
||||
/// Switches [dryRun] to `true`.
|
||||
///
|
||||
/// Expected to be called at most once during execution of a process.
|
||||
void enableDryRun() {
|
||||
if (_dryRun != null) {
|
||||
throw StateError('Should only be called at most once');
|
||||
}
|
||||
_dryRun = true;
|
||||
}
|
||||
bool? _dryRun;
|
||||
|
||||
const int kESC = 0x1B;
|
||||
const int kOpenSquareBracket = 0x5B;
|
||||
@ -135,6 +153,10 @@ final List<String> _pendingLogs = <String>[];
|
||||
Timer? _hideTimer; // When this is null, the output is verbose.
|
||||
|
||||
void foundError(List<String> messages) {
|
||||
if (dryRun) {
|
||||
printProgress(messages.join('\n'));
|
||||
return;
|
||||
}
|
||||
assert(messages.isNotEmpty);
|
||||
// Make the error message easy to notice in the logs by
|
||||
// wrapping it in a red box.
|
||||
@ -342,6 +364,8 @@ Future<void> runDartTest(String workingDirectory, {
|
||||
bool ensurePrecompiledTool = true,
|
||||
bool shuffleTests = true,
|
||||
bool collectMetrics = false,
|
||||
List<String>? tags,
|
||||
bool runSkipped = false,
|
||||
}) async {
|
||||
int? cpus;
|
||||
final String? cpuVariable = Platform.environment['CPU']; // CPU is set in cirrus.yml
|
||||
@ -379,6 +403,10 @@ Future<void> runDartTest(String workingDirectory, {
|
||||
'--coverage=$coverage',
|
||||
if (perTestTimeout != null)
|
||||
'--timeout=${perTestTimeout.inMilliseconds}ms',
|
||||
if (runSkipped)
|
||||
'--run-skipped',
|
||||
if (tags != null)
|
||||
...tags.map((String t) => '--tags=$t'),
|
||||
if (testPaths != null)
|
||||
for (final String testPath in testPaths)
|
||||
testPath,
|
||||
@ -407,6 +435,10 @@ Future<void> runDartTest(String workingDirectory, {
|
||||
removeLine: useBuildRunner ? (String line) => line.startsWith('[INFO]') : null,
|
||||
);
|
||||
|
||||
if (dryRun) {
|
||||
return;
|
||||
}
|
||||
|
||||
final TestFileReporterResults test = TestFileReporterResults.fromFile(metricFile); // --file-reporter name
|
||||
final File info = fileSystem.file(path.join(flutterRoot, 'error.log'));
|
||||
info.writeAsStringSync(json.encode(test.errors));
|
||||
@ -502,7 +534,9 @@ Future<void> runFlutterTest(String workingDirectory, {
|
||||
// metriciFile is a transitional file that needs to be deleted once it is parsed.
|
||||
// TODO(godofredoc): Ensure metricFile is parsed and aggregated before deleting.
|
||||
// https://github.com/flutter/flutter/issues/146003
|
||||
metricFile.deleteSync();
|
||||
if (!dryRun) {
|
||||
metricFile.deleteSync();
|
||||
}
|
||||
|
||||
if (outputChecker != null) {
|
||||
final String? message = outputChecker(result);
|
||||
@ -587,7 +621,7 @@ List<T> selectIndexOfTotalSubshard<T>(List<T> tests, {String subshardKey = kSubs
|
||||
required int subShardCount,
|
||||
}) {
|
||||
// While there exists a closed formula figuring out the range of tests the
|
||||
// subshard is resposible for, modeling this as a simulation of distributing
|
||||
// subshard is responsible for, modeling this as a simulation of distributing
|
||||
// items equally into buckets is more intuitive.
|
||||
//
|
||||
// A bucket represents how many tests a subshard should be allocated.
|
||||
@ -613,27 +647,33 @@ List<T> selectIndexOfTotalSubshard<T>(List<T> tests, {String subshardKey = kSubs
|
||||
}
|
||||
|
||||
Future<void> _runFromList(Map<String, ShardRunner> items, String key, String name, int positionInTaskName) async {
|
||||
String? item = Platform.environment[key];
|
||||
if (item == null && Platform.environment.containsKey(CIRRUS_TASK_NAME)) {
|
||||
final List<String> parts = Platform.environment[CIRRUS_TASK_NAME]!.split('-');
|
||||
assert(positionInTaskName < parts.length);
|
||||
item = parts[positionInTaskName];
|
||||
}
|
||||
if (item == null) {
|
||||
for (final String currentItem in items.keys) {
|
||||
printProgress('$bold$key=$currentItem$reset');
|
||||
await items[currentItem]!();
|
||||
try {
|
||||
String? item = Platform.environment[key];
|
||||
if (item == null && Platform.environment.containsKey(CIRRUS_TASK_NAME)) {
|
||||
final List<String> parts = Platform.environment[CIRRUS_TASK_NAME]!.split('-');
|
||||
assert(positionInTaskName < parts.length);
|
||||
item = parts[positionInTaskName];
|
||||
}
|
||||
} else {
|
||||
printProgress('$bold$key=$item$reset');
|
||||
if (!items.containsKey(item)) {
|
||||
foundError(<String>[
|
||||
'${red}Invalid $name: $item$reset',
|
||||
'The available ${name}s are: ${items.keys.join(", ")}',
|
||||
]);
|
||||
return;
|
||||
if (item == null) {
|
||||
for (final String currentItem in items.keys) {
|
||||
printProgress('$bold$key=$currentItem$reset');
|
||||
await items[currentItem]!();
|
||||
}
|
||||
} else {
|
||||
printProgress('$bold$key=$item$reset');
|
||||
if (!items.containsKey(item)) {
|
||||
foundError(<String>[
|
||||
'${red}Invalid $name: $item$reset',
|
||||
'The available ${name}s are: ${items.keys.join(", ")}',
|
||||
]);
|
||||
return;
|
||||
}
|
||||
await items[item]!();
|
||||
}
|
||||
} catch (_) {
|
||||
if (!dryRun) {
|
||||
rethrow;
|
||||
}
|
||||
await items[item]!();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -38,6 +38,6 @@ REPO_DIR="$BIN_DIR/../../.."
|
||||
DART_BIN="$REPO_DIR/bin/dart"
|
||||
|
||||
# Ensure pub get has been run in the repo before running the conductor
|
||||
(cd "$REPO_DIR/dev/conductor/core"; "$DART_BIN" pub get 1>&2)
|
||||
(cd "$REPO_DIR/dev/conductor/core"; "$DART_BIN" pub get >/dev/null)
|
||||
|
||||
exec "$DART_BIN" --enable-asserts "$REPO_DIR/dev/conductor/core/bin/cli.dart" "$@"
|
||||
|
||||
@ -141,7 +141,7 @@ class NextContext extends Context {
|
||||
if (!autoAccept) {
|
||||
final bool response = await prompt(
|
||||
'Has CI passed for the engine PR?\n\n'
|
||||
'${state_import.luciConsoleLink(state.releaseChannel, 'engine')}'
|
||||
'${state_import.luciConsoleLink(state.engine.candidateBranch, 'engine')}'
|
||||
);
|
||||
if (!response) {
|
||||
stdio.printError('Aborting command.');
|
||||
|
||||
@ -47,21 +47,19 @@ const String stablePostReleaseMsg = """
|
||||
// * `String presentState(pb.ConductorState state)` - pretty print the state file.
|
||||
// This is a little easier to read than the raw JSON.
|
||||
|
||||
String luciConsoleLink(String channel, String groupName) {
|
||||
String luciConsoleLink(String candidateBranch, String repoName) {
|
||||
assert(
|
||||
globals.kReleaseChannels.contains(channel),
|
||||
'channel "$channel" not recognized',
|
||||
globals.releaseCandidateBranchRegex.hasMatch(candidateBranch),
|
||||
'Malformed candidateBranch argument passed: "$candidateBranch"',
|
||||
);
|
||||
assert(
|
||||
<String>['flutter', 'engine', 'packaging'].contains(groupName),
|
||||
'group named $groupName not recognized',
|
||||
<String>['flutter', 'engine', 'packaging'].contains(repoName),
|
||||
'group named $repoName not recognized',
|
||||
);
|
||||
final String consoleName =
|
||||
channel == 'master' ? groupName : '${channel}_$groupName';
|
||||
if (groupName == 'packaging') {
|
||||
if (repoName == 'packaging') {
|
||||
return 'https://luci-milo.appspot.com/p/dart-internal/g/flutter_packaging/console';
|
||||
}
|
||||
return 'https://ci.chromium.org/p/flutter/g/$consoleName/console';
|
||||
return 'https://flutter-dashboard.appspot.com/#/build?repo=$repoName&branch=$candidateBranch';
|
||||
}
|
||||
|
||||
String defaultStateFilePath(Platform platform) {
|
||||
@ -93,7 +91,7 @@ String presentState(pb.ConductorState state) {
|
||||
buffer.writeln('\tCurrent git HEAD: ${state.engine.currentGitHead}');
|
||||
buffer.writeln('\tPath to checkout: ${state.engine.checkoutPath}');
|
||||
buffer.writeln(
|
||||
'\tPost-submit LUCI dashboard: ${luciConsoleLink(state.releaseChannel, 'engine')}');
|
||||
'\tPost-submit LUCI dashboard: ${luciConsoleLink(state.engine.candidateBranch, 'engine')}');
|
||||
if (state.engine.cherrypicks.isNotEmpty) {
|
||||
buffer.writeln('${state.engine.cherrypicks.length} Engine Cherrypicks:');
|
||||
for (final pb.Cherrypick cherrypick in state.engine.cherrypicks) {
|
||||
@ -111,7 +109,7 @@ String presentState(pb.ConductorState state) {
|
||||
buffer.writeln('\tCurrent git HEAD: ${state.framework.currentGitHead}');
|
||||
buffer.writeln('\tPath to checkout: ${state.framework.checkoutPath}');
|
||||
buffer.writeln(
|
||||
'\tPost-submit LUCI dashboard: ${luciConsoleLink(state.releaseChannel, 'flutter')}');
|
||||
'\tPost-submit LUCI dashboard: ${luciConsoleLink(state.framework.candidateBranch, 'flutter')}');
|
||||
if (state.framework.cherrypicks.isNotEmpty) {
|
||||
buffer.writeln(
|
||||
'${state.framework.cherrypicks.length} Framework Cherrypicks:');
|
||||
@ -180,7 +178,7 @@ String phaseInstructions(pb.ConductorState state) {
|
||||
case ReleasePhase.VERIFY_ENGINE_CI:
|
||||
if (!requiresEnginePR(state)) {
|
||||
return 'You must verify engine CI has passed: '
|
||||
'${luciConsoleLink(state.releaseChannel, 'engine')}';
|
||||
'${luciConsoleLink(state.engine.candidateBranch, 'engine')}';
|
||||
}
|
||||
// User's working branch was pushed to their mirror, but a PR needs to be
|
||||
// opened on GitHub.
|
||||
@ -189,11 +187,12 @@ String phaseInstructions(pb.ConductorState state) {
|
||||
repoName: 'engine',
|
||||
state: state,
|
||||
);
|
||||
final String consoleLink = luciConsoleLink(state.engine.candidateBranch, 'engine');
|
||||
return <String>[
|
||||
'Your working branch ${state.engine.workingBranch} was pushed to your mirror.',
|
||||
'You must now open a pull request at $newPrLink, verify pre-submit CI',
|
||||
'builds on your engine pull request are successful, merge your pull request,',
|
||||
'validate post-submit CI, and then codesign the binaries on the merge commit.',
|
||||
'validate post-submit CI at $consoleLink.',
|
||||
].join('\n');
|
||||
case ReleasePhase.APPLY_FRAMEWORK_CHERRYPICKS:
|
||||
final List<pb.Cherrypick> outstandingCherrypicks =
|
||||
@ -232,7 +231,7 @@ String phaseInstructions(pb.ConductorState state) {
|
||||
'pull request, validate post-submit CI.',
|
||||
].join('\n');
|
||||
case ReleasePhase.VERIFY_RELEASE:
|
||||
return 'Release archive packages must be verified on cloud storage: ${luciConsoleLink(state.releaseChannel, 'packaging')}';
|
||||
return 'Release archive packages must be verified on cloud storage: ${luciConsoleLink(state.framework.candidateBranch, 'packaging')}';
|
||||
case ReleasePhase.RELEASE_COMPLETED:
|
||||
if (state.releaseChannel == 'beta') {
|
||||
return <String>[
|
||||
|
||||
@ -4,7 +4,7 @@ description: Flutter Automated Release Tool
|
||||
publish_to: none
|
||||
|
||||
environment:
|
||||
sdk: '>=3.2.0-0 <4.0.0'
|
||||
sdk: ^3.7.0-0
|
||||
|
||||
dependencies:
|
||||
archive: 3.6.1
|
||||
|
||||
@ -239,6 +239,7 @@ void main() {
|
||||
..trunkRevision = 'abc123'
|
||||
..state = pb.CherrypickState.PENDING
|
||||
)
|
||||
..candidateBranch = 'flutter-1.0-candidate.0'
|
||||
)
|
||||
..currentPhase = ReleasePhase.VERIFY_ENGINE_CI
|
||||
);
|
||||
|
||||
@ -2,7 +2,7 @@ name: customer_testing
|
||||
description: Tool to run the tests listed in the flutter/tests repository.
|
||||
|
||||
environment:
|
||||
sdk: '>=3.2.0-0 <4.0.0'
|
||||
sdk: ^3.7.0-0
|
||||
|
||||
dependencies:
|
||||
args: 2.6.0
|
||||
|
||||
@ -0,0 +1,60 @@
|
||||
// Copyright 2014 The Flutter Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
import 'dart:async';
|
||||
import 'dart:io';
|
||||
|
||||
import 'package:flutter_devicelab/framework/apk_utils.dart';
|
||||
import 'package:flutter_devicelab/framework/framework.dart';
|
||||
import 'package:flutter_devicelab/framework/task_result.dart';
|
||||
import 'package:flutter_devicelab/framework/utils.dart';
|
||||
import 'package:path/path.dart' as path;
|
||||
|
||||
Future<void> main() async {
|
||||
await task(() async {
|
||||
try {
|
||||
await runProjectTest((FlutterProject flutterProject) async {
|
||||
// Create dev_dependency plugin to use for test.
|
||||
final Directory tempDir = Directory.systemTemp.createTempSync('android_release_builds_exclude_dev_dependencies_test.');
|
||||
const String devDependencyPluginOrg = 'com.example.dev_dependency_plugin';
|
||||
await FlutterPluginProject.create(tempDir, 'dev_dependency_plugin', options: <String>['--platforms=android', '--org=$devDependencyPluginOrg']);
|
||||
|
||||
// Add devDependencyPlugin as dependency of flutterProject.
|
||||
await flutterProject.addPlugin('dev_dependency_plugin', options: <String>['--path', path.join(tempDir.path, 'dev_dependency_plugin')]);
|
||||
|
||||
final List<String> buildModesToTest = <String>['debug', 'profile', 'release'];
|
||||
for (final String buildMode in buildModesToTest) {
|
||||
section('APK does contain methods from dev dependency in $buildMode mode');
|
||||
|
||||
// Build APK in buildMode and check that devDependencyPlugin is included/excluded in the APK as expected.
|
||||
await inDirectory(flutterProject.rootPath, () async {
|
||||
await flutter('build', options: <String>[
|
||||
'apk',
|
||||
'--$buildMode',
|
||||
'--target-platform=android-arm',
|
||||
]);
|
||||
|
||||
final File apk = File(path.join(flutterProject.rootPath, 'build', 'app', 'outputs', 'flutter-apk', 'app-debug.apk'));
|
||||
if (!apk.existsSync()) {
|
||||
throw TaskResult.failure("Expected ${apk.path} to exist, but it doesn't.");
|
||||
}
|
||||
|
||||
// We expect the APK to include the devDependencyPlugin except in release mode.
|
||||
final bool isTestingReleaseMode = buildMode == 'release';
|
||||
final bool apkIncludesDevDependency = await checkApkContainsMethodsFromLibrary(apk, devDependencyPluginOrg);
|
||||
final bool apkIncludesDevDependencyAsExpected = isTestingReleaseMode ? !apkIncludesDevDependency : apkIncludesDevDependency;
|
||||
if (!apkIncludesDevDependencyAsExpected) {
|
||||
return TaskResult.failure('Expected to${isTestingReleaseMode ? ' not' : ''} find dev_dependency_plugin in APK built with debug mode but did${isTestingReleaseMode ? '' : ' not'}.');
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
return TaskResult.success(null);
|
||||
} on TaskResult catch (taskResult) {
|
||||
return taskResult;
|
||||
} catch (e) {
|
||||
return TaskResult.failure(e.toString());
|
||||
}
|
||||
});
|
||||
}
|
||||
@ -10,8 +10,6 @@ import 'package:flutter_devicelab/framework/task_result.dart';
|
||||
import 'package:flutter_devicelab/framework/utils.dart';
|
||||
import 'package:path/path.dart' as path;
|
||||
|
||||
final String platformLineSep = Platform.isWindows ? '\r\n': '\n';
|
||||
|
||||
/// Tests that AARs can be built on module projects.
|
||||
Future<void> main() async {
|
||||
await task(() async {
|
||||
@ -59,12 +57,12 @@ Future<void> main() async {
|
||||
final File modulePubspec = File(path.join(projectDir.path, 'pubspec.yaml'));
|
||||
String content = modulePubspec.readAsStringSync();
|
||||
content = content.replaceFirst(
|
||||
'${platformLineSep}dependencies:$platformLineSep',
|
||||
'${platformLineSep}dependencies:$platformLineSep'
|
||||
' plugin_with_android:$platformLineSep'
|
||||
' path: ../plugin_with_android$platformLineSep'
|
||||
' plugin_without_android:$platformLineSep'
|
||||
' path: ../plugin_without_android$platformLineSep'
|
||||
'${Platform.lineTerminator}dependencies:${Platform.lineTerminator}',
|
||||
'${Platform.lineTerminator}dependencies:${Platform.lineTerminator}'
|
||||
' plugin_with_android:${Platform.lineTerminator}'
|
||||
' path: ../plugin_with_android${Platform.lineTerminator}'
|
||||
' plugin_without_android:${Platform.lineTerminator}'
|
||||
' path: ../plugin_without_android${Platform.lineTerminator}'
|
||||
);
|
||||
modulePubspec.writeAsStringSync(content, flush: true);
|
||||
|
||||
|
||||
@ -17,7 +17,6 @@ final String gradlew = Platform.isWindows ? 'gradlew.bat' : 'gradlew';
|
||||
final String gradlewExecutable =
|
||||
Platform.isWindows ? '.\\$gradlew' : './$gradlew';
|
||||
final String fileReadWriteMode = Platform.isWindows ? 'rw-rw-rw-' : 'rw-r--r--';
|
||||
final String platformLineSep = Platform.isWindows ? '\r\n' : '\n';
|
||||
|
||||
/// Combines several TaskFunctions with trivial success value into one.
|
||||
TaskFunction combine(List<TaskFunction> tasks) {
|
||||
@ -41,6 +40,8 @@ class ModuleTest {
|
||||
|
||||
static const String buildTarget = 'module-gradle';
|
||||
final String gradleVersion;
|
||||
final StringBuffer stdout = StringBuffer();
|
||||
final StringBuffer stderr = StringBuffer();
|
||||
|
||||
Future<TaskResult> call() async {
|
||||
section('Running: $buildTarget-$gradleVersion');
|
||||
@ -61,6 +62,8 @@ class ModuleTest {
|
||||
await flutter(
|
||||
'create',
|
||||
options: <String>['--org', 'io.flutter.devicelab', '--template=module', 'hello'],
|
||||
output: stdout,
|
||||
stderr: stderr,
|
||||
);
|
||||
});
|
||||
|
||||
@ -69,6 +72,8 @@ class ModuleTest {
|
||||
await flutter(
|
||||
'config',
|
||||
options: <String>['--enable-native-assets'],
|
||||
output: stdout,
|
||||
stderr: stderr,
|
||||
);
|
||||
|
||||
const String ffiPackageName = 'ffi_package';
|
||||
@ -79,14 +84,16 @@ class ModuleTest {
|
||||
final File pubspec = File(path.join(projectDir.path, 'pubspec.yaml'));
|
||||
String content = await pubspec.readAsString();
|
||||
content = content.replaceFirst(
|
||||
'dependencies:$platformLineSep',
|
||||
'dependencies:$platformLineSep $ffiPackageName:$platformLineSep path: ..${Platform.pathSeparator}$ffiPackageName$platformLineSep',
|
||||
'dependencies:${Platform.lineTerminator}',
|
||||
'dependencies:${Platform.lineTerminator} $ffiPackageName:${Platform.lineTerminator} path: ..${Platform.pathSeparator}$ffiPackageName${Platform.lineTerminator}',
|
||||
);
|
||||
await pubspec.writeAsString(content, flush: true);
|
||||
await inDirectory(projectDir, () async {
|
||||
await flutter(
|
||||
'packages',
|
||||
options: <String>['get'],
|
||||
output: stdout,
|
||||
stderr: stderr,
|
||||
);
|
||||
});
|
||||
|
||||
@ -111,22 +118,24 @@ class ModuleTest {
|
||||
}
|
||||
|
||||
content = content.replaceFirst(
|
||||
'$platformLineSep # assets:$platformLineSep',
|
||||
'$platformLineSep assets:$platformLineSep - assets/read-only.txt$platformLineSep',
|
||||
'${Platform.lineTerminator} # assets:${Platform.lineTerminator}',
|
||||
'${Platform.lineTerminator} assets:${Platform.lineTerminator} - assets/read-only.txt${Platform.lineTerminator}',
|
||||
);
|
||||
await pubspec.writeAsString(content, flush: true);
|
||||
|
||||
section('Add plugins');
|
||||
|
||||
content = content.replaceFirst(
|
||||
'${platformLineSep}dependencies:$platformLineSep',
|
||||
'${platformLineSep}dependencies:$platformLineSep',
|
||||
'${Platform.lineTerminator}dependencies:${Platform.lineTerminator}',
|
||||
'${Platform.lineTerminator}dependencies:${Platform.lineTerminator}',
|
||||
);
|
||||
await pubspec.writeAsString(content, flush: true);
|
||||
await inDirectory(projectDir, () async {
|
||||
await flutter(
|
||||
'packages',
|
||||
options: <String>['get'],
|
||||
output: stdout,
|
||||
stderr: stderr,
|
||||
);
|
||||
});
|
||||
|
||||
@ -162,6 +171,8 @@ class ModuleTest {
|
||||
await flutter(
|
||||
'build',
|
||||
options: <String>['apk'],
|
||||
output: stdout,
|
||||
stderr: stderr,
|
||||
);
|
||||
});
|
||||
|
||||
@ -182,7 +193,11 @@ class ModuleTest {
|
||||
section('Clean build');
|
||||
|
||||
await inDirectory(projectDir, () async {
|
||||
await flutter('clean');
|
||||
await flutter(
|
||||
'clean',
|
||||
output: stdout,
|
||||
stderr: stderr,
|
||||
);
|
||||
});
|
||||
|
||||
section('Make Android host app editable');
|
||||
@ -191,6 +206,8 @@ class ModuleTest {
|
||||
await flutter(
|
||||
'make-host-app-editable',
|
||||
options: <String>['android'],
|
||||
output: stdout,
|
||||
stderr: stderr,
|
||||
);
|
||||
});
|
||||
|
||||
@ -200,6 +217,8 @@ class ModuleTest {
|
||||
await flutter(
|
||||
'build',
|
||||
options: <String>['apk'],
|
||||
output: stdout,
|
||||
stderr: stderr,
|
||||
);
|
||||
});
|
||||
|
||||
@ -255,9 +274,6 @@ class ModuleTest {
|
||||
section(propertyContent);
|
||||
await gradleWrapperProperties.writeAsString(propertyContent, flush: true);
|
||||
|
||||
final File analyticsOutputFile =
|
||||
File(path.join(tempDir.path, 'analytics.log'));
|
||||
|
||||
section('Build debug host APK');
|
||||
|
||||
await inDirectory(hostApp, () async {
|
||||
@ -268,7 +284,7 @@ class ModuleTest {
|
||||
<String>['app:assembleDebug'],
|
||||
environment: <String, String>{
|
||||
'JAVA_HOME': javaHome,
|
||||
'FLUTTER_ANALYTICS_LOG_FILE': analyticsOutputFile.path,
|
||||
'FLUTTER_SUPPRESS_ANALYTICS': 'true',
|
||||
},
|
||||
);
|
||||
});
|
||||
@ -309,17 +325,6 @@ class ModuleTest {
|
||||
return TaskResult.failure("Debug host APK doesn't contain metadata: flutterProjectType = module ");
|
||||
}
|
||||
|
||||
final String analyticsOutput = analyticsOutputFile.readAsStringSync();
|
||||
if (!analyticsOutput.contains('cd24: android')
|
||||
|| !analyticsOutput.contains('cd25: true')
|
||||
|| !analyticsOutput.contains('viewName: assemble')) {
|
||||
return TaskResult.failure(
|
||||
'Building outer app produced the following analytics: "$analyticsOutput" '
|
||||
'but not the expected strings: "cd24: android", "cd25: true" and '
|
||||
'"viewName: assemble"'
|
||||
);
|
||||
}
|
||||
|
||||
section('Check file access modes for read-only asset from Flutter module');
|
||||
|
||||
final String readonlyDebugAssetFilePath = path.joinAll(<String>[
|
||||
@ -351,7 +356,7 @@ class ModuleTest {
|
||||
<String>['app:assembleRelease'],
|
||||
environment: <String, String>{
|
||||
'JAVA_HOME': javaHome,
|
||||
'FLUTTER_ANALYTICS_LOG_FILE': analyticsOutputFile.path,
|
||||
'FLUTTER_SUPPRESS_ANALYTICS': 'true',
|
||||
},
|
||||
);
|
||||
});
|
||||
@ -435,6 +440,12 @@ class ModuleTest {
|
||||
return TaskResult.failure('Failed to make assets user-readable and writable');
|
||||
}
|
||||
|
||||
section('Check for specific log errors.');
|
||||
final String finalStderr = stderr.toString();
|
||||
if (finalStderr.contains("You are applying Flutter's main Gradle plugin imperatively")) {
|
||||
return TaskResult.failure('Applied the Flutter Gradle Plugin imperatively');
|
||||
}
|
||||
|
||||
return TaskResult.success(null);
|
||||
} on TaskResult catch (taskResult) {
|
||||
return taskResult;
|
||||
|
||||
@ -17,7 +17,6 @@ final String gradlew = Platform.isWindows ? 'gradlew.bat' : 'gradlew';
|
||||
final String gradlewExecutable =
|
||||
Platform.isWindows ? '.\\$gradlew' : './$gradlew';
|
||||
final String fileReadWriteMode = Platform.isWindows ? 'rw-rw-rw-' : 'rw-r--r--';
|
||||
final String platformLineSep = Platform.isWindows ? '\r\n' : '\n';
|
||||
|
||||
/// Combines several TaskFunctions with trivial success value into one.
|
||||
TaskFunction combine(List<TaskFunction> tasks) {
|
||||
@ -41,6 +40,8 @@ class ModuleTest {
|
||||
|
||||
static const String buildTarget = 'module-gradle';
|
||||
final String gradleVersion;
|
||||
final StringBuffer stdout = StringBuffer();
|
||||
final StringBuffer stderr = StringBuffer();
|
||||
|
||||
Future<TaskResult> call() async {
|
||||
section('Running: $buildTarget-$gradleVersion');
|
||||
@ -61,6 +62,8 @@ class ModuleTest {
|
||||
await flutter(
|
||||
'create',
|
||||
options: <String>['--org', 'io.flutter.devicelab', '--template=module', 'hello'],
|
||||
output: stdout,
|
||||
stderr: stderr,
|
||||
);
|
||||
});
|
||||
|
||||
@ -69,6 +72,8 @@ class ModuleTest {
|
||||
await flutter(
|
||||
'config',
|
||||
options: <String>['--enable-native-assets'],
|
||||
output: stdout,
|
||||
stderr: stderr,
|
||||
);
|
||||
|
||||
const String ffiPackageName = 'ffi_package';
|
||||
@ -79,14 +84,16 @@ class ModuleTest {
|
||||
final File pubspec = File(path.join(projectDir.path, 'pubspec.yaml'));
|
||||
String content = await pubspec.readAsString();
|
||||
content = content.replaceFirst(
|
||||
'dependencies:$platformLineSep',
|
||||
'dependencies:$platformLineSep $ffiPackageName:$platformLineSep path: ..${Platform.pathSeparator}$ffiPackageName$platformLineSep',
|
||||
'dependencies:${Platform.lineTerminator}',
|
||||
'dependencies:${Platform.lineTerminator} $ffiPackageName:${Platform.lineTerminator} path: ..${Platform.pathSeparator}$ffiPackageName${Platform.lineTerminator}',
|
||||
);
|
||||
await pubspec.writeAsString(content, flush: true);
|
||||
await inDirectory(projectDir, () async {
|
||||
await flutter(
|
||||
'packages',
|
||||
options: <String>['get'],
|
||||
output: stdout,
|
||||
stderr: stderr,
|
||||
);
|
||||
});
|
||||
|
||||
@ -111,22 +118,24 @@ class ModuleTest {
|
||||
}
|
||||
|
||||
content = content.replaceFirst(
|
||||
'$platformLineSep # assets:$platformLineSep',
|
||||
'$platformLineSep assets:$platformLineSep - assets/read-only.txt$platformLineSep',
|
||||
'${Platform.lineTerminator} # assets:${Platform.lineTerminator}',
|
||||
'${Platform.lineTerminator} assets:${Platform.lineTerminator} - assets/read-only.txt${Platform.lineTerminator}',
|
||||
);
|
||||
await pubspec.writeAsString(content, flush: true);
|
||||
|
||||
section('Add plugins');
|
||||
|
||||
content = content.replaceFirst(
|
||||
'${platformLineSep}dependencies:$platformLineSep',
|
||||
'${platformLineSep}dependencies:$platformLineSep',
|
||||
'${Platform.lineTerminator}dependencies:${Platform.lineTerminator}',
|
||||
'${Platform.lineTerminator}dependencies:${Platform.lineTerminator}',
|
||||
);
|
||||
await pubspec.writeAsString(content, flush: true);
|
||||
await inDirectory(projectDir, () async {
|
||||
await flutter(
|
||||
'packages',
|
||||
options: <String>['get'],
|
||||
output: stdout,
|
||||
stderr: stderr,
|
||||
);
|
||||
});
|
||||
|
||||
@ -136,6 +145,8 @@ class ModuleTest {
|
||||
await flutter(
|
||||
'build',
|
||||
options: <String>['apk'],
|
||||
output: stdout,
|
||||
stderr: stderr,
|
||||
);
|
||||
});
|
||||
|
||||
@ -156,7 +167,11 @@ class ModuleTest {
|
||||
section('Clean build');
|
||||
|
||||
await inDirectory(projectDir, () async {
|
||||
await flutter('clean');
|
||||
await flutter(
|
||||
'clean',
|
||||
output: stdout,
|
||||
stderr: stderr,
|
||||
);
|
||||
});
|
||||
|
||||
section('Make Android host app editable');
|
||||
@ -165,6 +180,8 @@ class ModuleTest {
|
||||
await flutter(
|
||||
'make-host-app-editable',
|
||||
options: <String>['android'],
|
||||
output: stdout,
|
||||
stderr: stderr,
|
||||
);
|
||||
});
|
||||
|
||||
@ -174,6 +191,8 @@ class ModuleTest {
|
||||
await flutter(
|
||||
'build',
|
||||
options: <String>['apk'],
|
||||
output: stdout,
|
||||
stderr: stderr,
|
||||
);
|
||||
});
|
||||
|
||||
@ -229,9 +248,6 @@ class ModuleTest {
|
||||
section(propertyContent);
|
||||
await gradleWrapperProperties.writeAsString(propertyContent, flush: true);
|
||||
|
||||
final File analyticsOutputFile =
|
||||
File(path.join(tempDir.path, 'analytics.log'));
|
||||
|
||||
section('Build debug host APK');
|
||||
|
||||
await inDirectory(hostApp, () async {
|
||||
@ -242,7 +258,7 @@ class ModuleTest {
|
||||
<String>['app:assembleDebug'],
|
||||
environment: <String, String>{
|
||||
'JAVA_HOME': javaHome,
|
||||
'FLUTTER_ANALYTICS_LOG_FILE': analyticsOutputFile.path,
|
||||
'FLUTTER_SUPPRESS_ANALYTICS': 'true',
|
||||
},
|
||||
);
|
||||
});
|
||||
@ -283,17 +299,6 @@ class ModuleTest {
|
||||
return TaskResult.failure("Debug host APK doesn't contain metadata: flutterProjectType = module ");
|
||||
}
|
||||
|
||||
final String analyticsOutput = analyticsOutputFile.readAsStringSync();
|
||||
if (!analyticsOutput.contains('cd24: android')
|
||||
|| !analyticsOutput.contains('cd25: true')
|
||||
|| !analyticsOutput.contains('viewName: assemble')) {
|
||||
return TaskResult.failure(
|
||||
'Building outer app produced the following analytics: "$analyticsOutput" '
|
||||
'but not the expected strings: "cd24: android", "cd25: true" and '
|
||||
'"viewName: assemble"'
|
||||
);
|
||||
}
|
||||
|
||||
section('Check file access modes for read-only asset from Flutter module');
|
||||
|
||||
final String readonlyDebugAssetFilePath = path.joinAll(<String>[
|
||||
@ -326,7 +331,7 @@ class ModuleTest {
|
||||
<String>['app:assembleRelease'],
|
||||
environment: <String, String>{
|
||||
'JAVA_HOME': javaHome,
|
||||
'FLUTTER_ANALYTICS_LOG_FILE': analyticsOutputFile.path,
|
||||
'FLUTTER_SUPPRESS_ANALYTICS': 'true',
|
||||
},
|
||||
);
|
||||
});
|
||||
@ -411,6 +416,12 @@ class ModuleTest {
|
||||
return TaskResult.failure('Failed to make assets user-readable and writable');
|
||||
}
|
||||
|
||||
section('Check for specific log errors.');
|
||||
final String finalStderr = stderr.toString();
|
||||
if (finalStderr.contains("You are applying Flutter's main Gradle plugin imperatively")) {
|
||||
return TaskResult.failure('Applied the Flutter Gradle Plugin imperatively');
|
||||
}
|
||||
|
||||
return TaskResult.success(null);
|
||||
} on TaskResult catch (taskResult) {
|
||||
return taskResult;
|
||||
|
||||
@ -16,7 +16,7 @@ Future<void> main() async {
|
||||
await runProjectTest((FlutterProject flutterProject) async {
|
||||
section('APK contains plugin classes');
|
||||
await flutterProject.setMinSdkVersion(20);
|
||||
flutterProject.addPlugin('google_maps_flutter', value: '^2.2.1');
|
||||
await flutterProject.addPlugin('google_maps_flutter:^2.2.1');
|
||||
|
||||
await inDirectory(flutterProject.rootPath, () async {
|
||||
await flutter('build', options: <String>[
|
||||
|
||||
@ -210,8 +210,7 @@ Future<void> main() async {
|
||||
});
|
||||
|
||||
section('Configure');
|
||||
project.addPlugin('plugin_under_test',
|
||||
value: '$platformLineSep path: ${pluginDir.path}');
|
||||
await project.addPlugin('plugin_under_test', options: <String>['--path', pluginDir.path]);
|
||||
await project.addCustomBuildType('local', initWith: 'debug');
|
||||
await project.getPackages();
|
||||
|
||||
@ -229,7 +228,7 @@ Future<void> main() async {
|
||||
section('gradlew assembleLocal (plugin with custom build type)');
|
||||
await project.addCustomBuildType('local', initWith: 'debug');
|
||||
section('Add plugin');
|
||||
project.addPlugin('path_provider');
|
||||
await project.addPlugin('path_provider');
|
||||
await project.getPackages();
|
||||
|
||||
await project.runGradleTask('assembleLocal');
|
||||
|
||||
@ -13,7 +13,6 @@ import 'package:path/path.dart' as path;
|
||||
final String gradlew = Platform.isWindows ? 'gradlew.bat' : 'gradlew';
|
||||
final String gradlewExecutable = Platform.isWindows ? '.\\$gradlew' : './$gradlew';
|
||||
final String fileReadWriteMode = Platform.isWindows ? 'rw-rw-rw-' : 'rw-r--r--';
|
||||
final String platformLineSep = Platform.isWindows ? '\r\n': '\n';
|
||||
|
||||
/// Tests that the Flutter module project template works and supports
|
||||
/// adding Flutter to an existing Android app.
|
||||
@ -63,8 +62,8 @@ Future<void> main() async {
|
||||
final File pubspec = File(path.join(projectDir.path, 'pubspec.yaml'));
|
||||
String content = await pubspec.readAsString();
|
||||
content = content.replaceFirst(
|
||||
'$platformLineSep # assets:$platformLineSep',
|
||||
'$platformLineSep assets:$platformLineSep - assets/read-only.txt$platformLineSep',
|
||||
'${Platform.lineTerminator} # assets:${Platform.lineTerminator}',
|
||||
'${Platform.lineTerminator} assets:${Platform.lineTerminator} - assets/read-only.txt${Platform.lineTerminator}',
|
||||
);
|
||||
await pubspec.writeAsString(content, flush: true);
|
||||
|
||||
@ -72,8 +71,8 @@ Future<void> main() async {
|
||||
|
||||
content = await pubspec.readAsString();
|
||||
content = content.replaceFirst(
|
||||
'${platformLineSep}dependencies:$platformLineSep',
|
||||
'${platformLineSep}dependencies:$platformLineSep',
|
||||
'${Platform.lineTerminator}dependencies:${Platform.lineTerminator}',
|
||||
'${Platform.lineTerminator}dependencies:${Platform.lineTerminator}',
|
||||
);
|
||||
await pubspec.writeAsString(content, flush: true);
|
||||
await inDirectory(projectDir, () async {
|
||||
@ -193,8 +192,6 @@ Future<void> main() async {
|
||||
Directory(path.join(hostApp.path, 'gradle', 'wrapper')),
|
||||
);
|
||||
|
||||
final File analyticsOutputFile = File(path.join(tempDir.path, 'analytics.log'));
|
||||
|
||||
section('Build debug host APK');
|
||||
|
||||
await inDirectory(hostApp, () async {
|
||||
@ -205,7 +202,7 @@ Future<void> main() async {
|
||||
<String>['SampleApp:assembleDebug'],
|
||||
environment: <String, String>{
|
||||
'JAVA_HOME': javaHome,
|
||||
'FLUTTER_ANALYTICS_LOG_FILE': analyticsOutputFile.path,
|
||||
'FLUTTER_SUPPRESS_ANALYTICS': 'true',
|
||||
},
|
||||
);
|
||||
});
|
||||
@ -244,17 +241,6 @@ Future<void> main() async {
|
||||
return TaskResult.failure("Debug host APK doesn't contain metadata: flutterProjectType = module ");
|
||||
}
|
||||
|
||||
final String analyticsOutput = analyticsOutputFile.readAsStringSync();
|
||||
if (!analyticsOutput.contains('cd24: android')
|
||||
|| !analyticsOutput.contains('cd25: true')
|
||||
|| !analyticsOutput.contains('viewName: assemble')) {
|
||||
return TaskResult.failure(
|
||||
'Building outer app produced the following analytics: "$analyticsOutput" '
|
||||
'but not the expected strings: "cd24: android", "cd25: true" and '
|
||||
'"viewName: assemble"'
|
||||
);
|
||||
}
|
||||
|
||||
section('Check file access modes for read-only asset from Flutter module');
|
||||
|
||||
final String readonlyDebugAssetFilePath = path.joinAll(<String>[
|
||||
@ -286,7 +272,7 @@ Future<void> main() async {
|
||||
<String>['SampleApp:assembleRelease'],
|
||||
environment: <String, String>{
|
||||
'JAVA_HOME': javaHome,
|
||||
'FLUTTER_ANALYTICS_LOG_FILE': analyticsOutputFile.path,
|
||||
'FLUTTER_SUPPRESS_ANALYTICS': 'true',
|
||||
},
|
||||
);
|
||||
});
|
||||
|
||||
@ -271,7 +271,6 @@ dependencies:
|
||||
objectiveCHostApp,
|
||||
);
|
||||
|
||||
final File objectiveCAnalyticsOutputFile = File(path.join(tempDir.path, 'analytics-objc.log'));
|
||||
final Directory objectiveCBuildDirectory = Directory(path.join(tempDir.path, 'build-objc'));
|
||||
|
||||
await inDirectory(objectiveCHostApp, () async {
|
||||
@ -374,7 +373,7 @@ end
|
||||
'COMPILER_INDEX_STORE_ENABLE=NO',
|
||||
],
|
||||
environment: <String, String> {
|
||||
'FLUTTER_ANALYTICS_LOG_FILE': objectiveCAnalyticsOutputFile.path,
|
||||
'FLUTTER_SUPPRESS_ANALYTICS': 'true',
|
||||
},
|
||||
);
|
||||
});
|
||||
@ -435,18 +434,6 @@ end
|
||||
}
|
||||
});
|
||||
|
||||
section('Check that the host build sends the correct analytics');
|
||||
|
||||
final String objectiveCAnalyticsOutput = objectiveCAnalyticsOutputFile.readAsStringSync();
|
||||
if (!objectiveCAnalyticsOutput.contains('cd24: ios')
|
||||
|| !objectiveCAnalyticsOutput.contains('cd25: true')
|
||||
|| !objectiveCAnalyticsOutput.contains('viewName: assemble')) {
|
||||
return TaskResult.failure(
|
||||
'Building outer Objective-C app produced the following analytics: "$objectiveCAnalyticsOutput" '
|
||||
'but not the expected strings: "cd24: ios", "cd25: true", "viewName: assemble"'
|
||||
);
|
||||
}
|
||||
|
||||
section('Archive iOS Objective-C host app');
|
||||
|
||||
await inDirectory(objectiveCHostApp, () async {
|
||||
@ -470,7 +457,7 @@ end
|
||||
'archive',
|
||||
],
|
||||
environment: <String, String> {
|
||||
'FLUTTER_ANALYTICS_LOG_FILE': objectiveCAnalyticsOutputFile.path,
|
||||
'FLUTTER_SUPPRESS_ANALYTICS': 'true',
|
||||
},
|
||||
);
|
||||
|
||||
|
||||
@ -11,8 +11,6 @@ import 'package:flutter_devicelab/framework/task_result.dart';
|
||||
import 'package:flutter_devicelab/framework/utils.dart';
|
||||
import 'package:path/path.dart' as path;
|
||||
|
||||
final String platformLineSep = Platform.isWindows ? '\r\n': '\n';
|
||||
|
||||
/// Tests that a plugin A can depend on platform code from a plugin B
|
||||
/// as long as plugin B is defined as a pub dependency of plugin A.
|
||||
///
|
||||
@ -102,7 +100,7 @@ dependencies:
|
||||
sdk: flutter
|
||||
|
||||
environment:
|
||||
sdk: '>=3.2.0-0 <4.0.0'
|
||||
sdk: ^3.7.0-0
|
||||
flutter: ">=1.5.0"
|
||||
''', flush: true);
|
||||
|
||||
@ -154,14 +152,14 @@ public class DummyPluginBClass {
|
||||
final File pluginApubspec = File(path.join(pluginADirectory.path, 'pubspec.yaml'));
|
||||
String pluginApubspecContent = await pluginApubspec.readAsString();
|
||||
pluginApubspecContent = pluginApubspecContent.replaceFirst(
|
||||
'${platformLineSep}dependencies:$platformLineSep',
|
||||
'${platformLineSep}dependencies:$platformLineSep'
|
||||
' plugin_b:$platformLineSep'
|
||||
' path: ${pluginBDirectory.path}$platformLineSep'
|
||||
' plugin_c:$platformLineSep'
|
||||
' path: ${pluginCDirectory.path}$platformLineSep'
|
||||
' plugin_d:$platformLineSep'
|
||||
' path: ${pluginDDirectory.path}$platformLineSep',
|
||||
'${Platform.lineTerminator}dependencies:${Platform.lineTerminator}',
|
||||
'${Platform.lineTerminator}dependencies:${Platform.lineTerminator}'
|
||||
' plugin_b:${Platform.lineTerminator}'
|
||||
' path: ${pluginBDirectory.path}${Platform.lineTerminator}'
|
||||
' plugin_c:${Platform.lineTerminator}'
|
||||
' path: ${pluginCDirectory.path}${Platform.lineTerminator}'
|
||||
' plugin_d:${Platform.lineTerminator}'
|
||||
' path: ${pluginDDirectory.path}${Platform.lineTerminator}',
|
||||
);
|
||||
await pluginApubspec.writeAsString(pluginApubspecContent, flush: true);
|
||||
|
||||
@ -210,7 +208,7 @@ public class DummyPluginAClass {
|
||||
final String flutterPluginsDependenciesFileContent = flutterPluginsDependenciesFile.readAsStringSync();
|
||||
|
||||
final Map<String, dynamic> jsonContent = json.decode(flutterPluginsDependenciesFileContent) as Map<String, dynamic>;
|
||||
final bool swiftPackageManagerEnabled = jsonContent['swift_package_manager_enabled'] as bool? ?? false;
|
||||
final Map<String, dynamic>? swiftPackageManagerJson = jsonContent['swift_package_manager_enabled'] as Map<String, dynamic>?;
|
||||
|
||||
// Verify the dependencyGraph object is valid. The rest of the contents of this file are not relevant to the
|
||||
// dependency graph and are tested by unit tests.
|
||||
@ -304,6 +302,18 @@ public class DummyPluginAClass {
|
||||
return TaskResult.failure('Failed to build plugin A example iOS app');
|
||||
}
|
||||
|
||||
final bool? swiftPackageManagerEnabled = swiftPackageManagerJson?['ios'] as bool?;
|
||||
if (swiftPackageManagerEnabled == null) {
|
||||
return TaskResult.failure(
|
||||
'${flutterPluginsDependenciesFile.path} is missing the '
|
||||
'"swift_package_manager_enabled" > "ios" property.\n'
|
||||
'\n'
|
||||
'.flutter_plugin_dependencies content:\n'
|
||||
'\n'
|
||||
'$flutterPluginsDependenciesFileContent',
|
||||
);
|
||||
}
|
||||
|
||||
if (swiftPackageManagerEnabled) {
|
||||
// Check plugins are built statically if using SwiftPM.
|
||||
final String executable = path.join(appBundle.path, 'Runner');
|
||||
|
||||
@ -9,7 +9,6 @@ import 'package:flutter_devicelab/tasks/web_benchmarks.dart';
|
||||
Future<void> main() async {
|
||||
await task(() async {
|
||||
return runWebBenchmark((
|
||||
webRenderer: 'canvaskit',
|
||||
useWasm: false,
|
||||
forceSingleThreadedSkwasm: false,
|
||||
));
|
||||
|
||||
@ -1,17 +0,0 @@
|
||||
// Copyright 2014 The Flutter Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
import 'package:flutter_devicelab/framework/framework.dart';
|
||||
import 'package:flutter_devicelab/tasks/web_benchmarks.dart';
|
||||
|
||||
/// Runs all Web benchmarks using the HTML rendering backend.
|
||||
Future<void> main() async {
|
||||
await task(() async {
|
||||
return runWebBenchmark((
|
||||
webRenderer: 'html',
|
||||
useWasm: false,
|
||||
forceSingleThreadedSkwasm: false,
|
||||
));
|
||||
});
|
||||
}
|
||||
@ -9,7 +9,6 @@ import 'package:flutter_devicelab/tasks/web_benchmarks.dart';
|
||||
Future<void> main() async {
|
||||
await task(() async {
|
||||
return runWebBenchmark((
|
||||
webRenderer: 'skwasm',
|
||||
useWasm: true,
|
||||
forceSingleThreadedSkwasm: false,
|
||||
));
|
||||
|
||||
@ -9,7 +9,6 @@ import 'package:flutter_devicelab/tasks/web_benchmarks.dart';
|
||||
Future<void> main() async {
|
||||
await task(() async {
|
||||
return runWebBenchmark((
|
||||
webRenderer: 'skwasm',
|
||||
useWasm: true,
|
||||
forceSingleThreadedSkwasm: true,
|
||||
));
|
||||
|
||||
@ -9,8 +9,6 @@ import 'package:path/path.dart' as path;
|
||||
import 'task_result.dart';
|
||||
import 'utils.dart';
|
||||
|
||||
final String platformLineSep = Platform.isWindows ? '\r\n' : '\n';
|
||||
|
||||
final List<String> flutterAssets = <String>[
|
||||
'assets/flutter_assets/AssetManifest.json',
|
||||
'assets/flutter_assets/NOTICES.Z',
|
||||
@ -194,6 +192,17 @@ class ApkExtractor {
|
||||
_extracted = true;
|
||||
}
|
||||
|
||||
/// Returns true if APK contains classes from library with given [libraryName].
|
||||
Future<bool> containsLibrary(String libraryName) async {
|
||||
await _extractDex();
|
||||
for (final String className in _classes) {
|
||||
if (className.startsWith(libraryName)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/// Returns true if the APK contains a given class.
|
||||
Future<bool> containsClass(String className) async {
|
||||
await _extractDex();
|
||||
@ -220,6 +229,14 @@ Future<String> getAndroidManifest(String apk) async {
|
||||
);
|
||||
}
|
||||
|
||||
/// Checks that the [apk] includes any classes from a particularly library with
|
||||
/// given [libraryName] in the [apk] and returns true if so, false otherwise.
|
||||
Future<bool> checkApkContainsMethodsFromLibrary(File apk, String libraryName) async {
|
||||
final ApkExtractor extractor = ApkExtractor(apk);
|
||||
final bool apkContainsMethodsFromLibrary = await extractor.containsLibrary(libraryName);
|
||||
return apkContainsMethodsFromLibrary;
|
||||
}
|
||||
|
||||
/// Checks that the classes are contained in the APK, throws otherwise.
|
||||
Future<void> checkApkContainsClasses(File apk, List<String> classes) async {
|
||||
final ApkExtractor extractor = ApkExtractor(apk);
|
||||
@ -274,16 +291,17 @@ android {
|
||||
}
|
||||
|
||||
/// Adds a plugin to the pubspec.
|
||||
/// In pubspec, each dependency is expressed as key, value pair joined by a colon `:`.
|
||||
/// such as `plugin_a`:`^0.0.1` or `plugin_a`:`\npath: /some/path`.
|
||||
void addPlugin(String plugin, { String value = '' }) {
|
||||
final File pubspec = File(path.join(rootPath, 'pubspec.yaml'));
|
||||
String content = pubspec.readAsStringSync();
|
||||
content = content.replaceFirst(
|
||||
'${platformLineSep}dependencies:$platformLineSep',
|
||||
'${platformLineSep}dependencies:$platformLineSep $plugin: $value$platformLineSep',
|
||||
);
|
||||
pubspec.writeAsStringSync(content, flush: true);
|
||||
///
|
||||
/// If a particular version of the [plugin] is desired, it should be included
|
||||
/// in the name as it would be in the `flutter pub add` command, e.g.
|
||||
/// `google_maps_flutter:^2.2.1`.
|
||||
///
|
||||
/// Include all other desired options for running `flutter pub add` to
|
||||
/// [options], e.g. `<String>['--path', 'path/to/plugin']`.
|
||||
Future<void> addPlugin(String plugin, {List<String> options = const <String>[]}) async {
|
||||
await inDirectory(Directory(rootPath), () async {
|
||||
await flutter('pub', options: <String>['add', plugin, ...options]);
|
||||
});
|
||||
}
|
||||
|
||||
Future<void> setMinSdkVersion(int sdkVersion) async {
|
||||
@ -336,7 +354,7 @@ android {
|
||||
path.join(parent.path, 'hello', 'pubspec.yaml')
|
||||
);
|
||||
final String contents = pubspec.readAsStringSync();
|
||||
final String newContents = contents.replaceFirst('${platformLineSep}flutter:$platformLineSep', '''
|
||||
final String newContents = contents.replaceFirst('${Platform.lineTerminator}flutter:${Platform.lineTerminator}', '''
|
||||
|
||||
flutter:
|
||||
assets:
|
||||
@ -369,9 +387,9 @@ class FlutterPluginProject {
|
||||
final Directory parent;
|
||||
final String name;
|
||||
|
||||
static Future<FlutterPluginProject> create(Directory directory, String name) async {
|
||||
static Future<FlutterPluginProject> create(Directory directory, String name, {List<String> options = const <String>['--platforms=ios,android']}) async {
|
||||
await inDirectory(directory, () async {
|
||||
await flutter('create', options: <String>['--template=plugin', '--platforms=ios,android', name]);
|
||||
await flutter('create', options: <String>['--template=plugin', ...options, name]);
|
||||
});
|
||||
return FlutterPluginProject(directory, name);
|
||||
}
|
||||
|
||||
@ -514,12 +514,21 @@ Future<int> flutter(String command, {
|
||||
// DevToolsMemoryTest in perf_tests.dart.
|
||||
Map<String, String>? environment,
|
||||
String? workingDirectory,
|
||||
StringBuffer? output, // if not null, the stdout will be written here
|
||||
StringBuffer? stderr, // if not null, the stderr will be written here
|
||||
}) async {
|
||||
final List<String> args = _flutterCommandArgs(
|
||||
command, options, driveWithDds: driveWithDds,
|
||||
);
|
||||
final int exitCode = await exec(path.join(flutterDirectory.path, 'bin', 'flutter'), args,
|
||||
canFail: canFail, environment: environment, workingDirectory: workingDirectory);
|
||||
final int exitCode = await exec(
|
||||
path.join(flutterDirectory.path, 'bin', 'flutter'),
|
||||
args,
|
||||
canFail: canFail,
|
||||
environment: environment,
|
||||
workingDirectory: workingDirectory,
|
||||
output: output,
|
||||
stderr: stderr,
|
||||
);
|
||||
|
||||
if (exitCode != 0 && !canFail) {
|
||||
await _flutterScreenshot(workingDirectory: workingDirectory);
|
||||
|
||||
@ -2042,7 +2042,7 @@ class MemoryTest {
|
||||
await receivedNextMessage;
|
||||
}
|
||||
|
||||
/// Taps the application and looks for acknowldgement.
|
||||
/// Taps the application and looks for acknowledgement.
|
||||
///
|
||||
/// This is used by several tests to ensure scrolling gestures are installed.
|
||||
Future<void> tapNotification() async {
|
||||
|
||||
@ -21,7 +21,6 @@ const int benchmarkServerPort = 9999;
|
||||
const int chromeDebugPort = 10000;
|
||||
|
||||
typedef WebBenchmarkOptions = ({
|
||||
String webRenderer,
|
||||
bool useWasm,
|
||||
bool forceSingleThreadedSkwasm,
|
||||
});
|
||||
@ -41,7 +40,6 @@ Future<TaskResult> runWebBenchmark(WebBenchmarkOptions benchmarkOptions) async {
|
||||
'--no-strip-wasm',
|
||||
],
|
||||
'--dart-define=FLUTTER_WEB_ENABLE_PROFILING=true',
|
||||
if (!benchmarkOptions.useWasm) '--web-renderer=${benchmarkOptions.webRenderer}',
|
||||
'--profile',
|
||||
'--no-web-resources-cdn',
|
||||
'-t',
|
||||
@ -175,10 +173,10 @@ Future<TaskResult> runWebBenchmark(WebBenchmarkOptions benchmarkOptions) async {
|
||||
}
|
||||
|
||||
final String webRendererName;
|
||||
if (benchmarkOptions.useWasm && benchmarkOptions.forceSingleThreadedSkwasm) {
|
||||
webRendererName = 'skwasm_st';
|
||||
if (benchmarkOptions.useWasm) {
|
||||
webRendererName = benchmarkOptions.forceSingleThreadedSkwasm ? 'skwasm_st' : 'skwasm';
|
||||
} else {
|
||||
webRendererName = benchmarkOptions.webRenderer;
|
||||
webRendererName = 'canvaskit';
|
||||
}
|
||||
final String namespace = '$benchmarkName.$webRendererName';
|
||||
final List<String> scoreKeys = List<String>.from(profile['scoreKeys'] as List<dynamic>);
|
||||
|
||||
@ -3,7 +3,7 @@ description: Flutter continuous integration performance and correctness tests.
|
||||
homepage: https://github.com/flutter/flutter
|
||||
|
||||
environment:
|
||||
sdk: '>=3.2.0-0 <4.0.0'
|
||||
sdk: ^3.7.0-0
|
||||
|
||||
dependencies:
|
||||
archive: 3.6.1
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
name: platform_integration
|
||||
|
||||
environment:
|
||||
sdk: '>=3.2.0-0 <4.0.0'
|
||||
sdk: ^3.7.0-0
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
name: renderers
|
||||
|
||||
environment:
|
||||
sdk: '>=3.2.0-0 <4.0.0'
|
||||
sdk: ^3.7.0-0
|
||||
|
||||
@ -2,7 +2,7 @@ name: forbidden_from_release_tests
|
||||
publish_to: 'none'
|
||||
|
||||
environment:
|
||||
sdk: '>=3.2.0-0 <4.0.0'
|
||||
sdk: ^3.7.0-0
|
||||
|
||||
dependencies:
|
||||
args: 2.6.0
|
||||
|
||||
@ -1,68 +0,0 @@
|
||||
// Copyright 2014 The Flutter Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
plugins {
|
||||
id "com.android.application"
|
||||
id "kotlin-android"
|
||||
id "dev.flutter.flutter-gradle-plugin"
|
||||
}
|
||||
|
||||
def localProperties = new Properties()
|
||||
def localPropertiesFile = rootProject.file('local.properties')
|
||||
if (localPropertiesFile.exists()) {
|
||||
localPropertiesFile.withReader('UTF-8') { reader ->
|
||||
localProperties.load(reader)
|
||||
}
|
||||
}
|
||||
|
||||
def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
|
||||
if (flutterVersionCode == null) {
|
||||
flutterVersionCode = '1'
|
||||
}
|
||||
|
||||
def flutterVersionName = localProperties.getProperty('flutter.versionName')
|
||||
if (flutterVersionName == null) {
|
||||
flutterVersionName = '1.0'
|
||||
}
|
||||
|
||||
android {
|
||||
namespace = "com.example.abstract_method_smoke_test"
|
||||
compileSdk flutter.compileSdkVersion
|
||||
|
||||
compileOptions {
|
||||
sourceCompatibility JavaVersion.VERSION_1_8
|
||||
targetCompatibility JavaVersion.VERSION_1_8
|
||||
}
|
||||
|
||||
kotlinOptions {
|
||||
jvmTarget = '1.8'
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
main.java.srcDirs += 'src/main/kotlin'
|
||||
}
|
||||
|
||||
defaultConfig {
|
||||
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
|
||||
applicationId "com.example.abstract_method_smoke_test"
|
||||
minSdkVersion 21
|
||||
targetSdkVersion flutter.targetSdkVersion
|
||||
versionCode flutterVersionCode.toInteger()
|
||||
versionName flutterVersionName
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
release {
|
||||
signingConfig signingConfigs.debug
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
flutter {
|
||||
source '../..'
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.7.10"
|
||||
}
|
||||
@ -1,11 +0,0 @@
|
||||
<!-- Copyright 2014 The Flutter Authors. All rights reserved.
|
||||
Use of this source code is governed by a BSD-style license that can be
|
||||
found in the LICENSE file. -->
|
||||
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="com.example.abstract_method_smoke_test">
|
||||
<!-- Flutter needs it to communicate with the running application
|
||||
to allow setting breakpoints, to provide hot reload, etc.
|
||||
-->
|
||||
<uses-permission android:name="android.permission.INTERNET"/>
|
||||
</manifest>
|
||||
@ -1,44 +0,0 @@
|
||||
<!-- Copyright 2014 The Flutter Authors. All rights reserved.
|
||||
Use of this source code is governed by a BSD-style license that can be
|
||||
found in the LICENSE file. -->
|
||||
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<!-- ${applicationName} is used by the Flutter tool to select the Application
|
||||
class to use. For most apps, this is the default Android application.
|
||||
In most cases you can leave this as-is, but you if you want to provide
|
||||
additional functionality it is fine to subclass or reimplement
|
||||
Application and put your custom class here. -->
|
||||
<application
|
||||
android:name="${applicationName}"
|
||||
android:label="abstract_method_smoke_test">
|
||||
<activity
|
||||
android:name=".MainActivity"
|
||||
android:exported="true"
|
||||
android:launchMode="singleTop"
|
||||
android:theme="@style/LaunchTheme"
|
||||
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
|
||||
android:hardwareAccelerated="true"
|
||||
android:windowSoftInputMode="stateVisible|adjustResize">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN"/>
|
||||
<category android:name="android.intent.category.LAUNCHER"/>
|
||||
</intent-filter>
|
||||
</activity>
|
||||
<!-- Don't delete the meta-data below.
|
||||
This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
|
||||
<meta-data
|
||||
android:name="flutterEmbedding"
|
||||
android:value="2" />
|
||||
</application>
|
||||
<!-- Required to query activities that can process text, see:
|
||||
https://developer.android.com/training/package-visibility and
|
||||
https://developer.android.com/reference/android/content/Intent#ACTION_PROCESS_TEXT.
|
||||
|
||||
In particular, this is used by the Flutter engine in io.flutter.plugin.text.ProcessTextPlugin. -->
|
||||
<queries>
|
||||
<intent>
|
||||
<action android:name="android.intent.action.PROCESS_TEXT"/>
|
||||
<data android:mimeType="text/plain"/>
|
||||
</intent>
|
||||
</queries>
|
||||
</manifest>
|
||||
@ -1,72 +0,0 @@
|
||||
package com.example.abstract_method_smoke_test
|
||||
|
||||
import android.content.Context
|
||||
import android.graphics.Color
|
||||
import android.view.View
|
||||
import android.view.inputmethod.InputMethodManager
|
||||
import androidx.annotation.NonNull
|
||||
import io.flutter.embedding.android.FlutterActivity
|
||||
import io.flutter.embedding.engine.FlutterEngine
|
||||
import io.flutter.embedding.engine.plugins.shim.ShimPluginRegistry
|
||||
import io.flutter.plugin.common.MethodChannel
|
||||
import io.flutter.plugin.common.StandardMessageCodec
|
||||
import io.flutter.plugin.platform.PlatformView
|
||||
import io.flutter.plugin.platform.PlatformViewFactory
|
||||
import io.flutter.plugins.GeneratedPluginRegistrant
|
||||
|
||||
class MainActivity : FlutterActivity() {
|
||||
class SimplePlatformView(context: Context) : PlatformView {
|
||||
private val view: View = View(context)
|
||||
|
||||
init {
|
||||
view.setBackgroundColor(Color.CYAN)
|
||||
}
|
||||
|
||||
override fun dispose() {}
|
||||
|
||||
override fun getView(): View {
|
||||
return view
|
||||
}
|
||||
}
|
||||
|
||||
override fun configureFlutterEngine(
|
||||
@NonNull flutterEngine: FlutterEngine
|
||||
) {
|
||||
GeneratedPluginRegistrant.registerWith(flutterEngine)
|
||||
|
||||
val shimPluginRegistry = ShimPluginRegistry(flutterEngine)
|
||||
shimPluginRegistry.registrarFor("com.example.abstract_method_smoke_test")
|
||||
.platformViewRegistry()
|
||||
.registerViewFactory(
|
||||
"simple",
|
||||
object : PlatformViewFactory(StandardMessageCodec.INSTANCE) {
|
||||
override fun create(
|
||||
context: Context?,
|
||||
viewId: Int,
|
||||
args: Any?
|
||||
): PlatformView {
|
||||
return SimplePlatformView(this@MainActivity)
|
||||
}
|
||||
}
|
||||
)
|
||||
|
||||
// Triggers the Android keyboard, which causes the resize of the Flutter view.
|
||||
// We need to wait for the app to complete.
|
||||
MethodChannel(flutterEngine.getDartExecutor(), "com.example.abstract_method_smoke_test")
|
||||
.setMethodCallHandler { _, result ->
|
||||
toggleInput()
|
||||
result.success(null)
|
||||
}
|
||||
}
|
||||
|
||||
override fun onPause() {
|
||||
// Hide the input when the app is closed.
|
||||
toggleInput()
|
||||
super.onPause()
|
||||
}
|
||||
|
||||
private fun toggleInput() {
|
||||
val imm = getSystemService(Context.INPUT_METHOD_SERVICE) as InputMethodManager
|
||||
imm.toggleSoftInput(InputMethodManager.SHOW_IMPLICIT, 0)
|
||||
}
|
||||
}
|
||||
@ -1,15 +0,0 @@
|
||||
<!-- Copyright 2014 The Flutter Authors. All rights reserved.
|
||||
Use of this source code is governed by a BSD-style license that can be
|
||||
found in the LICENSE file. -->
|
||||
|
||||
<!-- Modify this file to customize your launch splash screen -->
|
||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@android:color/white" />
|
||||
|
||||
<!-- You can insert your own image assets here -->
|
||||
<!-- <item>
|
||||
<bitmap
|
||||
android:gravity="center"
|
||||
android:src="@mipmap/launch_image" />
|
||||
</item> -->
|
||||
</layer-list>
|
||||
@ -1,11 +0,0 @@
|
||||
<!-- Copyright 2014 The Flutter Authors. All rights reserved.
|
||||
Use of this source code is governed by a BSD-style license that can be
|
||||
found in the LICENSE file. -->
|
||||
|
||||
<resources>
|
||||
<style name="LaunchTheme" parent="@android:style/Theme.Black.NoTitleBar">
|
||||
<!-- Show a splash screen on the activity. Automatically removed when
|
||||
Flutter draws its first frame -->
|
||||
<item name="android:windowBackground">@drawable/launch_background</item>
|
||||
</style>
|
||||
</resources>
|
||||
@ -1,11 +0,0 @@
|
||||
<!-- Copyright 2014 The Flutter Authors. All rights reserved.
|
||||
Use of this source code is governed by a BSD-style license that can be
|
||||
found in the LICENSE file. -->
|
||||
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="com.example.abstract_method_smoke_test">
|
||||
<!-- Flutter needs it to communicate with the running application
|
||||
to allow setting breakpoints, to provide hot reload, etc.
|
||||
-->
|
||||
<uses-permission android:name="android.permission.INTERNET"/>
|
||||
</manifest>
|
||||
@ -1,34 +0,0 @@
|
||||
// Copyright 2014 The Flutter Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
// This file is auto generated.
|
||||
// To update all the build.gradle files in the Flutter repo,
|
||||
// See dev/tools/bin/generate_gradle_lockfiles.dart.
|
||||
|
||||
allprojects {
|
||||
repositories {
|
||||
google()
|
||||
mavenCentral()
|
||||
}
|
||||
}
|
||||
|
||||
rootProject.buildDir = '../build'
|
||||
|
||||
subprojects {
|
||||
project.buildDir = "${rootProject.buildDir}/${project.name}"
|
||||
}
|
||||
subprojects {
|
||||
project.evaluationDependsOn(':app')
|
||||
dependencyLocking {
|
||||
ignoredDependencies.add('io.flutter:*')
|
||||
lockFile = file("${rootProject.projectDir}/project-${project.name}.lockfile")
|
||||
if (!project.hasProperty('local-engine-repo')) {
|
||||
lockAllConfigurations()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
tasks.register("clean", Delete) {
|
||||
delete rootProject.buildDir
|
||||
}
|
||||
@ -1,153 +0,0 @@
|
||||
# This is a Gradle generated file for dependency locking.
|
||||
# Manual edits can break the build and are not advised.
|
||||
# This file is expected to be part of source control.
|
||||
androidx.databinding:databinding-common:8.7.0=classpath
|
||||
androidx.databinding:databinding-compiler-common:8.7.0=classpath
|
||||
com.android.application:com.android.application.gradle.plugin:8.7.0=classpath
|
||||
com.android.databinding:baseLibrary:8.7.0=classpath
|
||||
com.android.tools.analytics-library:crash:31.7.0=classpath
|
||||
com.android.tools.analytics-library:protos:31.7.0=classpath
|
||||
com.android.tools.analytics-library:shared:31.7.0=classpath
|
||||
com.android.tools.analytics-library:tracker:31.7.0=classpath
|
||||
com.android.tools.build.jetifier:jetifier-core:1.0.0-beta10=classpath
|
||||
com.android.tools.build.jetifier:jetifier-processor:1.0.0-beta10=classpath
|
||||
com.android.tools.build:aapt2-proto:8.7.0-12006047=classpath
|
||||
com.android.tools.build:aaptcompiler:8.7.0=classpath
|
||||
com.android.tools.build:apksig:8.7.0=classpath
|
||||
com.android.tools.build:apkzlib:8.7.0=classpath
|
||||
com.android.tools.build:builder-model:8.7.0=classpath
|
||||
com.android.tools.build:builder-test-api:8.7.0=classpath
|
||||
com.android.tools.build:builder:8.7.0=classpath
|
||||
com.android.tools.build:bundletool:1.17.1=classpath
|
||||
com.android.tools.build:gradle-api:8.7.0=classpath
|
||||
com.android.tools.build:gradle-settings-api:8.7.0=classpath
|
||||
com.android.tools.build:gradle:8.7.0=classpath
|
||||
com.android.tools.build:manifest-merger:31.7.0=classpath
|
||||
com.android.tools.build:transform-api:2.0.0-deprecated-use-gradle-api=classpath
|
||||
com.android.tools.ddms:ddmlib:31.7.0=classpath
|
||||
com.android.tools.layoutlib:layoutlib-api:31.7.0=classpath
|
||||
com.android.tools.lint:lint-model:31.7.0=classpath
|
||||
com.android.tools.lint:lint-typedef-remover:31.7.0=classpath
|
||||
com.android.tools.utp:android-device-provider-ddmlib-proto:31.7.0=classpath
|
||||
com.android.tools.utp:android-device-provider-gradle-proto:31.7.0=classpath
|
||||
com.android.tools.utp:android-device-provider-profile-proto:31.7.0=classpath
|
||||
com.android.tools.utp:android-test-plugin-host-additional-test-output-proto:31.7.0=classpath
|
||||
com.android.tools.utp:android-test-plugin-host-apk-installer-proto:31.7.0=classpath
|
||||
com.android.tools.utp:android-test-plugin-host-coverage-proto:31.7.0=classpath
|
||||
com.android.tools.utp:android-test-plugin-host-emulator-control-proto:31.7.0=classpath
|
||||
com.android.tools.utp:android-test-plugin-host-logcat-proto:31.7.0=classpath
|
||||
com.android.tools.utp:android-test-plugin-host-retention-proto:31.7.0=classpath
|
||||
com.android.tools.utp:android-test-plugin-result-listener-gradle-proto:31.7.0=classpath
|
||||
com.android.tools:annotations:31.7.0=classpath
|
||||
com.android.tools:common:31.7.0=classpath
|
||||
com.android.tools:dvlib:31.7.0=classpath
|
||||
com.android.tools:repository:31.7.0=classpath
|
||||
com.android.tools:sdk-common:31.7.0=classpath
|
||||
com.android.tools:sdklib:31.7.0=classpath
|
||||
com.android:signflinger:8.7.0=classpath
|
||||
com.android:zipflinger:8.7.0=classpath
|
||||
com.google.android:annotations:4.1.1.4=classpath
|
||||
com.google.api.grpc:proto-google-common-protos:2.17.0=classpath
|
||||
com.google.auto.value:auto-value-annotations:1.6.2=classpath
|
||||
com.google.code.findbugs:jsr305:3.0.2=classpath
|
||||
com.google.code.gson:gson:2.10.1=classpath
|
||||
com.google.crypto.tink:tink:1.7.0=classpath
|
||||
com.google.dagger:dagger:2.28.3=classpath
|
||||
com.google.errorprone:error_prone_annotations:2.18.0=classpath
|
||||
com.google.flatbuffers:flatbuffers-java:1.12.0=classpath
|
||||
com.google.guava:failureaccess:1.0.1=classpath
|
||||
com.google.guava:guava:32.0.1-jre=classpath
|
||||
com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava=classpath
|
||||
com.google.j2objc:j2objc-annotations:2.8=classpath
|
||||
com.google.jimfs:jimfs:1.1=classpath
|
||||
com.google.protobuf:protobuf-java-util:3.22.3=classpath
|
||||
com.google.protobuf:protobuf-java:3.22.3=classpath
|
||||
com.google.testing.platform:core-proto:0.0.9-alpha02=classpath
|
||||
com.googlecode.juniversalchardet:juniversalchardet:1.0.3=classpath
|
||||
com.squareup:javapoet:1.10.0=classpath
|
||||
com.squareup:javawriter:2.5.0=classpath
|
||||
com.sun.activation:javax.activation:1.2.0=classpath
|
||||
com.sun.istack:istack-commons-runtime:3.0.8=classpath
|
||||
com.sun.xml.fastinfoset:FastInfoset:1.2.16=classpath
|
||||
commons-codec:commons-codec:1.11=classpath
|
||||
commons-io:commons-io:2.13.0=classpath
|
||||
commons-logging:commons-logging:1.2=classpath
|
||||
io.grpc:grpc-api:1.57.0=classpath
|
||||
io.grpc:grpc-context:1.57.0=classpath
|
||||
io.grpc:grpc-core:1.57.0=classpath
|
||||
io.grpc:grpc-netty:1.57.0=classpath
|
||||
io.grpc:grpc-protobuf-lite:1.57.0=classpath
|
||||
io.grpc:grpc-protobuf:1.57.0=classpath
|
||||
io.grpc:grpc-stub:1.57.0=classpath
|
||||
io.netty:netty-buffer:4.1.93.Final=classpath
|
||||
io.netty:netty-codec-http2:4.1.93.Final=classpath
|
||||
io.netty:netty-codec-http:4.1.93.Final=classpath
|
||||
io.netty:netty-codec-socks:4.1.93.Final=classpath
|
||||
io.netty:netty-codec:4.1.93.Final=classpath
|
||||
io.netty:netty-common:4.1.93.Final=classpath
|
||||
io.netty:netty-handler-proxy:4.1.93.Final=classpath
|
||||
io.netty:netty-handler:4.1.93.Final=classpath
|
||||
io.netty:netty-resolver:4.1.93.Final=classpath
|
||||
io.netty:netty-transport-native-unix-common:4.1.93.Final=classpath
|
||||
io.netty:netty-transport:4.1.93.Final=classpath
|
||||
io.perfmark:perfmark-api:0.26.0=classpath
|
||||
jakarta.activation:jakarta.activation-api:1.2.1=classpath
|
||||
jakarta.xml.bind:jakarta.xml.bind-api:2.3.2=classpath
|
||||
javax.annotation:javax.annotation-api:1.3.2=classpath
|
||||
javax.inject:javax.inject:1=classpath
|
||||
net.java.dev.jna:jna-platform:5.6.0=classpath
|
||||
net.java.dev.jna:jna:5.6.0=classpath
|
||||
net.sf.jopt-simple:jopt-simple:4.9=classpath
|
||||
net.sf.kxml:kxml2:2.3.0=classpath
|
||||
org.apache.commons:commons-compress:1.21=classpath
|
||||
org.apache.httpcomponents:httpclient:4.5.14=classpath
|
||||
org.apache.httpcomponents:httpcore:4.4.16=classpath
|
||||
org.apache.httpcomponents:httpmime:4.5.6=classpath
|
||||
org.bitbucket.b_c:jose4j:0.9.5=classpath
|
||||
org.bouncycastle:bcpkix-jdk18on:1.77=classpath
|
||||
org.bouncycastle:bcprov-jdk18on:1.77=classpath
|
||||
org.bouncycastle:bcutil-jdk18on:1.77=classpath
|
||||
org.checkerframework:checker-qual:3.33.0=classpath
|
||||
org.codehaus.mojo:animal-sniffer-annotations:1.23=classpath
|
||||
org.glassfish.jaxb:jaxb-runtime:2.3.2=classpath
|
||||
org.glassfish.jaxb:txw2:2.3.2=classpath
|
||||
org.jdom:jdom2:2.0.6=classpath
|
||||
org.jetbrains.intellij.deps:trove4j:1.0.20200330=classpath
|
||||
org.jetbrains.kotlin.android:org.jetbrains.kotlin.android.gradle.plugin:1.8.10=classpath
|
||||
org.jetbrains.kotlin:kotlin-android-extensions:1.8.10=classpath
|
||||
org.jetbrains.kotlin:kotlin-annotation-processing-gradle:1.8.10=classpath
|
||||
org.jetbrains.kotlin:kotlin-build-common:1.8.10=classpath
|
||||
org.jetbrains.kotlin:kotlin-compiler-embeddable:1.8.10=classpath
|
||||
org.jetbrains.kotlin:kotlin-compiler-runner:1.8.10=classpath
|
||||
org.jetbrains.kotlin:kotlin-daemon-client:1.8.10=classpath
|
||||
org.jetbrains.kotlin:kotlin-daemon-embeddable:1.8.10=classpath
|
||||
org.jetbrains.kotlin:kotlin-gradle-plugin-api:1.8.10=classpath
|
||||
org.jetbrains.kotlin:kotlin-gradle-plugin-idea-proto:1.8.10=classpath
|
||||
org.jetbrains.kotlin:kotlin-gradle-plugin-idea:1.8.10=classpath
|
||||
org.jetbrains.kotlin:kotlin-gradle-plugin-model:1.8.10=classpath
|
||||
org.jetbrains.kotlin:kotlin-gradle-plugin:1.8.10=classpath
|
||||
org.jetbrains.kotlin:kotlin-klib-commonizer-api:1.8.10=classpath
|
||||
org.jetbrains.kotlin:kotlin-native-utils:1.8.10=classpath
|
||||
org.jetbrains.kotlin:kotlin-project-model:1.8.10=classpath
|
||||
org.jetbrains.kotlin:kotlin-reflect:1.9.20=classpath
|
||||
org.jetbrains.kotlin:kotlin-scripting-common:1.8.10=classpath
|
||||
org.jetbrains.kotlin:kotlin-scripting-compiler-embeddable:1.8.10=classpath
|
||||
org.jetbrains.kotlin:kotlin-scripting-compiler-impl-embeddable:1.8.10=classpath
|
||||
org.jetbrains.kotlin:kotlin-scripting-jvm:1.8.10=classpath
|
||||
org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.9.20=classpath
|
||||
org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.9.20=classpath
|
||||
org.jetbrains.kotlin:kotlin-stdlib:1.9.20=classpath
|
||||
org.jetbrains.kotlin:kotlin-tooling-core:1.8.10=classpath
|
||||
org.jetbrains.kotlin:kotlin-util-io:1.8.10=classpath
|
||||
org.jetbrains.kotlin:kotlin-util-klib:1.8.10=classpath
|
||||
org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.5.0=classpath
|
||||
org.jetbrains:annotations:23.0.0=classpath
|
||||
org.jvnet.staxex:stax-ex:1.8.1=classpath
|
||||
org.ow2.asm:asm-analysis:9.6=classpath
|
||||
org.ow2.asm:asm-commons:9.6=classpath
|
||||
org.ow2.asm:asm-tree:9.6=classpath
|
||||
org.ow2.asm:asm-util:9.6=classpath
|
||||
org.ow2.asm:asm:9.6=classpath
|
||||
org.slf4j:slf4j-api:1.7.30=classpath
|
||||
org.tensorflow:tensorflow-lite-metadata:0.1.0-rc2=classpath
|
||||
empty=
|
||||
@ -1,3 +0,0 @@
|
||||
org.gradle.jvmargs=-Xmx4G -XX:MaxMetaspaceSize=2G -XX:+HeapDumpOnOutOfMemoryError
|
||||
android.enableJetifier=true
|
||||
android.useAndroidX=true
|
||||
@ -1,5 +0,0 @@
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-all.zip
|
||||
File diff suppressed because one or more lines are too long
@ -1,67 +0,0 @@
|
||||
# This is a Gradle generated file for dependency locking.
|
||||
# Manual edits can break the build and are not advised.
|
||||
# This file is expected to be part of source control.
|
||||
androidx.activity:activity:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath
|
||||
androidx.annotation:annotation-experimental:1.1.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath
|
||||
androidx.annotation:annotation:1.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath
|
||||
androidx.arch.core:core-common:2.1.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath
|
||||
androidx.arch.core:core-runtime:2.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath
|
||||
androidx.collection:collection:1.1.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath
|
||||
androidx.core:core:1.6.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath
|
||||
androidx.customview:customview:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath
|
||||
androidx.fragment:fragment:1.1.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath
|
||||
androidx.lifecycle:lifecycle-common-java8:2.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath
|
||||
androidx.lifecycle:lifecycle-common:2.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath
|
||||
androidx.lifecycle:lifecycle-livedata-core:2.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath
|
||||
androidx.lifecycle:lifecycle-livedata:2.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath
|
||||
androidx.lifecycle:lifecycle-runtime:2.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath
|
||||
androidx.lifecycle:lifecycle-viewmodel:2.1.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath
|
||||
androidx.loader:loader:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath
|
||||
androidx.savedstate:savedstate:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath
|
||||
androidx.test.espresso:espresso-core:3.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath
|
||||
androidx.test.espresso:espresso-idling-resource:3.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath
|
||||
androidx.test:monitor:1.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath
|
||||
androidx.test:rules:1.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath
|
||||
androidx.test:runner:1.2.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath
|
||||
androidx.tracing:tracing:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath
|
||||
androidx.versionedparcelable:versionedparcelable:1.1.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath
|
||||
androidx.viewpager:viewpager:1.0.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath
|
||||
androidx.window:window-java:1.0.0-beta04=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath
|
||||
androidx.window:window:1.0.0-beta04=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath
|
||||
com.google.code.findbugs:jsr305:3.0.2=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath
|
||||
com.google.errorprone:error_prone_annotations:2.3.2=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath
|
||||
com.google.guava:failureaccess:1.0.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath
|
||||
com.google.guava:guava:28.1-android=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath
|
||||
com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath
|
||||
com.google.j2objc:j2objc-annotations:1.3=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath
|
||||
com.squareup:javawriter:2.1.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath
|
||||
javax.inject:javax.inject:1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath
|
||||
junit:junit:4.12=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath
|
||||
net.bytebuddy:byte-buddy-agent:1.12.22=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath
|
||||
net.bytebuddy:byte-buddy:1.12.22=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath
|
||||
net.sf.kxml:kxml2:2.3.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath
|
||||
org.checkerframework:checker-compat-qual:2.5.5=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath
|
||||
org.codehaus.mojo:animal-sniffer-annotations:1.18=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath
|
||||
org.hamcrest:hamcrest-core:1.3=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath
|
||||
org.hamcrest:hamcrest-integration:1.3=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath
|
||||
org.hamcrest:hamcrest-library:1.3=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath
|
||||
org.jacoco:org.jacoco.agent:0.8.7=androidJacocoAnt
|
||||
org.jacoco:org.jacoco.ant:0.8.7=androidJacocoAnt
|
||||
org.jacoco:org.jacoco.core:0.8.7=androidJacocoAnt
|
||||
org.jacoco:org.jacoco.report:0.8.7=androidJacocoAnt
|
||||
org.jetbrains.kotlin:kotlin-stdlib-common:1.5.31=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath
|
||||
org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.5.30=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath
|
||||
org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.5.30=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath
|
||||
org.jetbrains.kotlin:kotlin-stdlib:1.5.31=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath
|
||||
org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.2=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath
|
||||
org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.5.2=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath
|
||||
org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath
|
||||
org.jetbrains:annotations:13.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath
|
||||
org.mockito:mockito-core:5.0.0=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath
|
||||
org.mockito:mockito-inline:5.0.0=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath
|
||||
org.objenesis:objenesis:3.3=debugUnitTestRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestRuntimeClasspath
|
||||
org.ow2.asm:asm-analysis:9.1=androidJacocoAnt
|
||||
org.ow2.asm:asm-commons:9.1=androidJacocoAnt
|
||||
org.ow2.asm:asm-tree:9.1=androidJacocoAnt
|
||||
org.ow2.asm:asm:9.1=androidJacocoAnt
|
||||
empty=androidApis,androidJdkImage,androidTestUtil,coreLibraryDesugaring,debugAndroidTestAnnotationProcessorClasspath,debugAnnotationProcessorClasspath,debugUnitTestAnnotationProcessorClasspath,lintChecks,lintPublish,profileAnnotationProcessorClasspath,profileUnitTestAnnotationProcessorClasspath,releaseAnnotationProcessorClasspath,releaseUnitTestAnnotationProcessorClasspath
|
||||
@ -1,41 +0,0 @@
|
||||
// Copyright 2014 The Flutter Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
// This file is auto generated.
|
||||
// To update all the settings.gradle files in the Flutter repo,
|
||||
// See dev/tools/bin/generate_gradle_lockfiles.dart.
|
||||
|
||||
pluginManagement {
|
||||
def flutterSdkPath = {
|
||||
def properties = new Properties()
|
||||
file("local.properties").withInputStream { properties.load(it) }
|
||||
def flutterSdkPath = properties.getProperty("flutter.sdk")
|
||||
assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
|
||||
return flutterSdkPath
|
||||
}
|
||||
settings.ext.flutterSdkPath = flutterSdkPath()
|
||||
|
||||
includeBuild("${settings.ext.flutterSdkPath}/packages/flutter_tools/gradle")
|
||||
|
||||
repositories {
|
||||
google()
|
||||
mavenCentral()
|
||||
gradlePluginPortal()
|
||||
}
|
||||
}
|
||||
|
||||
buildscript {
|
||||
dependencyLocking {
|
||||
lockFile = file("${rootProject.projectDir}/buildscript-gradle.lockfile")
|
||||
lockAllConfigurations()
|
||||
}
|
||||
}
|
||||
|
||||
plugins {
|
||||
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
|
||||
id "com.android.application" version "8.7.0" apply false
|
||||
id "org.jetbrains.kotlin.android" version "1.8.10" apply false
|
||||
}
|
||||
|
||||
include ":app"
|
||||
@ -1,72 +0,0 @@
|
||||
// Copyright 2014 The Flutter Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
|
||||
Future<void> main() async {
|
||||
WidgetsFlutterBinding.ensureInitialized();
|
||||
const MethodChannel channel = MethodChannel('com.example.abstract_method_smoke_test');
|
||||
await channel.invokeMethod<void>('show_keyboard');
|
||||
runApp(const MyApp());
|
||||
print('Test succeeded');
|
||||
}
|
||||
|
||||
class MyApp extends StatelessWidget {
|
||||
const MyApp({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return MaterialApp(
|
||||
title: 'Flutter Demo',
|
||||
theme: ThemeData(
|
||||
primarySwatch: Colors.blue,
|
||||
),
|
||||
home: const HomePage(),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
class HomePage extends StatefulWidget {
|
||||
const HomePage({super.key});
|
||||
|
||||
@override
|
||||
State<HomePage> createState() => _HomePage();
|
||||
}
|
||||
|
||||
class _HomePage extends State<HomePage> {
|
||||
@override
|
||||
void initState() {
|
||||
super.initState();
|
||||
|
||||
// Trigger the second route.
|
||||
// https://github.com/flutter/flutter/issues/40126
|
||||
WidgetsBinding.instance.addPostFrameCallback((_) async {
|
||||
Navigator.of(context).push(
|
||||
MaterialPageRoute<void>(builder: (_) => const SecondPage()));
|
||||
});
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return const Scaffold();
|
||||
}
|
||||
}
|
||||
|
||||
class SecondPage extends StatelessWidget {
|
||||
const SecondPage({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return const Scaffold(
|
||||
body: Column(
|
||||
children: <Widget>[
|
||||
Expanded(
|
||||
child: AndroidView(viewType: 'simple')
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
@ -1,22 +0,0 @@
|
||||
name: abstract_method_smoke_test
|
||||
description: A new Flutter project.
|
||||
|
||||
version: 1.0.0+1
|
||||
|
||||
environment:
|
||||
sdk: '>=3.2.0-0 <4.0.0'
|
||||
|
||||
dependencies:
|
||||
flutter:
|
||||
sdk: flutter
|
||||
|
||||
characters: 1.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
|
||||
collection: 1.19.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
|
||||
material_color_utilities: 0.11.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
|
||||
meta: 1.15.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
|
||||
vector_math: 2.1.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
|
||||
|
||||
flutter:
|
||||
uses-material-design: true
|
||||
|
||||
# PUBSPEC CHECKSUM: 98c4
|
||||
@ -1,7 +1,7 @@
|
||||
name: android_semantics_testing
|
||||
description: Integration testing library for Android semantics
|
||||
environment:
|
||||
sdk: '>=3.2.0-0 <4.0.0'
|
||||
sdk: ^3.7.0-0
|
||||
|
||||
dependencies:
|
||||
flutter:
|
||||
|
||||
@ -3,7 +3,7 @@ description: "An integration test for verified MotionEvents."
|
||||
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
|
||||
version: 1.0.0+1
|
||||
environment:
|
||||
sdk: '>=3.2.0-0 <4.0.0'
|
||||
sdk: ^3.7.0-0
|
||||
|
||||
# Dependencies specify other packages that your package needs in order to work.
|
||||
# To automatically upgrade your package dependencies to the latest versions
|
||||
|
||||
@ -4,7 +4,7 @@ publish_to: none
|
||||
description: An integration test for embedded platform views
|
||||
version: 1.0.0+1
|
||||
environment:
|
||||
sdk: '>=3.2.0-0 <4.0.0'
|
||||
sdk: ^3.7.0-0
|
||||
|
||||
dependencies:
|
||||
flutter:
|
||||
|
||||
@ -59,6 +59,7 @@
|
||||
ignoresPersistentStateOnLaunch = "NO"
|
||||
debugDocumentVersioning = "YES"
|
||||
debugServiceExtension = "internal"
|
||||
enableGPUValidationMode = "1"
|
||||
allowLocationSimulation = "YES">
|
||||
<BuildableProductRunnable
|
||||
runnableDebuggingMode = "0">
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user