diff --git a/flutter/examples/api/macos/Podfile b/flutter/examples/api/macos/Podfile index 049abe2954279f0ed15c66d4c858fa4ae2a590bf..ae77cc1d4269974b358a99f8b9b48c14e783a41b 100644 --- a/flutter/examples/api/macos/Podfile +++ b/flutter/examples/api/macos/Podfile @@ -28,7 +28,6 @@ flutter_macos_podfile_setup target 'Runner' do use_frameworks! - use_modular_headers! flutter_install_all_macos_pods File.dirname(File.realpath(__FILE__)) end diff --git a/flutter/examples/api/pubspec.yaml b/flutter/examples/api/pubspec.yaml index 17b0d3a01e83da3217aa4fab56c035197355d531..fd390bdd0b749fb30544990a13ff9b1da8d9f8dd 100644 --- a/flutter/examples/api/pubspec.yaml +++ b/flutter/examples/api/pubspec.yaml @@ -7,18 +7,18 @@ publish_to: 'none' version: 1.0.0 environment: - sdk: '>=3.2.0-0 <4.0.0' + sdk: ^3.7.0-0 flutter: ">=2.5.0-6.0.pre.30 <3.0.0" dependencies: - cupertino_icons: 1.0.6 + cupertino_icons: 1.0.8 flutter: sdk: flutter - characters: 1.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - collection: 1.18.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - material_color_utilities: 0.8.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - meta: 1.11.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + characters: 1.4.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + collection: 1.19.1 # 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.16.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" dev_dependencies: @@ -34,63 +34,64 @@ dev_dependencies: sdk: flutter flutter_web_plugins: sdk: flutter - test: 1.24.9 + test: 1.25.15 - _fe_analyzer_shared: 65.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - analyzer: 6.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - args: 2.4.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - async: 2.11.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - boolean_selector: 2.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - clock: 1.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - convert: 3.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - coverage: 1.7.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - crypto: 3.0.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - fake_async: 1.3.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - file: 7.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - frontend_server_client: 3.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - glob: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - http_multi_server: 3.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - http_parser: 4.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - intl: 0.18.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - io: 1.0.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - js: 0.6.7 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - leak_tracker: 10.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - leak_tracker_flutter_testing: 2.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - leak_tracker_testing: 2.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - logging: 1.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - matcher: 0.12.16+1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - mime: 1.0.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + _fe_analyzer_shared: 80.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + analyzer: 7.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + args: 2.7.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + async: 2.13.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + boolean_selector: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + clock: 1.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + convert: 3.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + coverage: 1.11.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + crypto: 3.0.6 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + fake_async: 1.3.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + file: 7.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + frontend_server_client: 4.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + glob: 2.1.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + http_multi_server: 3.2.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + http_parser: 4.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + intl: 0.20.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + io: 1.0.5 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + js: 0.7.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + leak_tracker: 10.0.9 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + leak_tracker_flutter_testing: 3.0.9 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + leak_tracker_testing: 3.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + logging: 1.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + matcher: 0.12.17 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + mime: 2.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" node_preamble: 2.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - package_config: 2.1.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - path: 1.9.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - platform: 3.1.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + package_config: 2.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + path: 1.9.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + platform: 3.1.6 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" pool: 1.5.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - process: 5.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - pub_semver: 2.1.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - shelf: 1.4.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + process: 5.0.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + pub_semver: 2.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + shelf: 1.4.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" shelf_packages_handler: 3.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - shelf_static: 1.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - shelf_web_socket: 1.0.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - source_map_stack_trace: 2.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - source_maps: 0.10.12 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - source_span: 1.10.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - stack_trace: 1.11.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - stream_channel: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - string_scanner: 1.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + shelf_static: 1.1.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + shelf_web_socket: 2.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + source_map_stack_trace: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + source_maps: 0.10.13 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + source_span: 1.10.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + stack_trace: 1.12.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + stream_channel: 2.1.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + string_scanner: 1.4.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" sync_http: 0.3.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - term_glyph: 1.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - test_api: 0.6.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - test_core: 0.5.9 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - typed_data: 1.3.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - vm_service: 13.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - watcher: 1.1.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - web: 0.4.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - web_socket_channel: 2.4.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - webdriver: 3.0.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + term_glyph: 1.2.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + test_api: 0.7.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + test_core: 0.6.8 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + typed_data: 1.4.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + vm_service: 15.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + watcher: 1.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + web: 1.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + web_socket: 0.1.6 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + web_socket_channel: 3.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + webdriver: 3.1.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" webkit_inspection_protocol: 1.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - yaml: 3.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + yaml: 3.1.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" flutter: uses-material-design: true -# PUBSPEC CHECKSUM: e00b +# PUBSPEC CHECKSUM: 2cd7 diff --git a/flutter/examples/api/test/flutter_test_config.dart b/flutter/examples/api/test/flutter_test_config.dart index 69ad13655ba3f775e6cc67eafdcdf0bf9d50b3b1..64eca02ed51a748446e8a9d7a87b8dcba75bca36 100644 --- a/flutter/examples/api/test/flutter_test_config.dart +++ b/flutter/examples/api/test/flutter_test_config.dart @@ -4,8 +4,7 @@ import 'dart:async'; - -import 'goldens_io.dart' if (dart.library.html) 'goldens_web.dart' as flutter_goldens; +import 'goldens_io.dart' if (dart.library.js_interop) 'goldens_web.dart' as flutter_goldens; Future testExecutable(FutureOr Function() testMain) { // Enable golden file testing using Skia Gold. diff --git a/flutter/examples/api/test/material/bottom_navigation_bar/bottom_navigation_bar.1_test.dart b/flutter/examples/api/test/material/bottom_navigation_bar/bottom_navigation_bar.1_test.dart index d914867adb11dc65092a4d70563489e9c6c8ed98..66f60c85c0794a82e6fbe922a48c81799630a9e1 100644 --- a/flutter/examples/api/test/material/bottom_navigation_bar/bottom_navigation_bar.1_test.dart +++ b/flutter/examples/api/test/material/bottom_navigation_bar/bottom_navigation_bar.1_test.dart @@ -3,14 +3,13 @@ // found in the LICENSE file. import 'package:flutter/material.dart'; -import 'package:flutter_api_samples/material/bottom_navigation_bar/bottom_navigation_bar.1.dart' as example; +import 'package:flutter_api_samples/material/bottom_navigation_bar/bottom_navigation_bar.1.dart' + as example; import 'package:flutter_test/flutter_test.dart'; void main() { testWidgets('BottomNavigationBar Updates Screen Content', (WidgetTester tester) async { - await tester.pumpWidget( - const example.BottomNavigationBarExampleApp(), - ); + await tester.pumpWidget(const example.BottomNavigationBarExampleApp()); expect(find.widgetWithText(AppBar, 'BottomNavigationBar Sample'), findsOneWidget); expect(find.byType(BottomNavigationBar), findsOneWidget); diff --git a/flutter/examples/api/test/material/bottom_navigation_bar/bottom_navigation_bar.2_test.dart b/flutter/examples/api/test/material/bottom_navigation_bar/bottom_navigation_bar.2_test.dart index 4607d7a22eebbbceb6607f7f9e854a1fa36dc2d7..0486e7e4863030e50ac6ffb5dec920b69333bbef 100644 --- a/flutter/examples/api/test/material/bottom_navigation_bar/bottom_navigation_bar.2_test.dart +++ b/flutter/examples/api/test/material/bottom_navigation_bar/bottom_navigation_bar.2_test.dart @@ -3,14 +3,13 @@ // found in the LICENSE file. import 'package:flutter/material.dart'; -import 'package:flutter_api_samples/material/bottom_navigation_bar/bottom_navigation_bar.2.dart' as example; +import 'package:flutter_api_samples/material/bottom_navigation_bar/bottom_navigation_bar.2.dart' + as example; import 'package:flutter_test/flutter_test.dart'; void main() { testWidgets('BottomNavigationBar Updates Screen Content', (WidgetTester tester) async { - await tester.pumpWidget( - const example.BottomNavigationBarExampleApp(), - ); + await tester.pumpWidget(const example.BottomNavigationBarExampleApp()); expect(find.widgetWithText(AppBar, 'BottomNavigationBar Sample'), findsOneWidget); expect(find.byType(BottomNavigationBar), findsOneWidget); diff --git a/flutter/examples/api/test/material/bottom_sheet/show_bottom_sheet.0_test.dart b/flutter/examples/api/test/material/bottom_sheet/show_bottom_sheet.0_test.dart index 9347cfe55140056e5a3139728efefb58d220d487..88d59a01b2ebd02249126a07d527626e61f7c50f 100644 --- a/flutter/examples/api/test/material/bottom_sheet/show_bottom_sheet.0_test.dart +++ b/flutter/examples/api/test/material/bottom_sheet/show_bottom_sheet.0_test.dart @@ -7,10 +7,10 @@ import 'package:flutter_api_samples/material/bottom_sheet/show_bottom_sheet.0.da import 'package:flutter_test/flutter_test.dart'; void main() { - testWidgets('Bottom sheet animation can be customized using AnimationStyle', (WidgetTester tester) async { - await tester.pumpWidget( - const example.BottomSheetExampleApp(), - ); + testWidgets('Bottom sheet animation can be customized using AnimationStyle', ( + WidgetTester tester, + ) async { + await tester.pumpWidget(const example.BottomSheetExampleApp()); // Show the bottom sheet with default animation style. await tester.tap(find.widgetWithText(ElevatedButton, 'showBottomSheet')); diff --git a/flutter/examples/api/test/material/bottom_sheet/show_modal_bottom_sheet.0_test.dart b/flutter/examples/api/test/material/bottom_sheet/show_modal_bottom_sheet.0_test.dart index 7b5e1450760ec3eebe3077a9a2e5150174508f0d..8109c4f95b1d92aa4a537cd4942a3ce27082597b 100644 --- a/flutter/examples/api/test/material/bottom_sheet/show_modal_bottom_sheet.0_test.dart +++ b/flutter/examples/api/test/material/bottom_sheet/show_modal_bottom_sheet.0_test.dart @@ -3,7 +3,8 @@ // found in the LICENSE file. import 'package:flutter/material.dart'; -import 'package:flutter_api_samples/material/bottom_sheet/show_modal_bottom_sheet.0.dart' as example; +import 'package:flutter_api_samples/material/bottom_sheet/show_modal_bottom_sheet.0.dart' + as example; import 'package:flutter_test/flutter_test.dart'; void main() { @@ -11,9 +12,7 @@ void main() { const String titleText = 'Modal BottomSheet'; const String closeText = 'Close BottomSheet'; - await tester.pumpWidget( - const example.BottomSheetApp(), - ); + await tester.pumpWidget(const example.BottomSheetApp()); expect(find.text(titleText), findsNothing); expect(find.text(closeText), findsNothing); diff --git a/flutter/examples/api/test/material/bottom_sheet/show_modal_bottom_sheet.1_test.dart b/flutter/examples/api/test/material/bottom_sheet/show_modal_bottom_sheet.1_test.dart index 3fc63af4f755fe291f890834dfd253132d1f5c53..f650e1e2eb19d7de9f1e2bc0dbabd4930cb2d2a5 100644 --- a/flutter/examples/api/test/material/bottom_sheet/show_modal_bottom_sheet.1_test.dart +++ b/flutter/examples/api/test/material/bottom_sheet/show_modal_bottom_sheet.1_test.dart @@ -3,7 +3,8 @@ // found in the LICENSE file. import 'package:flutter/material.dart'; -import 'package:flutter_api_samples/material/bottom_sheet/show_modal_bottom_sheet.1.dart' as example; +import 'package:flutter_api_samples/material/bottom_sheet/show_modal_bottom_sheet.1.dart' + as example; import 'package:flutter_test/flutter_test.dart'; void main() { @@ -11,9 +12,7 @@ void main() { const String titleText = 'Modal BottomSheet'; const String closeText = 'Close BottomSheet'; - await tester.pumpWidget( - const example.BottomSheetApp(), - ); + await tester.pumpWidget(const example.BottomSheetApp()); expect(find.text(titleText), findsNothing); expect(find.text(closeText), findsNothing); diff --git a/flutter/examples/api/test/material/bottom_sheet/show_modal_bottom_sheet.2_test.dart b/flutter/examples/api/test/material/bottom_sheet/show_modal_bottom_sheet.2_test.dart index 6a582a344997b5442c544663705c99bb2630fb26..97db8e080289c250606dfdbce9b76642bf9d4717 100644 --- a/flutter/examples/api/test/material/bottom_sheet/show_modal_bottom_sheet.2_test.dart +++ b/flutter/examples/api/test/material/bottom_sheet/show_modal_bottom_sheet.2_test.dart @@ -3,14 +3,15 @@ // found in the LICENSE file. import 'package:flutter/material.dart'; -import 'package:flutter_api_samples/material/bottom_sheet/show_modal_bottom_sheet.2.dart' as example; +import 'package:flutter_api_samples/material/bottom_sheet/show_modal_bottom_sheet.2.dart' + as example; import 'package:flutter_test/flutter_test.dart'; void main() { - testWidgets('Modal bottom sheet animation can be customized using AnimationStyle', (WidgetTester tester) async { - await tester.pumpWidget( - const example.ModalBottomSheetApp(), - ); + testWidgets('Modal bottom sheet animation can be customized using AnimationStyle', ( + WidgetTester tester, + ) async { + await tester.pumpWidget(const example.ModalBottomSheetApp()); // Show the bottom sheet with default animation style. await tester.tap(find.widgetWithText(ElevatedButton, 'showModalBottomSheet')); diff --git a/flutter/examples/api/test/material/button_style/button_style.0_test.dart b/flutter/examples/api/test/material/button_style/button_style.0_test.dart index db4251fb21dbaeb21a2397cb027cae87a35e1a76..6fc3f378c5b9f64a1b8a8c647df9fcfab80bcfc3 100644 --- a/flutter/examples/api/test/material/button_style/button_style.0_test.dart +++ b/flutter/examples/api/test/material/button_style/button_style.0_test.dart @@ -3,72 +3,72 @@ // found in the LICENSE file. import 'package:flutter/material.dart'; -import 'package:flutter_api_samples/material/button_style/button_style.0.dart' - as example; +import 'package:flutter_api_samples/material/button_style/button_style.0.dart' as example; import 'package:flutter_test/flutter_test.dart'; void main() { testWidgets( - 'Shows ElevatedButtons, FilledButtons, OutlinedButtons and TextButtons in enabled and disabled states', - (WidgetTester tester) async { - await tester.pumpWidget(const example.ButtonApp()); + 'Shows ElevatedButtons, FilledButtons, OutlinedButtons and TextButtons in enabled and disabled states', + (WidgetTester tester) async { + await tester.pumpWidget(const example.ButtonApp()); - expect( - find.byWidgetPredicate((Widget widget) { - return widget is ElevatedButton && widget.onPressed == null; - }), - findsOne, - ); + expect( + find.byWidgetPredicate((Widget widget) { + return widget is ElevatedButton && widget.onPressed == null; + }), + findsOne, + ); - expect( - find.byWidgetPredicate((Widget widget) { - return widget is ElevatedButton && widget.onPressed != null; - }), - findsOne, - ); + expect( + find.byWidgetPredicate((Widget widget) { + return widget is ElevatedButton && widget.onPressed != null; + }), + findsOne, + ); - // One OutlinedButton with onPressed null. - expect( - find.byWidgetPredicate((Widget widget) { - return widget is OutlinedButton && widget.onPressed == null; - }), - findsOne, - ); + // One OutlinedButton with onPressed null. + expect( + find.byWidgetPredicate((Widget widget) { + return widget is OutlinedButton && widget.onPressed == null; + }), + findsOne, + ); - // One OutlinedButton with onPressed not null. - expect( - find.byWidgetPredicate((Widget widget) { - return widget is OutlinedButton && widget.onPressed != null; - }), - findsOne, - ); + // One OutlinedButton with onPressed not null. + expect( + find.byWidgetPredicate((Widget widget) { + return widget is OutlinedButton && widget.onPressed != null; + }), + findsOne, + ); - expect( - find.byWidgetPredicate((Widget widget) { - return widget is TextButton && widget.onPressed == null; - }), - findsOne, - ); + expect( + find.byWidgetPredicate((Widget widget) { + return widget is TextButton && widget.onPressed == null; + }), + findsOne, + ); - expect( - find.byWidgetPredicate((Widget widget) { - return widget is TextButton && widget.onPressed != null; - }), - findsOne, - ); + expect( + find.byWidgetPredicate((Widget widget) { + return widget is TextButton && widget.onPressed != null; + }), + findsOne, + ); - expect( - find.byWidgetPredicate((Widget widget) { - return widget is FilledButton && widget.onPressed != null; - }), - findsNWidgets(2), - ); + expect( + find.byWidgetPredicate((Widget widget) { + return widget is FilledButton && widget.onPressed != null; + }), + findsNWidgets(2), + ); - expect( - find.byWidgetPredicate((Widget widget) { - return widget is FilledButton && widget.onPressed == null; - }), - findsNWidgets(2), - ); - }); + expect( + find.byWidgetPredicate((Widget widget) { + return widget is FilledButton && widget.onPressed == null; + }), + findsNWidgets(2), + ); + }, + ); } diff --git a/flutter/examples/api/test/material/button_style_button/button_style_button.icon_alignment.0_test.dart b/flutter/examples/api/test/material/button_style_button/button_style_button.icon_alignment.0_test.dart index 2895d22e6d4429993db67cebe1cb17bbe29ce57b..283c18231812edbc7989e2e041ed7f151c1a9df2 100644 --- a/flutter/examples/api/test/material/button_style_button/button_style_button.icon_alignment.0_test.dart +++ b/flutter/examples/api/test/material/button_style_button/button_style_button.icon_alignment.0_test.dart @@ -3,20 +3,18 @@ // found in the LICENSE file. import 'package:flutter/material.dart'; -import 'package:flutter_api_samples/material/button_style_button/button_style_button.icon_alignment.0.dart' as example; +import 'package:flutter_api_samples/material/button_style_button/button_style_button.icon_alignment.0.dart' + as example; import 'package:flutter_test/flutter_test.dart'; void main() { - testWidgets('ButtonStyleButton.iconAlignment updates button icons alignment', (WidgetTester tester) async { - await tester.pumpWidget( - const example.ButtonStyleButtonIconAlignmentApp(), - ); + testWidgets('ButtonStyleButton.iconAlignment updates button icons alignment', ( + WidgetTester tester, + ) async { + await tester.pumpWidget(const example.ButtonStyleButtonIconAlignmentApp()); Finder findButtonMaterial(String text) { - return find.ancestor( - of: find.text(text), - matching: find.byType(Material), - ).first; + return find.ancestor(of: find.text(text), matching: find.byType(Material)).first; } void expectedLeftIconPosition({ diff --git a/flutter/examples/api/test/material/card/card.0_test.dart b/flutter/examples/api/test/material/card/card.0_test.dart index c7899853c5ab72980f51596f3054e6dc69f57944..7014cc6249466eab17e53665fa97099f9ee439c4 100644 --- a/flutter/examples/api/test/material/card/card.0_test.dart +++ b/flutter/examples/api/test/material/card/card.0_test.dart @@ -8,13 +8,14 @@ import 'package:flutter_test/flutter_test.dart'; void main() { testWidgets('Card Smoke Test', (WidgetTester tester) async { - await tester.pumpWidget( - const example.CardExampleApp(), - ); + await tester.pumpWidget(const example.CardExampleApp()); expect(find.byType(Card), findsOneWidget); expect(find.widgetWithIcon(Card, Icons.album), findsOneWidget); expect(find.widgetWithText(Card, 'The Enchanted Nightingale'), findsOneWidget); - expect(find.widgetWithText(Card, 'Music by Julie Gable. Lyrics by Sidney Stein.'), findsOneWidget); + expect( + find.widgetWithText(Card, 'Music by Julie Gable. Lyrics by Sidney Stein.'), + findsOneWidget, + ); expect(find.widgetWithText(Card, 'BUY TICKETS'), findsOneWidget); expect(find.widgetWithText(Card, 'LISTEN'), findsOneWidget); }); diff --git a/flutter/examples/api/test/material/card/card.2_test.dart b/flutter/examples/api/test/material/card/card.2_test.dart index 1c0d93affbaf824cd668e5656cb4eb218215a0fe..d7953556525f7fc546128bdbc4018bea21c4bc21 100644 --- a/flutter/examples/api/test/material/card/card.2_test.dart +++ b/flutter/examples/api/test/material/card/card.2_test.dart @@ -18,42 +18,44 @@ void main() { Material getCardMaterial(WidgetTester tester, int cardIndex) { return tester.widget( - find.descendant( - of: find.byType(Card).at(cardIndex), - matching: find.byType(Material), - ), + find.descendant(of: find.byType(Card).at(cardIndex), matching: find.byType(Material)), ); } final Material defaultCard = getCardMaterial(tester, 0); expect(defaultCard.clipBehavior, Clip.none); expect(defaultCard.elevation, 1.0); - expect(defaultCard.shape, const RoundedRectangleBorder( - borderRadius: BorderRadius.all(Radius.circular(12.0)), - )); - expect(defaultCard.color, const Color(0xfffffbfe)); + expect( + defaultCard.shape, + const RoundedRectangleBorder(borderRadius: BorderRadius.all(Radius.circular(12.0))), + ); + expect(defaultCard.color, const Color(0xfff7f2fa)); expect(defaultCard.shadowColor, const Color(0xff000000)); - expect(defaultCard.surfaceTintColor, const Color(0xff6750a4)); + expect(defaultCard.surfaceTintColor, Colors.transparent); final Material filledCard = getCardMaterial(tester, 1); expect(filledCard.clipBehavior, Clip.none); expect(filledCard.elevation, 0.0); - expect(filledCard.shape, const RoundedRectangleBorder( - borderRadius: BorderRadius.all(Radius.circular(12.0)), - )); - expect(filledCard.color, const Color(0xffe7e0ec)); + expect( + filledCard.shape, + const RoundedRectangleBorder(borderRadius: BorderRadius.all(Radius.circular(12.0))), + ); + expect(filledCard.color, const Color(0xffe6e0e9)); expect(filledCard.shadowColor, const Color(0xff000000)); expect(filledCard.surfaceTintColor, const Color(0x00000000)); final Material outlinedCard = getCardMaterial(tester, 2); expect(outlinedCard.clipBehavior, Clip.none); expect(outlinedCard.elevation, 0.0); - expect(outlinedCard.shape, const RoundedRectangleBorder( - side: BorderSide(color: Color(0xffcac4d0)), - borderRadius: BorderRadius.all(Radius.circular(12.0)), - )); - expect(outlinedCard.color, const Color(0xfffffbfe)); + expect( + outlinedCard.shape, + const RoundedRectangleBorder( + side: BorderSide(color: Color(0xffcac4d0)), + borderRadius: BorderRadius.all(Radius.circular(12.0)), + ), + ); + expect(outlinedCard.color, const Color(0xfffef7ff)); expect(outlinedCard.shadowColor, const Color(0xff000000)); - expect(outlinedCard.surfaceTintColor, const Color(0xff6750a4)); + expect(outlinedCard.surfaceTintColor, Colors.transparent); }); } diff --git a/flutter/examples/api/test/material/carousel/carousel.0_test.dart b/flutter/examples/api/test/material/carousel/carousel.0_test.dart index 5f104612ea9581919ccf61ede5a2fa49201804a1..96902d4600eb2317aff7773c1314647e6cd6d602 100644 --- a/flutter/examples/api/test/material/carousel/carousel.0_test.dart +++ b/flutter/examples/api/test/material/carousel/carousel.0_test.dart @@ -2,18 +2,41 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +import 'dart:io'; + import 'package:flutter/material.dart'; import 'package:flutter_api_samples/material/carousel/carousel.0.dart' as example; import 'package:flutter_test/flutter_test.dart'; void main() { + // The app being tested loads images via HTTP which the test + // framework defeats by default. + setUpAll(() { + HttpOverrides.global = null; + }); + testWidgets('Carousel Smoke Test', (WidgetTester tester) async { - await tester.pumpWidget( - const example.CarouselExampleApp(), - ); - expect(find.byType(CarouselView), findsOneWidget); + await tester.pumpWidget(const example.CarouselExampleApp()); + + expect(find.widgetWithText(example.HeroLayoutCard, 'Through the Pane'), findsOneWidget); + final Finder firstCarousel = find.byType(CarouselView).first; + await tester.drag(firstCarousel, const Offset(150, 0)); + await tester.pumpAndSettle(); + expect(find.widgetWithText(example.HeroLayoutCard, 'The Flow'), findsOneWidget); + + await tester.drag(firstCarousel, const Offset(0, -200)); + await tester.pumpAndSettle(); + + expect(find.widgetWithText(CarouselView, 'Cameras'), findsOneWidget); + expect(find.widgetWithText(CarouselView, 'Lighting'), findsOneWidget); + expect(find.widgetWithText(CarouselView, 'Climate'), findsOneWidget); + expect(find.widgetWithText(CarouselView, 'Wifi'), findsOneWidget); + + await tester.drag(find.widgetWithText(CarouselView, 'Cameras'), const Offset(0, -200)); + await tester.pumpAndSettle(); - expect(find.widgetWithText(example.UncontainedLayoutCard, 'Item 0'), findsOneWidget); - expect(find.widgetWithText(example.UncontainedLayoutCard, 'Item 1'), findsOneWidget); + expect(find.text('Uncontained layout'), findsOneWidget); + expect(find.widgetWithText(CarouselView, 'Show 0'), findsOneWidget); + expect(find.widgetWithText(CarouselView, 'Show 1'), findsOneWidget); }); } diff --git a/flutter/examples/api/test/material/checkbox/checkbox.0_test.dart b/flutter/examples/api/test/material/checkbox/checkbox.0_test.dart index 568c03f2078ee57eb9e3816080a6acf03ccfe508..702fe8c163f249825c2b3b37ef79759808b47f7e 100644 --- a/flutter/examples/api/test/material/checkbox/checkbox.0_test.dart +++ b/flutter/examples/api/test/material/checkbox/checkbox.0_test.dart @@ -3,15 +3,12 @@ // found in the LICENSE file. import 'package:flutter/material.dart'; -import 'package:flutter_api_samples/material/checkbox/checkbox.0.dart' - as example; +import 'package:flutter_api_samples/material/checkbox/checkbox.0.dart' as example; import 'package:flutter_test/flutter_test.dart'; void main() { testWidgets('Checkbox can be checked', (WidgetTester tester) async { - await tester.pumpWidget( - const example.CheckboxExampleApp(), - ); + await tester.pumpWidget(const example.CheckboxExampleApp()); Checkbox checkbox = tester.widget(find.byType(Checkbox)); expect(checkbox.value, isFalse); @@ -30,30 +27,13 @@ void main() { }); testWidgets('Checkbox color can be changed', (WidgetTester tester) async { - await tester.pumpWidget( - const example.CheckboxExampleApp(), - ); + await tester.pumpWidget(const example.CheckboxExampleApp()); final Checkbox checkbox = tester.widget(find.byType(Checkbox)); - expect( - checkbox.checkColor, - Colors.white, - ); - expect( - checkbox.fillColor!.resolve({}), - Colors.red, - ); - expect( - checkbox.fillColor!.resolve({MaterialState.pressed}), - Colors.blue, - ); - expect( - checkbox.fillColor!.resolve({MaterialState.hovered}), - Colors.blue, - ); - expect( - checkbox.fillColor!.resolve({MaterialState.focused}), - Colors.blue, - ); + expect(checkbox.checkColor, Colors.white); + expect(checkbox.fillColor!.resolve({}), Colors.red); + expect(checkbox.fillColor!.resolve({MaterialState.pressed}), Colors.blue); + expect(checkbox.fillColor!.resolve({MaterialState.hovered}), Colors.blue); + expect(checkbox.fillColor!.resolve({MaterialState.focused}), Colors.blue); }); } diff --git a/flutter/examples/api/test/material/checkbox/checkbox.1_test.dart b/flutter/examples/api/test/material/checkbox/checkbox.1_test.dart index 7d1500aa24c379410d0d7d15b1b3c240908f1080..4b98c4f0fe7f76278a5c1202e05d019f41a36ed0 100644 --- a/flutter/examples/api/test/material/checkbox/checkbox.1_test.dart +++ b/flutter/examples/api/test/material/checkbox/checkbox.1_test.dart @@ -3,15 +3,12 @@ // found in the LICENSE file. import 'package:flutter/material.dart'; -import 'package:flutter_api_samples/material/checkbox/checkbox.1.dart' - as example; +import 'package:flutter_api_samples/material/checkbox/checkbox.1.dart' as example; import 'package:flutter_test/flutter_test.dart'; void main() { testWidgets('Checkbox can be checked', (WidgetTester tester) async { - await tester.pumpWidget( - const example.CheckboxExampleApp(), - ); + await tester.pumpWidget(const example.CheckboxExampleApp()); expect(find.byType(Checkbox), findsNWidgets(3)); Checkbox checkbox = tester.widget(find.byType(Checkbox).first); diff --git a/flutter/examples/api/test/material/checkbox_list_tile/checkbox_list_tile.0_test.dart b/flutter/examples/api/test/material/checkbox_list_tile/checkbox_list_tile.0_test.dart index bd65306d8a0b3b9d03e25adc6187154dcce21d62..bf66034bebab0908f07854f9ebd4c6d4047ba2a3 100644 --- a/flutter/examples/api/test/material/checkbox_list_tile/checkbox_list_tile.0_test.dart +++ b/flutter/examples/api/test/material/checkbox_list_tile/checkbox_list_tile.0_test.dart @@ -4,14 +4,13 @@ import 'package:flutter/material.dart'; import 'package:flutter/scheduler.dart'; -import 'package:flutter_api_samples/material/checkbox_list_tile/checkbox_list_tile.0.dart' as example; +import 'package:flutter_api_samples/material/checkbox_list_tile/checkbox_list_tile.0.dart' + as example; import 'package:flutter_test/flutter_test.dart'; void main() { testWidgets('CheckboxListTile can be checked', (WidgetTester tester) async { - await tester.pumpWidget( - const example.CheckboxListTileApp(), - ); + await tester.pumpWidget(const example.CheckboxListTileApp()); CheckboxListTile checkboxListTile = tester.widget(find.byType(CheckboxListTile)); expect(checkboxListTile.value, isFalse); diff --git a/flutter/examples/api/test/material/checkbox_list_tile/checkbox_list_tile.1_test.dart b/flutter/examples/api/test/material/checkbox_list_tile/checkbox_list_tile.1_test.dart index bcc747f63d71beb528290ecf53ce52c7d5d1873d..4ebf3e6106dff682bd79c1c75eabfb2f8a01ec25 100644 --- a/flutter/examples/api/test/material/checkbox_list_tile/checkbox_list_tile.1_test.dart +++ b/flutter/examples/api/test/material/checkbox_list_tile/checkbox_list_tile.1_test.dart @@ -3,14 +3,13 @@ // found in the LICENSE file. import 'package:flutter/material.dart'; -import 'package:flutter_api_samples/material/checkbox_list_tile/checkbox_list_tile.1.dart' as example; +import 'package:flutter_api_samples/material/checkbox_list_tile/checkbox_list_tile.1.dart' + as example; import 'package:flutter_test/flutter_test.dart'; void main() { testWidgets('Checkbox aligns appropriately', (WidgetTester tester) async { - await tester.pumpWidget( - const example.CheckboxListTileApp(), - ); + await tester.pumpWidget(const example.CheckboxListTileApp()); expect(find.byType(CheckboxListTile), findsNWidgets(3)); @@ -34,9 +33,7 @@ void main() { }); testWidgets('Checkboxes can be checked', (WidgetTester tester) async { - await tester.pumpWidget( - const example.CheckboxListTileApp(), - ); + await tester.pumpWidget(const example.CheckboxListTileApp()); expect(find.byType(CheckboxListTile), findsNWidgets(3)); diff --git a/flutter/examples/api/test/material/checkbox_list_tile/custom_labeled_checkbox.0_test.dart b/flutter/examples/api/test/material/checkbox_list_tile/custom_labeled_checkbox.0_test.dart index 863103c92735a731959460512715ffe29914954c..08df3dfc440f18d0d1ccffa947e791e0465032fd 100644 --- a/flutter/examples/api/test/material/checkbox_list_tile/custom_labeled_checkbox.0_test.dart +++ b/flutter/examples/api/test/material/checkbox_list_tile/custom_labeled_checkbox.0_test.dart @@ -3,14 +3,13 @@ // found in the LICENSE file. import 'package:flutter/material.dart'; -import 'package:flutter_api_samples/material/checkbox_list_tile/custom_labeled_checkbox.0.dart' as example; +import 'package:flutter_api_samples/material/checkbox_list_tile/custom_labeled_checkbox.0.dart' + as example; import 'package:flutter_test/flutter_test.dart'; void main() { testWidgets('LinkedLabelCheckbox contains RichText and Checkbox', (WidgetTester tester) async { - await tester.pumpWidget( - const example.LabeledCheckboxApp(), - ); + await tester.pumpWidget(const example.LabeledCheckboxApp()); // Label text is in a RichText widget with the correct text. final RichText richText = tester.widget(find.byType(RichText).first); diff --git a/flutter/examples/api/test/material/checkbox_list_tile/custom_labeled_checkbox.1_test.dart b/flutter/examples/api/test/material/checkbox_list_tile/custom_labeled_checkbox.1_test.dart index 1353287ff3c30ddcf9b8b82c4d212120a47f7256..75df7f963025c443feadc6484673c941d15ecb17 100644 --- a/flutter/examples/api/test/material/checkbox_list_tile/custom_labeled_checkbox.1_test.dart +++ b/flutter/examples/api/test/material/checkbox_list_tile/custom_labeled_checkbox.1_test.dart @@ -3,14 +3,13 @@ // found in the LICENSE file. import 'package:flutter/material.dart'; -import 'package:flutter_api_samples/material/checkbox_list_tile/custom_labeled_checkbox.1.dart' as example; +import 'package:flutter_api_samples/material/checkbox_list_tile/custom_labeled_checkbox.1.dart' + as example; import 'package:flutter_test/flutter_test.dart'; void main() { testWidgets('Tapping LabeledCheckbox toggles the checkbox', (WidgetTester tester) async { - await tester.pumpWidget( - const example.LabeledCheckboxApp(), - ); + await tester.pumpWidget(const example.LabeledCheckboxApp()); // Checkbox is initially unchecked. Checkbox checkbox = tester.widget(find.byType(Checkbox)); diff --git a/flutter/examples/api/test/material/chip/chip_attributes.avatar_box_constraints.0_test.dart b/flutter/examples/api/test/material/chip/chip_attributes.avatar_box_constraints.0_test.dart index e28dedf1b67290881cebdd2cfdeaed8040b9e54b..625ab9c2a039af0510e75a94ffac3986e4a2751b 100644 --- a/flutter/examples/api/test/material/chip/chip_attributes.avatar_box_constraints.0_test.dart +++ b/flutter/examples/api/test/material/chip/chip_attributes.avatar_box_constraints.0_test.dart @@ -3,52 +3,56 @@ // found in the LICENSE file. import 'package:flutter/material.dart'; -import 'package:flutter_api_samples/material/chip/chip_attributes.avatar_box_constraints.0.dart' as example; +import 'package:flutter_api_samples/material/chip/chip_attributes.avatar_box_constraints.0.dart' + as example; import 'package:flutter_test/flutter_test.dart'; void main() { - testWidgets('RawChip.avatarBoxConstraints updates avatar size constraints', (WidgetTester tester) async { + testWidgets('RawChip.avatarBoxConstraints updates avatar size constraints', ( + WidgetTester tester, + ) async { const double border = 1.0; const double iconSize = 18.0; const double padding = 8.0; - await tester.pumpWidget( - const example.AvatarBoxConstraintsApp(), - ); + await tester.pumpWidget(const example.AvatarBoxConstraintsApp()); expect(tester.getSize(find.byType(RawChip).at(0)).width, equals(202.0)); expect(tester.getSize(find.byType(RawChip).at(0)).height, equals(58.0)); - Offset chipTopLeft = tester.getTopLeft(find.byWidget(tester.widget( - find.descendant( - of: find.byType(RawChip).at(0), - matching: find.byType(Material), + Offset chipTopLeft = tester.getTopLeft( + find.byWidget( + tester.widget( + find.descendant(of: find.byType(RawChip).at(0), matching: find.byType(Material)), + ), ), - ))); + ); Offset avatarCenter = tester.getCenter(find.byIcon(Icons.star).at(0)); expect(chipTopLeft.dx, avatarCenter.dx - (iconSize / 2) - padding - border); expect(tester.getSize(find.byType(RawChip).at(1)).width, equals(202.0)); expect(tester.getSize(find.byType(RawChip).at(1)).height, equals(78.0)); - chipTopLeft = tester.getTopLeft(find.byWidget(tester.widget( - find.descendant( - of: find.byType(RawChip).at(1), - matching: find.byType(Material), + chipTopLeft = tester.getTopLeft( + find.byWidget( + tester.widget( + find.descendant(of: find.byType(RawChip).at(1), matching: find.byType(Material)), + ), ), - ))); + ); avatarCenter = tester.getCenter(find.byIcon(Icons.star).at(1)); expect(chipTopLeft.dx, avatarCenter.dx - (iconSize / 2) - padding - border); expect(tester.getSize(find.byType(RawChip).at(2)).width, equals(202.0)); expect(tester.getSize(find.byType(RawChip).at(2)).height, equals(78.0)); - chipTopLeft = tester.getTopLeft(find.byWidget(tester.widget( - find.descendant( - of: find.byType(RawChip).at(2), - matching: find.byType(Material), + chipTopLeft = tester.getTopLeft( + find.byWidget( + tester.widget( + find.descendant(of: find.byType(RawChip).at(2), matching: find.byType(Material)), + ), ), - ))); + ); avatarCenter = tester.getCenter(find.byIcon(Icons.star).at(2)); expect(chipTopLeft.dx, avatarCenter.dx - (iconSize / 2) - padding - border); }); diff --git a/flutter/examples/api/test/material/chip/chip_attributes.chip_animation_style.0_test.dart b/flutter/examples/api/test/material/chip/chip_attributes.chip_animation_style.0_test.dart index a22e91b69a435e7b5158b323fba4628ce3f732c2..0f1d2bc229c9905819ccd3928e69b64b31787714 100644 --- a/flutter/examples/api/test/material/chip/chip_attributes.chip_animation_style.0_test.dart +++ b/flutter/examples/api/test/material/chip/chip_attributes.chip_animation_style.0_test.dart @@ -3,14 +3,15 @@ // found in the LICENSE file. import 'package:flutter/material.dart'; -import 'package:flutter_api_samples/material/chip/chip_attributes.chip_animation_style.0.dart' as example; +import 'package:flutter_api_samples/material/chip/chip_attributes.chip_animation_style.0.dart' + as example; import 'package:flutter_test/flutter_test.dart'; void main() { - testWidgets('ChipAnimationStyle.enableAnimation overrides chip enable animation', (WidgetTester tester) async { - await tester.pumpWidget( - const example.ChipAnimationStyleExampleApp(), - ); + testWidgets('ChipAnimationStyle.enableAnimation overrides chip enable animation', ( + WidgetTester tester, + ) async { + await tester.pumpWidget(const example.ChipAnimationStyleExampleApp()); final RenderBox materialBox = tester.firstRenderObject( find.descendant( @@ -42,10 +43,10 @@ void main() { expect(materialBox, paints..rrect(color: const Color(0xffffc107))); }); - testWidgets('ChipAnimationStyle.selectAnimation overrides chip select animation', (WidgetTester tester) async { - await tester.pumpWidget( - const example.ChipAnimationStyleExampleApp(), - ); + testWidgets('ChipAnimationStyle.selectAnimation overrides chip select animation', ( + WidgetTester tester, + ) async { + await tester.pumpWidget(const example.ChipAnimationStyleExampleApp()); final RenderBox materialBox = tester.firstRenderObject( find.descendant( @@ -77,10 +78,10 @@ void main() { expect(materialBox, paints..rrect(color: const Color(0xffffc107))); }); - testWidgets('ChipAnimationStyle.avatarDrawerAnimation overrides chip checkmark animation', (WidgetTester tester) async { - await tester.pumpWidget( - const example.ChipAnimationStyleExampleApp(), - ); + testWidgets('ChipAnimationStyle.avatarDrawerAnimation overrides chip checkmark animation', ( + WidgetTester tester, + ) async { + await tester.pumpWidget(const example.ChipAnimationStyleExampleApp()); expect(tester.getSize(find.widgetWithText(RawChip, 'Checked')).width, closeTo(152.6, 0.1)); @@ -105,10 +106,10 @@ void main() { expect(tester.getSize(find.widgetWithText(RawChip, 'Checked')).width, closeTo(152.6, 0.1)); }); - testWidgets('ChipAnimationStyle.deleteDrawerAnimation overrides chip delete icon animation', (WidgetTester tester) async { - await tester.pumpWidget( - const example.ChipAnimationStyleExampleApp(), - ); + testWidgets('ChipAnimationStyle.deleteDrawerAnimation overrides chip delete icon animation', ( + WidgetTester tester, + ) async { + await tester.pumpWidget(const example.ChipAnimationStyleExampleApp()); expect(tester.getSize(find.widgetWithText(RawChip, 'Deletable')).width, closeTo(180.9, 0.1)); diff --git a/flutter/examples/api/test/sample_templates/cupertino.0_test.dart b/flutter/examples/api/test/sample_templates/cupertino.0_test.dart index 217eaeb575c7266d4b67ce4866a88ec16729708c..3830f41b7105eef61cfd143e62e561ee011892a0 100644 --- a/flutter/examples/api/test/sample_templates/cupertino.0_test.dart +++ b/flutter/examples/api/test/sample_templates/cupertino.0_test.dart @@ -14,9 +14,7 @@ import 'package:flutter_test/flutter_test.dart'; void main() { testWidgets('Example app has a placeholder', (WidgetTester tester) async { - await tester.pumpWidget( - const example.SampleApp(), - ); + await tester.pumpWidget(const example.SampleApp()); expect(find.byType(Placeholder), findsOneWidget); }); diff --git a/flutter/examples/api/test/sample_templates/material.0_test.dart b/flutter/examples/api/test/sample_templates/material.0_test.dart index 06285eb816f6849559dc2390ae2972b128179864..ab1c16c6370eec956cfb281163c6ab088b2ba383 100644 --- a/flutter/examples/api/test/sample_templates/material.0_test.dart +++ b/flutter/examples/api/test/sample_templates/material.0_test.dart @@ -14,9 +14,7 @@ import 'package:flutter_test/flutter_test.dart'; void main() { testWidgets('Example app has a placeholder', (WidgetTester tester) async { - await tester.pumpWidget( - const example.SampleApp(), - ); + await tester.pumpWidget(const example.SampleApp()); expect(find.byType(Scaffold), findsOneWidget); expect(find.byType(Placeholder), findsOneWidget); diff --git a/flutter/examples/api/test/sample_templates/widgets.0_test.dart b/flutter/examples/api/test/sample_templates/widgets.0_test.dart index 529b5e53d8d36313b1580f269a9604a7e0301d41..d930481ef40b6869344044e7c07d9d083637481c 100644 --- a/flutter/examples/api/test/sample_templates/widgets.0_test.dart +++ b/flutter/examples/api/test/sample_templates/widgets.0_test.dart @@ -14,9 +14,7 @@ import 'package:flutter_test/flutter_test.dart'; void main() { testWidgets('Example app has a placeholder', (WidgetTester tester) async { - await tester.pumpWidget( - const example.SampleApp(), - ); + await tester.pumpWidget(const example.SampleApp()); expect(find.byType(Placeholder), findsOneWidget); }); diff --git a/flutter/examples/api/test/widgets/actions/action.action_overridable.0_test.dart b/flutter/examples/api/test/widgets/actions/action.action_overridable.0_test.dart index 8558f547129bfc02351e48e7883fd70070e83b83..61c7429659877a5a2a028c83525bd7b03c5d4211 100644 --- a/flutter/examples/api/test/widgets/actions/action.action_overridable.0_test.dart +++ b/flutter/examples/api/test/widgets/actions/action.action_overridable.0_test.dart @@ -12,12 +12,12 @@ void main() { final _MockClipboard mockClipboard = _MockClipboard(); testWidgets('Copies text on Ctrl-C', (WidgetTester tester) async { - tester.binding.defaultBinaryMessenger.setMockMethodCallHandler(SystemChannels.platform, mockClipboard.handleMethodCall); - await tester.pumpWidget(const MaterialApp( - home: Scaffold( - body: Center(child: example.VerificationCodeGenerator()), - ), - ), + tester.binding.defaultBinaryMessenger.setMockMethodCallHandler( + SystemChannels.platform, + mockClipboard.handleMethodCall, + ); + await tester.pumpWidget( + const MaterialApp(home: Scaffold(body: Center(child: example.VerificationCodeGenerator()))), ); expect(primaryFocus, isNotNull); diff --git a/flutter/examples/api/test/widgets/actions/action_listener.0_test.dart b/flutter/examples/api/test/widgets/actions/action_listener.0_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..50e7a5d17cf9f1a27300bcdf84f78e5331fc2fce --- /dev/null +++ b/flutter/examples/api/test/widgets/actions/action_listener.0_test.dart @@ -0,0 +1,47 @@ +// 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/foundation.dart'; +import 'package:flutter/material.dart'; +import 'package:flutter_api_samples/widgets/actions/action_listener.0.dart' as example; +import 'package:flutter_test/flutter_test.dart'; + +void main() { + testWidgets('ActionListener can be enabled, triggered, and disabled', ( + WidgetTester tester, + ) async { + final List log = []; + + final DebugPrintCallback originalDebugPrint = debugPrint; + debugPrint = (String? message, {int? wrapWidth}) { + log.add(message); + }; + try { + await tester.pumpWidget(const example.ActionListenerExampleApp()); + + expect(find.widgetWithText(AppBar, 'ActionListener Sample'), findsOne); + expect(find.widgetWithText(OutlinedButton, 'Enable'), findsOne); + + await tester.tap(find.byType(OutlinedButton)); + await tester.pump(); + + expect(find.widgetWithText(OutlinedButton, 'Disable'), findsOne); + expect(find.widgetWithText(ElevatedButton, 'Call Action Listener'), findsOne); + expect(log, const ['Action Listener was added']); + + await tester.tap(find.text('Call Action Listener')); + await tester.pumpAndSettle(); + + expect(find.widgetWithText(SnackBar, 'Action Listener Called'), findsOne); + + await tester.tap(find.text('Disable')); + await tester.pump(); + + expect(find.widgetWithText(OutlinedButton, 'Enable'), findsOne); + expect(log, const ['Action Listener was added', 'Action Listener was removed']); + } finally { + debugPrint = originalDebugPrint; + } + }); +} diff --git a/flutter/examples/api/test/widgets/actions/actions.0_test.dart b/flutter/examples/api/test/widgets/actions/actions.0_test.dart index 1aa359203e5b039e29f10de9b044719001760f7a..c7ff9701877d22bc5c9771ef873adcd905b61295 100644 --- a/flutter/examples/api/test/widgets/actions/actions.0_test.dart +++ b/flutter/examples/api/test/widgets/actions/actions.0_test.dart @@ -12,9 +12,7 @@ void main() { final ButtonStyleButton button = tester.widget( find.descendant( of: find.byType(example.SaveButton), - matching: find.byWidgetPredicate( - (Widget widget) => widget is TextButton, - ), + matching: find.byWidgetPredicate((Widget widget) => widget is TextButton), ), ); @@ -22,9 +20,7 @@ void main() { } testWidgets('Increments and decrements value', (WidgetTester tester) async { - await tester.pumpWidget( - const example.ActionsExampleApp(), - ); + await tester.pumpWidget(const example.ActionsExampleApp()); int value = 0; @@ -50,9 +46,7 @@ void main() { }); testWidgets('SaveButton indicates dirty status', (WidgetTester tester) async { - await tester.pumpWidget( - const example.ActionsExampleApp(), - ); + await tester.pumpWidget(const example.ActionsExampleApp()); // Verify that initial color is green, as the value is not marked as dirty. Color? saveButtonColor = getSaveButtonColor(tester); @@ -85,18 +79,13 @@ void main() { log.add(message); }; - await tester.pumpWidget( - const example.ActionsExampleApp(), - ); + await tester.pumpWidget(const example.ActionsExampleApp()); // Verify that value is not marked as dirty. Color? saveButtonColor = getSaveButtonColor(tester); expect(saveButtonColor, equals(Colors.green)); expect( - find.descendant( - of: find.byType(example.SaveButton), - matching: find.text('0'), - ), + find.descendant(of: find.byType(example.SaveButton), matching: find.text('0')), findsOneWidget, ); @@ -109,10 +98,7 @@ void main() { saveButtonColor = getSaveButtonColor(tester); expect(saveButtonColor, equals(Colors.red)); expect( - find.descendant( - of: find.byType(example.SaveButton), - matching: find.text('0'), - ), + find.descendant(of: find.byType(example.SaveButton), matching: find.text('0')), findsOneWidget, ); @@ -128,10 +114,7 @@ void main() { saveButtonColor = getSaveButtonColor(tester); expect(saveButtonColor, equals(Colors.green)); expect( - find.descendant( - of: find.byType(example.SaveButton), - matching: find.text('-1'), - ), + find.descendant(of: find.byType(example.SaveButton), matching: find.text('-1')), findsOneWidget, ); diff --git a/flutter/examples/api/test/widgets/actions/focusable_action_detector.0_test.dart b/flutter/examples/api/test/widgets/actions/focusable_action_detector.0_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..855643526bc93f0e002e8fd741559a77b59f79ba --- /dev/null +++ b/flutter/examples/api/test/widgets/actions/focusable_action_detector.0_test.dart @@ -0,0 +1,67 @@ +// 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'; +import 'package:flutter_api_samples/widgets/actions/focusable_action_detector.0.dart' as example; +import 'package:flutter_test/flutter_test.dart'; + +void main() { + final Finder redContainerFinder = find.byWidgetPredicate( + (Widget widget) => widget is Container && widget.color == Colors.red, + ); + + testWidgets('Taps on the "And me" button toggle the red box', (WidgetTester tester) async { + await tester.pumpWidget(const example.FocusableActionDetectorExampleApp()); + + expect(find.widgetWithText(AppBar, 'FocusableActionDetector Example'), findsOne); + + expect(redContainerFinder, findsNothing); + + await tester.tap(find.text('And Me')); + await tester.pump(); + + expect(redContainerFinder, findsOne); + + await tester.tap(find.text('And Me')); + await tester.pump(); + + expect(redContainerFinder, findsNothing); + }); + + testWidgets('Hits on the X key when "And me" is focused toggle the red box', ( + WidgetTester tester, + ) async { + await tester.pumpWidget(const example.FocusableActionDetectorExampleApp()); + + expect(find.widgetWithText(AppBar, 'FocusableActionDetector Example'), findsOne); + + expect(redContainerFinder, findsNothing); + + await tester.sendKeyEvent(LogicalKeyboardKey.tab); // Focuses the "Press Me" button. + await tester.pump(); + + expect(redContainerFinder, findsNothing); + + await tester.sendKeyEvent(LogicalKeyboardKey.keyX); + await tester.pump(); + + expect(redContainerFinder, findsNothing); + + await tester.sendKeyEvent(LogicalKeyboardKey.tab); // Focuses the "And Me" button. + await tester.pump(); + + expect(redContainerFinder, findsNothing); + + await tester.sendKeyEvent(LogicalKeyboardKey.keyX); + await tester.pump(); + + expect(redContainerFinder, findsOne); + + await tester.sendKeyEvent(LogicalKeyboardKey.keyX); + await tester.pump(); + + expect(redContainerFinder, findsNothing); + }); +} diff --git a/flutter/examples/api/test/widgets/animated_grid/animated_grid.0_test.dart b/flutter/examples/api/test/widgets/animated_grid/animated_grid.0_test.dart index 896e05d14a76b3d9d592b5a08c7d4eb7d1a1d06e..45fdacdb54e26aa2baa64d935d9e21e0b842388e 100644 --- a/flutter/examples/api/test/widgets/animated_grid/animated_grid.0_test.dart +++ b/flutter/examples/api/test/widgets/animated_grid/animated_grid.0_test.dart @@ -3,15 +3,12 @@ // found in the LICENSE file. import 'package:flutter/material.dart'; -import 'package:flutter_api_samples/widgets/animated_grid/animated_grid.0.dart' - as example; +import 'package:flutter_api_samples/widgets/animated_grid/animated_grid.0.dart' as example; import 'package:flutter_test/flutter_test.dart'; void main() { testWidgets('AnimatedGrid example', (WidgetTester tester) async { - await tester.pumpWidget( - const example.AnimatedGridSample(), - ); + await tester.pumpWidget(const example.AnimatedGridSample()); expect(find.text('1'), findsOneWidget); expect(find.text('2'), findsOneWidget); diff --git a/flutter/examples/api/test/widgets/animated_grid/sliver_animated_grid.0_test.dart b/flutter/examples/api/test/widgets/animated_grid/sliver_animated_grid.0_test.dart index d6565af65090a16180da70bed084ec5d57169297..49859053d8402c53d70725b4e34baa2a081b2c05 100644 --- a/flutter/examples/api/test/widgets/animated_grid/sliver_animated_grid.0_test.dart +++ b/flutter/examples/api/test/widgets/animated_grid/sliver_animated_grid.0_test.dart @@ -3,15 +3,12 @@ // found in the LICENSE file. import 'package:flutter/material.dart'; -import 'package:flutter_api_samples/widgets/animated_grid/sliver_animated_grid.0.dart' - as example; +import 'package:flutter_api_samples/widgets/animated_grid/sliver_animated_grid.0.dart' as example; import 'package:flutter_test/flutter_test.dart'; void main() { testWidgets('SliverAnimatedGrid example', (WidgetTester tester) async { - await tester.pumpWidget( - const example.SliverAnimatedGridSample(), - ); + await tester.pumpWidget(const example.SliverAnimatedGridSample()); expect(find.text('1'), findsOneWidget); expect(find.text('2'), findsOneWidget); diff --git a/flutter/examples/api/test/widgets/animated_list/animated_list.0_test.dart b/flutter/examples/api/test/widgets/animated_list/animated_list.0_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..0fc681b4a199e6b63bf513d372de1f6483696b70 --- /dev/null +++ b/flutter/examples/api/test/widgets/animated_list/animated_list.0_test.dart @@ -0,0 +1,44 @@ +// 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_api_samples/widgets/animated_list/animated_list.0.dart' as example; +import 'package:flutter_test/flutter_test.dart'; + +void main() { + testWidgets('Items can be selected, added, and removed from AnimatedList', ( + WidgetTester tester, + ) async { + await tester.pumpWidget(const example.AnimatedListSample()); + + expect(find.text('Item 0'), findsOne); + expect(find.text('Item 1'), findsOne); + expect(find.text('Item 2'), findsOne); + + // Add an item at the end of the list. + await tester.tap(find.byIcon(Icons.add_circle)); + await tester.pumpAndSettle(); + expect(find.text('Item 3'), findsOne); + + // Select Item 1. + await tester.tap(find.text('Item 1')); + await tester.pumpAndSettle(); + + // Add item at the top of the list. + await tester.tap(find.byIcon(Icons.add_circle)); + await tester.pumpAndSettle(); + expect(find.text('Item 4'), findsOne); + + // Remove selected item. + await tester.tap(find.byIcon(Icons.remove_circle)); + + // Item animation is not completed. + await tester.pump(); + expect(find.text('Item 1'), findsOne); + + // When the animation completes, Item 1 disappears. + await tester.pumpAndSettle(); + expect(find.text('Item 1'), findsNothing); + }); +} diff --git a/flutter/examples/api/test/widgets/animated_list/animated_list_separated.0_test.dart b/flutter/examples/api/test/widgets/animated_list/animated_list_separated.0_test.dart index e46573af39c99299ec8344f4921f3c17d5adad18..3c706d6dd65554503b3ad5e80d89e804c6fd35fe 100644 --- a/flutter/examples/api/test/widgets/animated_list/animated_list_separated.0_test.dart +++ b/flutter/examples/api/test/widgets/animated_list/animated_list_separated.0_test.dart @@ -3,54 +3,54 @@ // found in the LICENSE file. import 'package:flutter/material.dart'; -import 'package:flutter_api_samples/widgets/animated_list/animated_list_separated.0.dart' as example; +import 'package:flutter_api_samples/widgets/animated_list/animated_list_separated.0.dart' + as example; import 'package:flutter_test/flutter_test.dart'; void main() { - testWidgets( - 'Items can be selected, added, and removed from AnimatedList.separated', - (WidgetTester tester) async { - await tester.pumpWidget(const example.AnimatedListSeparatedSample()); - - expect(find.text('Item 0'), findsOneWidget); - expect(find.text('Separator 0'), findsOneWidget); - expect(find.text('Item 1'), findsOneWidget); - expect(find.text('Separator 1'), findsOneWidget); - expect(find.text('Item 2'), findsOneWidget); - - // Add an item at the end of the list - await tester.tap(find.byIcon(Icons.add_circle)); - await tester.pumpAndSettle(); - expect(find.text('Separator 2'), findsOneWidget); - expect(find.text('Item 3'), findsOneWidget); - - // Select Item 1. - await tester.tap(find.text('Item 1')); - await tester.pumpAndSettle(); - - // Add item at the top of the list - await tester.tap(find.byIcon(Icons.add_circle)); - await tester.pumpAndSettle(); - expect(find.text('Item 4'), findsOneWidget); - // Contrary to the behavior for insertion at other places, - // the Separator for the last item of the list will be added - // before that item instead of after it. - expect(find.text('Separator 4'), findsOneWidget); - - // Remove selected item. - await tester.tap(find.byIcon(Icons.remove_circle)); - - // Item animation is not completed. - await tester.pump(); - expect(find.text('Item 1'), findsOneWidget); - expect(find.text('Separator 1'), findsNothing); - expect(find.text('Removing separator'), findsOneWidget); - - // When the animation completes, Item 1 disappears. - await tester.pumpAndSettle(); - expect(find.text('Item 1'), findsNothing); - expect(find.text('Separator 1'), findsNothing); - expect(find.text('Removing separator'), findsNothing); - }, - ); + testWidgets('Items can be selected, added, and removed from AnimatedList.separated', ( + WidgetTester tester, + ) async { + await tester.pumpWidget(const example.AnimatedListSeparatedSample()); + + expect(find.text('Item 0'), findsOneWidget); + expect(find.text('Separator 0'), findsOneWidget); + expect(find.text('Item 1'), findsOneWidget); + expect(find.text('Separator 1'), findsOneWidget); + expect(find.text('Item 2'), findsOneWidget); + + // Add an item at the end of the list + await tester.tap(find.byIcon(Icons.add_circle)); + await tester.pumpAndSettle(); + expect(find.text('Separator 2'), findsOneWidget); + expect(find.text('Item 3'), findsOneWidget); + + // Select Item 1. + await tester.tap(find.text('Item 1')); + await tester.pumpAndSettle(); + + // Add item at the top of the list + await tester.tap(find.byIcon(Icons.add_circle)); + await tester.pumpAndSettle(); + expect(find.text('Item 4'), findsOneWidget); + // Contrary to the behavior for insertion at other places, + // the Separator for the last item of the list will be added + // before that item instead of after it. + expect(find.text('Separator 4'), findsOneWidget); + + // Remove selected item. + await tester.tap(find.byIcon(Icons.remove_circle)); + + // Item animation is not completed. + await tester.pump(); + expect(find.text('Item 1'), findsOneWidget); + expect(find.text('Separator 1'), findsNothing); + expect(find.text('Removing separator'), findsOneWidget); + + // When the animation completes, Item 1 disappears. + await tester.pumpAndSettle(); + expect(find.text('Item 1'), findsNothing); + expect(find.text('Separator 1'), findsNothing); + expect(find.text('Removing separator'), findsNothing); + }); } diff --git a/flutter/examples/api/test/widgets/animated_list/sliver_animated_list.0_test.dart b/flutter/examples/api/test/widgets/animated_list/sliver_animated_list.0_test.dart index 8951fb3e2dc2ff75fda77f662f4108276532d091..d5db96811ea4185382b85ef62260d5173efadb0b 100644 --- a/flutter/examples/api/test/widgets/animated_list/sliver_animated_list.0_test.dart +++ b/flutter/examples/api/test/widgets/animated_list/sliver_animated_list.0_test.dart @@ -7,39 +7,38 @@ import 'package:flutter_api_samples/widgets/animated_list/sliver_animated_list.0 import 'package:flutter_test/flutter_test.dart'; void main() { - testWidgets( - 'Items can be selected, added, and removed from SliverAnimatedList', - (WidgetTester tester) async { - await tester.pumpWidget(const example.SliverAnimatedListSample()); - - expect(find.text('Item 0'), findsOneWidget); - expect(find.text('Item 1'), findsOneWidget); - expect(find.text('Item 2'), findsOneWidget); - - // Add an item at the end of the list - await tester.tap(find.byIcon(Icons.add_circle)); - await tester.pumpAndSettle(); - expect(find.text('Item 3'), findsOneWidget); - - // Select Item 1. - await tester.tap(find.text('Item 1')); - await tester.pumpAndSettle(); - - // Add item at the top of the list - await tester.tap(find.byIcon(Icons.add_circle)); - await tester.pumpAndSettle(); - expect(find.text('Item 4'), findsOneWidget); - - // Remove selected item. - await tester.tap(find.byIcon(Icons.remove_circle)); - - // Item animation is not completed. - await tester.pump(); - expect(find.text('Item 1'), findsOneWidget); - - // When the animation completes, Item 1 disappears. - await tester.pumpAndSettle(); - expect(find.text('Item 1'), findsNothing); - }, - ); + testWidgets('Items can be selected, added, and removed from SliverAnimatedList', ( + WidgetTester tester, + ) async { + await tester.pumpWidget(const example.SliverAnimatedListSample()); + + expect(find.text('Item 0'), findsOneWidget); + expect(find.text('Item 1'), findsOneWidget); + expect(find.text('Item 2'), findsOneWidget); + + // Add an item at the end of the list + await tester.tap(find.byIcon(Icons.add_circle)); + await tester.pumpAndSettle(); + expect(find.text('Item 3'), findsOneWidget); + + // Select Item 1. + await tester.tap(find.text('Item 1')); + await tester.pumpAndSettle(); + + // Add item at the top of the list + await tester.tap(find.byIcon(Icons.add_circle)); + await tester.pumpAndSettle(); + expect(find.text('Item 4'), findsOneWidget); + + // Remove selected item. + await tester.tap(find.byIcon(Icons.remove_circle)); + + // Item animation is not completed. + await tester.pump(); + expect(find.text('Item 1'), findsOneWidget); + + // When the animation completes, Item 1 disappears. + await tester.pumpAndSettle(); + expect(find.text('Item 1'), findsNothing); + }); } diff --git a/flutter/examples/api/test/widgets/animated_size/animated_size.0_test.dart b/flutter/examples/api/test/widgets/animated_size/animated_size.0_test.dart index 822449cc10209023f55bf983561cea995ede1979..21c49a49a69395dd38ac68a5ceca41ef6cdc1e1c 100644 --- a/flutter/examples/api/test/widgets/animated_size/animated_size.0_test.dart +++ b/flutter/examples/api/test/widgets/animated_size/animated_size.0_test.dart @@ -3,15 +3,12 @@ // found in the LICENSE file. import 'package:flutter/material.dart'; -import 'package:flutter_api_samples/widgets/animated_size/animated_size.0.dart' - as example; +import 'package:flutter_api_samples/widgets/animated_size/animated_size.0.dart' as example; import 'package:flutter_test/flutter_test.dart'; void main() { testWidgets('AnimatedSize animates on tap', (WidgetTester tester) async { - await tester.pumpWidget( - const example.AnimatedSizeExampleApp(), - ); + await tester.pumpWidget(const example.AnimatedSizeExampleApp()); const Size beginSize = Size.square(100.0); const Size endSize = Size.square(250.0); @@ -27,22 +24,15 @@ void main() { expect(box.size, equals(beginSize)); // Advance animation to the middle. - await tester.pump( - example.AnimatedSizeExampleApp.duration ~/ 2, - ); + await tester.pump(example.AnimatedSizeExampleApp.duration ~/ 2); final double t = example.AnimatedSizeExampleApp.curve.transform(0.5); box = tester.renderObject(find.byType(AnimatedSize)); - expect( - box.size, - equals(Size.lerp(beginSize, endSize, t)), - ); + expect(box.size, equals(Size.lerp(beginSize, endSize, t))); // Advance animation to the end. - await tester.pump( - example.AnimatedSizeExampleApp.duration ~/ 2, - ); + await tester.pump(example.AnimatedSizeExampleApp.duration ~/ 2); box = tester.renderObject(find.byType(AnimatedSize)); expect(box.size, equals(endSize)); @@ -55,20 +45,13 @@ void main() { expect(box.size, equals(endSize)); // Advance animation to the middle. - await tester.pump( - example.AnimatedSizeExampleApp.duration ~/ 2, - ); + await tester.pump(example.AnimatedSizeExampleApp.duration ~/ 2); box = tester.renderObject(find.byType(AnimatedSize)); - expect( - box.size, - equals(Size.lerp(endSize, beginSize, t)), - ); + expect(box.size, equals(Size.lerp(endSize, beginSize, t))); // Advance animation to the end. - await tester.pump( - example.AnimatedSizeExampleApp.duration ~/ 2, - ); + await tester.pump(example.AnimatedSizeExampleApp.duration ~/ 2); box = tester.renderObject(find.byType(AnimatedSize)); expect(box.size, equals(beginSize)); diff --git a/flutter/examples/api/test/widgets/animated_switcher/animated_switcher.0_test.dart b/flutter/examples/api/test/widgets/animated_switcher/animated_switcher.0_test.dart index dea3a416928c5870ac1a05a7e4e01da2565e359f..88cf8ef3cbed99d20c7eae9d68c928f940f5152d 100644 --- a/flutter/examples/api/test/widgets/animated_switcher/animated_switcher.0_test.dart +++ b/flutter/examples/api/test/widgets/animated_switcher/animated_switcher.0_test.dart @@ -3,15 +3,12 @@ // found in the LICENSE file. import 'package:flutter/material.dart'; -import 'package:flutter_api_samples/widgets/animated_switcher/animated_switcher.0.dart' - as example; +import 'package:flutter_api_samples/widgets/animated_switcher/animated_switcher.0.dart' as example; import 'package:flutter_test/flutter_test.dart'; void main() { testWidgets('Increments counter on button tap', (WidgetTester tester) async { - await tester.pumpWidget( - const example.AnimatedSwitcherExampleApp(), - ); + await tester.pumpWidget(const example.AnimatedSwitcherExampleApp()); int counter = 0; @@ -20,10 +17,7 @@ void main() { while (counter < 10) { // Tap on the button to increment the counter. await tester.tap( - find.ancestor( - of: find.text('Increment'), - matching: find.byType(ElevatedButton), - ), + find.ancestor(of: find.text('Increment'), matching: find.byType(ElevatedButton)), ); await tester.pumpAndSettle(); @@ -35,9 +29,7 @@ void main() { }); testWidgets('Animates counter change', (WidgetTester tester) async { - await tester.pumpWidget( - const example.AnimatedSwitcherExampleApp(), - ); + await tester.pumpWidget(const example.AnimatedSwitcherExampleApp()); // The animation duration defined in the example app. const Duration animationDuration = Duration(milliseconds: 500); @@ -59,10 +51,7 @@ void main() { // Tap on the button to increment the counter. await tester.tap( - find.ancestor( - of: find.text('Increment'), - matching: find.byType(ElevatedButton), - ), + find.ancestor(of: find.text('Increment'), matching: find.byType(ElevatedButton)), ); await tester.pump(); diff --git a/flutter/examples/api/test/widgets/app/widgets_app.widgets_app.0_test.dart b/flutter/examples/api/test/widgets/app/widgets_app.widgets_app.0_test.dart index 6412fc14b46ed874ba96ddd255cc46bdb836be1a..ff078feeb3c38aff32aef2b7d9e5244ba76103af 100644 --- a/flutter/examples/api/test/widgets/app/widgets_app.widgets_app.0_test.dart +++ b/flutter/examples/api/test/widgets/app/widgets_app.widgets_app.0_test.dart @@ -7,9 +7,7 @@ import 'package:flutter_test/flutter_test.dart'; void main() { testWidgets('WidgetsApp test', (WidgetTester tester) async { - await tester.pumpWidget( - const example.WidgetsAppExampleApp(), - ); + await tester.pumpWidget(const example.WidgetsAppExampleApp()); expect(find.text('Hello World'), findsOneWidget); }); diff --git a/flutter/examples/api/test/widgets/app_lifecycle_listener/app_lifecycle_listener.0_test.dart b/flutter/examples/api/test/widgets/app_lifecycle_listener/app_lifecycle_listener.0_test.dart index 6c37d9e10ae3b8fb29c2cdf6b4b147b6c4b63982..d376745cec1c2ac8863370aae9e8ecef51542824 100644 --- a/flutter/examples/api/test/widgets/app_lifecycle_listener/app_lifecycle_listener.0_test.dart +++ b/flutter/examples/api/test/widgets/app_lifecycle_listener/app_lifecycle_listener.0_test.dart @@ -2,14 +2,13 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -import 'package:flutter_api_samples/widgets/app_lifecycle_listener/app_lifecycle_listener.0.dart' as example; +import 'package:flutter_api_samples/widgets/app_lifecycle_listener/app_lifecycle_listener.0.dart' + as example; import 'package:flutter_test/flutter_test.dart'; void main() { testWidgets('AppLifecycleListener example', (WidgetTester tester) async { - await tester.pumpWidget( - const example.AppLifecycleListenerExample(), - ); + await tester.pumpWidget(const example.AppLifecycleListenerExample()); expect(find.textContaining('Current State:'), findsOneWidget); expect(find.textContaining('State History:'), findsOneWidget); diff --git a/flutter/examples/api/test/widgets/app_lifecycle_listener/app_lifecycle_listener.1_test.dart b/flutter/examples/api/test/widgets/app_lifecycle_listener/app_lifecycle_listener.1_test.dart index 3218f7348ba99505dd265f462e82756b61e9c173..dcf9ce340e427a5cfb67256602dd452aab1fffb6 100644 --- a/flutter/examples/api/test/widgets/app_lifecycle_listener/app_lifecycle_listener.1_test.dart +++ b/flutter/examples/api/test/widgets/app_lifecycle_listener/app_lifecycle_listener.1_test.dart @@ -2,14 +2,13 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -import 'package:flutter_api_samples/widgets/app_lifecycle_listener/app_lifecycle_listener.1.dart' as example; +import 'package:flutter_api_samples/widgets/app_lifecycle_listener/app_lifecycle_listener.1.dart' + as example; import 'package:flutter_test/flutter_test.dart'; void main() { testWidgets('AppLifecycleListener example', (WidgetTester tester) async { - await tester.pumpWidget( - const example.AppLifecycleListenerExample(), - ); + await tester.pumpWidget(const example.AppLifecycleListenerExample()); expect(find.text('Do Not Allow Exit'), findsOneWidget); expect(find.text('Allow Exit'), findsOneWidget); @@ -17,7 +16,7 @@ void main() { expect(find.textContaining('Exit Request:'), findsOneWidget); await tester.tap(find.text('Quit')); await tester.pump(); - // Responding to the the quit request happens in a Future that we don't have + // Responding to the quit request happens in a Future that we don't have // visibility for, so to avoid a flaky test with a delay, we just check to // see if the request string prefix is still there, rather than the request // response string. Testing it wasn't worth exposing a Completer in the diff --git a/flutter/examples/api/test/widgets/async/future_builder.0_test.dart b/flutter/examples/api/test/widgets/async/future_builder.0_test.dart index 98587ceb4b943de56d0e0530ae723320295a4fa5..2a1e4b0e820cfa1c1ee9f27a453290b35722eca4 100644 --- a/flutter/examples/api/test/widgets/async/future_builder.0_test.dart +++ b/flutter/examples/api/test/widgets/async/future_builder.0_test.dart @@ -3,15 +3,12 @@ // found in the LICENSE file. import 'package:flutter/material.dart'; -import 'package:flutter_api_samples/widgets/async/future_builder.0.dart' - as example; +import 'package:flutter_api_samples/widgets/async/future_builder.0.dart' as example; import 'package:flutter_test/flutter_test.dart'; void main() { testWidgets('StreamBuilder listens to internal stream', (WidgetTester tester) async { - await tester.pumpWidget( - const example.FutureBuilderExampleApp(), - ); + await tester.pumpWidget(const example.FutureBuilderExampleApp()); expect(find.byType(CircularProgressIndicator), findsOne); expect(find.text('Awaiting result...'), findsOne); diff --git a/flutter/examples/api/test/widgets/async/stream_builder.0_test.dart b/flutter/examples/api/test/widgets/async/stream_builder.0_test.dart index 597f36680b3a1319fbea6f2fafe9d23cf0d2bfe8..481d5d0f2d85f45d6847ab1c430e19dd6a493511 100644 --- a/flutter/examples/api/test/widgets/async/stream_builder.0_test.dart +++ b/flutter/examples/api/test/widgets/async/stream_builder.0_test.dart @@ -5,15 +5,12 @@ import 'dart:async'; import 'package:flutter/material.dart'; -import 'package:flutter_api_samples/widgets/async/stream_builder.0.dart' - as example; +import 'package:flutter_api_samples/widgets/async/stream_builder.0.dart' as example; import 'package:flutter_test/flutter_test.dart'; void main() { testWidgets('StreamBuilder listens to internal stream', (WidgetTester tester) async { - await tester.pumpWidget( - const example.StreamBuilderExampleApp(), - ); + await tester.pumpWidget(const example.StreamBuilderExampleApp()); expect(find.byType(CircularProgressIndicator), findsOneWidget); expect(find.text('Awaiting bids...'), findsOneWidget); @@ -37,11 +34,7 @@ void main() { controller.addError('Unexpected error!', StackTrace.empty); }; - await tester.pumpWidget( - MaterialApp( - home: example.BidsStatus(bids: controller.stream), - ), - ); + await tester.pumpWidget(MaterialApp(home: example.BidsStatus(bids: controller.stream))); await tester.pump(); expect(find.byIcon(Icons.error_outline), findsOneWidget); @@ -50,11 +43,7 @@ void main() { }); testWidgets('BidsStatus correctly displays none state', (WidgetTester tester) async { - await tester.pumpWidget( - const MaterialApp( - home: example.BidsStatus(bids: null), - ), - ); + await tester.pumpWidget(const MaterialApp(home: example.BidsStatus(bids: null))); expect(find.byIcon(Icons.info), findsOneWidget); expect(find.text('Select a lot'), findsOneWidget); @@ -64,11 +53,7 @@ void main() { final StreamController controller = StreamController(); addTearDown(controller.close); - await tester.pumpWidget( - MaterialApp( - home: example.BidsStatus(bids: controller.stream), - ), - ); + await tester.pumpWidget(MaterialApp(home: example.BidsStatus(bids: controller.stream))); expect(find.byType(CircularProgressIndicator), findsOneWidget); expect(find.text('Awaiting bids...'), findsOneWidget); @@ -82,11 +67,7 @@ void main() { controller.add(1); }; - await tester.pumpWidget( - MaterialApp( - home: example.BidsStatus(bids: controller.stream), - ), - ); + await tester.pumpWidget(MaterialApp(home: example.BidsStatus(bids: controller.stream))); await tester.pump(); expect(find.byIcon(Icons.check_circle_outline), findsOneWidget); @@ -97,11 +78,7 @@ void main() { final StreamController controller = StreamController(); controller.close(); - await tester.pumpWidget( - MaterialApp( - home: example.BidsStatus(bids: controller.stream), - ), - ); + await tester.pumpWidget(MaterialApp(home: example.BidsStatus(bids: controller.stream))); await tester.pump(); expect(find.byIcon(Icons.info), findsOneWidget); diff --git a/flutter/examples/api/test/widgets/autocomplete/raw_autocomplete.0_test.dart b/flutter/examples/api/test/widgets/autocomplete/raw_autocomplete.0_test.dart index 80bae5d87094c28fd4c6f2d470c5bc1800832b95..ce54106efc44527299f697304d19ae45c9d30cdf 100644 --- a/flutter/examples/api/test/widgets/autocomplete/raw_autocomplete.0_test.dart +++ b/flutter/examples/api/test/widgets/autocomplete/raw_autocomplete.0_test.dart @@ -39,9 +39,9 @@ void main() { await tester.pump(); expect(find.byType(ListTile), findsNothing); - expect(find.descendant( - of: find.byType(TextFormField), - matching: find.text('bobcat'), - ), findsOneWidget); + expect( + find.descendant(of: find.byType(TextFormField), matching: find.text('bobcat')), + findsOneWidget, + ); }); } diff --git a/flutter/examples/api/test/widgets/autocomplete/raw_autocomplete.1_test.dart b/flutter/examples/api/test/widgets/autocomplete/raw_autocomplete.1_test.dart index b625c64e2335f034c87482a9f2d12ca87c5b7f9c..284eb8bbb3b88b01fa0bc9a0e159e775b4a45f4b 100644 --- a/flutter/examples/api/test/widgets/autocomplete/raw_autocomplete.1_test.dart +++ b/flutter/examples/api/test/widgets/autocomplete/raw_autocomplete.1_test.dart @@ -39,10 +39,10 @@ void main() { await tester.pump(); expect(find.byType(ListTile), findsNothing); - expect(find.descendant( - of: find.byType(TextFormField), - matching: find.text('Bob'), - ), findsOneWidget); + expect( + find.descendant(of: find.byType(TextFormField), matching: find.text('Bob')), + findsOneWidget, + ); }); testWidgets('Finds users by email address', (WidgetTester tester) async { @@ -68,9 +68,9 @@ void main() { await tester.pump(); expect(find.byType(ListTile), findsNothing); - expect(find.descendant( - of: find.byType(TextFormField), - matching: find.text('Charlie'), - ), findsOneWidget); + expect( + find.descendant(of: find.byType(TextFormField), matching: find.text('Charlie')), + findsOneWidget, + ); }); } diff --git a/flutter/examples/api/test/widgets/autocomplete/raw_autocomplete.2_test.dart b/flutter/examples/api/test/widgets/autocomplete/raw_autocomplete.2_test.dart index 313ed73366f1b0e91f8567d28a6df89331ebe3ac..5dcd8f40e5a6a259669620cee9089228c9256404 100644 --- a/flutter/examples/api/test/widgets/autocomplete/raw_autocomplete.2_test.dart +++ b/flutter/examples/api/test/widgets/autocomplete/raw_autocomplete.2_test.dart @@ -7,7 +7,9 @@ import 'package:flutter_api_samples/widgets/autocomplete/raw_autocomplete.2.dart import 'package:flutter_test/flutter_test.dart'; void main() { - testWidgets('Form is entirely visible and rejects invalid responses', (WidgetTester tester) async { + testWidgets('Form is entirely visible and rejects invalid responses', ( + WidgetTester tester, + ) async { await tester.pumpWidget(const example.AutocompleteExampleApp()); expect(find.text('RawAutocomplete Form'), findsOneWidget); expect(find.byType(TextFormField), findsNWidgets(2)); @@ -58,10 +60,12 @@ void main() { 'regular user input', ); - await tester.tap(find.ancestor( - of: find.text('This is a RawAutocomplete!'), - matching: find.byType(TextFormField), - )); + await tester.tap( + find.ancestor( + of: find.text('This is a RawAutocomplete!'), + matching: find.byType(TextFormField), + ), + ); await tester.pump(); expect(find.text('aardvark'), findsOneWidget); expect(find.text('bobcat'), findsOneWidget); diff --git a/flutter/examples/api/test/widgets/autocomplete/raw_autocomplete.focus_node.0_test.dart b/flutter/examples/api/test/widgets/autocomplete/raw_autocomplete.focus_node.0_test.dart index 36c097a4b1d3918d3ba9f22352a540862089aef5..f8358de3b5556459d12f8f2b239ca2f10fdd0c6d 100644 --- a/flutter/examples/api/test/widgets/autocomplete/raw_autocomplete.focus_node.0_test.dart +++ b/flutter/examples/api/test/widgets/autocomplete/raw_autocomplete.focus_node.0_test.dart @@ -3,7 +3,8 @@ // found in the LICENSE file. import 'package:flutter/material.dart'; -import 'package:flutter_api_samples/widgets/autocomplete/raw_autocomplete.focus_node.0.dart' as example; +import 'package:flutter_api_samples/widgets/autocomplete/raw_autocomplete.focus_node.0.dart' + as example; import 'package:flutter_test/flutter_test.dart'; void main() { @@ -13,10 +14,7 @@ void main() { expect(find.byType(AppBar), findsOneWidget); expect(find.byType(TextFormField), findsOneWidget); expect( - find.descendant( - of: find.byType(AppBar), - matching: find.byType(TextFormField) - ), + find.descendant(of: find.byType(AppBar), matching: find.byType(TextFormField)), findsOneWidget, ); @@ -25,10 +23,7 @@ void main() { expect(find.text('bobcat'), findsNothing); expect(find.text('chameleon'), findsNothing); expect( - find.ancestor( - matching: find.byType(AppBar), - of: find.byType(RawAutocomplete) - ), + find.ancestor(matching: find.byType(AppBar), of: find.byType(RawAutocomplete)), findsNothing, ); }); @@ -56,10 +51,7 @@ void main() { expect(find.byType(ListTile), findsNothing); expect( - find.descendant( - of: find.byType(TextFormField), - matching: find.text('bobcat'), - ), + find.descendant(of: find.byType(TextFormField), matching: find.text('bobcat')), findsOneWidget, ); }); diff --git a/flutter/examples/api/test/widgets/autofill/autofill_group.0_test.dart b/flutter/examples/api/test/widgets/autofill/autofill_group.0_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..eb6c532a330e7d0a736550c038b47796ffa6e766 --- /dev/null +++ b/flutter/examples/api/test/widgets/autofill/autofill_group.0_test.dart @@ -0,0 +1,64 @@ +// 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_api_samples/widgets/autofill/autofill_group.0.dart' as example; +import 'package:flutter_test/flutter_test.dart'; + +void main() { + testWidgets('AutofillGroupExample renders and updates correctly', (WidgetTester tester) async { + await tester.pumpWidget(const example.AutofillGroupExampleApp()); + + expect(find.text('Shipping address'), findsOneWidget); + expect(find.text('Billing address'), findsOneWidget); + expect(find.byType(TextField), findsNWidgets(5)); + expect(find.byType(Checkbox), findsOneWidget); + expect(find.text('Contact Phone Number'), findsOneWidget); + + final Checkbox checkbox = tester.widget(find.byType(Checkbox)); + expect(checkbox.value, isTrue); + + // Tap to uncheck the checkbox (to show billing address fields). + await tester.tap(find.byType(Checkbox)); + await tester.pump(); + + expect( + find.byType(AutofillGroup), + findsNWidgets(3), // 3 AutofillGroup widgets created + ); + + expect( + find.byType(TextField), + findsNWidgets(7), // 5 initial + 2 billing address fields + ); + + final TextField shippingAddress1 = tester.widget(find.byType(TextField).at(0)); + expect(shippingAddress1.autofillHints, contains(AutofillHints.streetAddressLine1)); + + final TextField shippingAddress2 = tester.widget(find.byType(TextField).at(1)); + expect(shippingAddress2.autofillHints, contains(AutofillHints.streetAddressLine2)); + + final TextField billingAddress1 = tester.widget(find.byType(TextField).at(2)); + expect(billingAddress1.autofillHints, contains(AutofillHints.streetAddressLine1)); + + final TextField billingAddress2 = tester.widget(find.byType(TextField).at(3)); + expect(billingAddress2.autofillHints, contains(AutofillHints.streetAddressLine2)); + + // Credit card information fields. + final TextField creditCardNumber = tester.widget(find.byType(TextField).at(4)); + expect(creditCardNumber.autofillHints, contains(AutofillHints.creditCardNumber)); + + final TextField creditCardSecurityCode = tester.widget(find.byType(TextField).at(5)); + expect(creditCardSecurityCode.autofillHints, contains(AutofillHints.creditCardSecurityCode)); + + // Contact phone number field. + final TextField phoneNumber = tester.widget(find.byType(TextField).at(6)); + expect(phoneNumber.autofillHints, contains(AutofillHints.telephoneNumber)); + + await tester.tap(find.byType(Checkbox)); + await tester.pump(); + + expect(find.byType(TextField), findsNWidgets(5)); + }); +} diff --git a/flutter/examples/api/test/widgets/basic/absorb_pointer.0_test.dart b/flutter/examples/api/test/widgets/basic/absorb_pointer.0_test.dart index eeaaf4e34e0807d637c5347a719cfbcbc9a71b1f..78544fbfeadae226f107f43bf9e2925d98e8f99a 100644 --- a/flutter/examples/api/test/widgets/basic/absorb_pointer.0_test.dart +++ b/flutter/examples/api/test/widgets/basic/absorb_pointer.0_test.dart @@ -10,20 +10,27 @@ import 'package:flutter_test/flutter_test.dart'; void main() { testWidgets('AbsorbPointer prevents hit testing on its child', (WidgetTester tester) async { - await tester.pumpWidget( - const example.AbsorbPointerApp(), - ); + await tester.pumpWidget(const example.AbsorbPointerApp()); // Get the center of the stack. final Offset center = tester.getCenter(find.byType(Stack).first); - final TestGesture gesture = await tester.createGesture(kind: PointerDeviceKind.mouse, pointer: 1); + final TestGesture gesture = await tester.createGesture( + kind: PointerDeviceKind.mouse, + pointer: 1, + ); // Add the point to the center of the stack where the AbsorbPointer is. await gesture.addPointer(location: center); - expect(RendererBinding.instance.mouseTracker.debugDeviceActiveCursor(1), SystemMouseCursors.basic); + expect( + RendererBinding.instance.mouseTracker.debugDeviceActiveCursor(1), + SystemMouseCursors.basic, + ); // Move the pointer to the left of the stack where the AbsorbPointer is not. await gesture.moveTo(center + const Offset(-100, 0)); - expect(RendererBinding.instance.mouseTracker.debugDeviceActiveCursor(1), SystemMouseCursors.click); + expect( + RendererBinding.instance.mouseTracker.debugDeviceActiveCursor(1), + SystemMouseCursors.click, + ); }); } diff --git a/flutter/examples/api/test/widgets/basic/aspect_ratio.0_test.dart b/flutter/examples/api/test/widgets/basic/aspect_ratio.0_test.dart index b7384521254654ba07632993d0aa04bf03f2a3d9..0185137b29ea3124f3938ec84f44bd21438d7d1c 100644 --- a/flutter/examples/api/test/widgets/basic/aspect_ratio.0_test.dart +++ b/flutter/examples/api/test/widgets/basic/aspect_ratio.0_test.dart @@ -10,9 +10,7 @@ void main() { testWidgets('AspectRatio applies 16 / 9 aspect ratio on its child', (WidgetTester tester) async { const double height = 100.0; - await tester.pumpWidget( - const example.AspectRatioApp(), - ); + await tester.pumpWidget(const example.AspectRatioApp()); final Size parentContainer = tester.getSize(find.byType(Container).first); expect(parentContainer.width, 800.0); diff --git a/flutter/examples/api/test/widgets/basic/aspect_ratio.1_test.dart b/flutter/examples/api/test/widgets/basic/aspect_ratio.1_test.dart index e19d344938ee693354206c7616a1cb13c9d31ad9..b37449f67be7997fd5ae8568b07b98f17007a45e 100644 --- a/flutter/examples/api/test/widgets/basic/aspect_ratio.1_test.dart +++ b/flutter/examples/api/test/widgets/basic/aspect_ratio.1_test.dart @@ -10,9 +10,7 @@ void main() { testWidgets('AspectRatio applies 2.0 aspect ratio on its child', (WidgetTester tester) async { const Size containerSize = Size(100, 100); - await tester.pumpWidget( - const example.AspectRatioApp(), - ); + await tester.pumpWidget(const example.AspectRatioApp()); final Size parentContainer = tester.getSize(find.byType(Container).first); expect(parentContainer, containerSize); diff --git a/flutter/examples/api/test/widgets/basic/aspect_ratio.2_test.dart b/flutter/examples/api/test/widgets/basic/aspect_ratio.2_test.dart index cfd80da07b6caf74409ea7d567e58388fb2e5a6b..8ec065472bbe7587b5ee8c8f90449f02b3d7293f 100644 --- a/flutter/examples/api/test/widgets/basic/aspect_ratio.2_test.dart +++ b/flutter/examples/api/test/widgets/basic/aspect_ratio.2_test.dart @@ -10,9 +10,7 @@ void main() { testWidgets('AspectRatio applies 0.5 aspect ratio on its child', (WidgetTester tester) async { const Size containerSize = Size(100, 100); - await tester.pumpWidget( - const example.AspectRatioApp(), - ); + await tester.pumpWidget(const example.AspectRatioApp()); final Size parentContainer = tester.getSize(find.byType(Container).first); expect(parentContainer, containerSize); diff --git a/flutter/examples/api/test/widgets/basic/clip_rrect.0_test.dart b/flutter/examples/api/test/widgets/basic/clip_rrect.0_test.dart index e62e24196a3c1ca4f47beced188333648f901d4b..4ce58ec2a6d77df623de4d8bb0478d258e946330 100644 --- a/flutter/examples/api/test/widgets/basic/clip_rrect.0_test.dart +++ b/flutter/examples/api/test/widgets/basic/clip_rrect.0_test.dart @@ -8,9 +8,7 @@ import 'package:flutter_test/flutter_test.dart'; void main() { testWidgets('ClipRRect adds rounded corners to containers', (WidgetTester tester) async { - await tester.pumpWidget( - const example.ClipRRectApp(), - ); + await tester.pumpWidget(const example.ClipRRectApp()); final Finder clipRRectFinder = find.byType(ClipRRect); final Finder containerFinder = find.byType(Container); diff --git a/flutter/examples/api/test/widgets/basic/clip_rrect.1_test.dart b/flutter/examples/api/test/widgets/basic/clip_rrect.1_test.dart index 672ab5cff07322ad208bfeea8035c5e9862a7675..23b4c0c9084c39cedae77352c996185133cb9a98 100644 --- a/flutter/examples/api/test/widgets/basic/clip_rrect.1_test.dart +++ b/flutter/examples/api/test/widgets/basic/clip_rrect.1_test.dart @@ -8,9 +8,7 @@ import 'package:flutter_test/flutter_test.dart'; void main() { testWidgets('ClipRRect fits to its child', (WidgetTester tester) async { - await tester.pumpWidget( - const example.ClipRRectApp(), - ); + await tester.pumpWidget(const example.ClipRRectApp()); final Finder clipRRectFinder = find.byType(ClipRRect); final Finder logoFinder = find.byType(FlutterLogo); diff --git a/flutter/examples/api/test/widgets/basic/custom_multi_child_layout.0_test.dart b/flutter/examples/api/test/widgets/basic/custom_multi_child_layout.0_test.dart index acd087ba8e4ae340ae0f45b4a5fac35a10638956..a3f57099e2533ddb72c91116ba623da69d3922d9 100644 --- a/flutter/examples/api/test/widgets/basic/custom_multi_child_layout.0_test.dart +++ b/flutter/examples/api/test/widgets/basic/custom_multi_child_layout.0_test.dart @@ -3,30 +3,19 @@ // found in the LICENSE file. import 'package:flutter/material.dart'; -import 'package:flutter_api_samples/widgets/basic/custom_multi_child_layout.0.dart' - as example; +import 'package:flutter_api_samples/widgets/basic/custom_multi_child_layout.0.dart' as example; import 'package:flutter_test/flutter_test.dart'; void main() { testWidgets('has four containers', (WidgetTester tester) async { - await tester.pumpWidget( - const MaterialApp( - home: Scaffold( - body: example.CustomMultiChildLayoutApp(), - ), - ), - ); + await tester.pumpWidget(const example.CustomMultiChildLayoutApp()); final Finder containerFinder = find.byType(Container); expect(containerFinder, findsNWidgets(4)); }); testWidgets('containers are the same size', (WidgetTester tester) async { await tester.pumpWidget( - const MaterialApp( - home: Scaffold( - body: example.CustomMultiChildLayoutExample(), - ), - ), + const MaterialApp(home: Scaffold(body: example.CustomMultiChildLayoutExample())), ); final Finder containerFinder = find.byType(Container); const Size expectedSize = Size(100, 100); @@ -38,11 +27,7 @@ void main() { testWidgets('containers are offset', (WidgetTester tester) async { await tester.pumpWidget( - const MaterialApp( - home: Scaffold( - body: example.CustomMultiChildLayoutExample(), - ), - ), + const MaterialApp(home: Scaffold(body: example.CustomMultiChildLayoutExample())), ); final Finder containerFinder = find.byType(Container); Rect previousRect = tester.getRect(containerFinder.first); diff --git a/flutter/examples/api/test/widgets/basic/expanded.0_test.dart b/flutter/examples/api/test/widgets/basic/expanded.0_test.dart index 66827372de0bbec88a3184ad4601e072ff4ed6be..311b90c776d1de04042a6de1981fcc30459992e5 100644 --- a/flutter/examples/api/test/widgets/basic/expanded.0_test.dart +++ b/flutter/examples/api/test/widgets/basic/expanded.0_test.dart @@ -16,9 +16,7 @@ void main() { const double containerTwoHeight = columnHeight - 200; const double containerThreeHeight = 100; - await tester.pumpWidget( - const example.ExpandedApp(), - ); + await tester.pumpWidget(const example.ExpandedApp()); final Size column = tester.getSize(find.byType(Column)); expect(column, const Size(columnWidth, columnHeight)); diff --git a/flutter/examples/api/test/widgets/basic/expanded.1_test.dart b/flutter/examples/api/test/widgets/basic/expanded.1_test.dart index 6d1a5d7277fde3673e1ebf45b301361c77b8d717..f5894e5dd9e22e71be209427b593d64ff9251c46 100644 --- a/flutter/examples/api/test/widgets/basic/expanded.1_test.dart +++ b/flutter/examples/api/test/widgets/basic/expanded.1_test.dart @@ -14,9 +14,7 @@ void main() { const double containerTwoWidth = 50; const double containerThreeWidth = (rowWidth - 50) * 1 / 3; - await tester.pumpWidget( - const example.ExpandedApp(), - ); + await tester.pumpWidget(const example.ExpandedApp()); final Size row = tester.getSize(find.byType(Row)); expect(row, const Size(rowWidth, rowHeight)); diff --git a/flutter/examples/api/test/widgets/basic/fitted_box.0_test.dart b/flutter/examples/api/test/widgets/basic/fitted_box.0_test.dart index adedfb222e10f6ca6a72617bca5e7f44c4e67f21..653177ec41f8b867551952ac94e7c83ca9832627 100644 --- a/flutter/examples/api/test/widgets/basic/fitted_box.0_test.dart +++ b/flutter/examples/api/test/widgets/basic/fitted_box.0_test.dart @@ -13,10 +13,10 @@ void main() { HttpOverrides.global = null; }); - testWidgets('FittedBox scales the image to fill the parent container', (WidgetTester tester) async { - await tester.pumpWidget( - const example.FittedBoxApp(), - ); + testWidgets('FittedBox scales the image to fill the parent container', ( + WidgetTester tester, + ) async { + await tester.pumpWidget(const example.FittedBoxApp()); final Size containerSize = tester.getSize(find.byType(Container)); expect(containerSize, const Size(300, 400)); diff --git a/flutter/examples/api/test/widgets/basic/flow.0_test.dart b/flutter/examples/api/test/widgets/basic/flow.0_test.dart index ef45b416c8e60a2637a8cabfbe36a4d15dd49bf2..31bdfd9fcabf52a6080c01a4d53840f93e2a91ef 100644 --- a/flutter/examples/api/test/widgets/basic/flow.0_test.dart +++ b/flutter/examples/api/test/widgets/basic/flow.0_test.dart @@ -8,9 +8,7 @@ import 'package:flutter_test/flutter_test.dart'; void main() { testWidgets('Clicking on the menu icon opens the Flow menu', (WidgetTester tester) async { - await tester.pumpWidget( - const example.FlowApp(), - ); + await tester.pumpWidget(const example.FlowApp()); // The menu icon is in the top left corner of the screen. Offset menuIcon = tester.getCenter(find.byIcon(Icons.menu)); diff --git a/flutter/examples/api/test/widgets/basic/fractionally_sized_box.0_test.dart b/flutter/examples/api/test/widgets/basic/fractionally_sized_box.0_test.dart index 65e3d6742653f206d62bfee3567ace42b3d2fe18..8517d73f8ed02585e8324327913c3224467e3db0 100644 --- a/flutter/examples/api/test/widgets/basic/fractionally_sized_box.0_test.dart +++ b/flutter/examples/api/test/widgets/basic/fractionally_sized_box.0_test.dart @@ -12,11 +12,11 @@ void main() { const double widthFactor = 0.5; const double heightFactor = 0.5; - await tester.pumpWidget( - const example.FractionallySizedBoxApp(), - ); + await tester.pumpWidget(const example.FractionallySizedBoxApp()); - final FractionallySizedBox fractionallySizedBox = tester.widget(find.byType(FractionallySizedBox)); + final FractionallySizedBox fractionallySizedBox = tester.widget( + find.byType(FractionallySizedBox), + ); expect(fractionallySizedBox.widthFactor, widthFactor); expect(fractionallySizedBox.heightFactor, heightFactor); diff --git a/flutter/examples/api/test/widgets/basic/ignore_pointer.0_test.dart b/flutter/examples/api/test/widgets/basic/ignore_pointer.0_test.dart index fa7583ec6ca8a1027c8ec3bcef3a87d272a53e1d..9bb73ac552c9ebbd1131bd8ab7f9b4260713396d 100644 --- a/flutter/examples/api/test/widgets/basic/ignore_pointer.0_test.dart +++ b/flutter/examples/api/test/widgets/basic/ignore_pointer.0_test.dart @@ -11,23 +11,30 @@ void main() { testWidgets('IgnorePointer ignores pointer on the ElevatedButton', (WidgetTester tester) async { const String clickButtonText = 'Click me!'; - await tester.pumpWidget( - const example.IgnorePointerApp(), - ); + await tester.pumpWidget(const example.IgnorePointerApp()); // The ElevatedButton is clickable. expect(find.text('Ignoring: false'), findsOneWidget); - final TestGesture gesture = await tester.createGesture(kind: PointerDeviceKind.mouse, pointer: 1); + final TestGesture gesture = await tester.createGesture( + kind: PointerDeviceKind.mouse, + pointer: 1, + ); await gesture.addPointer(location: tester.getCenter(find.text(clickButtonText))); // On hovering the ElevatedButton, the cursor should be SystemMouseCursors.click. - expect(RendererBinding.instance.mouseTracker.debugDeviceActiveCursor(1), SystemMouseCursors.click); + expect( + RendererBinding.instance.mouseTracker.debugDeviceActiveCursor(1), + SystemMouseCursors.click, + ); // Tap to set ignoring pointer to true. await tester.tap(find.text('Set ignoring to true')); await tester.pump(); // The ElevatedButton is not clickable so the cursor should be SystemMouseCursors.basic. - expect(RendererBinding.instance.mouseTracker.debugDeviceActiveCursor(1), SystemMouseCursors.basic); + expect( + RendererBinding.instance.mouseTracker.debugDeviceActiveCursor(1), + SystemMouseCursors.basic, + ); }); } diff --git a/flutter/examples/api/test/widgets/basic/indexed_stack.0_test.dart b/flutter/examples/api/test/widgets/basic/indexed_stack.0_test.dart index c4f797d0a651c613c4fb9db2985d908e67a87ad1..0e1416be742ccbe8c6bb0d3b0c469b8d51a13b81 100644 --- a/flutter/examples/api/test/widgets/basic/indexed_stack.0_test.dart +++ b/flutter/examples/api/test/widgets/basic/indexed_stack.0_test.dart @@ -11,11 +11,14 @@ void main() { await tester.pumpWidget(const example.IndexedStackApp()); final Finder gesture2 = find.byKey(const Key('gesture2')); - final Element containerFinder = find.byKey(const Key('Dash'), skipOffstage: false).evaluate().first; + final Element containerFinder = + find.byKey(const Key('Dash'), skipOffstage: false).evaluate().first; expect(containerFinder.renderObject!.debugNeedsPaint, false); - final Element containerFinder1 = find.byKey(const Key('John'), skipOffstage: false).evaluate().first; + final Element containerFinder1 = + find.byKey(const Key('John'), skipOffstage: false).evaluate().first; expect(containerFinder1.renderObject!.debugNeedsPaint, true); - final Element containerFinder2 = find.byKey(const Key('Mary'), skipOffstage: false).evaluate().first; + final Element containerFinder2 = + find.byKey(const Key('Mary'), skipOffstage: false).evaluate().first; expect(containerFinder2.renderObject!.debugNeedsPaint, true); await tester.tap(gesture2); @@ -34,9 +37,12 @@ void main() { await tester.pumpWidget(const example.IndexedStackApp()); final Finder gesture1 = find.byKey(const Key('gesture1')); - final Element containerFinder = find.byKey(const Key('Dash'), skipOffstage: false).evaluate().first; - final Element containerFinder1 = find.byKey(const Key('John'), skipOffstage: false).evaluate().first; - final Element containerFinder2 = find.byKey(const Key('Mary'), skipOffstage: false).evaluate().first; + final Element containerFinder = + find.byKey(const Key('Dash'), skipOffstage: false).evaluate().first; + final Element containerFinder1 = + find.byKey(const Key('John'), skipOffstage: false).evaluate().first; + final Element containerFinder2 = + find.byKey(const Key('Mary'), skipOffstage: false).evaluate().first; await tester.tap(gesture1); await tester.pump(); diff --git a/flutter/examples/api/test/widgets/basic/listener.0_test.dart b/flutter/examples/api/test/widgets/basic/listener.0_test.dart index 40fb5d6b5cc833da0c18824dfa2506af2616206c..fbdc1f808103ebc48479ec750d8c1e60b4254938 100644 --- a/flutter/examples/api/test/widgets/basic/listener.0_test.dart +++ b/flutter/examples/api/test/widgets/basic/listener.0_test.dart @@ -2,7 +2,6 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. - import 'package:flutter/gestures.dart'; import 'package:flutter/material.dart'; import 'package:flutter_api_samples/widgets/basic/listener.0.dart' as example; @@ -10,9 +9,7 @@ import 'package:flutter_test/flutter_test.dart'; void main() { testWidgets('Listener detects press & release, and cursor location', (WidgetTester tester) async { - await tester.pumpWidget( - const MaterialApp(home: example.ListenerExample()), - ); + await tester.pumpWidget(const MaterialApp(home: example.ListenerExample())); expect(find.text('0 presses\n0 releases'), findsOneWidget); expect(find.text('The cursor is here: (0.00, 0.00)'), findsOneWidget); diff --git a/flutter/examples/api/test/widgets/basic/mouse_region.0_test.dart b/flutter/examples/api/test/widgets/basic/mouse_region.0_test.dart index 028210d862ca50eb03c0cd8d7f177dbae26ac11f..2f2276a175433e2eef558232d741e49ecb5e93b8 100644 --- a/flutter/examples/api/test/widgets/basic/mouse_region.0_test.dart +++ b/flutter/examples/api/test/widgets/basic/mouse_region.0_test.dart @@ -8,10 +8,10 @@ import 'package:flutter_api_samples/widgets/basic/mouse_region.0.dart' as exampl import 'package:flutter_test/flutter_test.dart'; void main() { - testWidgets('MouseRegion detects mouse entries, exists, and location', (WidgetTester tester) async { - await tester.pumpWidget( - const MaterialApp(home: example.MouseRegionApp()), - ); + testWidgets('MouseRegion detects mouse entries, exists, and location', ( + WidgetTester tester, + ) async { + await tester.pumpWidget(const example.MouseRegionApp()); expect(find.text('0 Entries\n0 Exits'), findsOneWidget); expect(find.text('The cursor is here: (0.00, 0.00)'), findsOneWidget); @@ -24,9 +24,7 @@ void main() { expect(find.text('1 Entries\n0 Exits'), findsOneWidget); expect(find.text('The cursor is here: (400.00, 328.00)'), findsOneWidget); - await gesture.moveTo( - tester.getCenter(find.byType(ColoredBox)) + const Offset(50.0, 30.0), - ); + await gesture.moveTo(tester.getCenter(find.byType(ColoredBox)) + const Offset(50.0, 30.0)); await tester.pump(); expect(find.text('The cursor is here: (450.00, 358.00)'), findsOneWidget); diff --git a/flutter/examples/api/test/widgets/basic/mouse_region.on_exit.0_test.dart b/flutter/examples/api/test/widgets/basic/mouse_region.on_exit.0_test.dart index 1f8ac60f0fa4d36e6f046fb8d0917cd67a9b4fcc..4bd8ac74724dbcf133aa5a8699ce7fa855a32d68 100644 --- a/flutter/examples/api/test/widgets/basic/mouse_region.on_exit.0_test.dart +++ b/flutter/examples/api/test/widgets/basic/mouse_region.on_exit.0_test.dart @@ -9,9 +9,7 @@ import 'package:flutter_test/flutter_test.dart'; void main() { testWidgets('MouseRegion detects mouse hover', (WidgetTester tester) async { - await tester.pumpWidget( - const MaterialApp(home: example.MouseRegionApp()), - ); + await tester.pumpWidget(const example.MouseRegionApp()); Container container = tester.widget(find.byType(Container)); expect(container.decoration, const BoxDecoration(color: Colors.blue)); diff --git a/flutter/examples/api/test/widgets/basic/mouse_region.on_exit.1_test.dart b/flutter/examples/api/test/widgets/basic/mouse_region.on_exit.1_test.dart index 6025575e32a7f005bbd436d845f01e5bdc2cf0dc..07bb23d1a71852816b8be403aa3c86282989dc1e 100644 --- a/flutter/examples/api/test/widgets/basic/mouse_region.on_exit.1_test.dart +++ b/flutter/examples/api/test/widgets/basic/mouse_region.on_exit.1_test.dart @@ -9,9 +9,7 @@ import 'package:flutter_test/flutter_test.dart'; void main() { testWidgets('MouseRegion update mouse hover with a delay', (WidgetTester tester) async { - await tester.pumpWidget( - const MaterialApp(home: example.MouseRegionApp()), - ); + await tester.pumpWidget(const example.MouseRegionApp()); expect(find.text('Not hovering'), findsOneWidget); diff --git a/flutter/examples/api/test/widgets/basic/offstage.0_test.dart b/flutter/examples/api/test/widgets/basic/offstage.0_test.dart index e459dee7e760eb097e6bc8f7ac103ebe0ede85b6..e43c4603ad9fb10e2869ed63a6d2e64824ea4651 100644 --- a/flutter/examples/api/test/widgets/basic/offstage.0_test.dart +++ b/flutter/examples/api/test/widgets/basic/offstage.0_test.dart @@ -2,15 +2,12 @@ // 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_api_samples/widgets/basic/offstage.0.dart' as example; import 'package:flutter_test/flutter_test.dart'; void main() { testWidgets('Can off/on stage Flutter logo widget', (WidgetTester tester) async { - await tester.pumpWidget( - const MaterialApp(home: example.OffstageApp()), - ); + await tester.pumpWidget(const example.OffstageApp()); // The Flutter logo is off stage and not visible. expect(find.text('Flutter logo is offstage: true'), findsOneWidget); diff --git a/flutter/examples/api/test/widgets/basic/overflowbox.0_test.dart b/flutter/examples/api/test/widgets/basic/overflowbox.0_test.dart index a3b86f8fb86262729d8bc6a7cf0296e502cd2cfa..51ad7935e1e73ad4bf9e3787182e15de2530b908 100644 --- a/flutter/examples/api/test/widgets/basic/overflowbox.0_test.dart +++ b/flutter/examples/api/test/widgets/basic/overflowbox.0_test.dart @@ -7,13 +7,13 @@ import 'package:flutter_api_samples/widgets/basic/overflowbox.0.dart' as example import 'package:flutter_test/flutter_test.dart'; void main() { - testWidgets('OverflowBox allows child widget to overflow parent container', (WidgetTester tester) async { - const Size containerSize = Size(100, 100); + testWidgets('OverflowBox allows child widget to overflow parent container', ( + WidgetTester tester, + ) async { + const Size containerSize = Size(100, 100); const Size maxSize = Size(200, 200); - await tester.pumpWidget( - const example.OverflowBoxApp(), - ); + await tester.pumpWidget(const example.OverflowBoxApp()); // The parent container has fixed width and height of 100 pixels. expect(tester.getSize(find.byType(Container).first), containerSize); diff --git a/flutter/examples/api/test/widgets/basic/physical_shape.0_test.dart b/flutter/examples/api/test/widgets/basic/physical_shape.0_test.dart index db6e9aea5379cdbcfb7399c71b1720c2157775c7..80ab92dafdf0e9b609c19f673582fafe49f40297 100644 --- a/flutter/examples/api/test/widgets/basic/physical_shape.0_test.dart +++ b/flutter/examples/api/test/widgets/basic/physical_shape.0_test.dart @@ -8,15 +8,10 @@ import 'package:flutter_test/flutter_test.dart'; void main() { testWidgets('PhysicalShape is an ancestor of the text widget', (WidgetTester tester) async { - await tester.pumpWidget( - const MaterialApp(home: example.PhysicalShapeApp()), - ); + await tester.pumpWidget(const example.PhysicalShapeApp()); final PhysicalShape physicalShape = tester.widget( - find.ancestor( - of:find.text('Hello, World!'), - matching: find.byType(PhysicalShape), - ), + find.ancestor(of: find.text('Hello, World!'), matching: find.byType(PhysicalShape)), ); expect(physicalShape.clipper, isNotNull); expect(physicalShape.color, Colors.orange); diff --git a/flutter/examples/api/test/widgets/binding/widget_binding_observer.0_test.dart b/flutter/examples/api/test/widgets/binding/widget_binding_observer.0_test.dart index 6da54447e5edd2a04831a968b4769e8dd7203b1d..3f5f3aa7a22165db7c72d28a7a1fd32669019e7a 100644 --- a/flutter/examples/api/test/widgets/binding/widget_binding_observer.0_test.dart +++ b/flutter/examples/api/test/widgets/binding/widget_binding_observer.0_test.dart @@ -4,22 +4,21 @@ import 'package:flutter/services.dart'; import 'package:flutter/widgets.dart'; -import 'package:flutter_api_samples/widgets/binding/widget_binding_observer.0.dart' - as example; +import 'package:flutter_api_samples/widgets/binding/widget_binding_observer.0.dart' as example; import 'package:flutter_test/flutter_test.dart'; void main() { testWidgets('App tracks lifecycle states', (WidgetTester tester) async { Future setAppLifeCycleState(AppLifecycleState state) async { - final ByteData? message = - const StringCodec().encodeMessage(state.toString()); + final ByteData? message = const StringCodec().encodeMessage(state.toString()); await tester.binding.defaultBinaryMessenger.handlePlatformMessage( - 'flutter/lifecycle', message, (_) {}); + 'flutter/lifecycle', + message, + (_) {}, + ); } - await tester.pumpWidget( - const example.WidgetBindingObserverExampleApp(), - ); + await tester.pumpWidget(const example.WidgetBindingObserverExampleApp()); expect(find.text('There are no AppLifecycleStates to show.'), findsOneWidget); diff --git a/flutter/examples/api/test/widgets/color_filter/color_filtered.0_test.dart b/flutter/examples/api/test/widgets/color_filter/color_filtered.0_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..e485b9431f04f4d98feaf51068f2426194dc94eb --- /dev/null +++ b/flutter/examples/api/test/widgets/color_filter/color_filtered.0_test.dart @@ -0,0 +1,45 @@ +// 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:io'; + +import 'package:flutter/material.dart'; +import 'package:flutter/rendering.dart'; +import 'package:flutter_api_samples/widgets/color_filter/color_filtered.0.dart' as example; +import 'package:flutter_test/flutter_test.dart'; + +void main() { + // The app being tested loads images via HTTP which the test + // framework defeats by default. + setUpAll(() { + HttpOverrides.global = null; + }); + + testWidgets('Color filters are applied to the images', (WidgetTester tester) async { + await tester.pumpWidget(const example.ColorFilteredExampleApp()); + + await tester.pumpAndSettle(); + + // Verify that two images are displayed. + expect(find.byType(Image), findsNWidgets(2)); + + RenderObject renderObject = tester.firstRenderObject(find.byType(ColorFiltered).first); + ColorFilterLayer colorFilterLayer = renderObject.debugLayer! as ColorFilterLayer; + + // Verify that red colored filter with modulate blend mode is applied to the first image. + expect( + colorFilterLayer.colorFilter, + equals(const ColorFilter.mode(Colors.red, BlendMode.modulate)), + ); + + renderObject = tester.firstRenderObject(find.byType(ColorFiltered).last); + colorFilterLayer = renderObject.debugLayer! as ColorFilterLayer; + + // Verify that grey colored filter with saturation blend mode is applied to the first image. + expect( + colorFilterLayer.colorFilter, + equals(const ColorFilter.mode(Colors.grey, BlendMode.saturation)), + ); + }); +} diff --git a/flutter/examples/api/test/widgets/dismissible/dismissible.0_test.dart b/flutter/examples/api/test/widgets/dismissible/dismissible.0_test.dart index 9dcb809677601b0393746b2ca3174937220bfb32..9aec90aab78ad95ee6ed1b00b3d78d0f1a9e131f 100644 --- a/flutter/examples/api/test/widgets/dismissible/dismissible.0_test.dart +++ b/flutter/examples/api/test/widgets/dismissible/dismissible.0_test.dart @@ -3,8 +3,7 @@ // found in the LICENSE file. import 'package:flutter/material.dart'; -import 'package:flutter_api_samples/widgets/dismissible/dismissible.0.dart' - as example; +import 'package:flutter_api_samples/widgets/dismissible/dismissible.0.dart' as example; import 'package:flutter_test/flutter_test.dart'; void main() { @@ -25,57 +24,47 @@ void main() { await tester.drag(finder, offset); } - testWidgets( - 'ListTiles can be dismissed from right to left', - (WidgetTester tester) async { - await tester.pumpWidget( - const example.DismissibleExampleApp(), - ); + testWidgets('ListTiles can be dismissed from right to left', (WidgetTester tester) async { + await tester.pumpWidget(const example.DismissibleExampleApp()); - for (final int index in [0, 33, 66, 99]) { - final ValueKey key = ValueKey(index); + for (final int index in [0, 33, 66, 99]) { + final ValueKey key = ValueKey(index); - await tester.scrollUntilVisible(find.byKey(key), 100); + await tester.scrollUntilVisible(find.byKey(key), 100); - expect(find.byKey(key), findsOneWidget); + expect(find.byKey(key), findsOneWidget); - await dismissHorizontally( - tester: tester, - finder: find.byKey(key), - direction: AxisDirection.left, - ); + await dismissHorizontally( + tester: tester, + finder: find.byKey(key), + direction: AxisDirection.left, + ); - await tester.pumpAndSettle(); + await tester.pumpAndSettle(); - expect(find.byKey(key), findsNothing); - } - }, - ); + expect(find.byKey(key), findsNothing); + } + }); - testWidgets( - 'ListTiles can be dismissed from left to right', - (WidgetTester tester) async { - await tester.pumpWidget( - const example.DismissibleExampleApp(), - ); + testWidgets('ListTiles can be dismissed from left to right', (WidgetTester tester) async { + await tester.pumpWidget(const example.DismissibleExampleApp()); - for (final int index in [0, 33, 66, 99]) { - final ValueKey key = ValueKey(index); + for (final int index in [0, 33, 66, 99]) { + final ValueKey key = ValueKey(index); - await tester.scrollUntilVisible(find.byKey(key), 100); + await tester.scrollUntilVisible(find.byKey(key), 100); - expect(find.byKey(key), findsOneWidget); + expect(find.byKey(key), findsOneWidget); - await dismissHorizontally( - tester: tester, - finder: find.byKey(key), - direction: AxisDirection.right, - ); + await dismissHorizontally( + tester: tester, + finder: find.byKey(key), + direction: AxisDirection.right, + ); - await tester.pumpAndSettle(); + await tester.pumpAndSettle(); - expect(find.byKey(key), findsNothing); - } - }, - ); + expect(find.byKey(key), findsNothing); + } + }); } diff --git a/flutter/examples/api/test/widgets/drag_target/draggable.0_test.dart b/flutter/examples/api/test/widgets/drag_target/draggable.0_test.dart index 6773ed2a73eb003e2287c895a3ca238dc57cace8..d61e24789f8c7acbbd610895db936ffbe23e05d5 100644 --- a/flutter/examples/api/test/widgets/drag_target/draggable.0_test.dart +++ b/flutter/examples/api/test/widgets/drag_target/draggable.0_test.dart @@ -3,15 +3,11 @@ // found in the LICENSE file. import 'package:flutter/material.dart'; -import 'package:flutter_api_samples/widgets/drag_target/draggable.0.dart' - as example; +import 'package:flutter_api_samples/widgets/drag_target/draggable.0.dart' as example; import 'package:flutter_test/flutter_test.dart'; void main() { - Finder findContainerWith({ - required Finder child, - required Color color, - }) { + Finder findContainerWith({required Finder child, required Color color}) { return find.ancestor( of: child, matching: find.byWidgetPredicate( @@ -21,33 +17,25 @@ void main() { } testWidgets('Verify initial state', (WidgetTester tester) async { - await tester.pumpWidget( - const example.DraggableExampleApp(), - ); + await tester.pumpWidget(const example.DraggableExampleApp()); expect(find.text('Draggable Sample'), findsOneWidget); expect( - findContainerWith( - color: Colors.lightGreenAccent, - child: find.text('Draggable'), - ), + findContainerWith(color: Colors.lightGreenAccent, child: find.text('Draggable')), findsOneWidget, ); expect( - findContainerWith( - color: Colors.cyan, - child: find.text('Value is updated to: 0'), - ), + findContainerWith(color: Colors.cyan, child: find.text('Value is updated to: 0')), findsOneWidget, ); }); - testWidgets('Verify correct containers are displayed while dragging', (WidgetTester tester) async { - await tester.pumpWidget( - const example.DraggableExampleApp(), - ); + testWidgets('Verify correct containers are displayed while dragging', ( + WidgetTester tester, + ) async { + await tester.pumpWidget(const example.DraggableExampleApp()); final Finder idleContainer = findContainerWith( color: Colors.lightGreenAccent, @@ -66,9 +54,7 @@ void main() { expect(draggingContainer, findsNothing); expect(feedbackContainer, findsNothing); - final TestGesture gesture = await tester.startGesture( - tester.getCenter(idleContainer), - ); + final TestGesture gesture = await tester.startGesture(tester.getCenter(idleContainer)); await tester.pump(); expect(idleContainer, findsNothing); @@ -90,10 +76,10 @@ void main() { expect(feedbackContainer, findsNothing); }); - testWidgets('Dropping Draggable over DragTarget updates the counter', (WidgetTester tester) async { - await tester.pumpWidget( - const example.DraggableExampleApp(), - ); + testWidgets('Dropping Draggable over DragTarget updates the counter', ( + WidgetTester tester, + ) async { + await tester.pumpWidget(const example.DraggableExampleApp()); final Finder draggable = find.byType(Draggable); final Finder target = find.byType(DragTarget); @@ -101,9 +87,7 @@ void main() { int counter = 0; for (int i = 0; i < 5; i++) { - final TestGesture gesture = await tester.startGesture( - tester.getCenter(draggable), - ); + final TestGesture gesture = await tester.startGesture(tester.getCenter(draggable)); await gesture.moveTo(tester.getCenter(target)); await gesture.up(); await tester.pump(); @@ -111,10 +95,7 @@ void main() { counter += 10; expect( - findContainerWith( - color: Colors.cyan, - child: find.text('Value is updated to: $counter'), - ), + findContainerWith(color: Colors.cyan, child: find.text('Value is updated to: $counter')), findsOneWidget, ); } diff --git a/flutter/examples/api/test/widgets/draggable_scrollable_sheet/draggable_scrollable_sheet.0_test.dart b/flutter/examples/api/test/widgets/draggable_scrollable_sheet/draggable_scrollable_sheet.0_test.dart index da365dc6cbe0490286fb2ab230fe852126665564..3a0eabf0e8651d216c2d3a50d9eec32682bd6b2b 100644 --- a/flutter/examples/api/test/widgets/draggable_scrollable_sheet/draggable_scrollable_sheet.0_test.dart +++ b/flutter/examples/api/test/widgets/draggable_scrollable_sheet/draggable_scrollable_sheet.0_test.dart @@ -3,14 +3,13 @@ // found in the LICENSE file. import 'package:flutter/material.dart'; -import 'package:flutter_api_samples/widgets/draggable_scrollable_sheet/draggable_scrollable_sheet.0.dart' as example; +import 'package:flutter_api_samples/widgets/draggable_scrollable_sheet/draggable_scrollable_sheet.0.dart' + as example; import 'package:flutter_test/flutter_test.dart'; void main() { testWidgets('Test DraggableScrollableSheet initial state', (WidgetTester tester) async { - await tester.pumpWidget( - const example.DraggableScrollableSheetExampleApp(), - ); + await tester.pumpWidget(const example.DraggableScrollableSheetExampleApp()); final Finder sheetFinder = find.byType(DraggableScrollableSheet); @@ -22,42 +21,48 @@ void main() { expect(draggableSheet.initialChildSize, 0.5); }); - testWidgets('Test DraggableScrollableSheet drag behavior on mobile platforms', (WidgetTester tester) async { - await tester.pumpWidget( - const example.DraggableScrollableSheetExampleApp(), - ); + testWidgets( + 'Test DraggableScrollableSheet drag behavior on mobile platforms', + (WidgetTester tester) async { + await tester.pumpWidget(const example.DraggableScrollableSheetExampleApp()); - // Verify that ListView is visible - final Finder listViewFinder = find.byType(ListView); - expect(listViewFinder, findsOneWidget); + // Verify that ListView is visible + final Finder listViewFinder = find.byType(ListView); + expect(listViewFinder, findsOneWidget); - // Get the initial size of the ListView - final Size listViewInitialSize = tester.getSize(listViewFinder); + // Get the initial size of the ListView + final Size listViewInitialSize = tester.getSize(listViewFinder); - // Drag the the sheet from anywhere inside the sheet to change the sheet position - await tester.drag(listViewFinder, const Offset(0.0, -100.0)); - await tester.pump(); + // Drag the sheet from anywhere inside the sheet to change the sheet position + await tester.drag(listViewFinder, const Offset(0.0, -100.0)); + await tester.pump(); - // Verify that the ListView is expanded - final Size listViewCurrentSize = tester.getSize(listViewFinder); - expect(listViewCurrentSize.height, greaterThan(listViewInitialSize.height)); - }, variant: TargetPlatformVariant.mobile()); + // Verify that the ListView is expanded + final Size listViewCurrentSize = tester.getSize(listViewFinder); + expect(listViewCurrentSize.height, greaterThan(listViewInitialSize.height)); + }, + variant: TargetPlatformVariant.mobile(), + ); - testWidgets('Test DraggableScrollableSheet drag behavior on desktop platforms', (WidgetTester tester) async { - await tester.pumpWidget( - const example.DraggableScrollableSheetExampleApp(), - ); + testWidgets( + 'Test DraggableScrollableSheet drag behavior on desktop platforms', + (WidgetTester tester) async { + await tester.pumpWidget(const example.DraggableScrollableSheetExampleApp()); - // Verify that Grabber is visible - final Finder grabberFinder = find.byType(example.Grabber); - expect(grabberFinder, findsOneWidget); + // Verify that Grabber is visible + final Finder grabberFinder = find.byType(example.Grabber); + expect(grabberFinder, findsOneWidget); - // Drag the Grabber to change the sheet position - await tester.drag(grabberFinder, const Offset(0.0, -100.0)); - await tester.pump(); + // Drag the Grabber to change the sheet position + await tester.drag(grabberFinder, const Offset(0.0, -100.0)); + await tester.pump(); - // Verify that the DraggableScrollableSheet's initialChildSize is updated - final DraggableScrollableSheet draggableSheet = tester.widget(find.byType(DraggableScrollableSheet)); - expect(draggableSheet.initialChildSize, isNot(0.5)); - }, variant: TargetPlatformVariant.desktop()); + // Verify that the DraggableScrollableSheet's initialChildSize is updated + final DraggableScrollableSheet draggableSheet = tester.widget( + find.byType(DraggableScrollableSheet), + ); + expect(draggableSheet.initialChildSize, isNot(0.5)); + }, + variant: TargetPlatformVariant.desktop(), + ); } diff --git a/flutter/examples/api/test/widgets/editable_text/editable_text.on_changed.0_test.dart b/flutter/examples/api/test/widgets/editable_text/editable_text.on_changed.0_test.dart index 6bb420d04f335d28d4371f5ee772d99093d1a6a4..42587d1af2b89519e557d79009df7a37043b8f5b 100644 --- a/flutter/examples/api/test/widgets/editable_text/editable_text.on_changed.0_test.dart +++ b/flutter/examples/api/test/widgets/editable_text/editable_text.on_changed.0_test.dart @@ -9,21 +9,14 @@ import 'package:flutter_test/flutter_test.dart'; void main() { testWidgets('Verify correct labels are displayed', (WidgetTester tester) async { - await tester.pumpWidget( - const example.OnChangedExampleApp(), - ); + await tester.pumpWidget(const example.OnChangedExampleApp()); - expect( - find.text('What number comes next in the sequence?'), - findsOneWidget, - ); + expect(find.text('What number comes next in the sequence?'), findsOneWidget); expect(find.text('1, 1, 2, 3, 5, 8...?'), findsOneWidget); }); testWidgets('Does not show dialog when answer is not correct', (WidgetTester tester) async { - await tester.pumpWidget( - const example.OnChangedExampleApp(), - ); + await tester.pumpWidget(const example.OnChangedExampleApp()); await tester.enterText(find.byType(TextField), '33'); await tester.pumpAndSettle(); @@ -32,9 +25,7 @@ void main() { }); testWidgets('Shows dialog when answer is correct', (WidgetTester tester) async { - await tester.pumpWidget( - const example.OnChangedExampleApp(), - ); + await tester.pumpWidget(const example.OnChangedExampleApp()); await tester.enterText(find.byType(TextField), '13'); await tester.pumpAndSettle(); @@ -46,21 +37,14 @@ void main() { }); testWidgets('Closes dialog on OK button tap', (WidgetTester tester) async { - await tester.pumpWidget( - const example.OnChangedExampleApp(), - ); + await tester.pumpWidget(const example.OnChangedExampleApp()); await tester.enterText(find.byType(TextField), '13'); await tester.pumpAndSettle(); expect(find.byType(AlertDialog), findsOneWidget); - await tester.tap( - find.ancestor( - of: find.text('OK'), - matching: find.byType(TextButton), - ), - ); + await tester.tap(find.ancestor(of: find.text('OK'), matching: find.byType(TextButton))); await tester.pumpAndSettle(); expect(find.byType(AlertDialog), findsNothing); diff --git a/flutter/examples/api/test/widgets/editable_text/editable_text.on_content_inserted.0_test.dart b/flutter/examples/api/test/widgets/editable_text/editable_text.on_content_inserted.0_test.dart index a3b76b30f06446a904c5d604ef2173e7a59a271b..db987d54d9ddd94f8f8a5cc11d2fde494ef73c78 100644 --- a/flutter/examples/api/test/widgets/editable_text/editable_text.on_content_inserted.0_test.dart +++ b/flutter/examples/api/test/widgets/editable_text/editable_text.on_content_inserted.0_test.dart @@ -6,14 +6,13 @@ import 'dart:convert'; import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; -import 'package:flutter_api_samples/widgets/editable_text/editable_text.on_content_inserted.0.dart' as example; +import 'package:flutter_api_samples/widgets/editable_text/editable_text.on_content_inserted.0.dart' + as example; import 'package:flutter_test/flutter_test.dart'; void main() { testWidgets('Image.memory displays inserted content', (WidgetTester tester) async { - await tester.pumpWidget( - const example.KeyboardInsertedContentApp(), - ); + await tester.pumpWidget(const example.KeyboardInsertedContentApp()); expect(find.text('Keyboard Inserted Content Sample'), findsOneWidget); @@ -23,16 +22,135 @@ void main() { const String uri = 'content://com.google.android.inputmethod.latin.fileprovider/test.png'; const List kBlueSquarePng = [ - 0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a, 0x00, 0x00, 0x00, 0x0d, 0x49, - 0x48, 0x44, 0x52, 0x00, 0x00, 0x00, 0x32, 0x00, 0x00, 0x00, 0x32, 0x08, 0x06, - 0x00, 0x00, 0x00, 0x1e, 0x3f, 0x88, 0xb1, 0x00, 0x00, 0x00, 0x48, 0x49, 0x44, - 0x41, 0x54, 0x78, 0xda, 0xed, 0xcf, 0x31, 0x0d, 0x00, 0x30, 0x08, 0x00, 0xb0, - 0x61, 0x63, 0x2f, 0xfe, 0x2d, 0x61, 0x05, 0x34, 0xf0, 0x92, 0xd6, 0x41, 0x23, - 0x7f, 0xf5, 0x3b, 0x20, 0x44, 0x44, 0x44, 0x44, 0x44, 0x44, 0x44, 0x44, 0x44, - 0x44, 0x44, 0x44, 0x44, 0x44, 0x44, 0x44, 0x44, 0x44, 0x44, 0x44, 0x44, 0x44, - 0x44, 0x44, 0x44, 0x44, 0x44, 0x44, 0x44, 0x44, 0x44, 0x44, 0x44, 0x44, 0x44, - 0x44, 0x44, 0x44, 0x36, 0x06, 0x03, 0x6e, 0x69, 0x47, 0x12, 0x8e, 0xea, 0xaa, - 0x00, 0x00, 0x00, 0x00, 0x49, 0x45, 0x4e, 0x44, 0xae, 0x42, 0x60, 0x82, + 0x89, + 0x50, + 0x4e, + 0x47, + 0x0d, + 0x0a, + 0x1a, + 0x0a, + 0x00, + 0x00, + 0x00, + 0x0d, + 0x49, + 0x48, + 0x44, + 0x52, + 0x00, + 0x00, + 0x00, + 0x32, + 0x00, + 0x00, + 0x00, + 0x32, + 0x08, + 0x06, + 0x00, + 0x00, + 0x00, + 0x1e, + 0x3f, + 0x88, + 0xb1, + 0x00, + 0x00, + 0x00, + 0x48, + 0x49, + 0x44, + 0x41, + 0x54, + 0x78, + 0xda, + 0xed, + 0xcf, + 0x31, + 0x0d, + 0x00, + 0x30, + 0x08, + 0x00, + 0xb0, + 0x61, + 0x63, + 0x2f, + 0xfe, + 0x2d, + 0x61, + 0x05, + 0x34, + 0xf0, + 0x92, + 0xd6, + 0x41, + 0x23, + 0x7f, + 0xf5, + 0x3b, + 0x20, + 0x44, + 0x44, + 0x44, + 0x44, + 0x44, + 0x44, + 0x44, + 0x44, + 0x44, + 0x44, + 0x44, + 0x44, + 0x44, + 0x44, + 0x44, + 0x44, + 0x44, + 0x44, + 0x44, + 0x44, + 0x44, + 0x44, + 0x44, + 0x44, + 0x44, + 0x44, + 0x44, + 0x44, + 0x44, + 0x44, + 0x44, + 0x44, + 0x44, + 0x44, + 0x44, + 0x44, + 0x44, + 0x44, + 0x36, + 0x06, + 0x03, + 0x6e, + 0x69, + 0x47, + 0x12, + 0x8e, + 0xea, + 0xaa, + 0x00, + 0x00, + 0x00, + 0x00, + 0x49, + 0x45, + 0x4e, + 0x44, + 0xae, + 0x42, + 0x60, + 0x82, ]; final ByteData? messageBytes = const JSONMessageCodec().encodeMessage({ 'args': [ @@ -47,7 +165,7 @@ void main() { await tester.binding.defaultBinaryMessenger.handlePlatformMessage( 'flutter/textinput', messageBytes, - (ByteData? _) {}, + (ByteData? _) {}, ); } catch (_) {} diff --git a/flutter/examples/api/test/widgets/editable_text/text_editing_controller.0_test.dart b/flutter/examples/api/test/widgets/editable_text/text_editing_controller.0_test.dart index 11737ed0240e7b37be1b5174cc6e1d6bf83f7c40..3eee9e6519b57fd198faceaf31fda600b597a398 100644 --- a/flutter/examples/api/test/widgets/editable_text/text_editing_controller.0_test.dart +++ b/flutter/examples/api/test/widgets/editable_text/text_editing_controller.0_test.dart @@ -9,9 +9,7 @@ import 'package:flutter_test/flutter_test.dart'; void main() { testWidgets('Forces text to be lower case', (WidgetTester tester) async { - await tester.pumpWidget( - const example.TextEditingControllerExampleApp(), - ); + await tester.pumpWidget(const example.TextEditingControllerExampleApp()); const String input = 'Almost Everything Is a WIDGET! 💙'; @@ -26,9 +24,7 @@ void main() { }); testWidgets('Keeps the caret at the end of the input', (WidgetTester tester) async { - await tester.pumpWidget( - const example.TextEditingControllerExampleApp(), - ); + await tester.pumpWidget(const example.TextEditingControllerExampleApp()); const String input = 'flutter'; @@ -41,17 +37,12 @@ void main() { final TextEditingController controller = textField.controller!; // Verify that the caret positioned at the end of the input. - expect( - controller.selection, - const TextSelection.collapsed(offset: input.length), - ); + expect(controller.selection, const TextSelection.collapsed(offset: input.length)); final RenderBox box = tester.renderObject(find.byType(TextFormField)); // Calculate the center-left point of the field. - final Offset centerLeftPoint = box.localToGlobal( - Offset(0, box.size.height / 2), - ); + final Offset centerLeftPoint = box.localToGlobal(Offset(0, box.size.height / 2)); // Tap on the center-left point of the field to try to change the caret // position. @@ -59,9 +50,6 @@ void main() { await tester.pump(); // Verify that the caret position remains unchanged. - expect( - controller.selection, - const TextSelection.collapsed(offset: input.length), - ); + expect(controller.selection, const TextSelection.collapsed(offset: input.length)); }); } diff --git a/flutter/examples/api/test/widgets/editable_text/text_editing_controller.1_test.dart b/flutter/examples/api/test/widgets/editable_text/text_editing_controller.1_test.dart index c2b00d9ad9d890d9bda3aac370bdccb70f4a29de..e45791b0f375f9df548d438aaef710c078baaa8d 100644 --- a/flutter/examples/api/test/widgets/editable_text/text_editing_controller.1_test.dart +++ b/flutter/examples/api/test/widgets/editable_text/text_editing_controller.1_test.dart @@ -3,14 +3,13 @@ // found in the LICENSE file. import 'package:flutter/material.dart'; -import 'package:flutter_api_samples/widgets/editable_text/text_editing_controller.1.dart' as example; +import 'package:flutter_api_samples/widgets/editable_text/text_editing_controller.1.dart' + as example; import 'package:flutter_test/flutter_test.dart'; void main() { testWidgets('Initial selection is collapsed at offset 0', (WidgetTester tester) async { - await tester.pumpWidget( - const example.TextEditingControllerExampleApp(), - ); + await tester.pumpWidget(const example.TextEditingControllerExampleApp()); final EditableText editableText = tester.widget(find.byType(EditableText)); final TextEditingController controller = editableText.controller; diff --git a/flutter/examples/api/test/widgets/focus_manager/focus_node.0_test.dart b/flutter/examples/api/test/widgets/focus_manager/focus_node.0_test.dart index bd017976f727dd12f36a61212b3a16855a9bd187..47c0b9d7ce66fb9e53b28f20f84057e3b8fce297 100644 --- a/flutter/examples/api/test/widgets/focus_manager/focus_node.0_test.dart +++ b/flutter/examples/api/test/widgets/focus_manager/focus_node.0_test.dart @@ -4,153 +4,127 @@ import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; -import 'package:flutter_api_samples/widgets/focus_manager/focus_node.0.dart' - as example; +import 'package:flutter_api_samples/widgets/focus_manager/focus_node.0.dart' as example; import 'package:flutter_test/flutter_test.dart'; void main() { - testWidgets( - 'FocusNode gets focused and unfocused on ColorfulButton tap', - (WidgetTester tester) async { - await tester.pumpWidget( - const example.FocusNodeExampleApp(), - ); + testWidgets('FocusNode gets focused and unfocused on ColorfulButton tap', ( + WidgetTester tester, + ) async { + await tester.pumpWidget(const example.FocusNodeExampleApp()); - final Element button = tester.element( - find.byType(example.ColorfulButton), - ); + final Element button = tester.element(find.byType(example.ColorfulButton)); - expect( - tester.binding.focusManager.primaryFocus?.context, - isNot(equals(button)), - ); + expect(tester.binding.focusManager.primaryFocus?.context, isNot(equals(button))); - // Tapping on ColorfulButton to focus on FocusNode. - await tester.tap(find.byType(example.ColorfulButton)); - await tester.pump(); + // Tapping on ColorfulButton to focus on FocusNode. + await tester.tap(find.byType(example.ColorfulButton)); + await tester.pump(); - expect( - tester.binding.focusManager.primaryFocus?.context, - equals(button), - ); + expect(tester.binding.focusManager.primaryFocus?.context, equals(button)); - // Tapping on ColorfulButton to unfocus from FocusNode. - await tester.tap(find.byType(example.ColorfulButton)); - await tester.pump(); + // Tapping on ColorfulButton to unfocus from FocusNode. + await tester.tap(find.byType(example.ColorfulButton)); + await tester.pump(); - expect( - tester.binding.focusManager.primaryFocus?.context, - isNot(equals(button)), - ); - }, - ); + expect(tester.binding.focusManager.primaryFocus?.context, isNot(equals(button))); + }); - testWidgets( - 'FocusNode updates the text label when focused or unfocused', - (WidgetTester tester) async { - await tester.pumpWidget( - const example.FocusNodeExampleApp(), - ); + testWidgets('FocusNode updates the text label when focused or unfocused', ( + WidgetTester tester, + ) async { + await tester.pumpWidget(const example.FocusNodeExampleApp()); - expect(find.text('Press to focus'), findsOneWidget); - expect(find.text("I'm in color! Press R,G,B!"), findsNothing); + expect(find.text('Press to focus'), findsOneWidget); + expect(find.text("I'm in color! Press R,G,B!"), findsNothing); - // Tapping on ColorfulButton to focus on FocusNode. - await tester.tap(find.byType(example.ColorfulButton)); - await tester.pump(); + // Tapping on ColorfulButton to focus on FocusNode. + await tester.tap(find.byType(example.ColorfulButton)); + await tester.pump(); - expect(find.text('Press to focus'), findsNothing); - expect(find.text("I'm in color! Press R,G,B!"), findsOneWidget); + expect(find.text('Press to focus'), findsNothing); + expect(find.text("I'm in color! Press R,G,B!"), findsOneWidget); - // Tapping on ColorfulButton to unfocus from FocusNode. - await tester.tap(find.byType(example.ColorfulButton)); - await tester.pump(); + // Tapping on ColorfulButton to unfocus from FocusNode. + await tester.tap(find.byType(example.ColorfulButton)); + await tester.pump(); - expect(find.text('Press to focus'), findsOneWidget); - expect(find.text("I'm in color! Press R,G,B!"), findsNothing); - }, - ); + expect(find.text('Press to focus'), findsOneWidget); + expect(find.text("I'm in color! Press R,G,B!"), findsNothing); + }); - testWidgets( - 'FocusNode updates color of the Container according to the key events when focused', - (WidgetTester tester) async { - await tester.pumpWidget( - const example.FocusNodeExampleApp(), - ); + testWidgets('FocusNode updates color of the Container according to the key events when focused', ( + WidgetTester tester, + ) async { + await tester.pumpWidget(const example.FocusNodeExampleApp()); - // Tapping on ColorfulButton to focus on FocusNode. - await tester.tap(find.byType(example.ColorfulButton)); - await tester.pump(); + // Tapping on ColorfulButton to focus on FocusNode. + await tester.tap(find.byType(example.ColorfulButton)); + await tester.pump(); - final Finder containerFinder = find.descendant( - of: find.byType(example.ColorfulButton), - matching: find.byType(Container), - ); + final Finder containerFinder = find.descendant( + of: find.byType(example.ColorfulButton), + matching: find.byType(Container), + ); - Container container = tester.widget(containerFinder); - expect(container.color, equals(Colors.white)); + Container container = tester.widget(containerFinder); + expect(container.color, equals(Colors.white)); - await tester.sendKeyEvent(LogicalKeyboardKey.keyR); - await tester.pump(); + await tester.sendKeyEvent(LogicalKeyboardKey.keyR); + await tester.pump(); - container = tester.widget(containerFinder); - expect(container.color, equals(Colors.red)); + container = tester.widget(containerFinder); + expect(container.color, equals(Colors.red)); - await tester.sendKeyEvent(LogicalKeyboardKey.keyG); - await tester.pump(); + await tester.sendKeyEvent(LogicalKeyboardKey.keyG); + await tester.pump(); - container = tester.widget(containerFinder); - expect(container.color, equals(Colors.green)); + container = tester.widget(containerFinder); + expect(container.color, equals(Colors.green)); - await tester.sendKeyEvent(LogicalKeyboardKey.keyB); - await tester.pump(); + await tester.sendKeyEvent(LogicalKeyboardKey.keyB); + await tester.pump(); - container = tester.widget(containerFinder); - expect(container.color, equals(Colors.blue)); - }, - ); + container = tester.widget(containerFinder); + expect(container.color, equals(Colors.blue)); + }); - testWidgets( - 'FocusNode does not listen to the key events when unfocused', - (WidgetTester tester) async { - await tester.pumpWidget( - const example.FocusNodeExampleApp(), - ); + testWidgets('FocusNode does not listen to the key events when unfocused', ( + WidgetTester tester, + ) async { + await tester.pumpWidget(const example.FocusNodeExampleApp()); - final Finder containerFinder = find.descendant( - of: find.byType(example.ColorfulButton), - matching: find.byType(Container), - ); + final Finder containerFinder = find.descendant( + of: find.byType(example.ColorfulButton), + matching: find.byType(Container), + ); - Container container = tester.widget(containerFinder); - expect(container.color, equals(Colors.white)); + Container container = tester.widget(containerFinder); + expect(container.color, equals(Colors.white)); - await tester.sendKeyEvent(LogicalKeyboardKey.keyR); - await tester.pump(); + await tester.sendKeyEvent(LogicalKeyboardKey.keyR); + await tester.pump(); - container = tester.widget(containerFinder); - expect(container.color, equals(Colors.white)); + container = tester.widget(containerFinder); + expect(container.color, equals(Colors.white)); - await tester.sendKeyEvent(LogicalKeyboardKey.keyG); - await tester.pump(); + await tester.sendKeyEvent(LogicalKeyboardKey.keyG); + await tester.pump(); - container = tester.widget(containerFinder); - expect(container.color, equals(Colors.white)); + container = tester.widget(containerFinder); + expect(container.color, equals(Colors.white)); - await tester.sendKeyEvent(LogicalKeyboardKey.keyB); - await tester.pump(); + await tester.sendKeyEvent(LogicalKeyboardKey.keyB); + await tester.pump(); - container = tester.widget(containerFinder); - expect(container.color, equals(Colors.white)); - }, - ); + container = tester.widget(containerFinder); + expect(container.color, equals(Colors.white)); + }); testWidgets( 'FocusNode sets color to the white when unfocused and sets it back to the selected one when focused', (WidgetTester tester) async { - await tester.pumpWidget( - const example.FocusNodeExampleApp(), - ); + await tester.pumpWidget(const example.FocusNodeExampleApp()); final Finder containerFinder = find.descendant( of: find.byType(example.ColorfulButton), diff --git a/flutter/examples/api/test/widgets/focus_manager/focus_node.unfocus.0_test.dart b/flutter/examples/api/test/widgets/focus_manager/focus_node.unfocus.0_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..171290fc94495bb103bd876fc8b1cc5663b46c9e --- /dev/null +++ b/flutter/examples/api/test/widgets/focus_manager/focus_node.unfocus.0_test.dart @@ -0,0 +1,72 @@ +// 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'; +import 'package:flutter_api_samples/widgets/focus_manager/focus_node.unfocus.0.dart' as example; +import 'package:flutter_test/flutter_test.dart'; + +void main() { + testWidgets('Unfocusing with UnfocusDisposition.scope gives the focus to the parent scope', ( + WidgetTester tester, + ) async { + await tester.pumpWidget(const example.UnfocusExampleApp()); + + // Focuses the first text field. + await tester.tap(find.byType(TextField).first); + await tester.pump(); + + // Changes the focus to the unfocus button. + for (int i = 0; i < 6; i++) { + await tester.sendKeyEvent(LogicalKeyboardKey.tab); + await tester.pump(); + } + + await tester.sendKeyEvent(LogicalKeyboardKey.enter); + await tester.pump(); + + await tester.sendKeyEvent(LogicalKeyboardKey.tab); + await tester.pump(); + + // After pressing tab once, the focus is on the first text field. + final EditableText firstEditableText = tester.firstWidget(find.byType(EditableText)); + expect(firstEditableText.focusNode.hasFocus, true); + }); + + testWidgets( + 'Unfocusing with UnfocusDisposition.previouslyFocusedChild gives the focus the previously focused child', + (WidgetTester tester) async { + await tester.pumpWidget(const example.UnfocusExampleApp()); + + // Focuses the first text field. + await tester.tap(find.byType(TextField).first); + await tester.pump(); + + // Changes the focus to the second radio button. + for (int i = 0; i < 5; i++) { + await tester.sendKeyEvent(LogicalKeyboardKey.tab); + await tester.pump(); + } + + await tester.sendKeyEvent(LogicalKeyboardKey.space); + await tester.pumpAndSettle(); + + // Changes the focus to the unfocus button. + await tester.sendKeyEvent(LogicalKeyboardKey.tab); + await tester.pump(); + + await tester.sendKeyEvent(LogicalKeyboardKey.enter); + await tester.pumpAndSettle(); + + // After pressing tab twice, the focus is on the first text field. + for (int i = 0; i < 2; i++) { + await tester.sendKeyEvent(LogicalKeyboardKey.tab); + await tester.pump(); + } + + final EditableText firstEditableText = tester.firstWidget(find.byType(EditableText)); + expect(firstEditableText.focusNode.hasFocus, true); + }, + ); +} diff --git a/flutter/examples/api/test/widgets/focus_scope/focus.0_test.dart b/flutter/examples/api/test/widgets/focus_scope/focus.0_test.dart index a42c3665e482ad143fe5142d8350bcb43af0d298..05c91cb64f91d1abb33cd7a3a3be416be1b7c0e9 100644 --- a/flutter/examples/api/test/widgets/focus_scope/focus.0_test.dart +++ b/flutter/examples/api/test/widgets/focus_scope/focus.0_test.dart @@ -4,8 +4,7 @@ import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; -import 'package:flutter_api_samples/widgets/focus_scope/focus.0.dart' - as example; +import 'package:flutter_api_samples/widgets/focus_scope/focus.0.dart' as example; import 'package:flutter_test/flutter_test.dart'; void main() { @@ -18,8 +17,7 @@ void main() { expect(find.text('Focus Sample'), findsOneWidget); expect(find.byType(Container), findsOneWidget); - final Container container = - tester.widget(find.byType(Container)); + final Container container = tester.widget(find.byType(Container)); expect(container.color, Colors.white); }); @@ -33,8 +31,7 @@ void main() { expect(find.text("I'm in color! Press R,G,B!"), findsOneWidget); expect(find.byType(Container), findsOneWidget); - final Container container = - tester.widget(find.byType(Container)); + final Container container = tester.widget(find.byType(Container)); expect(container.color, Colors.white); await tester.tap(find.text("I'm in color! Press R,G,B!")); diff --git a/flutter/examples/api/test/widgets/focus_scope/focus.1_test.dart b/flutter/examples/api/test/widgets/focus_scope/focus.1_test.dart index dcc7b83ed79c3472ccdba8933232aa4eefb4b0a5..3d5370a3d882bd56650bf8eb1e76f416cf5e95ed 100644 --- a/flutter/examples/api/test/widgets/focus_scope/focus.1_test.dart +++ b/flutter/examples/api/test/widgets/focus_scope/focus.1_test.dart @@ -4,96 +4,80 @@ import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; -import 'package:flutter_api_samples/widgets/focus_scope/focus.1.dart' - as example; +import 'package:flutter_api_samples/widgets/focus_scope/focus.1.dart' as example; import 'package:flutter_test/flutter_test.dart'; void main() { - testWidgets('FocusableText shows content and color depending on focus', - (WidgetTester tester) async { - await tester.pumpWidget(const MaterialApp( - home: Scaffold( - body: example.FocusableText( - 'Item 0', - autofocus: false, - ), - ), - )); + testWidgets('FocusableText shows content and color depending on focus', ( + WidgetTester tester, + ) async { + await tester.pumpWidget( + const MaterialApp(home: Scaffold(body: example.FocusableText('Item 0', autofocus: false))), + ); // Autofocus needs to check that no other node in the [FocusScope] is // focused and can only request focus for the second frame. await tester.pumpAndSettle(); - expect(find.descendant( - of: find.byType(example.FocusableText), - matching: find.byType(Focus), - ), findsOneWidget); + expect( + find.descendant(of: find.byType(example.FocusableText), matching: find.byType(Focus)), + findsOneWidget, + ); expect(find.text('Item 0'), findsOneWidget); expect(find.byType(Container), findsOneWidget); - final Container container1 = tester.widget( - find.byType(Container) - ); + final Container container1 = tester.widget(find.byType(Container)); expect(container1.color, Colors.white); - await tester.pumpWidget(const MaterialApp( - home: Scaffold( - body: example.FocusableText( - 'Item 1', - autofocus: true, - ), - ), - )); + await tester.pumpWidget( + const MaterialApp(home: Scaffold(body: example.FocusableText('Item 1', autofocus: true))), + ); await tester.pumpAndSettle(); final Finder focusableTextFinder2 = find.ancestor( of: find.text('Item 1'), matching: find.byType(example.FocusableText), ); - expect(tester.widget(find.descendant( - of: focusableTextFinder2, - matching: find.byType(Focus), - )).autofocus, isTrue); - final Container container2 = tester.widget(find.descendant( - of: focusableTextFinder2, - matching: find.byType(Container), - )); + expect( + tester + .widget(find.descendant(of: focusableTextFinder2, matching: find.byType(Focus))) + .autofocus, + isTrue, + ); + final Container container2 = tester.widget( + find.descendant(of: focusableTextFinder2, matching: find.byType(Container)), + ); expect(container2.color, Colors.red); }); - testWidgets('builds list showcasing focus traversal', - (WidgetTester tester) async { + testWidgets('builds list showcasing focus traversal', (WidgetTester tester) async { await tester.pumpWidget(const example.FocusExampleApp()); await tester.pumpAndSettle(); expect(find.byType(ListView), findsOneWidget); final Finder childFinder = find.descendant( - of: find.byType(ListView), - matching: find.byType(example.FocusableText), + of: find.byType(ListView), + matching: find.byType(example.FocusableText), ); expect(childFinder, findsAtLeastNWidgets(2)); - Container container0 = tester.widget(find.descendant( - of: childFinder.first, - matching: find.byType(Container), - )); - Container container1 = tester.widget(find.descendant( - of: childFinder.at(1), - matching: find.byType(Container), - )); + Container container0 = tester.widget( + find.descendant(of: childFinder.first, matching: find.byType(Container)), + ); + Container container1 = tester.widget( + find.descendant(of: childFinder.at(1), matching: find.byType(Container)), + ); expect(container0.color, Colors.red); expect(container1.color, Colors.white); await tester.sendKeyDownEvent(LogicalKeyboardKey.arrowDown); await tester.pumpAndSettle(); - container0 = tester.widget(find.descendant( - of: childFinder.first, - matching: find.byType(Container), - )); - container1 = tester.widget(find.descendant( - of: childFinder.at(1), - matching: find.byType(Container), - )); + container0 = tester.widget( + find.descendant(of: childFinder.first, matching: find.byType(Container)), + ); + container1 = tester.widget( + find.descendant(of: childFinder.at(1), matching: find.byType(Container)), + ); expect(container0.color, Colors.white); expect(container1.color, Colors.red); }); diff --git a/flutter/examples/api/test/widgets/focus_scope/focus.2_test.dart b/flutter/examples/api/test/widgets/focus_scope/focus.2_test.dart index 37c9f50f88675271aa26776eca7f99b52a220802..07313e796ed35a2908a7598e57d651a4d43e7718 100644 --- a/flutter/examples/api/test/widgets/focus_scope/focus.2_test.dart +++ b/flutter/examples/api/test/widgets/focus_scope/focus.2_test.dart @@ -3,8 +3,7 @@ // found in the LICENSE file. import 'package:flutter/material.dart'; -import 'package:flutter_api_samples/widgets/focus_scope/focus.2.dart' - as example; +import 'package:flutter_api_samples/widgets/focus_scope/focus.2.dart' as example; import 'package:flutter_test/flutter_test.dart'; void main() { @@ -27,10 +26,9 @@ void main() { for (int i = 0; i <= 10; i += 1) { expect(find.text('CHILD $i'), findsOneWidget); - final ActionChip chip = tester.widget(find.ancestor( - of: find.text('CHILD $i'), - matching: find.byType(ActionChip) - )); + final ActionChip chip = tester.widget( + find.ancestor(of: find.text('CHILD $i'), matching: find.byType(ActionChip)), + ); expect(chip.focusNode, isNotNull); expect(chip.focusNode!.hasPrimaryFocus, isTrue); expect(chip.focusNode!.debugLabel, 'Child $i'); diff --git a/flutter/examples/api/test/widgets/focus_scope/focus_scope.0_test.dart b/flutter/examples/api/test/widgets/focus_scope/focus_scope.0_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..c4dfb8aea936b03cc7d0fee1dedcaf571fbc0aa3 --- /dev/null +++ b/flutter/examples/api/test/widgets/focus_scope/focus_scope.0_test.dart @@ -0,0 +1,53 @@ +// 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'; +import 'package:flutter_api_samples/widgets/focus_scope/focus_scope.0.dart' as example; +import 'package:flutter_test/flutter_test.dart'; + +void main() { + bool hasFocus(WidgetTester tester, IconData icon) => + tester + .widget( + find.ancestor(of: find.byIcon(icon), matching: find.byType(IconButton)), + ) + .focusNode! + .hasFocus; + + testWidgets('The focus is restricted to the foreground', (WidgetTester tester) async { + await tester.pumpWidget(const example.FocusScopeExampleApp()); + + expect(find.text('FOREGROUND'), findsOne); + expect(hasFocus(tester, Icons.menu), true); + + await tester.sendKeyEvent(LogicalKeyboardKey.tab); + await tester.pump(); + + expect(hasFocus(tester, Icons.menu), true); + }); + + testWidgets('The background can be focused', (WidgetTester tester) async { + await tester.pumpWidget(const example.FocusScopeExampleApp()); + + expect(find.text('FOREGROUND'), findsOne); + expect(hasFocus(tester, Icons.menu), true); + + await tester.tap(find.byIcon(Icons.menu)); + await tester.pumpAndSettle(); + + expect(hasFocus(tester, Icons.close), true); + + await tester.sendKeyEvent(LogicalKeyboardKey.tab); + await tester.pump(); + + expect(hasFocus(tester, Icons.menu), false); + expect(hasFocus(tester, Icons.close), false); + + await tester.sendKeyEvent(LogicalKeyboardKey.tab); + await tester.pump(); + + expect(hasFocus(tester, Icons.close), true); + }); +} diff --git a/flutter/examples/api/test/widgets/focus_traversal/focus_traversal_group.0_test.dart b/flutter/examples/api/test/widgets/focus_traversal/focus_traversal_group.0_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..332ad800b4865dc49e6d6fb6b57bde84ff99b9c2 --- /dev/null +++ b/flutter/examples/api/test/widgets/focus_traversal/focus_traversal_group.0_test.dart @@ -0,0 +1,46 @@ +// 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'; +import 'package:flutter_api_samples/widgets/focus_traversal/focus_traversal_group.0.dart' + as example; +import 'package:flutter_test/flutter_test.dart'; + +void main() { + bool hasFocus(WidgetTester tester, String text) { + return Focus.of(tester.element(find.text(text))).hasPrimaryFocus; + } + + testWidgets('The focus updates should follow the focus traversal groups policy', ( + WidgetTester tester, + ) async { + await tester.pumpWidget(const example.FocusTraversalGroupExampleApp()); + + // Set the focus to the first button. + Focus.of(tester.element(find.text('num: 0'))).requestFocus(); + await tester.pump(); + + expect(hasFocus(tester, 'num: 0'), isTrue); + + const List focusOrder = [ + 'num: 1', + 'num: 2', + 'String: A', + 'String: B', + 'String: C', + 'ignored num: 3', + 'ignored num: 2', + 'ignored num: 1', + 'num: 0', + ]; + + for (final String text in focusOrder) { + await tester.sendKeyEvent(LogicalKeyboardKey.tab); + await tester.pump(); + + expect(hasFocus(tester, text), isTrue); + } + }); +} diff --git a/flutter/examples/api/test/widgets/focus_traversal/ordered_traversal_policy.0_test.dart b/flutter/examples/api/test/widgets/focus_traversal/ordered_traversal_policy.0_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..09e961bb5cfa89fc98a96f6146c4b2c80cb4a1c7 --- /dev/null +++ b/flutter/examples/api/test/widgets/focus_traversal/ordered_traversal_policy.0_test.dart @@ -0,0 +1,32 @@ +// 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'; +import 'package:flutter_api_samples/widgets/focus_traversal/ordered_traversal_policy.0.dart' + as example; +import 'package:flutter_test/flutter_test.dart'; + +void main() { + bool hasFocus(WidgetTester tester, String text) { + return Focus.of(tester.element(find.text(text))).hasPrimaryFocus; + } + + testWidgets('The focus updates should follow the focus traversal groups policy', ( + WidgetTester tester, + ) async { + await tester.pumpWidget(const example.OrderedTraversalPolicyExampleApp()); + + expect(hasFocus(tester, 'One'), isTrue); + + const List focusOrder = ['Two', 'Three', 'Four', 'Five', 'Six', 'One']; + + for (final String text in focusOrder) { + await tester.sendKeyEvent(LogicalKeyboardKey.tab); + await tester.pump(); + + expect(hasFocus(tester, text), isTrue); + } + }); +} diff --git a/flutter/examples/api/test/widgets/form/form.0_test.dart b/flutter/examples/api/test/widgets/form/form.0_test.dart index 0e51c6b30964a956273836e25c02627eaab3cfb5..55e5368acf1aff30f1385428324d19aea88c8679 100644 --- a/flutter/examples/api/test/widgets/form/form.0_test.dart +++ b/flutter/examples/api/test/widgets/form/form.0_test.dart @@ -8,9 +8,7 @@ import 'package:flutter_test/flutter_test.dart'; void main() { testWidgets('Form Smoke Test', (WidgetTester tester) async { - await tester.pumpWidget( - const example.FormExampleApp(), - ); + await tester.pumpWidget(const example.FormExampleApp()); expect(find.widgetWithText(AppBar, 'Form Sample'), findsOneWidget); final Finder textField = find.byType(TextField); diff --git a/flutter/examples/api/test/widgets/form/form.1_test.dart b/flutter/examples/api/test/widgets/form/form.1_test.dart index f9ccd71d521e8f6bfcba11795ea794a4171750ee..a5c7407332d3f615de85ba377722d7c22fab3a0e 100644 --- a/flutter/examples/api/test/widgets/form/form.1_test.dart +++ b/flutter/examples/api/test/widgets/form/form.1_test.dart @@ -8,9 +8,7 @@ import 'package:flutter_test/flutter_test.dart'; void main() { testWidgets('Can go back when form is clean', (WidgetTester tester) async { - await tester.pumpWidget( - const example.FormApp(), - ); + await tester.pumpWidget(const example.FormApp()); expect(find.text('Are you sure?'), findsNothing); @@ -21,9 +19,7 @@ void main() { }); testWidgets('Cannot go back when form is dirty', (WidgetTester tester) async { - await tester.pumpWidget( - const example.FormApp(), - ); + await tester.pumpWidget(const example.FormApp()); expect(find.text('Are you sure?'), findsNothing); diff --git a/flutter/examples/api/test/widgets/framework/build_owner.0_test.dart b/flutter/examples/api/test/widgets/framework/build_owner.0_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..8a254f0396400e4a16813f7e8438c9e6a1dd0be8 --- /dev/null +++ b/flutter/examples/api/test/widgets/framework/build_owner.0_test.dart @@ -0,0 +1,19 @@ +// 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_api_samples/widgets/framework/build_owner.0.dart' as example; +import 'package:flutter_test/flutter_test.dart'; + +void main() { + testWidgets('BuildOwnerExample displays the measured size', (WidgetTester tester) async { + await tester.pumpWidget(const example.BuildOwnerExample()); + + expect(find.text('Size(640.0, 480.0)'), findsOne); + }); + + test('The size of the widget is measured', () { + expect(example.measureWidget(const SizedBox(width: 234, height: 567)), const Size(234, 567)); + }); +} diff --git a/flutter/examples/api/test/widgets/framework/error_widget.0_test.dart b/flutter/examples/api/test/widgets/framework/error_widget.0_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..0d4ea298d6bb4da0c4a8e0490f4c4a518357e5f3 --- /dev/null +++ b/flutter/examples/api/test/widgets/framework/error_widget.0_test.dart @@ -0,0 +1,55 @@ +// 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_api_samples/widgets/framework/error_widget.0.dart' as example; +import 'package:flutter_test/flutter_test.dart'; + +void main() { + testWidgets('ErrorWidget is displayed in debug mode', (WidgetTester tester) async { + final ErrorWidgetBuilder oldBuilder = ErrorWidget.builder; + ErrorWidget.builder = (FlutterErrorDetails details) { + return ErrorWidget(details.exception); + }; + await tester.pumpWidget(const example.ErrorWidgetExampleApp()); + + expect(find.widgetWithText(AppBar, 'ErrorWidget Sample'), findsOne); + + await tester.tap(find.widgetWithText(TextButton, 'Error Prone')); + await tester.pump(); + + expectLater(tester.takeException(), isInstanceOf()); + + final Finder errorWidget = find.byType(ErrorWidget); + expect(errorWidget, findsOneWidget); + final ErrorWidget error = tester.firstWidget(errorWidget); + expect(error.message, 'Exception: oh no, an error'); + + // Restore the ErrorWidget to conclude the test. + ErrorWidget.builder = oldBuilder; + }); + + testWidgets('ErrorWidget is displayed in release mode', (WidgetTester tester) async { + final ErrorWidgetBuilder oldBuilder = ErrorWidget.builder; + ErrorWidget.builder = (FlutterErrorDetails details) { + return example.ReleaseModeErrorWidget(details: details); + }; + await tester.pumpWidget(const example.ErrorWidgetExampleApp()); + + expect(find.widgetWithText(AppBar, 'ErrorWidget Sample'), findsOne); + + await tester.tap(find.widgetWithText(TextButton, 'Error Prone')); + await tester.pump(); + + expectLater(tester.takeException(), isInstanceOf()); + + final Finder errorTextFinder = find.textContaining('Error!\nException: oh no, an error'); + expect(errorTextFinder, findsOneWidget); + final Text errorText = tester.firstWidget(errorTextFinder); + expect(errorText.style?.color, Colors.yellow); + + // Restore the ErrorWidget to conclude the test. + ErrorWidget.builder = oldBuilder; + }); +} diff --git a/flutter/examples/api/test/widgets/gesture_detector/gesture_detector.0_test.dart b/flutter/examples/api/test/widgets/gesture_detector/gesture_detector.0_test.dart index 50cbe2b3f978b9c189195d654d4dc8a68ff7a4f5..53e69bcb227d4999e5abe0b816f11bd7b3fd1d9b 100644 --- a/flutter/examples/api/test/widgets/gesture_detector/gesture_detector.0_test.dart +++ b/flutter/examples/api/test/widgets/gesture_detector/gesture_detector.0_test.dart @@ -3,38 +3,32 @@ // found in the LICENSE file. import 'package:flutter/material.dart'; -import 'package:flutter_api_samples/widgets/gesture_detector/gesture_detector.0.dart' - as example; +import 'package:flutter_api_samples/widgets/gesture_detector/gesture_detector.0.dart' as example; import 'package:flutter_test/flutter_test.dart'; void main() { - testWidgets( - 'GestureDetector updates icon color and text on tap', - (WidgetTester tester) async { - await tester.pumpWidget( - const example.GestureDetectorExampleApp(), - ); + testWidgets('GestureDetector updates icon color and text on tap', (WidgetTester tester) async { + await tester.pumpWidget(const example.GestureDetectorExampleApp()); - Icon icon = tester.widget(find.byIcon(Icons.lightbulb_outline)); + Icon icon = tester.widget(find.byIcon(Icons.lightbulb_outline)); - expect(find.text('TURN LIGHT ON'), findsOneWidget); - expect(icon.color, Colors.black); + expect(find.text('TURN LIGHT ON'), findsOneWidget); + expect(icon.color, Colors.black); - await tester.tap(find.byType(GestureDetector)); - await tester.pump(); + await tester.tap(find.byType(GestureDetector)); + await tester.pump(); - icon = tester.widget(find.byIcon(Icons.lightbulb_outline)); + icon = tester.widget(find.byIcon(Icons.lightbulb_outline)); - expect(find.text('TURN LIGHT OFF'), findsOneWidget); - expect(icon.color, Colors.yellow.shade600); + expect(find.text('TURN LIGHT OFF'), findsOneWidget); + expect(icon.color, Colors.yellow.shade600); - await tester.tap(find.byType(GestureDetector)); - await tester.pump(); + await tester.tap(find.byType(GestureDetector)); + await tester.pump(); - icon = tester.widget(find.byIcon(Icons.lightbulb_outline)); + icon = tester.widget(find.byIcon(Icons.lightbulb_outline)); - expect(find.text('TURN LIGHT ON'), findsOneWidget); - expect(icon.color, Colors.black); - }, - ); + expect(find.text('TURN LIGHT ON'), findsOneWidget); + expect(icon.color, Colors.black); + }); } diff --git a/flutter/examples/api/test/widgets/gesture_detector/gesture_detector.1_test.dart b/flutter/examples/api/test/widgets/gesture_detector/gesture_detector.1_test.dart index bf3dc25f216f7f9c8276bb4ba9d89e1f336d251d..d4b0d73f05d43e706478647a2fbbdeebce7f161d 100644 --- a/flutter/examples/api/test/widgets/gesture_detector/gesture_detector.1_test.dart +++ b/flutter/examples/api/test/widgets/gesture_detector/gesture_detector.1_test.dart @@ -3,50 +3,35 @@ // found in the LICENSE file. import 'package:flutter/material.dart'; -import 'package:flutter_api_samples/widgets/gesture_detector/gesture_detector.1.dart' - as example; +import 'package:flutter_api_samples/widgets/gesture_detector/gesture_detector.1.dart' as example; import 'package:flutter_test/flutter_test.dart'; void main() { - testWidgets( - 'GestureDetector updates Container color on tap', - (WidgetTester tester) async { - await tester.pumpWidget( - const example.GestureDetectorExampleApp(), - ); - - Container container = tester.widget( - find.ancestor( - of: find.byType(GestureDetector), - matching: find.byType(Container), - ), - ); - - expect(container.color, Colors.white); - - await tester.tap(find.byType(GestureDetector)); - await tester.pump(); - - container = tester.widget( - find.ancestor( - of: find.byType(GestureDetector), - matching: find.byType(Container), - ), - ); - - expect(container.color, Colors.yellow); - - await tester.tap(find.byType(GestureDetector)); - await tester.pump(); - - container = tester.widget( - find.ancestor( - of: find.byType(GestureDetector), - matching: find.byType(Container), - ), - ); - - expect(container.color, Colors.white); - }, - ); + testWidgets('GestureDetector updates Container color on tap', (WidgetTester tester) async { + await tester.pumpWidget(const example.GestureDetectorExampleApp()); + + Container container = tester.widget( + find.ancestor(of: find.byType(GestureDetector), matching: find.byType(Container)), + ); + + expect(container.color, Colors.white); + + await tester.tap(find.byType(GestureDetector)); + await tester.pump(); + + container = tester.widget( + find.ancestor(of: find.byType(GestureDetector), matching: find.byType(Container)), + ); + + expect(container.color, Colors.yellow); + + await tester.tap(find.byType(GestureDetector)); + await tester.pump(); + + container = tester.widget( + find.ancestor(of: find.byType(GestureDetector), matching: find.byType(Container)), + ); + + expect(container.color, Colors.white); + }); } diff --git a/flutter/examples/api/test/widgets/gesture_detector/gesture_detector.2_test.dart b/flutter/examples/api/test/widgets/gesture_detector/gesture_detector.2_test.dart index eb59b902eb876c475c0909e2dfe05bca0333f051..b00c77b29367075c71b9b271037ca0f73f26502d 100644 --- a/flutter/examples/api/test/widgets/gesture_detector/gesture_detector.2_test.dart +++ b/flutter/examples/api/test/widgets/gesture_detector/gesture_detector.2_test.dart @@ -3,12 +3,10 @@ // found in the LICENSE file. import 'package:flutter/material.dart'; -import 'package:flutter_api_samples/widgets/gesture_detector/gesture_detector.2.dart' - as example; +import 'package:flutter_api_samples/widgets/gesture_detector/gesture_detector.2.dart' as example; import 'package:flutter_test/flutter_test.dart'; void main() { - void expectBorders( WidgetTester tester, { required bool expectGreenHasBorder, @@ -30,14 +28,16 @@ void main() { void expectInnerGestureDetectorBehavior(WidgetTester tester, HitTestBehavior behavior) { // There is a third GestureDetector added by Scaffold. final Finder innerGestureDetectorFinder = find.byType(GestureDetector).at(1); - final GestureDetector innerGestureDetector = tester.firstWidget(innerGestureDetectorFinder); + final GestureDetector innerGestureDetector = tester.firstWidget( + innerGestureDetectorFinder, + ); expect(innerGestureDetector.behavior, behavior); } - testWidgets('Only the green Container shows a red border when tapped', (WidgetTester tester) async { - await tester.pumpWidget( - const example.NestedGestureDetectorsApp(), - ); + testWidgets('Only the green Container shows a red border when tapped', ( + WidgetTester tester, + ) async { + await tester.pumpWidget(const example.NestedGestureDetectorsApp()); final Finder greenFinder = find.byType(Container).first; final Offset greenTopLeftCorner = tester.getTopLeft(greenFinder); @@ -63,10 +63,10 @@ void main() { expectInnerGestureDetectorBehavior(tester, HitTestBehavior.opaque); }); - testWidgets('Only the yellow Container shows a red border when tapped', (WidgetTester tester) async { - await tester.pumpWidget( - const example.NestedGestureDetectorsApp(), - ); + testWidgets('Only the yellow Container shows a red border when tapped', ( + WidgetTester tester, + ) async { + await tester.pumpWidget(const example.NestedGestureDetectorsApp()); final Finder yellowFinder = find.byType(Container).last; final Offset yellowTopLeftCorner = tester.getTopLeft(yellowFinder); diff --git a/flutter/examples/api/test/widgets/gesture_detector/gesture_detector.3_test.dart b/flutter/examples/api/test/widgets/gesture_detector/gesture_detector.3_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..accbbc871a7c70084e1836db5bce9bdd130b7852 --- /dev/null +++ b/flutter/examples/api/test/widgets/gesture_detector/gesture_detector.3_test.dart @@ -0,0 +1,26 @@ +// 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/gestures.dart'; +import 'package:flutter/material.dart'; +import 'package:flutter_api_samples/widgets/gesture_detector/gesture_detector.3.dart' as example; +import 'package:flutter_test/flutter_test.dart'; + +void main() { + testWidgets('The red box always moves inside the green box', (WidgetTester tester) async { + await tester.pumpWidget(const example.DragBoundaryExampleApp()); + final Finder greenFinder = find.byType(Container).first; + final Finder redFinder = find.byType(Container).last; + final TestGesture drag = await tester.startGesture(tester.getCenter(redFinder)); + await tester.pump(kLongPressTimeout); + await drag.moveBy(const Offset(1000, 1000)); + await tester.pumpAndSettle(); + expect(tester.getBottomRight(redFinder), tester.getBottomRight(greenFinder)); + await drag.moveBy(const Offset(-2000, -2000)); + await tester.pumpAndSettle(); + expect(tester.getTopLeft(redFinder), tester.getTopLeft(greenFinder)); + await drag.up(); + await tester.pumpAndSettle(); + }); +} diff --git a/flutter/examples/api/test/widgets/hardware_keyboard/key_event_manager.0_test.dart b/flutter/examples/api/test/widgets/hardware_keyboard/key_event_manager.0_test.dart index 513c760a621afab7a949fb18c21a41df62755316..377e047b24c0b2386ec36d3d868ceed203a77433 100644 --- a/flutter/examples/api/test/widgets/hardware_keyboard/key_event_manager.0_test.dart +++ b/flutter/examples/api/test/widgets/hardware_keyboard/key_event_manager.0_test.dart @@ -4,27 +4,21 @@ import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; -import 'package:flutter_api_samples/widgets/hardware_keyboard/key_event_manager.0.dart' - as example; +import 'package:flutter_api_samples/widgets/hardware_keyboard/key_event_manager.0.dart' as example; import 'package:flutter_test/flutter_test.dart'; void main() { testWidgets('App tracks lifecycle states', (WidgetTester tester) async { Future getCapturedKey() async { final Widget textWidget = tester.firstWidget( - find.textContaining('is not handled by shortcuts.')); + find.textContaining('is not handled by shortcuts.'), + ); expect(textWidget, isA()); return (textWidget as Text).data!.split(' ').first; } await tester.pumpWidget( - const MaterialApp( - home: Scaffold( - body: Center( - child: example.FallbackDemo(), - ) - ), - ), + const MaterialApp(home: Scaffold(body: Center(child: example.FallbackDemo()))), ); // Focus on the first text field. diff --git a/flutter/examples/api/test/widgets/heroes/hero.0_test.dart b/flutter/examples/api/test/widgets/heroes/hero.0_test.dart index 058436ddb0936a49203726dd1e9441010b074cc8..3982b199bcde62faa85fd9a3979295a589d29f0b 100644 --- a/flutter/examples/api/test/widgets/heroes/hero.0_test.dart +++ b/flutter/examples/api/test/widgets/heroes/hero.0_test.dart @@ -8,9 +8,7 @@ import 'package:flutter_test/flutter_test.dart'; void main() { testWidgets('Has Hero animation', (WidgetTester tester) async { - await tester.pumpWidget( - const example.HeroApp(), - ); + await tester.pumpWidget(const example.HeroApp()); expect(find.text('Hero Sample'), findsOneWidget); await tester.tap(find.byType(Container)); diff --git a/flutter/examples/api/test/widgets/heroes/hero.1_test.dart b/flutter/examples/api/test/widgets/heroes/hero.1_test.dart index 1fab344d82902734e12800cf88247f09deb33048..c99626abc8f0bc1a8416f97ad92e82902cf863d5 100644 --- a/flutter/examples/api/test/widgets/heroes/hero.1_test.dart +++ b/flutter/examples/api/test/widgets/heroes/hero.1_test.dart @@ -8,9 +8,7 @@ import 'package:flutter_test/flutter_test.dart'; void main() { testWidgets('Hero flight animation with default rect tween', (WidgetTester tester) async { - await tester.pumpWidget( - const example.HeroApp(), - ); + await tester.pumpWidget(const example.HeroApp()); expect(find.text('Hero Sample'), findsOneWidget); await tester.tap(find.byType(ElevatedButton)); @@ -71,9 +69,7 @@ void main() { }); testWidgets('Hero flight animation with custom rect tween', (WidgetTester tester) async { - await tester.pumpWidget( - const example.HeroApp(), - ); + await tester.pumpWidget(const example.HeroApp()); expect(find.text('Hero Sample'), findsOneWidget); await tester.tap(find.byType(ElevatedButton)); diff --git a/flutter/examples/api/test/widgets/image/image.error_builder.0_test.dart b/flutter/examples/api/test/widgets/image/image.error_builder.0_test.dart index fa2e41fffa875fff576cb0a4a0f48c36b4ed079f..8bc3e55ca105ac752074884e11609ed0f18669ab 100644 --- a/flutter/examples/api/test/widgets/image/image.error_builder.0_test.dart +++ b/flutter/examples/api/test/widgets/image/image.error_builder.0_test.dart @@ -5,8 +5,7 @@ import 'dart:io'; import 'package:flutter/material.dart'; -import 'package:flutter_api_samples/widgets/image/image.error_builder.0.dart' - as example; +import 'package:flutter_api_samples/widgets/image/image.error_builder.0.dart' as example; import 'package:flutter_test/flutter_test.dart'; void main() { @@ -17,24 +16,17 @@ void main() { }); testWidgets('Has nonexistent url', (WidgetTester tester) async { - await tester.pumpWidget( - const example.ErrorBuilderExampleApp(), - ); + await tester.pumpWidget(const example.ErrorBuilderExampleApp()); await tester.pumpAndSettle(); final Image image = tester.widget(find.byType(Image)); final NetworkImage imageProvider = image.image as NetworkImage; - expect( - imageProvider.url, - equals('https://example.does.not.exist/image.jpg'), - ); + expect(imageProvider.url, equals('https://example.does.not.exist/image.jpg')); }); testWidgets('errorBuilder returns text with emoji', (WidgetTester tester) async { - await tester.pumpWidget( - const example.ErrorBuilderExampleApp(), - ); + await tester.pumpWidget(const example.ErrorBuilderExampleApp()); await tester.pumpAndSettle(); final Image image = tester.widget(find.byType(Image)); diff --git a/flutter/examples/api/test/widgets/image/image.frame_builder.0_test.dart b/flutter/examples/api/test/widgets/image/image.frame_builder.0_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..b7fa3d51fd13466c5d2a39675d6e73dd5189c8b4 --- /dev/null +++ b/flutter/examples/api/test/widgets/image/image.frame_builder.0_test.dart @@ -0,0 +1,53 @@ +// 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:io'; + +import 'package:flutter/material.dart'; +import 'package:flutter_api_samples/widgets/image/image.frame_builder.0.dart' as example; +import 'package:flutter_test/flutter_test.dart'; + +void main() { + // The app being tested loads images via HTTP which the test + // framework defeats by default. + setUpAll(() { + HttpOverrides.global = null; + }); + + testWidgets('The frame builder returns an AnimatedOpacity when not synchronously loaded', ( + WidgetTester tester, + ) async { + await tester.pumpWidget(const example.FrameBuilderExampleApp()); + await tester.pumpAndSettle(); + + final Image image = tester.widget(find.byType(Image)); + final ImageFrameBuilder frameBuilder = image.frameBuilder!; + final BuildContext context = tester.element(find.byType(Image)); + + const Key key = Key('child'); + + expect( + frameBuilder(context, const SizedBox(key: key), null, false), + isA().having((AnimatedOpacity opacity) => opacity.child!.key, 'key', key), + ); + }); + + testWidgets('The frame builder returns the child when synchronously loaded', ( + WidgetTester tester, + ) async { + await tester.pumpWidget(const example.FrameBuilderExampleApp()); + await tester.pumpAndSettle(); + + final Image image = tester.widget(find.byType(Image)); + final ImageFrameBuilder frameBuilder = image.frameBuilder!; + final BuildContext context = tester.element(find.byType(Image)); + + const Key key = Key('child'); + + expect( + frameBuilder(context, const SizedBox(key: key), null, true), + isA().having((SizedBox widget) => widget.key, 'key', key), + ); + }); +} diff --git a/flutter/examples/api/test/widgets/image/image.loading_builder.0_test.dart b/flutter/examples/api/test/widgets/image/image.loading_builder.0_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..1841dbe3acf08bb111a5fe3d8322fedabc835ace --- /dev/null +++ b/flutter/examples/api/test/widgets/image/image.loading_builder.0_test.dart @@ -0,0 +1,61 @@ +// 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:io'; + +import 'package:flutter/material.dart'; +import 'package:flutter_api_samples/widgets/image/image.loading_builder.0.dart' as example; +import 'package:flutter_test/flutter_test.dart'; + +void main() { + // The app being tested loads images via HTTP which the test + // framework defeats by default. + setUpAll(() { + HttpOverrides.global = null; + }); + + testWidgets('The loading builder returns the child when there is no loading progress', ( + WidgetTester tester, + ) async { + await tester.pumpWidget(const example.LoadingBuilderExampleApp()); + await tester.pumpAndSettle(); + + final Image image = tester.widget(find.byType(Image)); + final ImageLoadingBuilder loadingBuilder = image.loadingBuilder!; + final BuildContext context = tester.element(find.byType(Image)); + + const SizedBox child = SizedBox(key: Key('child')); + + await tester.pumpWidget(loadingBuilder(context, child, null)); + + expect(find.byWidget(child), findsOne); + expect(find.byType(CircularProgressIndicator), findsNothing); + }); + + testWidgets('The loading builder returns a circular progress indicator when loading', ( + WidgetTester tester, + ) async { + await tester.pumpWidget(const example.LoadingBuilderExampleApp()); + await tester.pumpAndSettle(); + + final Image image = tester.widget(find.byType(Image)); + final ImageLoadingBuilder loadingBuilder = image.loadingBuilder!; + final BuildContext context = tester.element(find.byType(Image)); + + const SizedBox child = SizedBox(key: Key('child')); + + await tester.pumpWidget( + MaterialApp( + home: loadingBuilder( + context, + child, + const ImageChunkEvent(cumulativeBytesLoaded: 1, expectedTotalBytes: 10), + ), + ), + ); + + expect(find.byWidget(child), findsNothing); + expect(find.byType(CircularProgressIndicator), findsOne); + }); +} diff --git a/flutter/examples/api/test/widgets/implicit_animations/animated_align.0_test.dart b/flutter/examples/api/test/widgets/implicit_animations/animated_align.0_test.dart index 80072b837234a970373076ac54af2b08e6c66b8f..923dadb3ae90e383896eb67d9730e5aa2088be65 100644 --- a/flutter/examples/api/test/widgets/implicit_animations/animated_align.0_test.dart +++ b/flutter/examples/api/test/widgets/implicit_animations/animated_align.0_test.dart @@ -3,15 +3,12 @@ // found in the LICENSE file. import 'package:flutter/material.dart'; -import 'package:flutter_api_samples/widgets/implicit_animations/animated_align.0.dart' - as example; +import 'package:flutter_api_samples/widgets/implicit_animations/animated_align.0.dart' as example; import 'package:flutter_test/flutter_test.dart'; void main() { testWidgets('AnimatedAlign animates on tap', (WidgetTester tester) async { - await tester.pumpWidget( - const example.AnimatedAlignExampleApp(), - ); + await tester.pumpWidget(const example.AnimatedAlignExampleApp()); final Finder alignFinder = find.descendant( of: find.byType(AnimatedAlign), diff --git a/flutter/examples/api/test/widgets/implicit_animations/animated_container.0_test.dart b/flutter/examples/api/test/widgets/implicit_animations/animated_container.0_test.dart index 8a50895eef1f4a44379a7887c3ca5ed3d4bdcfb6..748ff16c2bffed604c1e43b3762a9a9304659986 100644 --- a/flutter/examples/api/test/widgets/implicit_animations/animated_container.0_test.dart +++ b/flutter/examples/api/test/widgets/implicit_animations/animated_container.0_test.dart @@ -9,43 +9,23 @@ import 'package:flutter_test/flutter_test.dart'; void main() { testWidgets('AnimatedContainer updates on tap', (WidgetTester tester) async { - await tester.pumpWidget( - const example.AnimatedContainerExampleApp(), - ); + await tester.pumpWidget(const example.AnimatedContainerExampleApp()); Container container = tester.widget( - find.ancestor( - of: find.byType(AnimatedContainer), - matching: find.byType(Container), - ), - ); - expect( - (container.decoration! as BoxDecoration).color, - equals(Colors.blue), - ); - expect( - container.constraints, - equals(const BoxConstraints.tightFor(width: 100, height: 200)), + find.ancestor(of: find.byType(AnimatedContainer), matching: find.byType(Container)), ); + expect((container.decoration! as BoxDecoration).color, equals(Colors.blue)); + expect(container.constraints, equals(const BoxConstraints.tightFor(width: 100, height: 200))); expect(container.alignment, equals(Alignment.topCenter)); await tester.tap(find.byType(FlutterLogo)); await tester.pump(); container = tester.widget( - find.ancestor( - of: find.byType(AnimatedContainer), - matching: find.byType(Container), - ), - ); - expect( - (container.decoration! as BoxDecoration).color, - equals(Colors.blue), - ); - expect( - container.constraints, - equals(const BoxConstraints.tightFor(width: 100, height: 200)), + find.ancestor(of: find.byType(AnimatedContainer), matching: find.byType(Container)), ); + expect((container.decoration! as BoxDecoration).color, equals(Colors.blue)); + expect(container.constraints, equals(const BoxConstraints.tightFor(width: 100, height: 200))); expect(container.alignment, equals(Alignment.topCenter)); // Advance animation to the end by the 2-second duration specified in @@ -53,19 +33,10 @@ void main() { await tester.pump(const Duration(seconds: 2)); container = tester.widget( - find.ancestor( - of: find.byType(AnimatedContainer), - matching: find.byType(Container), - ), - ); - expect( - (container.decoration! as BoxDecoration).color, - equals(Colors.red), - ); - expect( - container.constraints, - equals(const BoxConstraints.tightFor(width: 200, height: 100)), + find.ancestor(of: find.byType(AnimatedContainer), matching: find.byType(Container)), ); + expect((container.decoration! as BoxDecoration).color, equals(Colors.red)); + expect(container.constraints, equals(const BoxConstraints.tightFor(width: 200, height: 100))); expect(container.alignment, equals(Alignment.center)); }); } diff --git a/flutter/examples/api/test/widgets/implicit_animations/animated_fractionally_sized_box.0_test.dart b/flutter/examples/api/test/widgets/implicit_animations/animated_fractionally_sized_box.0_test.dart index 2a931a97b87d29b45b902c33ea811887c2decf1d..dee51083f1987e67f33b3773ecb0e12a9e252a37 100644 --- a/flutter/examples/api/test/widgets/implicit_animations/animated_fractionally_sized_box.0_test.dart +++ b/flutter/examples/api/test/widgets/implicit_animations/animated_fractionally_sized_box.0_test.dart @@ -10,116 +10,78 @@ import 'package:flutter_api_samples/widgets/implicit_animations/animated_fractio import 'package:flutter_test/flutter_test.dart'; void main() { - testWidgets( - 'AnimatedFractionallySizedBox animates on tap', - (WidgetTester tester) async { - await tester.pumpWidget( - const example.AnimatedFractionallySizedBoxExampleApp(), - ); - - final Finder fractionallySizedBoxFinder = find.descendant( - of: find.byType(AnimatedFractionallySizedBox), - matching: find.byType(FractionallySizedBox), - ); - - const double beginWidthFactor = 0.75; - const double endWidthFactor = 0.25; - const double beginHeightFactor = 0.25; - const double endHeightFactor = 0.75; - const Alignment beginAlignment = Alignment.bottomRight; - const Alignment endAlignment = Alignment.topLeft; - - FractionallySizedBox fractionallySizedBox = tester.widget( - fractionallySizedBoxFinder, - ); - expect(fractionallySizedBox.widthFactor, beginWidthFactor); - expect(fractionallySizedBox.heightFactor, beginHeightFactor); - expect(fractionallySizedBox.alignment, beginAlignment); - - // Tap on the AnimatedFractionallySizedBoxExample to start the forward - // animation. - await tester.tap( - find.byType(example.AnimatedFractionallySizedBoxExample), - ); - await tester.pump(); - - fractionallySizedBox = tester.widget(fractionallySizedBoxFinder); - expect(fractionallySizedBox.widthFactor, beginWidthFactor); - expect(fractionallySizedBox.heightFactor, beginHeightFactor); - expect(fractionallySizedBox.alignment, beginAlignment); - - // Advance animation to the middle. - await tester.pump( - example.AnimatedFractionallySizedBoxExampleApp.duration ~/ 2, - ); - - final double t = - example.AnimatedFractionallySizedBoxExampleApp.curve.transform(0.5); - - fractionallySizedBox = tester.widget(fractionallySizedBoxFinder); - expect( - fractionallySizedBox.widthFactor, - lerpDouble(beginWidthFactor, endWidthFactor, t), - ); - expect( - fractionallySizedBox.heightFactor, - lerpDouble(beginHeightFactor, endHeightFactor, t), - ); - expect( - fractionallySizedBox.alignment, - Alignment.lerp(beginAlignment, endAlignment, t), - ); - - // Advance animation to the end. - await tester.pump( - example.AnimatedFractionallySizedBoxExampleApp.duration ~/ 2, - ); - - fractionallySizedBox = tester.widget(fractionallySizedBoxFinder); - expect(fractionallySizedBox.widthFactor, endWidthFactor); - expect(fractionallySizedBox.heightFactor, endHeightFactor); - expect(fractionallySizedBox.alignment, endAlignment); - - // Tap on the AnimatedFractionallySizedBoxExample again to start the - // reverse animation. - await tester.tap( - find.byType(example.AnimatedFractionallySizedBoxExample), - ); - await tester.pump(); - - fractionallySizedBox = tester.widget(fractionallySizedBoxFinder); - expect(fractionallySizedBox.widthFactor, endWidthFactor); - expect(fractionallySizedBox.heightFactor, endHeightFactor); - expect(fractionallySizedBox.alignment, endAlignment); - - // Advance animation to the middle. - await tester.pump( - example.AnimatedFractionallySizedBoxExampleApp.duration ~/ 2, - ); - - fractionallySizedBox = tester.widget(fractionallySizedBoxFinder); - expect( - fractionallySizedBox.widthFactor, - lerpDouble(endWidthFactor, beginWidthFactor, t), - ); - expect( - fractionallySizedBox.heightFactor, - lerpDouble(endHeightFactor, beginHeightFactor, t), - ); - expect( - fractionallySizedBox.alignment, - Alignment.lerp(endAlignment, beginAlignment, t), - ); - - // Advance animation to the end. - await tester.pump( - example.AnimatedFractionallySizedBoxExampleApp.duration ~/ 2, - ); - - fractionallySizedBox = tester.widget(fractionallySizedBoxFinder); - expect(fractionallySizedBox.widthFactor, beginWidthFactor); - expect(fractionallySizedBox.heightFactor, beginHeightFactor); - expect(fractionallySizedBox.alignment, beginAlignment); - }, - ); + testWidgets('AnimatedFractionallySizedBox animates on tap', (WidgetTester tester) async { + await tester.pumpWidget(const example.AnimatedFractionallySizedBoxExampleApp()); + + final Finder fractionallySizedBoxFinder = find.descendant( + of: find.byType(AnimatedFractionallySizedBox), + matching: find.byType(FractionallySizedBox), + ); + + const double beginWidthFactor = 0.75; + const double endWidthFactor = 0.25; + const double beginHeightFactor = 0.25; + const double endHeightFactor = 0.75; + const Alignment beginAlignment = Alignment.bottomRight; + const Alignment endAlignment = Alignment.topLeft; + + FractionallySizedBox fractionallySizedBox = tester.widget(fractionallySizedBoxFinder); + expect(fractionallySizedBox.widthFactor, beginWidthFactor); + expect(fractionallySizedBox.heightFactor, beginHeightFactor); + expect(fractionallySizedBox.alignment, beginAlignment); + + // Tap on the AnimatedFractionallySizedBoxExample to start the forward + // animation. + await tester.tap(find.byType(example.AnimatedFractionallySizedBoxExample)); + await tester.pump(); + + fractionallySizedBox = tester.widget(fractionallySizedBoxFinder); + expect(fractionallySizedBox.widthFactor, beginWidthFactor); + expect(fractionallySizedBox.heightFactor, beginHeightFactor); + expect(fractionallySizedBox.alignment, beginAlignment); + + // Advance animation to the middle. + await tester.pump(example.AnimatedFractionallySizedBoxExampleApp.duration ~/ 2); + + final double t = example.AnimatedFractionallySizedBoxExampleApp.curve.transform(0.5); + + fractionallySizedBox = tester.widget(fractionallySizedBoxFinder); + expect(fractionallySizedBox.widthFactor, lerpDouble(beginWidthFactor, endWidthFactor, t)); + expect(fractionallySizedBox.heightFactor, lerpDouble(beginHeightFactor, endHeightFactor, t)); + expect(fractionallySizedBox.alignment, Alignment.lerp(beginAlignment, endAlignment, t)); + + // Advance animation to the end. + await tester.pump(example.AnimatedFractionallySizedBoxExampleApp.duration ~/ 2); + + fractionallySizedBox = tester.widget(fractionallySizedBoxFinder); + expect(fractionallySizedBox.widthFactor, endWidthFactor); + expect(fractionallySizedBox.heightFactor, endHeightFactor); + expect(fractionallySizedBox.alignment, endAlignment); + + // Tap on the AnimatedFractionallySizedBoxExample again to start the + // reverse animation. + await tester.tap(find.byType(example.AnimatedFractionallySizedBoxExample)); + await tester.pump(); + + fractionallySizedBox = tester.widget(fractionallySizedBoxFinder); + expect(fractionallySizedBox.widthFactor, endWidthFactor); + expect(fractionallySizedBox.heightFactor, endHeightFactor); + expect(fractionallySizedBox.alignment, endAlignment); + + // Advance animation to the middle. + await tester.pump(example.AnimatedFractionallySizedBoxExampleApp.duration ~/ 2); + + fractionallySizedBox = tester.widget(fractionallySizedBoxFinder); + expect(fractionallySizedBox.widthFactor, lerpDouble(endWidthFactor, beginWidthFactor, t)); + expect(fractionallySizedBox.heightFactor, lerpDouble(endHeightFactor, beginHeightFactor, t)); + expect(fractionallySizedBox.alignment, Alignment.lerp(endAlignment, beginAlignment, t)); + + // Advance animation to the end. + await tester.pump(example.AnimatedFractionallySizedBoxExampleApp.duration ~/ 2); + + fractionallySizedBox = tester.widget(fractionallySizedBoxFinder); + expect(fractionallySizedBox.widthFactor, beginWidthFactor); + expect(fractionallySizedBox.heightFactor, beginHeightFactor); + expect(fractionallySizedBox.alignment, beginAlignment); + }); } diff --git a/flutter/examples/api/test/widgets/implicit_animations/animated_padding.0_test.dart b/flutter/examples/api/test/widgets/implicit_animations/animated_padding.0_test.dart index fa9d5a1d632b35ce4cdcbbe489dd5c460dad8909..e8033d222bf7b74054dccce63e75a1425521a4d4 100644 --- a/flutter/examples/api/test/widgets/implicit_animations/animated_padding.0_test.dart +++ b/flutter/examples/api/test/widgets/implicit_animations/animated_padding.0_test.dart @@ -3,48 +3,33 @@ // found in the LICENSE file. import 'package:flutter/material.dart'; -import 'package:flutter_api_samples/widgets/implicit_animations/animated_padding.0.dart' - as example; +import 'package:flutter_api_samples/widgets/implicit_animations/animated_padding.0.dart' as example; import 'package:flutter_test/flutter_test.dart'; void main() { - testWidgets( - 'AnimatedPadding animates on ElevatedButton tap', - (WidgetTester tester) async { - await tester.pumpWidget( - const example.AnimatedPaddingExampleApp(), - ); + testWidgets('AnimatedPadding animates on ElevatedButton tap', (WidgetTester tester) async { + await tester.pumpWidget(const example.AnimatedPaddingExampleApp()); - Padding padding = tester.widget( - find.descendant( - of: find.byType(AnimatedPadding), - matching: find.byType(Padding), - ), - ); - expect(padding.padding, equals(EdgeInsets.zero)); + Padding padding = tester.widget( + find.descendant(of: find.byType(AnimatedPadding), matching: find.byType(Padding)), + ); + expect(padding.padding, equals(EdgeInsets.zero)); - await tester.tap(find.byType(ElevatedButton)); - await tester.pump(); + await tester.tap(find.byType(ElevatedButton)); + await tester.pump(); - padding = tester.widget( - find.descendant( - of: find.byType(AnimatedPadding), - matching: find.byType(Padding), - ), - ); - expect(padding.padding, equals(EdgeInsets.zero)); + padding = tester.widget( + find.descendant(of: find.byType(AnimatedPadding), matching: find.byType(Padding)), + ); + expect(padding.padding, equals(EdgeInsets.zero)); - // Advance animation to the end by the 2-second duration specified in - // the example app. - await tester.pump(const Duration(seconds: 2)); + // Advance animation to the end by the 2-second duration specified in + // the example app. + await tester.pump(const Duration(seconds: 2)); - padding = tester.widget( - find.descendant( - of: find.byType(AnimatedPadding), - matching: find.byType(Padding), - ), - ); - expect(padding.padding, equals(const EdgeInsets.all(100.0))); - }, - ); + padding = tester.widget( + find.descendant(of: find.byType(AnimatedPadding), matching: find.byType(Padding)), + ); + expect(padding.padding, equals(const EdgeInsets.all(100.0))); + }); } diff --git a/flutter/examples/api/test/widgets/implicit_animations/animated_positioned.0_test.dart b/flutter/examples/api/test/widgets/implicit_animations/animated_positioned.0_test.dart index 88654eb7e07b8392c65ac3ecf5c4afaa487c1c36..479bbe0922e1bd0840099b7674fc454fc0975411 100644 --- a/flutter/examples/api/test/widgets/implicit_animations/animated_positioned.0_test.dart +++ b/flutter/examples/api/test/widgets/implicit_animations/animated_positioned.0_test.dart @@ -10,82 +10,76 @@ import 'package:flutter_api_samples/widgets/implicit_animations/animated_positio import 'package:flutter_test/flutter_test.dart'; void main() { - testWidgets( - 'AnimatedPositioned animates on tap', - (WidgetTester tester) async { - await tester.pumpWidget( - const example.AnimatedPositionedExampleApp(), - ); - - final Finder positionedFinder = find.descendant( - of: find.byType(AnimatedPositioned), - matching: find.byType(Positioned), - ); - - const double beginWidth = 50.0; - const double endWidth = 200.0; - const double beginHeight = 200.0; - const double endHeight = 50.0; - const double beginTop = 150.0; - const double endTop = 50.0; - - Positioned positioned = tester.widget(positionedFinder); - expect(positioned.width, beginWidth); - expect(positioned.height, beginHeight); - expect(positioned.top, beginTop); - - // Tap on the 'Tap me' text to start the forward animation. - await tester.tap(find.text('Tap me')); - await tester.pump(); - - positioned = tester.widget(positionedFinder); - expect(positioned.width, beginWidth); - expect(positioned.height, beginHeight); - expect(positioned.top, beginTop); - - // Advance animation to the middle. - await tester.pump(example.AnimatedPositionedExampleApp.duration ~/ 2); - - final double t = - example.AnimatedPositionedExampleApp.curve.transform(0.5); - - positioned = tester.widget(positionedFinder); - expect(positioned.width, lerpDouble(beginWidth, endWidth, t)); - expect(positioned.height, lerpDouble(beginHeight, endHeight, t)); - expect(positioned.top, lerpDouble(beginTop, endTop, t)); - - // Advance animation to the end. - await tester.pump(example.AnimatedPositionedExampleApp.duration ~/ 2); - - positioned = tester.widget(positionedFinder); - expect(positioned.width, endWidth); - expect(positioned.height, endHeight); - expect(positioned.top, endTop); - - // Tap on the 'Tap me' text again to start the reverse animation. - await tester.tap(find.text('Tap me')); - await tester.pump(); - - positioned = tester.widget(positionedFinder); - expect(positioned.width, endWidth); - expect(positioned.height, endHeight); - expect(positioned.top, endTop); - - // Advance animation to the middle. - await tester.pump(example.AnimatedPositionedExampleApp.duration ~/ 2); - - positioned = tester.widget(positionedFinder); - expect(positioned.width, lerpDouble(endWidth, beginWidth, t)); - expect(positioned.height, lerpDouble(endHeight, beginHeight, t)); - expect(positioned.top, lerpDouble(endTop, beginTop, t)); - - // Advance animation to the end. - await tester.pump(example.AnimatedPositionedExampleApp.duration ~/ 2); - - positioned = tester.widget(positionedFinder); - expect(positioned.width, beginWidth); - expect(positioned.height, beginHeight); - expect(positioned.top, beginTop); - }, - ); + testWidgets('AnimatedPositioned animates on tap', (WidgetTester tester) async { + await tester.pumpWidget(const example.AnimatedPositionedExampleApp()); + + final Finder positionedFinder = find.descendant( + of: find.byType(AnimatedPositioned), + matching: find.byType(Positioned), + ); + + const double beginWidth = 50.0; + const double endWidth = 200.0; + const double beginHeight = 200.0; + const double endHeight = 50.0; + const double beginTop = 150.0; + const double endTop = 50.0; + + Positioned positioned = tester.widget(positionedFinder); + expect(positioned.width, beginWidth); + expect(positioned.height, beginHeight); + expect(positioned.top, beginTop); + + // Tap on the 'Tap me' text to start the forward animation. + await tester.tap(find.text('Tap me')); + await tester.pump(); + + positioned = tester.widget(positionedFinder); + expect(positioned.width, beginWidth); + expect(positioned.height, beginHeight); + expect(positioned.top, beginTop); + + // Advance animation to the middle. + await tester.pump(example.AnimatedPositionedExampleApp.duration ~/ 2); + + final double t = example.AnimatedPositionedExampleApp.curve.transform(0.5); + + positioned = tester.widget(positionedFinder); + expect(positioned.width, lerpDouble(beginWidth, endWidth, t)); + expect(positioned.height, lerpDouble(beginHeight, endHeight, t)); + expect(positioned.top, lerpDouble(beginTop, endTop, t)); + + // Advance animation to the end. + await tester.pump(example.AnimatedPositionedExampleApp.duration ~/ 2); + + positioned = tester.widget(positionedFinder); + expect(positioned.width, endWidth); + expect(positioned.height, endHeight); + expect(positioned.top, endTop); + + // Tap on the 'Tap me' text again to start the reverse animation. + await tester.tap(find.text('Tap me')); + await tester.pump(); + + positioned = tester.widget(positionedFinder); + expect(positioned.width, endWidth); + expect(positioned.height, endHeight); + expect(positioned.top, endTop); + + // Advance animation to the middle. + await tester.pump(example.AnimatedPositionedExampleApp.duration ~/ 2); + + positioned = tester.widget(positionedFinder); + expect(positioned.width, lerpDouble(endWidth, beginWidth, t)); + expect(positioned.height, lerpDouble(endHeight, beginHeight, t)); + expect(positioned.top, lerpDouble(endTop, beginTop, t)); + + // Advance animation to the end. + await tester.pump(example.AnimatedPositionedExampleApp.duration ~/ 2); + + positioned = tester.widget(positionedFinder); + expect(positioned.width, beginWidth); + expect(positioned.height, beginHeight); + expect(positioned.top, beginTop); + }); } diff --git a/flutter/examples/api/test/widgets/implicit_animations/animated_slide.0_test.dart b/flutter/examples/api/test/widgets/implicit_animations/animated_slide.0_test.dart index 10746def6f15650f11eaacb6c94236d85872fb52..d428244485a5e10b92bdb6cc8c6e6fcf46ac663d 100644 --- a/flutter/examples/api/test/widgets/implicit_animations/animated_slide.0_test.dart +++ b/flutter/examples/api/test/widgets/implicit_animations/animated_slide.0_test.dart @@ -8,9 +8,7 @@ import 'package:flutter_test/flutter_test.dart'; void main() { testWidgets('Translate FlutterLogo using AnimatedSlide', (WidgetTester tester) async { - await tester.pumpWidget( - const example.AnimatedSlideApp(), - ); + await tester.pumpWidget(const example.AnimatedSlideApp()); Offset logoOffset = tester.getCenter(find.byType(FlutterLogo)); expect(logoOffset.dx, 376.0); diff --git a/flutter/examples/api/test/widgets/implicit_animations/sliver_animated_opacity.0_test.dart b/flutter/examples/api/test/widgets/implicit_animations/sliver_animated_opacity.0_test.dart index 8ac97867afc84edb9a7fbb0bcda9eb111485fe70..9fe90f086ac8484abee5c14e750d1e99738fd824 100644 --- a/flutter/examples/api/test/widgets/implicit_animations/sliver_animated_opacity.0_test.dart +++ b/flutter/examples/api/test/widgets/implicit_animations/sliver_animated_opacity.0_test.dart @@ -10,75 +10,72 @@ import 'package:flutter_api_samples/widgets/implicit_animations/sliver_animated_ import 'package:flutter_test/flutter_test.dart'; void main() { - testWidgets( - 'SilverAnimatedOpacity animates on FloatingActionButton tap', - (WidgetTester tester) async { - await tester.pumpWidget( - const example.SliverAnimatedOpacityExampleApp(), - ); - - final Finder fadeTransitionFinder = find.descendant( - of: find.byType(SliverAnimatedOpacity), - matching: find.byType(SliverFadeTransition), - ); - - const double beginOpacity = 1.0; - const double endOpacity = 0.0; - - SliverFadeTransition fadeTransition = tester.widget(fadeTransitionFinder); - expect(fadeTransition.opacity.value, beginOpacity); - - // Tap on the FloatingActionButton to start the forward animation. - await tester.tap(find.byType(FloatingActionButton)); - await tester.pump(); - - fadeTransition = tester.widget(fadeTransitionFinder); - expect(fadeTransition.opacity.value, beginOpacity); - - // Advance animation to the middle. - await tester.pump(example.SliverAnimatedOpacityExampleApp.duration ~/ 2); - - fadeTransition = tester.widget(fadeTransitionFinder); - expect( - fadeTransition.opacity.value, - lerpDouble( - beginOpacity, - endOpacity, - example.SliverAnimatedOpacityExampleApp.curve.transform(0.5), - ), - ); - - // Advance animation to the end. - await tester.pump(example.SliverAnimatedOpacityExampleApp.duration ~/ 2); - - fadeTransition = tester.widget(fadeTransitionFinder); - expect(fadeTransition.opacity.value, endOpacity); - - // Tap on the FloatingActionButton again to start the reverse animation. - await tester.tap(find.byType(FloatingActionButton)); - await tester.pump(); - - fadeTransition = tester.widget(fadeTransitionFinder); - expect(fadeTransition.opacity.value, endOpacity); - - // Advance animation to the middle. - await tester.pump(example.SliverAnimatedOpacityExampleApp.duration ~/ 2); - - fadeTransition = tester.widget(fadeTransitionFinder); - expect( - fadeTransition.opacity.value, - lerpDouble( - endOpacity, - beginOpacity, - example.SliverAnimatedOpacityExampleApp.curve.transform(0.5), - ), - ); - - // Advance animation to the end. - await tester.pump(example.SliverAnimatedOpacityExampleApp.duration ~/ 2); - - fadeTransition = tester.widget(fadeTransitionFinder); - expect(fadeTransition.opacity.value, beginOpacity); - }, - ); + testWidgets('SilverAnimatedOpacity animates on FloatingActionButton tap', ( + WidgetTester tester, + ) async { + await tester.pumpWidget(const example.SliverAnimatedOpacityExampleApp()); + + final Finder fadeTransitionFinder = find.descendant( + of: find.byType(SliverAnimatedOpacity), + matching: find.byType(SliverFadeTransition), + ); + + const double beginOpacity = 1.0; + const double endOpacity = 0.0; + + SliverFadeTransition fadeTransition = tester.widget(fadeTransitionFinder); + expect(fadeTransition.opacity.value, beginOpacity); + + // Tap on the FloatingActionButton to start the forward animation. + await tester.tap(find.byType(FloatingActionButton)); + await tester.pump(); + + fadeTransition = tester.widget(fadeTransitionFinder); + expect(fadeTransition.opacity.value, beginOpacity); + + // Advance animation to the middle. + await tester.pump(example.SliverAnimatedOpacityExampleApp.duration ~/ 2); + + fadeTransition = tester.widget(fadeTransitionFinder); + expect( + fadeTransition.opacity.value, + lerpDouble( + beginOpacity, + endOpacity, + example.SliverAnimatedOpacityExampleApp.curve.transform(0.5), + ), + ); + + // Advance animation to the end. + await tester.pump(example.SliverAnimatedOpacityExampleApp.duration ~/ 2); + + fadeTransition = tester.widget(fadeTransitionFinder); + expect(fadeTransition.opacity.value, endOpacity); + + // Tap on the FloatingActionButton again to start the reverse animation. + await tester.tap(find.byType(FloatingActionButton)); + await tester.pump(); + + fadeTransition = tester.widget(fadeTransitionFinder); + expect(fadeTransition.opacity.value, endOpacity); + + // Advance animation to the middle. + await tester.pump(example.SliverAnimatedOpacityExampleApp.duration ~/ 2); + + fadeTransition = tester.widget(fadeTransitionFinder); + expect( + fadeTransition.opacity.value, + lerpDouble( + endOpacity, + beginOpacity, + example.SliverAnimatedOpacityExampleApp.curve.transform(0.5), + ), + ); + + // Advance animation to the end. + await tester.pump(example.SliverAnimatedOpacityExampleApp.duration ~/ 2); + + fadeTransition = tester.widget(fadeTransitionFinder); + expect(fadeTransition.opacity.value, beginOpacity); + }); } diff --git a/flutter/examples/api/test/widgets/inherited_model/inherited_model.0_test.dart b/flutter/examples/api/test/widgets/inherited_model/inherited_model.0_test.dart index 3f3f9a569efecde5b75700d156b2017dcf79b9f7..68de66af8a8be3353bd6f4a9413e8e0c0362cad3 100644 --- a/flutter/examples/api/test/widgets/inherited_model/inherited_model.0_test.dart +++ b/flutter/examples/api/test/widgets/inherited_model/inherited_model.0_test.dart @@ -8,20 +8,18 @@ import 'package:flutter_test/flutter_test.dart'; void main() { testWidgets('Rebuild widget using InheritedModel', (WidgetTester tester) async { - await tester.pumpWidget( - const example.InheritedModelApp(), - ); + await tester.pumpWidget(const example.InheritedModelApp()); - BoxDecoration? decoration = tester.widget( - find.byType(AnimatedContainer).first, - ).decoration as BoxDecoration?; + BoxDecoration? decoration = + tester.widget(find.byType(AnimatedContainer).first).decoration + as BoxDecoration?; expect(decoration!.color, Colors.blue); await tester.tap(find.text('Update background')); await tester.pumpAndSettle(); - decoration = tester.widget( - find.byType(AnimatedContainer).first, - ).decoration as BoxDecoration?; + decoration = + tester.widget(find.byType(AnimatedContainer).first).decoration + as BoxDecoration?; expect(decoration!.color, Colors.red); double? size = tester.widget(find.byType(FlutterLogo)).size; diff --git a/flutter/examples/api/test/widgets/inherited_notifier/inherited_notifier.0_test.dart b/flutter/examples/api/test/widgets/inherited_notifier/inherited_notifier.0_test.dart index 34c4c8969297133f6e552b27b346e50be3cec795..50b2f4d10623fa9ea01dcd468fb6a2f264ca9b17 100644 --- a/flutter/examples/api/test/widgets/inherited_notifier/inherited_notifier.0_test.dart +++ b/flutter/examples/api/test/widgets/inherited_notifier/inherited_notifier.0_test.dart @@ -5,24 +5,22 @@ import 'dart:math' as math; import 'package:flutter/material.dart'; -import 'package:flutter_api_samples/widgets/inherited_notifier/inherited_notifier.0.dart' as example; +import 'package:flutter_api_samples/widgets/inherited_notifier/inherited_notifier.0.dart' + as example; import 'package:flutter_test/flutter_test.dart'; void main() { testWidgets('It rotates the spinners', (WidgetTester tester) async { - await tester.pumpWidget( - const example.InheritedNotifierExampleApp(), - ); + await tester.pumpWidget(const example.InheritedNotifierExampleApp()); final Iterable widgets = tester.widgetList( - find.ancestor( - of: find.text('Whee!'), - matching: find.byType(Transform), - ), + find.ancestor(of: find.text('Whee!'), matching: find.byType(Transform)), ); Matcher transformMatcher(Matrix4 matrix) { - return everyElement(isA().having((Transform widget) => widget.transform, 'transform', matrix)); + return everyElement( + isA().having((Transform widget) => widget.transform, 'transform', matrix), + ); } expect(widgets, transformMatcher(Matrix4.identity())); @@ -40,7 +38,14 @@ void main() { expect(widgets, transformMatcher(Matrix4.rotationZ(0.8 * math.pi))); await tester.pump(const Duration(seconds: 1)); - expect(widgets, transformMatcher(Matrix4.identity()..storage[0] = -1..storage[5] = -1)); + expect( + widgets, + transformMatcher( + Matrix4.identity() + ..storage[0] = -1 + ..storage[5] = -1, + ), + ); await tester.pump(const Duration(seconds: 1)); expect(widgets, transformMatcher(Matrix4.rotationZ(1.2 * math.pi))); diff --git a/flutter/examples/api/test/widgets/inherited_theme/inherited_theme.0_test.dart b/flutter/examples/api/test/widgets/inherited_theme/inherited_theme.0_test.dart index 03067fb20e99e91afc786935db9800d92d59a7ae..8eff3fa38093748333cf23243271ce8260105a55 100644 --- a/flutter/examples/api/test/widgets/inherited_theme/inherited_theme.0_test.dart +++ b/flutter/examples/api/test/widgets/inherited_theme/inherited_theme.0_test.dart @@ -3,20 +3,19 @@ // found in the LICENSE file. import 'package:flutter/material.dart'; -import 'package:flutter_api_samples/widgets/inherited_theme/inherited_theme.0.dart' - as example; +import 'package:flutter_api_samples/widgets/inherited_theme/inherited_theme.0.dart' as example; import 'package:flutter_test/flutter_test.dart'; void main() { testWidgets('StreamBuilder listens to internal stream', (WidgetTester tester) async { - await tester.pumpWidget( - const example.InheritedThemeExampleApp(), - ); + await tester.pumpWidget(const example.InheritedThemeExampleApp()); expect(find.byType(GestureDetector), findsOne); expect(find.text('Tap Here'), findsOne); - final DefaultTextStyle bodyDefaultTextStyle = DefaultTextStyle.of(tester.element(find.text('Tap Here'))); + final DefaultTextStyle bodyDefaultTextStyle = DefaultTextStyle.of( + tester.element(find.text('Tap Here')), + ); expect(bodyDefaultTextStyle.style, const TextStyle(fontSize: 48, color: Colors.blue)); await tester.tap(find.text('Tap Here')); @@ -24,7 +23,9 @@ void main() { expect(find.text('Hello World'), findsOne); - final DefaultTextStyle routeDefaultTextStyle = DefaultTextStyle.of(tester.element(find.text('Hello World'))); + final DefaultTextStyle routeDefaultTextStyle = DefaultTextStyle.of( + tester.element(find.text('Hello World')), + ); expect(routeDefaultTextStyle.style, const TextStyle(fontSize: 48, color: Colors.blue)); }); } diff --git a/flutter/examples/api/test/widgets/interactive_viewer/interactive_viewer.0_test.dart b/flutter/examples/api/test/widgets/interactive_viewer/interactive_viewer.0_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..d2c46fefb885c7482a64c86eab00a9ddb0a64e1b --- /dev/null +++ b/flutter/examples/api/test/widgets/interactive_viewer/interactive_viewer.0_test.dart @@ -0,0 +1,61 @@ +// 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_api_samples/widgets/interactive_viewer/interactive_viewer.0.dart' + as example; +import 'package:flutter_test/flutter_test.dart'; + +void main() { + testWidgets('Has correct items on screen', (WidgetTester tester) async { + await tester.pumpWidget(const example.InteractiveViewerExampleApp()); + + expect(find.widgetWithText(AppBar, 'InteractiveViewer Sample'), findsOne); + expect(find.byType(InteractiveViewer), findsOne); + + expect( + tester.getRect(find.byType(Container)), + rectMoreOrLessEquals(const Rect.fromLTRB(0.0, 56.0, 800.0, 600.0)), + ); + + await tester.drag(find.byType(Container), const Offset(20, 20)); + + // Pans. + const Offset panStart = Offset(400.0, 300.0); + final Offset panEnd = panStart + const Offset(20.0, 20.0); + final TestGesture gesture = await tester.startGesture(panStart); + await tester.pump(); + await gesture.moveTo(panEnd); + await tester.pump(); + await gesture.up(); + await tester.pumpAndSettle(); + + expect( + tester.getRect(find.byType(Container)), + rectMoreOrLessEquals(const Rect.fromLTRB(20.0, 76.0, 820.0, 620.0)), + ); + + // Zooms. + const Offset scaleStart1 = Offset(400.0, 300.0); + final Offset scaleStart2 = scaleStart1 + const Offset(10.0, 0.0); + final Offset scaleEnd1 = scaleStart1 - const Offset(10.0, 0.0); + final Offset scaleEnd2 = scaleStart2 + const Offset(10.0, 0.0); + final TestGesture gesture1 = await tester.createGesture(); + final TestGesture gesture2 = await tester.createGesture(); + await gesture1.down(scaleStart1); + await gesture2.down(scaleStart2); + await tester.pump(); + await gesture1.moveTo(scaleEnd1); + await gesture2.moveTo(scaleEnd2); + await tester.pump(); + await gesture1.up(); + await gesture2.up(); + await tester.pumpAndSettle(); + + expect( + tester.getRect(find.byType(Container)), + rectMoreOrLessEquals(const Rect.fromLTRB(-203.0, -58.4, 1077.0, 812.0)), + ); + }); +} diff --git a/flutter/examples/api/test/widgets/interactive_viewer/interactive_viewer.builder.0_test.dart b/flutter/examples/api/test/widgets/interactive_viewer/interactive_viewer.builder.0_test.dart index 4cfaa619894f60a47cc6dbd53e8282a771defdff..749555b5fb0274124779dfb4e32ab8190949bcec 100644 --- a/flutter/examples/api/test/widgets/interactive_viewer/interactive_viewer.builder.0_test.dart +++ b/flutter/examples/api/test/widgets/interactive_viewer/interactive_viewer.builder.0_test.dart @@ -9,9 +9,7 @@ import 'package:flutter_test/flutter_test.dart'; void main() { testWidgets('has correct items on screen', (WidgetTester tester) async { - await tester.pumpWidget( - const example.IVBuilderExampleApp(), - ); + await tester.pumpWidget(const example.IVBuilderExampleApp()); final Finder positionedFinder = find.byType(Positioned); final Finder zeroFinder = find.text('0 x 0'); diff --git a/flutter/examples/api/test/widgets/interactive_viewer/interactive_viewer.constrained.0_test.dart b/flutter/examples/api/test/widgets/interactive_viewer/interactive_viewer.constrained.0_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..118c4dc7c0582b1e8d8a26546cbe02ec9424607e --- /dev/null +++ b/flutter/examples/api/test/widgets/interactive_viewer/interactive_viewer.constrained.0_test.dart @@ -0,0 +1,77 @@ +// 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_api_samples/widgets/interactive_viewer/interactive_viewer.constrained.0.dart' + as example; +import 'package:flutter_test/flutter_test.dart'; + +void main() { + testWidgets('The reset button resets the view with an animation', (WidgetTester tester) async { + await tester.pumpWidget(const example.ConstrainedExampleApp()); + + expect(find.widgetWithText(AppBar, 'Constrained Sample'), findsOne); + expect(find.byType(InteractiveViewer), findsOne); + for (int row = 0; row < 48; row += 1) { + for (int column = 0; column < 6; column += 1) { + expect(find.text('$row x $column'), findsOne); + } + } + expect( + tester.getRect(find.byType(Table)), + rectMoreOrLessEquals(const Rect.fromLTRB(0.0, 56.0, 1200.0, 1304.0)), + ); + + // Pans along the x axis. + const Offset panStart = Offset(400.0, 300.0); + final Offset panXEnd = panStart - const Offset(0, 20); + final TestGesture gesturePanX = await tester.startGesture(panStart); + await tester.pump(); + await gesturePanX.moveTo(panXEnd); + await tester.pump(); + await gesturePanX.up(); + await tester.pumpAndSettle(); + + expect( + tester.getRect(find.byType(Table)), + rectMoreOrLessEquals(const Rect.fromLTRB(0.0, 36.0, 1200.0, 1284.0)), + ); + + // Pans along the Y axis. + final Offset panYEnd = panStart - const Offset(20, 0); + final TestGesture gesturePanY = await tester.startGesture(panStart); + await tester.pump(); + await gesturePanY.moveTo(panYEnd); + await tester.pump(); + await gesturePanY.up(); + await tester.pumpAndSettle(); + + expect( + tester.getRect(find.byType(Table)), + rectMoreOrLessEquals(const Rect.fromLTRB(-20.0, 36.0, 1180.0, 1284.0)), + ); + + // Tries to zooms even if it is disabled. + const Offset scaleStart1 = Offset(400.0, 300.0); + final Offset scaleStart2 = scaleStart1 + const Offset(10.0, 0.0); + final Offset scaleEnd1 = scaleStart1 - const Offset(10.0, 0.0); + final Offset scaleEnd2 = scaleStart2 + const Offset(10.0, 0.0); + final TestGesture gesture1 = await tester.createGesture(); + final TestGesture gesture2 = await tester.createGesture(); + await gesture1.down(scaleStart1); + await gesture2.down(scaleStart2); + await tester.pump(); + await gesture1.moveTo(scaleEnd1); + await gesture2.moveTo(scaleEnd2); + await tester.pump(); + await gesture1.up(); + await gesture2.up(); + await tester.pumpAndSettle(); + + expect( + tester.getRect(find.byType(Table)), + rectMoreOrLessEquals(const Rect.fromLTRB(-20.0, 36.0, 1180.0, 1284.0)), + ); + }); +} diff --git a/flutter/examples/api/test/widgets/interactive_viewer/interactive_viewer.transformation_controller.0_test.dart b/flutter/examples/api/test/widgets/interactive_viewer/interactive_viewer.transformation_controller.0_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..6a494c093ae943a5e4a3f9f5bae24a9e44ee35b6 --- /dev/null +++ b/flutter/examples/api/test/widgets/interactive_viewer/interactive_viewer.transformation_controller.0_test.dart @@ -0,0 +1,77 @@ +// 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_api_samples/widgets/interactive_viewer/interactive_viewer.transformation_controller.0.dart' + as example; +import 'package:flutter_test/flutter_test.dart'; + +void main() { + testWidgets('The reset button resets the view with an animation', (WidgetTester tester) async { + await tester.pumpWidget(const example.TransformationControllerExampleApp()); + + expect(find.widgetWithText(AppBar, 'Controller demo'), findsOne); + expect(find.byType(InteractiveViewer), findsOne); + + expect( + tester.getRect(find.byType(Container).first), + rectMoreOrLessEquals(const Rect.fromLTRB(0.0, 56.0, 800.0, 535.0)), + ); + + await tester.drag(find.byType(Container).first, const Offset(20, 20)); + + // Pans. + const Offset panStart = Offset(400.0, 300.0); + final Offset panEnd = panStart + const Offset(20.0, 20.0); + final TestGesture gesture = await tester.startGesture(panStart); + await tester.pump(); + await gesture.moveTo(panEnd); + await tester.pump(); + await gesture.up(); + await tester.pumpAndSettle(); + + expect( + tester.getRect(find.byType(Container).first), + rectMoreOrLessEquals(const Rect.fromLTRB(40.0, 96.0, 840.0, 575.0)), + ); + + // Zooms. + const Offset scaleStart1 = Offset(400.0, 300.0); + final Offset scaleStart2 = scaleStart1 + const Offset(10.0, 0.0); + final Offset scaleEnd1 = scaleStart1 - const Offset(10.0, 0.0); + final Offset scaleEnd2 = scaleStart2 + const Offset(10.0, 0.0); + final TestGesture gesture1 = await tester.createGesture(); + final TestGesture gesture2 = await tester.createGesture(); + await gesture1.down(scaleStart1); + await gesture2.down(scaleStart2); + await tester.pump(); + await gesture1.moveTo(scaleEnd1); + await gesture2.moveTo(scaleEnd2); + await tester.pump(); + await gesture1.up(); + await gesture2.up(); + await tester.pumpAndSettle(); + + expect( + tester.getRect(find.byType(Container).first), + rectMoreOrLessEquals(const Rect.fromLTRB(45.0, 96.0, 845.0, 575.0)), + ); + + await tester.tap(find.widgetWithIcon(IconButton, Icons.replay)); + await tester.pump(); + await tester.pump(const Duration(milliseconds: 200)); + + expect( + tester.getRect(find.byType(Container).first), + rectMoreOrLessEquals(const Rect.fromLTRB(22.5, 76.0, 822.5, 555.0)), + ); + + await tester.pump(const Duration(milliseconds: 200)); + + expect( + tester.getRect(find.byType(Container).first), + rectMoreOrLessEquals(const Rect.fromLTRB(0.0, 56.0, 800.0, 535.0)), + ); + }); +} diff --git a/flutter/examples/api/test/widgets/layout_builder/layout_builder.0_test.dart b/flutter/examples/api/test/widgets/layout_builder/layout_builder.0_test.dart index c2c954ba56996d7de33b0abb7a8e9621c7cd024c..38e737a7447f94bc011fadea58cd474ccf239bba 100644 --- a/flutter/examples/api/test/widgets/layout_builder/layout_builder.0_test.dart +++ b/flutter/examples/api/test/widgets/layout_builder/layout_builder.0_test.dart @@ -8,9 +8,7 @@ import 'package:flutter_test/flutter_test.dart'; void main() { testWidgets('has two containers when wide', (WidgetTester tester) async { - await tester.pumpWidget( - const example.LayoutBuilderExampleApp(), - ); + await tester.pumpWidget(const example.LayoutBuilderExampleApp()); final Finder containerFinder = find.byType(Container); expect(containerFinder, findsNWidgets(2)); diff --git a/flutter/examples/api/test/widgets/magnifier/cupertino_magnifier.0_test.dart b/flutter/examples/api/test/widgets/magnifier/cupertino_magnifier.0_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..b2c0d439b5541eb4af4df980f2d49a40a5f7ff04 --- /dev/null +++ b/flutter/examples/api/test/widgets/magnifier/cupertino_magnifier.0_test.dart @@ -0,0 +1,57 @@ +// 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/cupertino.dart'; +import 'package:flutter_api_samples/widgets/magnifier/cupertino_magnifier.0.dart' as example; +import 'package:flutter_test/flutter_test.dart'; + +void main() { + testWidgets('CupertinoMagnifier must be visible', (WidgetTester tester) async { + await tester.pumpWidget(const example.CupertinoMagnifierApp()); + + final Finder cupertinoMagnifierWidget = find.byType(CupertinoMagnifier); + expect(cupertinoMagnifierWidget, findsOneWidget); + }); + + testWidgets('CupertinoMagnifier is not using the default value', (WidgetTester tester) async { + await tester.pumpWidget(const example.CupertinoMagnifierApp()); + expect( + tester.widget(find.byType(CupertinoMagnifier)), + isA().having( + (CupertinoMagnifier t) => t.magnificationScale, + 'magnificationScale', + 1.5, + ), + ); + }); + + testWidgets('should update CupertinoMagnifier position on drag', (WidgetTester tester) async { + await tester.pumpWidget(const example.CupertinoMagnifierApp()); + + Matcher isPositionedAt(Offset at) { + return isA().having( + (Positioned positioned) => Offset(positioned.left!, positioned.top!), + 'magnifier position', + at, + ); + } + + // Make sure magnifier is present. + final Finder positionedWidget = find.byType(Positioned); + final Widget positionedWidgetInTree = tester.widget(positionedWidget.first); + final Positioned oldConcretePositioned = positionedWidgetInTree as Positioned; + final Offset centerOfPositioned = tester.getCenter(positionedWidget.first); + + // Drag the magnifier and confirm its new position is expected. + const Offset dragDistance = Offset(10, 10); + final Offset updatedPositioned = Offset( + oldConcretePositioned.left ?? 0.0 + 10.0, + oldConcretePositioned.top ?? 0.0 + 10.0, + ); + + await tester.dragFrom(centerOfPositioned, dragDistance); + await tester.pump(); + expect(positionedWidgetInTree, isPositionedAt(updatedPositioned)); + }); +} diff --git a/flutter/examples/api/test/widgets/magnifier/cupertino_text_magnifier.0_test.dart b/flutter/examples/api/test/widgets/magnifier/cupertino_text_magnifier.0_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..7d3b2699f7abcdd5ec3633e22112de4b87c6bc9a --- /dev/null +++ b/flutter/examples/api/test/widgets/magnifier/cupertino_text_magnifier.0_test.dart @@ -0,0 +1,21 @@ +// 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/cupertino.dart'; +import 'package:flutter_api_samples/widgets/magnifier/cupertino_text_magnifier.0.dart' as example; +import 'package:flutter_test/flutter_test.dart'; + +void main() { + testWidgets('CupertinoTextMagnifier must be visible after longPress', ( + WidgetTester tester, + ) async { + await tester.pumpWidget(const example.CupertinoTextMagnifierApp()); + + final Finder cupertinoTextFieldWidget = find.byType(CupertinoTextField); + await tester.longPress(cupertinoTextFieldWidget); + + final Finder cupertinoTextMagnifierWidget = find.byType(CupertinoTextMagnifier); + expect(cupertinoTextMagnifierWidget, findsOneWidget); + }); +} diff --git a/flutter/examples/api/test/widgets/magnifier/magnifier.0_test.dart b/flutter/examples/api/test/widgets/magnifier/magnifier.0_test.dart index 75702af3da864c54527efa0ef5f1333b53abfcec..f610426dc5b8f81ec7539333ecabc7af792946c4 100644 --- a/flutter/examples/api/test/widgets/magnifier/magnifier.0_test.dart +++ b/flutter/examples/api/test/widgets/magnifier/magnifier.0_test.dart @@ -3,8 +3,7 @@ // found in the LICENSE file. import 'package:flutter/material.dart'; -import 'package:flutter_api_samples/widgets/magnifier/magnifier.0.dart' - as example; +import 'package:flutter_api_samples/widgets/magnifier/magnifier.0.dart' as example; import 'package:flutter_test/flutter_test.dart'; void main() { @@ -19,38 +18,37 @@ void main() { ); } - expect( - tester.widget(find.byType(Positioned)), - isPositionedAt(Offset.zero), - ); + // Make sure magnifier is present. + final Finder positionedWidget = find.byType(Positioned); + final Widget positionedWidgetInTree = tester.widget(positionedWidget); + final Positioned oldConcretePositioned = positionedWidgetInTree as Positioned; + expect(positionedWidget, findsOneWidget); - final Offset centerOfFlutterLogo = tester.getCenter(find.byType(Positioned)); - final Offset topLeftOfFlutterLogo = tester.getTopLeft(find.byType(FlutterLogo)); + // Confirm if magnifier is in the center of the FlutterLogo. + final Offset centerOfPositioned = tester.getCenter(positionedWidget); + final Offset centerOfFlutterLogo = tester.getCenter(find.byType(FlutterLogo)); + expect(centerOfPositioned, equals(centerOfFlutterLogo)); + // Drag the magnifier and confirm its new position is expected. const Offset dragDistance = Offset(10, 10); - - await tester.dragFrom(centerOfFlutterLogo, dragDistance); - await tester.pump(); - - expect( - tester.widget(find.byType(Positioned)), - // Need to adjust by the topleft since the position is local. - isPositionedAt((centerOfFlutterLogo - topLeftOfFlutterLogo) + dragDistance), + final Offset updatedPositioned = Offset( + oldConcretePositioned.left ?? 0.0 + 10.0, + oldConcretePositioned.top ?? 0.0 + 10.0, ); + await tester.dragFrom(centerOfPositioned, dragDistance); + await tester.pump(); + expect(positionedWidgetInTree, isPositionedAt(updatedPositioned)); }); testWidgets('should match golden', (WidgetTester tester) async { await tester.pumpWidget(const example.MagnifierExampleApp()); - final Offset centerOfFlutterLogo = tester.getCenter(find.byType(Positioned)); + final Offset centerOfPositioned = tester.getCenter(find.byType(Positioned)); const Offset dragDistance = Offset(10, 10); - await tester.dragFrom(centerOfFlutterLogo, dragDistance); + await tester.dragFrom(centerOfPositioned, dragDistance); await tester.pump(); - await expectLater( - find.byType(RepaintBoundary).last, - matchesGoldenFile('magnifier.0_test.png'), - ); + await expectLater(find.byType(RepaintBoundary).last, matchesGoldenFile('magnifier.0_test.png')); }); } diff --git a/flutter/examples/api/test/widgets/media_query/media_query_data.system_gesture_insets.0_test.dart b/flutter/examples/api/test/widgets/media_query/media_query_data.system_gesture_insets.0_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..e00e7643893a31b2118618ed40d0ae49344dae3a --- /dev/null +++ b/flutter/examples/api/test/widgets/media_query/media_query_data.system_gesture_insets.0_test.dart @@ -0,0 +1,23 @@ +// 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_api_samples/widgets/media_query/media_query_data.system_gesture_insets.0.dart' + as example; +import 'package:flutter_test/flutter_test.dart'; + +void main() { + testWidgets('The slider should be padded with the system gesture insets', ( + WidgetTester tester, + ) async { + tester.view.systemGestureInsets = const FakeViewPadding(left: 60, right: 60); + await tester.pumpWidget(const example.SystemGestureInsetsExampleApp()); + + expect(find.widgetWithText(AppBar, 'Pad Slider to avoid systemGestureInsets'), findsOne); + + final Rect rect = tester.getRect(find.byType(Slider)); + + expect(rect, rectMoreOrLessEquals(const Rect.fromLTRB(20.0, 56.0, 780.0, 600.0))); + }); +} diff --git a/flutter/examples/api/test/widgets/navigator/navigator.0_test.dart b/flutter/examples/api/test/widgets/navigator/navigator.0_test.dart index 58f93077041940f62994dfdd11d95319bcc89b06..6f3ef17f8cf815d64c7b397cee7337a395ff41cc 100644 --- a/flutter/examples/api/test/widgets/navigator/navigator.0_test.dart +++ b/flutter/examples/api/test/widgets/navigator/navigator.0_test.dart @@ -7,18 +7,16 @@ import 'package:flutter_test/flutter_test.dart'; void main() { testWidgets('It should show the home page', (WidgetTester tester) async { - await tester.pumpWidget( - const example.NavigatorExampleApp(), - ); + await tester.pumpWidget(const example.NavigatorExampleApp()); expect(find.text('Home Page'), findsOne); }); - testWidgets('It should start from the sign up page and follow the flow to reach the home page', (WidgetTester tester) async { + testWidgets('It should start from the sign up page and follow the flow to reach the home page', ( + WidgetTester tester, + ) async { tester.platformDispatcher.defaultRouteNameTestValue = '/signup'; - await tester.pumpWidget( - const example.NavigatorExampleApp(), - ); + await tester.pumpWidget(const example.NavigatorExampleApp()); expect(find.text('Collect Personal Info Page'), findsOne); diff --git a/flutter/examples/api/test/widgets/navigator/navigator.restorable_push.0_test.dart b/flutter/examples/api/test/widgets/navigator/navigator.restorable_push.0_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..0dd225e55236d88cdac31bd9660e0ce57e5971c9 --- /dev/null +++ b/flutter/examples/api/test/widgets/navigator/navigator.restorable_push.0_test.dart @@ -0,0 +1,48 @@ +// 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_api_samples/widgets/navigator/navigator.restorable_push.0.dart' as example; +import 'package:flutter_test/flutter_test.dart'; + +void main() { + testWidgets('It pushes a restorable route and pops it', (WidgetTester tester) async { + await tester.pumpWidget(const example.RestorablePushExampleApp()); + + expect(find.widgetWithText(AppBar, 'Sample Code'), findsOne); + expect(find.byType(BackButton), findsNothing); + + await tester.tap(find.widgetWithIcon(FloatingActionButton, Icons.add)); + await tester.pumpAndSettle(); + + await tester.tap(find.byType(BackButton)); + await tester.pumpAndSettle(); + + expect(find.byType(BackButton), findsNothing); + }); + + testWidgets('It pushes a restorable route and restores it', (WidgetTester tester) async { + await tester.pumpWidget(const example.RestorablePushExampleApp()); + + expect(find.widgetWithText(AppBar, 'Sample Code'), findsOne); + expect(find.byType(BackButton), findsNothing); + + await tester.tap(find.widgetWithIcon(FloatingActionButton, Icons.add)); + await tester.pumpAndSettle(); + + await tester.restartAndRestore(); + + expect(find.byType(BackButton), findsOne); + + final TestRestorationData data = await tester.getRestorationData(); + + await tester.tap(find.byType(BackButton)); + await tester.pumpAndSettle(); + + expect(find.byType(BackButton), findsNothing); + + await tester.restoreFrom(data); + expect(find.byType(BackButton), findsOne); + }); +} diff --git a/flutter/examples/api/test/widgets/navigator/navigator.restorable_push_and_remove_until.0_test.dart b/flutter/examples/api/test/widgets/navigator/navigator.restorable_push_and_remove_until.0_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..0646113c063aecdcbca49c8fbf00c99c74ed2a1e --- /dev/null +++ b/flutter/examples/api/test/widgets/navigator/navigator.restorable_push_and_remove_until.0_test.dart @@ -0,0 +1,49 @@ +// 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_api_samples/widgets/navigator/navigator.restorable_push_and_remove_until.0.dart' + as example; +import 'package:flutter_test/flutter_test.dart'; + +void main() { + testWidgets('It pushes a restorable route and pops it', (WidgetTester tester) async { + await tester.pumpWidget(const example.RestorablePushAndRemoveUntilExampleApp()); + + expect(find.widgetWithText(AppBar, 'Sample Code'), findsOne); + expect(find.byType(BackButton), findsNothing); + + await tester.tap(find.widgetWithIcon(FloatingActionButton, Icons.add)); + await tester.pumpAndSettle(); + + await tester.tap(find.byType(BackButton)); + await tester.pumpAndSettle(); + + expect(find.byType(BackButton), findsNothing); + }); + + testWidgets('It pushes a restorable route and restores it', (WidgetTester tester) async { + await tester.pumpWidget(const example.RestorablePushAndRemoveUntilExampleApp()); + + expect(find.widgetWithText(AppBar, 'Sample Code'), findsOne); + expect(find.byType(BackButton), findsNothing); + + await tester.tap(find.widgetWithIcon(FloatingActionButton, Icons.add)); + await tester.pumpAndSettle(); + + await tester.restartAndRestore(); + + expect(find.byType(BackButton), findsOne); + + final TestRestorationData data = await tester.getRestorationData(); + + await tester.tap(find.byType(BackButton)); + await tester.pumpAndSettle(); + + expect(find.byType(BackButton), findsNothing); + + await tester.restoreFrom(data); + expect(find.byType(BackButton), findsOne); + }); +} diff --git a/flutter/examples/api/test/widgets/navigator/navigator.restorable_push_replacement.0_test.dart b/flutter/examples/api/test/widgets/navigator/navigator.restorable_push_replacement.0_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..7b4814479c7af635ea806334cd857f1c5dfce4bf --- /dev/null +++ b/flutter/examples/api/test/widgets/navigator/navigator.restorable_push_replacement.0_test.dart @@ -0,0 +1,38 @@ +// 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_api_samples/widgets/navigator/navigator.restorable_push_replacement.0.dart' + as example; +import 'package:flutter_test/flutter_test.dart'; + +void main() { + testWidgets('It pushes a restorable route and restores it', (WidgetTester tester) async { + await tester.pumpWidget(const example.RestorablePushReplacementExampleApp()); + + expect(find.widgetWithText(AppBar, 'Sample Code'), findsOne); + expect(find.text('This is the initial route.'), findsOne); + + final TestRestorationData initialData = await tester.getRestorationData(); + + await tester.tap(find.widgetWithIcon(FloatingActionButton, Icons.add)); + await tester.pumpAndSettle(); + + expect(find.text('This is a new route.'), findsOne); + + await tester.restartAndRestore(); + + expect(find.text('This is a new route.'), findsOne); + + final TestRestorationData pushedData = await tester.getRestorationData(); + + await tester.restoreFrom(initialData); + + await tester.pumpAndSettle(); + expect(find.text('This is the initial route.'), findsOne); + + await tester.restoreFrom(pushedData); + expect(find.text('This is a new route.'), findsOne); + }); +} diff --git a/flutter/examples/api/test/widgets/navigator/navigator_state.restorable_push.0_test.dart b/flutter/examples/api/test/widgets/navigator/navigator_state.restorable_push.0_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..988e33e5b25d4f5441a4f1ce56d32c860a3ba45f --- /dev/null +++ b/flutter/examples/api/test/widgets/navigator/navigator_state.restorable_push.0_test.dart @@ -0,0 +1,49 @@ +// 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_api_samples/widgets/navigator/navigator_state.restorable_push.0.dart' + as example; +import 'package:flutter_test/flutter_test.dart'; + +void main() { + testWidgets('It pushes a restorable route and pops it', (WidgetTester tester) async { + await tester.pumpWidget(const example.RestorablePushExampleApp()); + + expect(find.widgetWithText(AppBar, 'Sample Code'), findsOne); + expect(find.byType(BackButton), findsNothing); + + await tester.tap(find.widgetWithIcon(FloatingActionButton, Icons.add)); + await tester.pumpAndSettle(); + + await tester.tap(find.byType(BackButton)); + await tester.pumpAndSettle(); + + expect(find.byType(BackButton), findsNothing); + }); + + testWidgets('It pushes a restorable route and restores it', (WidgetTester tester) async { + await tester.pumpWidget(const example.RestorablePushExampleApp()); + + expect(find.widgetWithText(AppBar, 'Sample Code'), findsOne); + expect(find.byType(BackButton), findsNothing); + + await tester.tap(find.widgetWithIcon(FloatingActionButton, Icons.add)); + await tester.pumpAndSettle(); + + await tester.restartAndRestore(); + + expect(find.byType(BackButton), findsOne); + + final TestRestorationData data = await tester.getRestorationData(); + + await tester.tap(find.byType(BackButton)); + await tester.pumpAndSettle(); + + expect(find.byType(BackButton), findsNothing); + + await tester.restoreFrom(data); + expect(find.byType(BackButton), findsOne); + }); +} diff --git a/flutter/examples/api/test/widgets/navigator/navigator_state.restorable_push_and_remove_until.0_test.dart b/flutter/examples/api/test/widgets/navigator/navigator_state.restorable_push_and_remove_until.0_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..4feec668cddf62f6ce330468c9f82f244e479f60 --- /dev/null +++ b/flutter/examples/api/test/widgets/navigator/navigator_state.restorable_push_and_remove_until.0_test.dart @@ -0,0 +1,49 @@ +// 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_api_samples/widgets/navigator/navigator_state.restorable_push_and_remove_until.0.dart' + as example; +import 'package:flutter_test/flutter_test.dart'; + +void main() { + testWidgets('It pushes a restorable route and pops it', (WidgetTester tester) async { + await tester.pumpWidget(const example.RestorablePushAndRemoveUntilExampleApp()); + + expect(find.widgetWithText(AppBar, 'Sample Code'), findsOne); + expect(find.byType(BackButton), findsNothing); + + await tester.tap(find.widgetWithIcon(FloatingActionButton, Icons.add)); + await tester.pumpAndSettle(); + + await tester.tap(find.byType(BackButton)); + await tester.pumpAndSettle(); + + expect(find.byType(BackButton), findsNothing); + }); + + testWidgets('It pushes a restorable route and restores it', (WidgetTester tester) async { + await tester.pumpWidget(const example.RestorablePushAndRemoveUntilExampleApp()); + + expect(find.widgetWithText(AppBar, 'Sample Code'), findsOne); + expect(find.byType(BackButton), findsNothing); + + await tester.tap(find.widgetWithIcon(FloatingActionButton, Icons.add)); + await tester.pumpAndSettle(); + + await tester.restartAndRestore(); + + expect(find.byType(BackButton), findsOne); + + final TestRestorationData data = await tester.getRestorationData(); + + await tester.tap(find.byType(BackButton)); + await tester.pumpAndSettle(); + + expect(find.byType(BackButton), findsNothing); + + await tester.restoreFrom(data); + expect(find.byType(BackButton), findsOne); + }); +} diff --git a/flutter/examples/api/test/widgets/navigator/navigator_state.restorable_push_replacement.0_test.dart b/flutter/examples/api/test/widgets/navigator/navigator_state.restorable_push_replacement.0_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..c2aeebf6a1b5d1afc78c3f9f797d6fcc3b6fbd72 --- /dev/null +++ b/flutter/examples/api/test/widgets/navigator/navigator_state.restorable_push_replacement.0_test.dart @@ -0,0 +1,38 @@ +// 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_api_samples/widgets/navigator/navigator_state.restorable_push_replacement.0.dart' + as example; +import 'package:flutter_test/flutter_test.dart'; + +void main() { + testWidgets('It pushes a restorable route and restores it', (WidgetTester tester) async { + await tester.pumpWidget(const example.RestorablePushReplacementExampleApp()); + + expect(find.widgetWithText(AppBar, 'Sample Code'), findsOne); + expect(find.text('This is the initial route.'), findsOne); + + final TestRestorationData initialData = await tester.getRestorationData(); + + await tester.tap(find.widgetWithIcon(FloatingActionButton, Icons.add)); + await tester.pumpAndSettle(); + + expect(find.text('This is a new route.'), findsOne); + + await tester.restartAndRestore(); + + expect(find.text('This is a new route.'), findsOne); + + final TestRestorationData pushedData = await tester.getRestorationData(); + + await tester.restoreFrom(initialData); + + await tester.pumpAndSettle(); + expect(find.text('This is the initial route.'), findsOne); + + await tester.restoreFrom(pushedData); + expect(find.text('This is a new route.'), findsOne); + }); +} diff --git a/flutter/examples/api/test/widgets/navigator/restorable_route_future.0_test.dart b/flutter/examples/api/test/widgets/navigator/restorable_route_future.0_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..8771537366b555fca59276637f1318d3f50906fe --- /dev/null +++ b/flutter/examples/api/test/widgets/navigator/restorable_route_future.0_test.dart @@ -0,0 +1,76 @@ +// 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_api_samples/widgets/navigator/restorable_route_future.0.dart' as example; +import 'package:flutter_test/flutter_test.dart'; + +void main() { + testWidgets('It pushes a restorable route and pops it', (WidgetTester tester) async { + await tester.pumpWidget(const example.RestorableRouteFutureExampleApp()); + + expect(find.widgetWithText(AppBar, 'RestorableRouteFuture Example'), findsOne); + expect(find.byType(BackButton), findsNothing); + + expect(find.text('Last count: 0'), findsOne); + + await tester.tap(find.widgetWithText(ElevatedButton, 'Open Counter')); + await tester.pumpAndSettle(); + + expect(find.widgetWithText(AppBar, 'Awesome Counter'), findsOne); + expect(find.text('Count: 0'), findsOne); + + await tester.tap(find.widgetWithIcon(FloatingActionButton, Icons.add)); + await tester.pump(); + + expect(find.text('Count: 1'), findsOne); + + await tester.tap(find.byType(BackButton)); + await tester.pumpAndSettle(); + + expect(find.widgetWithText(AppBar, 'RestorableRouteFuture Example'), findsOne); + expect(find.text('Last count: 1'), findsOne); + }); + + testWidgets('It pushes a restorable route and restores it', (WidgetTester tester) async { + await tester.pumpWidget(const example.RestorableRouteFutureExampleApp()); + + expect(find.widgetWithText(AppBar, 'RestorableRouteFuture Example'), findsOne); + expect(find.byType(BackButton), findsNothing); + + expect(find.text('Last count: 0'), findsOne); + + await tester.tap(find.widgetWithText(ElevatedButton, 'Open Counter')); + await tester.pumpAndSettle(); + + expect(find.widgetWithText(AppBar, 'Awesome Counter'), findsOne); + expect(find.text('Count: 0'), findsOne); + + await tester.tap(find.widgetWithIcon(FloatingActionButton, Icons.add)); + await tester.pump(); + + expect(find.text('Count: 1'), findsOne); + + await tester.restartAndRestore(); + expect(find.byType(BackButton), findsOne); + + expect(find.text('Count: 1'), findsOne); + + final TestRestorationData data = await tester.getRestorationData(); + + await tester.tap(find.byType(BackButton)); + await tester.pumpAndSettle(); + + expect(find.byType(BackButton), findsNothing); + + expect(find.widgetWithText(AppBar, 'RestorableRouteFuture Example'), findsOne); + expect(find.text('Last count: 1'), findsOne); + + await tester.restoreFrom(data); + + expect(find.widgetWithText(AppBar, 'Awesome Counter'), findsOne); + expect(find.byType(BackButton), findsOne); + expect(find.text('Count: 1'), findsOne); + }); +} diff --git a/flutter/examples/api/test/widgets/navigator_pop_handler/navigator_pop_handler.0_test.dart b/flutter/examples/api/test/widgets/navigator_pop_handler/navigator_pop_handler.0_test.dart index 88f29223f60a40c9757d8026e7c6597358d63dbd..0c8a912534113960e85bb83279799ce0d80c952e 100644 --- a/flutter/examples/api/test/widgets/navigator_pop_handler/navigator_pop_handler.0_test.dart +++ b/flutter/examples/api/test/widgets/navigator_pop_handler/navigator_pop_handler.0_test.dart @@ -2,20 +2,53 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -import 'package:flutter_api_samples/widgets/navigator_pop_handler/navigator_pop_handler.0.dart' as example; +import 'package:flutter/foundation.dart'; +import 'package:flutter/material.dart'; +import 'package:flutter/services.dart'; + +import 'package:flutter_api_samples/widgets/navigator_pop_handler/navigator_pop_handler.0.dart' + as example; import 'package:flutter_test/flutter_test.dart'; import '../navigator_utils.dart'; void main() { - testWidgets('Can go back with system back gesture', (WidgetTester tester) async { - await tester.pumpWidget( - const example.NavigatorPopHandlerApp(), + bool? lastFrameworkHandlesBack; + setUp(() async { + lastFrameworkHandlesBack = null; + TestDefaultBinaryMessengerBinding.instance.defaultBinaryMessenger.setMockMethodCallHandler( + SystemChannels.platform, + (MethodCall methodCall) async { + if (methodCall.method == 'SystemNavigator.setFrameworkHandlesBack') { + expect(methodCall.arguments, isA()); + lastFrameworkHandlesBack = methodCall.arguments as bool; + } + return; + }, + ); + await TestDefaultBinaryMessengerBinding.instance.defaultBinaryMessenger.handlePlatformMessage( + 'flutter/lifecycle', + const StringCodec().encodeMessage(AppLifecycleState.resumed.toString()), + (ByteData? data) {}, ); + }); + + tearDown(() { + TestDefaultBinaryMessengerBinding.instance.defaultBinaryMessenger.setMockMethodCallHandler( + SystemChannels.platform, + null, + ); + }); + + testWidgets('Can go back with system back gesture', (WidgetTester tester) async { + await tester.pumpWidget(const example.NavigatorPopHandlerApp()); expect(find.text('Nested Navigators Example'), findsOneWidget); expect(find.text('Nested Navigators Page One'), findsNothing); expect(find.text('Nested Navigators Page Two'), findsNothing); + if (!kIsWeb && defaultTargetPlatform == TargetPlatform.android) { + expect(lastFrameworkHandlesBack, isFalse); + } await tester.tap(find.text('Nested Navigator route')); await tester.pumpAndSettle(); @@ -23,6 +56,9 @@ void main() { expect(find.text('Nested Navigators Example'), findsNothing); expect(find.text('Nested Navigators Page One'), findsOneWidget); expect(find.text('Nested Navigators Page Two'), findsNothing); + if (!kIsWeb && defaultTargetPlatform == TargetPlatform.android) { + expect(lastFrameworkHandlesBack, isTrue); + } await tester.tap(find.text('Go to another route in this nested Navigator')); await tester.pumpAndSettle(); @@ -30,6 +66,9 @@ void main() { expect(find.text('Nested Navigators Example'), findsNothing); expect(find.text('Nested Navigators Page One'), findsNothing); expect(find.text('Nested Navigators Page Two'), findsOneWidget); + if (!kIsWeb && defaultTargetPlatform == TargetPlatform.android) { + expect(lastFrameworkHandlesBack, isTrue); + } await simulateSystemBack(); await tester.pumpAndSettle(); @@ -37,6 +76,9 @@ void main() { expect(find.text('Nested Navigators Example'), findsNothing); expect(find.text('Nested Navigators Page One'), findsOneWidget); expect(find.text('Nested Navigators Page Two'), findsNothing); + if (!kIsWeb && defaultTargetPlatform == TargetPlatform.android) { + expect(lastFrameworkHandlesBack, isTrue); + } await simulateSystemBack(); await tester.pumpAndSettle(); @@ -44,5 +86,48 @@ void main() { expect(find.text('Nested Navigators Example'), findsOneWidget); expect(find.text('Nested Navigators Page One'), findsNothing); expect(find.text('Nested Navigators Page Two'), findsNothing); + if (!kIsWeb && defaultTargetPlatform == TargetPlatform.android) { + expect(lastFrameworkHandlesBack, isFalse); + } + }); + + testWidgets('restoring the app preserves the navigation stack', (WidgetTester tester) async { + await tester.pumpWidget(const example.NavigatorPopHandlerApp()); + + expect(find.text('Nested Navigators Example'), findsOneWidget); + expect(find.text('Nested Navigators Page One'), findsNothing); + expect(find.text('Nested Navigators Page Two'), findsNothing); + if (!kIsWeb && defaultTargetPlatform == TargetPlatform.android) { + expect(lastFrameworkHandlesBack, isFalse); + } + + await tester.tap(find.text('Nested Navigator route')); + await tester.pumpAndSettle(); + + expect(find.text('Nested Navigators Example'), findsNothing); + expect(find.text('Nested Navigators Page One'), findsOneWidget); + expect(find.text('Nested Navigators Page Two'), findsNothing); + if (!kIsWeb && defaultTargetPlatform == TargetPlatform.android) { + expect(lastFrameworkHandlesBack, isTrue); + } + + await tester.tap(find.text('Go to another route in this nested Navigator')); + await tester.pumpAndSettle(); + + expect(find.text('Nested Navigators Example'), findsNothing); + expect(find.text('Nested Navigators Page One'), findsNothing); + expect(find.text('Nested Navigators Page Two'), findsOneWidget); + if (!kIsWeb && defaultTargetPlatform == TargetPlatform.android) { + expect(lastFrameworkHandlesBack, isTrue); + } + + await tester.restartAndRestore(); + + expect(find.text('Nested Navigators Example'), findsNothing); + expect(find.text('Nested Navigators Page One'), findsNothing); + expect(find.text('Nested Navigators Page Two'), findsOneWidget); + if (!kIsWeb && defaultTargetPlatform == TargetPlatform.android) { + expect(lastFrameworkHandlesBack, isTrue); + } }); } diff --git a/flutter/examples/api/test/widgets/navigator_pop_handler/navigator_pop_handler.1_test.dart b/flutter/examples/api/test/widgets/navigator_pop_handler/navigator_pop_handler.1_test.dart index a6ea0ac82806f16f9ba51e55caecc198f911c2e3..2a5bdb75d8dbe39912a98ebeb287d4a33051377b 100644 --- a/flutter/examples/api/test/widgets/navigator_pop_handler/navigator_pop_handler.1_test.dart +++ b/flutter/examples/api/test/widgets/navigator_pop_handler/navigator_pop_handler.1_test.dart @@ -2,37 +2,133 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -import 'package:flutter_api_samples/widgets/navigator_pop_handler/navigator_pop_handler.1.dart' as example; +import 'package:flutter/foundation.dart'; +import 'package:flutter/material.dart'; +import 'package:flutter/services.dart'; + +import 'package:flutter_api_samples/widgets/navigator_pop_handler/navigator_pop_handler.1.dart' + as example; import 'package:flutter_test/flutter_test.dart'; import '../navigator_utils.dart'; void main() { - testWidgets("System back gesture operates on current tab's nested Navigator", (WidgetTester tester) async { - await tester.pumpWidget( - const example.NavigatorPopHandlerApp(), + bool? lastFrameworkHandlesBack; + setUp(() async { + lastFrameworkHandlesBack = null; + TestDefaultBinaryMessengerBinding.instance.defaultBinaryMessenger.setMockMethodCallHandler( + SystemChannels.platform, + (MethodCall methodCall) async { + if (methodCall.method == 'SystemNavigator.setFrameworkHandlesBack') { + expect(methodCall.arguments, isA()); + lastFrameworkHandlesBack = methodCall.arguments as bool; + } + return; + }, + ); + await TestDefaultBinaryMessengerBinding.instance.defaultBinaryMessenger.handlePlatformMessage( + 'flutter/lifecycle', + const StringCodec().encodeMessage(AppLifecycleState.resumed.toString()), + (ByteData? data) {}, ); + }); + + tearDown(() { + TestDefaultBinaryMessengerBinding.instance.defaultBinaryMessenger.setMockMethodCallHandler( + SystemChannels.platform, + null, + ); + }); + + testWidgets("System back gesture operates on current tab's nested Navigator", ( + WidgetTester tester, + ) async { + await tester.pumpWidget(const example.NavigatorPopHandlerApp()); expect(find.text('Bottom nav - tab Home Tab - route _TabPage.home'), findsOneWidget); + if (!kIsWeb && defaultTargetPlatform == TargetPlatform.android) { + expect(lastFrameworkHandlesBack, isFalse); + } // Go to the next route in this tab. await tester.tap(find.text('Go to another route in this nested Navigator')); await tester.pumpAndSettle(); expect(find.text('Bottom nav - tab Home Tab - route _TabPage.one'), findsOneWidget); + if (!kIsWeb && defaultTargetPlatform == TargetPlatform.android) { + expect(lastFrameworkHandlesBack, isTrue); + } // Go to another tab. await tester.tap(find.text('Go to One')); await tester.pumpAndSettle(); expect(find.text('Bottom nav - tab Tab One - route _TabPage.home'), findsOneWidget); + if (!kIsWeb && defaultTargetPlatform == TargetPlatform.android) { + expect(lastFrameworkHandlesBack, isFalse); + } + + // Return to the home tab. The navigation state is preserved. + await tester.tap(find.text('Go to Home')); + await tester.pumpAndSettle(); + expect(find.text('Bottom nav - tab Home Tab - route _TabPage.one'), findsOneWidget); + if (!kIsWeb && defaultTargetPlatform == TargetPlatform.android) { + expect(lastFrameworkHandlesBack, isTrue); + } + + // A back pops the navigation stack of the current tab's nested Navigator. + await simulateSystemBack(); + await tester.pumpAndSettle(); + expect(find.text('Bottom nav - tab Home Tab - route _TabPage.home'), findsOneWidget); + + if (!kIsWeb && defaultTargetPlatform == TargetPlatform.android) { + expect(lastFrameworkHandlesBack, isFalse); + } + }); + + testWidgets('restoring the app preserves the navigation stack', (WidgetTester tester) async { + await tester.pumpWidget(const example.NavigatorPopHandlerApp()); + + expect(find.text('Bottom nav - tab Home Tab - route _TabPage.home'), findsOneWidget); + if (!kIsWeb && defaultTargetPlatform == TargetPlatform.android) { + expect(lastFrameworkHandlesBack, isFalse); + } + + // Go to the next route in this tab. + await tester.tap(find.text('Go to another route in this nested Navigator')); + await tester.pumpAndSettle(); + expect(find.text('Bottom nav - tab Home Tab - route _TabPage.one'), findsOneWidget); + if (!kIsWeb && defaultTargetPlatform == TargetPlatform.android) { + expect(lastFrameworkHandlesBack, isTrue); + } + + // Go to another tab. + await tester.tap(find.text('Go to One')); + await tester.pumpAndSettle(); + expect(find.text('Bottom nav - tab Tab One - route _TabPage.home'), findsOneWidget); + if (!kIsWeb && defaultTargetPlatform == TargetPlatform.android) { + expect(lastFrameworkHandlesBack, isFalse); + } + + await tester.restartAndRestore(); + + expect(find.text('Bottom nav - tab Tab One - route _TabPage.home'), findsOneWidget); + if (!kIsWeb && defaultTargetPlatform == TargetPlatform.android) { + expect(lastFrameworkHandlesBack, isFalse); + } // Return to the home tab. The navigation state is preserved. await tester.tap(find.text('Go to Home')); await tester.pumpAndSettle(); expect(find.text('Bottom nav - tab Home Tab - route _TabPage.one'), findsOneWidget); + if (!kIsWeb && defaultTargetPlatform == TargetPlatform.android) { + expect(lastFrameworkHandlesBack, isTrue); + } // A back pops the navigation stack of the current tab's nested Navigator. await simulateSystemBack(); await tester.pumpAndSettle(); expect(find.text('Bottom nav - tab Home Tab - route _TabPage.home'), findsOneWidget); + if (!kIsWeb && defaultTargetPlatform == TargetPlatform.android) { + expect(lastFrameworkHandlesBack, isFalse); + } }); } diff --git a/flutter/examples/api/test/widgets/navigator_utils.dart b/flutter/examples/api/test/widgets/navigator_utils.dart index 46f1f9b1ac469b0b62969dcd47c1567b39fe227e..a6f0a646b74d1f9797946c1b5592540e29b135d8 100644 --- a/flutter/examples/api/test/widgets/navigator_utils.dart +++ b/flutter/examples/api/test/widgets/navigator_utils.dart @@ -12,9 +12,7 @@ import 'package:flutter_test/flutter_test.dart'; Future simulateSystemBack() { return TestDefaultBinaryMessengerBinding.instance.defaultBinaryMessenger.handlePlatformMessage( 'flutter/navigation', - const JSONMessageCodec().encodeMessage({ - 'method': 'popRoute', - }), + const JSONMessageCodec().encodeMessage({'method': 'popRoute'}), (ByteData? _) {}, ); } diff --git a/flutter/examples/api/test/widgets/nested_scroll_view/nested_scroll_view.0_test.dart b/flutter/examples/api/test/widgets/nested_scroll_view/nested_scroll_view.0_test.dart index 5a9ee19f792a20f72125732017e1aef67f1ccdb3..f27c0d472d0be7b23a38169c38035b3cc5b26733 100644 --- a/flutter/examples/api/test/widgets/nested_scroll_view/nested_scroll_view.0_test.dart +++ b/flutter/examples/api/test/widgets/nested_scroll_view/nested_scroll_view.0_test.dart @@ -3,7 +3,8 @@ // found in the LICENSE file. import 'package:flutter/material.dart'; -import 'package:flutter_api_samples/widgets/nested_scroll_view/nested_scroll_view.0.dart' as example; +import 'package:flutter_api_samples/widgets/nested_scroll_view/nested_scroll_view.0.dart' + as example; import 'package:flutter_test/flutter_test.dart'; void main() { @@ -36,9 +37,6 @@ void main() { await tester.pump(); expect(find.text('Item 1'), findsNothing); - expect( - tester.getTopLeft(find.byType(TabBarView)).dy, - lessThan(initialAppBarHeight), - ); + expect(tester.getTopLeft(find.byType(TabBarView)).dy, lessThan(initialAppBarHeight)); }); } diff --git a/flutter/examples/api/test/widgets/nested_scroll_view/nested_scroll_view.1_test.dart b/flutter/examples/api/test/widgets/nested_scroll_view/nested_scroll_view.1_test.dart index 4b897b6bbc87cfe2e2ec72c4452739d6766ae64c..4019ca3f7579aabc2ed8541c1b66ba3ea2ba2df1 100644 --- a/flutter/examples/api/test/widgets/nested_scroll_view/nested_scroll_view.1_test.dart +++ b/flutter/examples/api/test/widgets/nested_scroll_view/nested_scroll_view.1_test.dart @@ -3,7 +3,8 @@ // found in the LICENSE file. import 'package:flutter/material.dart'; -import 'package:flutter_api_samples/widgets/nested_scroll_view/nested_scroll_view.1.dart' as example; +import 'package:flutter_api_samples/widgets/nested_scroll_view/nested_scroll_view.1.dart' + as example; import 'package:flutter_test/flutter_test.dart'; void main() { diff --git a/flutter/examples/api/test/widgets/nested_scroll_view/nested_scroll_view.2_test.dart b/flutter/examples/api/test/widgets/nested_scroll_view/nested_scroll_view.2_test.dart index 86fbd9b563467d730d31c2c2e258b6b3d1504f54..456a3ae7f820a6ebbd5485f9a3d8406e266c6e70 100644 --- a/flutter/examples/api/test/widgets/nested_scroll_view/nested_scroll_view.2_test.dart +++ b/flutter/examples/api/test/widgets/nested_scroll_view/nested_scroll_view.2_test.dart @@ -4,7 +4,8 @@ import 'package:flutter/gestures.dart'; import 'package:flutter/material.dart'; -import 'package:flutter_api_samples/widgets/nested_scroll_view/nested_scroll_view.2.dart' as example; +import 'package:flutter_api_samples/widgets/nested_scroll_view/nested_scroll_view.2.dart' + as example; import 'package:flutter_test/flutter_test.dart'; void main() { diff --git a/flutter/examples/api/test/widgets/nested_scroll_view/nested_scroll_view_state.0_test.dart b/flutter/examples/api/test/widgets/nested_scroll_view/nested_scroll_view_state.0_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..d09fa9b1b7ae97087639f43b1ed408ec616a3413 --- /dev/null +++ b/flutter/examples/api/test/widgets/nested_scroll_view/nested_scroll_view_state.0_test.dart @@ -0,0 +1,38 @@ +// 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/gestures.dart'; +import 'package:flutter/material.dart'; +import 'package:flutter_api_samples/widgets/nested_scroll_view/nested_scroll_view_state.0.dart' + as example; +import 'package:flutter_test/flutter_test.dart'; + +void main() { + testWidgets('Access the outer and inner controllers', (WidgetTester tester) async { + await tester.pumpWidget(const example.NestedScrollViewStateExampleApp()); + + expect(find.byType(NestedScrollView), findsOne); + expect(find.widgetWithText(SliverAppBar, 'NestedScrollViewState Demo!'), findsOne); + expect(find.byType(CustomScrollView), findsOne); + + final example.NestedScrollViewStateExample widget = tester + .widget( + find.byType(example.NestedScrollViewStateExample), + ); + + final ScrollController outerController = widget.outerController; + final ScrollController innerController = widget.innerController; + + expect(outerController.offset, 0); + expect(innerController.offset, 0); + + await tester.sendEventToBinding(const PointerScrollEvent(scrollDelta: Offset(0.0, 10.0))); + await tester.pump(); + + await tester.pumpAndSettle(); + + expect(outerController.offset, 10); + expect(innerController.offset, 0); + }); +} diff --git a/flutter/examples/api/test/widgets/notification_listener/notification.0_test.dart b/flutter/examples/api/test/widgets/notification_listener/notification.0_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..f8656a77c21e7270c595c34cfc9962b79a78e3ef --- /dev/null +++ b/flutter/examples/api/test/widgets/notification_listener/notification.0_test.dart @@ -0,0 +1,119 @@ +// 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/foundation.dart'; +import 'package:flutter/gestures.dart'; +import 'package:flutter/material.dart'; +import 'package:flutter_api_samples/widgets/notification_listener/notification.0.dart' as example; +import 'package:flutter_test/flutter_test.dart'; + +void main() { + testWidgets('Shows all elements', (WidgetTester tester) async { + final DebugPrintCallback originalDebugPrint = debugPrint; + debugPrint = (String? message, {int? wrapWidth}) {}; + await tester.pumpWidget(const example.NotificationExampleApp()); + + expect(find.byType(NestedScrollView), findsOne); + expect(find.widgetWithText(SliverAppBar, 'Notification Sample'), findsOne); + expect(find.byType(TabBarView), findsOne); + expect(find.widgetWithText(Tab, 'Months'), findsOne); + expect(find.widgetWithText(Tab, 'Days'), findsOne); + expect(find.widgetWithText(ListTile, 'January'), findsOne); + expect(find.widgetWithText(ListTile, 'February'), findsOne); + expect(find.widgetWithText(ListTile, 'March'), findsOne); + + await tester.tap(find.text('Days')); + await tester.pumpAndSettle(); + + expect(find.widgetWithText(ListTile, 'Sunday'), findsOne); + expect(find.widgetWithText(ListTile, 'Monday'), findsOne); + expect(find.widgetWithText(ListTile, 'Tuesday'), findsOne); + + debugPrint = originalDebugPrint; + }); + + testWidgets('Scrolling the scroll view triggers the notification', (WidgetTester tester) async { + final DebugPrintCallback originalDebugPrint = debugPrint; + final List logs = []; + debugPrint = (String? message, {int? wrapWidth}) { + logs.add(message!); + }; + await tester.pumpWidget(const example.NotificationExampleApp()); + + final TestPointer testPointer = TestPointer(1, PointerDeviceKind.mouse); + testPointer.hover(tester.getCenter(find.byType(NestedScrollView))); + await tester.sendEventToBinding(testPointer.scroll(const Offset(0.0, 10))); + expect( + logs, + orderedEquals(const [ + 'Scrolling has started', + 'Scrolling has started', + 'Scrolling has ended', + 'Scrolling has ended', + ]), + ); + debugPrint = originalDebugPrint; + }); + + testWidgets('Changing tabs triggers the notification', (WidgetTester tester) async { + final DebugPrintCallback originalDebugPrint = debugPrint; + final List logs = []; + debugPrint = (String? message, {int? wrapWidth}) { + logs.add(message!); + }; + await tester.pumpWidget(const example.NotificationExampleApp()); + + final TestPointer testPointer = TestPointer(1, PointerDeviceKind.mouse); + testPointer.hover(tester.getCenter(find.byType(NestedScrollView))); + await tester.sendEventToBinding(testPointer.scroll(const Offset(500, 0))); + expect( + logs, + orderedEquals(const [ + 'Scrolling has started', + 'Scrolling has ended', + 'Scrolling has started', + ]), + ); + await tester.pumpAndSettle(); + expect( + logs, + orderedEquals(const [ + 'Scrolling has started', + 'Scrolling has ended', + 'Scrolling has started', + 'Scrolling has ended', + ]), + ); + + await tester.tap(find.text('Months')); + await tester.pump(); + + expect( + logs, + orderedEquals(const [ + 'Scrolling has started', + 'Scrolling has ended', + 'Scrolling has started', + 'Scrolling has ended', + 'Scrolling has started', + ]), + ); + + await tester.pumpAndSettle(); + + expect( + logs, + orderedEquals(const [ + 'Scrolling has started', + 'Scrolling has ended', + 'Scrolling has started', + 'Scrolling has ended', + 'Scrolling has started', + 'Scrolling has ended', + ]), + ); + + debugPrint = originalDebugPrint; + }); +} diff --git a/flutter/examples/api/test/widgets/overflow_bar/overflow_bar.0_test.dart b/flutter/examples/api/test/widgets/overflow_bar/overflow_bar.0_test.dart index 56d67ec8c5a7429e7b0f6355e944d0248eaf8e52..e3996e72f7798b443dcbd051457de13794983d96 100644 --- a/flutter/examples/api/test/widgets/overflow_bar/overflow_bar.0_test.dart +++ b/flutter/examples/api/test/widgets/overflow_bar/overflow_bar.0_test.dart @@ -8,18 +8,13 @@ import 'package:flutter_test/flutter_test.dart'; void main() { testWidgets('OverflowBar displays buttons', (WidgetTester tester) async { - await tester.pumpWidget( - const example.OverflowBarExampleApp(), - ); + await tester.pumpWidget(const example.OverflowBarExampleApp()); // Creates a finder that matches widgets of the given // `widgetType`, ensuring that the given widgets exist // inside of an OverflowBar. Finder buttonsFinder(Type widgetType) { - return find.descendant( - of: find.byType(OverflowBar), - matching: find.byType(widgetType), - ); + return find.descendant(of: find.byType(OverflowBar), matching: find.byType(widgetType)); } expect(buttonsFinder(TextButton), findsNWidgets(2)); diff --git a/flutter/examples/api/test/widgets/overlay/overlay.0_test.dart b/flutter/examples/api/test/widgets/overlay/overlay.0_test.dart index c626fe17fee25190cfa0fa679cbd82004278a450..a0afff2ceab34364fadd6b3a927a48aa09402d91 100644 --- a/flutter/examples/api/test/widgets/overlay/overlay.0_test.dart +++ b/flutter/examples/api/test/widgets/overlay/overlay.0_test.dart @@ -7,14 +7,14 @@ import 'package:flutter_api_samples/widgets/overlay/overlay.0.dart' as example; import 'package:flutter_test/flutter_test.dart'; void main() { - testWidgets('Can use Overlay to highlight NavigationBar destination', (WidgetTester tester) async { + testWidgets('Can use Overlay to highlight NavigationBar destination', ( + WidgetTester tester, + ) async { const String explorePage = 'Explore page'; const String commutePage = 'Commute page'; const String savedPage = 'Saved page'; - await tester.pumpWidget( - const example.OverlayApp(), - ); + await tester.pumpWidget(const example.OverlayApp()); expect(find.text(explorePage), findsNothing); expect(find.text(commutePage), findsNothing); @@ -38,4 +38,17 @@ void main() { expect(find.text(commutePage), findsNothing); expect(find.text(savedPage), findsNothing); }); + + testWidgets('Narrow layout does not overflow', (WidgetTester tester) async { + // Set a narrow screen size. + tester.view + ..physicalSize = const Size(320, 480) + ..devicePixelRatio = 1; + addTearDown(tester.view.reset); + + await tester.pumpWidget(const example.OverlayApp()); + + // Verify that no overflow errors occur. + expect(tester.takeException(), isNull); + }); } diff --git a/flutter/examples/api/test/widgets/overlay/overlay_portal.0_test.dart b/flutter/examples/api/test/widgets/overlay/overlay_portal.0_test.dart index 2f104aff30afcad772eb7f85f5e8d98526f03280..e03d1d9532523d8496b6c7aed069d01238e3cb66 100644 --- a/flutter/examples/api/test/widgets/overlay/overlay_portal.0_test.dart +++ b/flutter/examples/api/test/widgets/overlay/overlay_portal.0_test.dart @@ -27,10 +27,7 @@ void main() { await tester.pump(); final Size canvasSize = tester.getSize(find.byType(example.OverlayPortalExampleApp)); - expect( - tester.getBottomRight(find.text(tooltipText)), - canvasSize - const Size(50, 50), - ); + expect(tester.getBottomRight(find.text(tooltipText)), canvasSize - const Size(50, 50)); }); testWidgets('Tooltip is shown with the right font size', (WidgetTester tester) async { @@ -38,7 +35,8 @@ void main() { await tester.tap(find.byType(example.ClickableTooltipWidget)); await tester.pump(); - final TextSpan textSpan = tester.renderObject(find.text(tooltipText)).text as TextSpan; + final TextSpan textSpan = + tester.renderObject(find.text(tooltipText)).text as TextSpan; expect(textSpan.style?.fontSize, 50); }); } diff --git a/flutter/examples/api/test/widgets/overscroll_indicator/glowing_overscroll_indicator.0_test.dart b/flutter/examples/api/test/widgets/overscroll_indicator/glowing_overscroll_indicator.0_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..89c24ad00bedbb5ba28147009fc9b560f9272996 --- /dev/null +++ b/flutter/examples/api/test/widgets/overscroll_indicator/glowing_overscroll_indicator.0_test.dart @@ -0,0 +1,100 @@ +// 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/rendering.dart'; +import 'package:flutter_api_samples/widgets/overscroll_indicator/glowing_overscroll_indicator.0.dart' + as example; +import 'package:flutter_test/flutter_test.dart'; + +void main() { + testWidgets('Displays widget tree when the example app is run', (WidgetTester tester) async { + await tester.pumpWidget(const example.GlowingOverscrollIndicatorExampleApp()); + + expect( + find.descendant( + of: find.byType(Scaffold), + matching: find.widgetWithText(AppBar, 'GlowingOverscrollIndicator Sample'), + ), + findsOne, + ); + + final Finder customScrollViewFinder = find.byType(CustomScrollView); + final Finder sliverAppBarFinder = find.descendant( + of: customScrollViewFinder, + matching: find.widgetWithText(SliverAppBar, 'Custom PaintOffset'), + ); + + expect(sliverAppBarFinder, findsOne); + + expect( + find.descendant( + of: customScrollViewFinder, + matching: find.widgetWithText(Center, 'Glow all day!'), + ), + findsOne, + ); + + expect( + find.descendant(of: customScrollViewFinder, matching: find.byType(SliverToBoxAdapter)), + findsOne, + ); + + expect( + find.descendant( + of: customScrollViewFinder, + matching: find.widgetWithIcon(SliverFillRemaining, Icons.sunny), + ), + findsOne, + ); + + expect( + find.descendant( + of: customScrollViewFinder, + matching: find.byType(GlowingOverscrollIndicator), + ), + findsOne, + ); + + // Check if GlowingOverscrollIndicator overlays the SliverAppBar. + final RenderBox overscrollIndicator = tester.renderObject( + find.descendant( + of: customScrollViewFinder, + matching: find.byType(GlowingOverscrollIndicator), + ), + ); + final RenderSliver sliverAppBar = tester.renderObject(sliverAppBarFinder); + final Matrix4 transform = overscrollIndicator.getTransformTo(sliverAppBar); + final Offset? offset = MatrixUtils.getAsTranslation(transform); + expect(offset?.dy, 0); + }); + + testWidgets('Triggers a notification listener when the screen is dragged', ( + WidgetTester tester, + ) async { + bool overscrollNotified = false; + double leadingPaintOffset = 0.0; + + await tester.pumpWidget( + NotificationListener( + onNotification: (OverscrollIndicatorNotification notification) { + overscrollNotified = true; + leadingPaintOffset = notification.paintOffset; + return false; + }, + child: const example.GlowingOverscrollIndicatorExampleApp(), + ), + ); + + expect(leadingPaintOffset, 0); + expect(overscrollNotified, isFalse); + final BuildContext context = tester.element(find.byType(MaterialApp)); + + await tester.drag(find.byType(CustomScrollView), const Offset(0, 500)); + await tester.pump(); + + expect(leadingPaintOffset, MediaQuery.paddingOf(context).top + kToolbarHeight); + expect(overscrollNotified, isTrue); + }); +} diff --git a/flutter/examples/api/test/widgets/overscroll_indicator/glowing_overscroll_indicator.1_test.dart b/flutter/examples/api/test/widgets/overscroll_indicator/glowing_overscroll_indicator.1_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..e00bdf4445425c55bd9f309c321fb970b3c72009 --- /dev/null +++ b/flutter/examples/api/test/widgets/overscroll_indicator/glowing_overscroll_indicator.1_test.dart @@ -0,0 +1,76 @@ +// 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/rendering.dart'; +import 'package:flutter_api_samples/widgets/overscroll_indicator/glowing_overscroll_indicator.1.dart' + as example; +import 'package:flutter_test/flutter_test.dart'; + +void main() { + testWidgets('Displays widget tree when the example app is run', (WidgetTester tester) async { + await tester.pumpWidget(const example.GlowingOverscrollIndicatorExampleApp()); + + expect( + find.descendant( + of: find.byType(Scaffold), + matching: find.widgetWithText(AppBar, 'GlowingOverscrollIndicator Sample'), + ), + findsOne, + ); + + expect( + find.descendant( + of: find.byType(NestedScrollView), + matching: find.widgetWithText(SliverAppBar, 'Custom NestedScrollViews'), + ), + findsOne, + ); + + expect( + find.descendant( + of: find.byType(NestedScrollView), + matching: find.widgetWithText(Center, 'Glow all day!'), + ), + findsOne, + ); + + final Finder customScrollViewFinder = find.byType(CustomScrollView); + + expect( + find.descendant(of: customScrollViewFinder, matching: find.byType(SliverToBoxAdapter)), + findsOne, + ); + + expect( + find.descendant( + of: customScrollViewFinder, + matching: find.widgetWithIcon(SliverFillRemaining, Icons.sunny), + ), + findsOne, + ); + + expect( + find.descendant( + of: customScrollViewFinder, + matching: find.byType(GlowingOverscrollIndicator), + ), + findsOne, + ); + + // Check if GlowingOverscrollIndicator starts just after the SliverAppBar. + final RenderBox overscrollIndicator = tester.renderObject( + find.descendant( + of: customScrollViewFinder, + matching: find.byType(GlowingOverscrollIndicator), + ), + ); + final RenderSliver sliverAppBar = tester.renderObject( + find.widgetWithText(SliverAppBar, 'Custom NestedScrollViews'), + ); + final Matrix4 transform = overscrollIndicator.getTransformTo(sliverAppBar); + final Offset? offset = MatrixUtils.getAsTranslation(transform); + expect(offset?.dy, sliverAppBar.geometry?.paintExtent); + }); +} diff --git a/flutter/examples/api/test/widgets/page/page_can_pop.0_test.dart b/flutter/examples/api/test/widgets/page/page_can_pop.0_test.dart index c78205e34e9dd93dd8fc9234031c14c58ff24e48..0941c9099f108fade1e313cf3efac0d905ecb28d 100644 --- a/flutter/examples/api/test/widgets/page/page_can_pop.0_test.dart +++ b/flutter/examples/api/test/widgets/page/page_can_pop.0_test.dart @@ -9,9 +9,7 @@ import '../navigator_utils.dart'; void main() { testWidgets('Can choose to stay on page', (WidgetTester tester) async { - await tester.pumpWidget( - const example.PageApiExampleApp(), - ); + await tester.pumpWidget(const example.PageApiExampleApp()); expect(find.text('Home'), findsOneWidget); @@ -31,9 +29,7 @@ void main() { }); testWidgets('Can choose to go back', (WidgetTester tester) async { - await tester.pumpWidget( - const example.PageApiExampleApp(), - ); + await tester.pumpWidget(const example.PageApiExampleApp()); expect(find.text('Home'), findsOneWidget); diff --git a/flutter/examples/api/test/widgets/page_storage/page_storage.0_test.dart b/flutter/examples/api/test/widgets/page_storage/page_storage.0_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..4a2c26767c652e76fe521d6b86af00144e4e863e --- /dev/null +++ b/flutter/examples/api/test/widgets/page_storage/page_storage.0_test.dart @@ -0,0 +1,37 @@ +// 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_api_samples/widgets/page_storage/page_storage.0.dart' as example; +import 'package:flutter_test/flutter_test.dart'; + +void main() { + testWidgets('Can choose to stay on page', (WidgetTester tester) async { + await tester.pumpWidget(const example.PageStorageExampleApp()); + + expect(find.widgetWithText(AppBar, 'Persistence Example'), findsOne); + + expect(find.text('0'), findsOne); + + await tester.scrollUntilVisible(find.text('10'), 100); + + expect(find.text('0'), findsNothing); + + await tester.tap(find.byIcon(Icons.settings)); + await tester.pumpAndSettle(); + + expect(find.text('0'), findsOne); + await tester.scrollUntilVisible(find.text('20'), 100); + + await tester.tap(find.byIcon(Icons.home)); + await tester.pumpAndSettle(); + + expect(find.text('10'), findsOne); + + await tester.tap(find.byIcon(Icons.settings)); + await tester.pumpAndSettle(); + + expect(find.text('20'), findsOne); + }); +} diff --git a/flutter/examples/api/test/widgets/page_view/page_view.0_test.dart b/flutter/examples/api/test/widgets/page_view/page_view.0_test.dart index a994f22d0aa4d233dff97cafc838daca7ef6c3a5..e6282b95c7d2d4bfe80b84825c0730bd8042ea4b 100644 --- a/flutter/examples/api/test/widgets/page_view/page_view.0_test.dart +++ b/flutter/examples/api/test/widgets/page_view/page_view.0_test.dart @@ -8,9 +8,7 @@ import 'package:flutter_test/flutter_test.dart'; void main() { testWidgets('PageView swipe gestures on mobile platforms', (WidgetTester tester) async { - await tester.pumpWidget( - const example.PageViewExampleApp(), - ); + await tester.pumpWidget(const example.PageViewExampleApp()); // Verify that first page is shown initially. expect(find.text('First Page'), findsOneWidget); @@ -28,39 +26,43 @@ void main() { expect(find.text('First Page'), findsOneWidget); }, variant: TargetPlatformVariant.mobile()); - testWidgets('PageView navigation using forward/backward buttons on desktop platforms', (WidgetTester tester) async { - await tester.pumpWidget( - const example.PageViewExampleApp(), - ); + testWidgets( + 'PageView navigation using forward/backward buttons on desktop platforms', + (WidgetTester tester) async { + await tester.pumpWidget(const example.PageViewExampleApp()); - // Verify that first page is shown along with forward/backward buttons in page indicator. - expect(find.text('First Page'), findsOneWidget); - expect(find.byType(TabPageSelector), findsOneWidget); + // Verify that first page is shown along with forward/backward buttons in page indicator. + expect(find.text('First Page'), findsOneWidget); + expect(find.byType(TabPageSelector), findsOneWidget); - // Tap forward button on page indicator area. - await tester.tap(find.byIcon(Icons.arrow_right_rounded)); - await tester.pumpAndSettle(); - // Verify that second page is shown. - expect(find.text('Second Page'), findsOneWidget); + // Tap forward button on page indicator area. + await tester.tap(find.byIcon(Icons.arrow_right_rounded)); + await tester.pumpAndSettle(); + // Verify that second page is shown. + expect(find.text('Second Page'), findsOneWidget); - // Verify that page indicator index is updated. - final TabPageSelector pageIndicator = tester.widget(find.byType(TabPageSelector)); - expect(pageIndicator.controller?.index, 1); + // Verify that page indicator index is updated. + final TabPageSelector pageIndicator = tester.widget( + find.byType(TabPageSelector), + ); + expect(pageIndicator.controller?.index, 1); - // Verify that page view index is also updated with same index to page indicator. - final PageView pageView = tester.widget(find.byType(PageView)); - expect(pageView.controller.page, 1); + // Verify that page view index is also updated with same index to page indicator. + final PageView pageView = tester.widget(find.byType(PageView)); + expect(pageView.controller!.page, 1); - // Tap backward button on page indicator area. - await tester.tap(find.byIcon(Icons.arrow_left_rounded)); - await tester.pumpAndSettle(); - // Verify that first page is shown. - expect(find.text('First Page'), findsOneWidget); + // Tap backward button on page indicator area. + await tester.tap(find.byIcon(Icons.arrow_left_rounded)); + await tester.pumpAndSettle(); + // Verify that first page is shown. + expect(find.text('First Page'), findsOneWidget); - // Tap backward button one more time. - await tester.tap(find.byIcon(Icons.arrow_left_rounded)); - await tester.pumpAndSettle(); - // Verify that first page is still shown. - expect(find.text('First Page'), findsOneWidget); - }, variant: TargetPlatformVariant.desktop()); + // Tap backward button one more time. + await tester.tap(find.byIcon(Icons.arrow_left_rounded)); + await tester.pumpAndSettle(); + // Verify that first page is still shown. + expect(find.text('First Page'), findsOneWidget); + }, + variant: TargetPlatformVariant.desktop(), + ); } diff --git a/flutter/examples/api/test/widgets/page_view/page_view.1_test.dart b/flutter/examples/api/test/widgets/page_view/page_view.1_test.dart index 677a12e87e1ea5c66ba8a7ef10a21b60d66e85ea..5971aec97f6e73ca5e71d71302b6f24342ef0415 100644 --- a/flutter/examples/api/test/widgets/page_view/page_view.1_test.dart +++ b/flutter/examples/api/test/widgets/page_view/page_view.1_test.dart @@ -3,27 +3,23 @@ // found in the LICENSE file. import 'package:flutter/material.dart'; -import 'package:flutter_api_samples/widgets/page_view/page_view.1.dart' - as example; +import 'package:flutter_api_samples/widgets/page_view/page_view.1.dart' as example; import 'package:flutter_test/flutter_test.dart'; void main() { - testWidgets( - 'tapping Reverse button should reverse PageView', - (WidgetTester tester) async { - await tester.pumpWidget(const example.PageViewExampleApp()); - final Finder pageView = find.byType(PageView); - final Finder reverseFinder = find.text('Reverse items'); - final Finder firstItemFinder = find.byKey(const ValueKey('1')); - final Finder lastItemFinder = find.byKey(const ValueKey('5')); - expect(pageView, findsOneWidget); - expect(reverseFinder, findsOneWidget); - expect(firstItemFinder, findsOneWidget); - expect(lastItemFinder, findsNothing); - await tester.tap(reverseFinder); - await tester.pump(); - expect(firstItemFinder, findsNothing); - expect(lastItemFinder, findsOneWidget); - }, - ); + testWidgets('tapping Reverse button should reverse PageView', (WidgetTester tester) async { + await tester.pumpWidget(const example.PageViewExampleApp()); + final Finder pageView = find.byType(PageView); + final Finder reverseFinder = find.text('Reverse items'); + final Finder firstItemFinder = find.byKey(const ValueKey('1')); + final Finder lastItemFinder = find.byKey(const ValueKey('5')); + expect(pageView, findsOneWidget); + expect(reverseFinder, findsOneWidget); + expect(firstItemFinder, findsOneWidget); + expect(lastItemFinder, findsNothing); + await tester.tap(reverseFinder); + await tester.pump(); + expect(firstItemFinder, findsNothing); + expect(lastItemFinder, findsOneWidget); + }); } diff --git a/flutter/examples/api/test/widgets/pop_scope/pop_scope.0_test.dart b/flutter/examples/api/test/widgets/pop_scope/pop_scope.0_test.dart index ac334fc3222f24498221db38881ccf98952da509..7ab4c491ed0644167725d71932ad27ab9227b3d4 100644 --- a/flutter/examples/api/test/widgets/pop_scope/pop_scope.0_test.dart +++ b/flutter/examples/api/test/widgets/pop_scope/pop_scope.0_test.dart @@ -9,9 +9,7 @@ import '../navigator_utils.dart'; void main() { testWidgets('Can choose to stay on page', (WidgetTester tester) async { - await tester.pumpWidget( - const example.NavigatorPopHandlerApp(), - ); + await tester.pumpWidget(const example.NavigatorPopHandlerApp()); expect(find.text('Page One'), findsOneWidget); expect(find.text('Page Two'), findsNothing); @@ -37,9 +35,7 @@ void main() { }); testWidgets('Can choose to go back', (WidgetTester tester) async { - await tester.pumpWidget( - const example.NavigatorPopHandlerApp(), - ); + await tester.pumpWidget(const example.NavigatorPopHandlerApp()); expect(find.text('Page One'), findsOneWidget); expect(find.text('Page Two'), findsNothing); diff --git a/flutter/examples/api/test/widgets/pop_scope/pop_scope.1_test.dart b/flutter/examples/api/test/widgets/pop_scope/pop_scope.1_test.dart index 14266af52147dc7eca5e591491933318b1afa407..0276ed62d0019b8103a88ca143ef272d6d6bd172 100644 --- a/flutter/examples/api/test/widgets/pop_scope/pop_scope.1_test.dart +++ b/flutter/examples/api/test/widgets/pop_scope/pop_scope.1_test.dart @@ -10,9 +10,7 @@ import '../navigator_utils.dart'; void main() { testWidgets('Can choose to stay on page', (WidgetTester tester) async { - await tester.pumpWidget( - const example.NavigatorPopHandlerApp(), - ); + await tester.pumpWidget(const example.NavigatorPopHandlerApp()); expect(find.text('Page One'), findsOneWidget); @@ -34,9 +32,7 @@ void main() { }); testWidgets('Can choose to go back with pop result', (WidgetTester tester) async { - await tester.pumpWidget( - const example.NavigatorPopHandlerApp(), - ); + await tester.pumpWidget(const example.NavigatorPopHandlerApp()); expect(find.text('Page One'), findsOneWidget); expect(find.text('Page Two'), findsNothing); diff --git a/flutter/examples/api/test/widgets/preferred_size/preferred_size.0_test.dart b/flutter/examples/api/test/widgets/preferred_size/preferred_size.0_test.dart index c6b1bb64df7d6c993f80ae650ac7c08c40001eba..aecd515236007269091b32cc9bf94c43d415a420 100644 --- a/flutter/examples/api/test/widgets/preferred_size/preferred_size.0_test.dart +++ b/flutter/examples/api/test/widgets/preferred_size/preferred_size.0_test.dart @@ -3,33 +3,20 @@ // found in the LICENSE file. import 'package:flutter/material.dart'; -import 'package:flutter_api_samples/widgets/preferred_size/preferred_size.0.dart' - as example; +import 'package:flutter_api_samples/widgets/preferred_size/preferred_size.0.dart' as example; import 'package:flutter_test/flutter_test.dart'; void main() { - testWidgets( - 'PreferredSize determines the height of AppBarContent', - (WidgetTester tester) async { - await tester.pumpWidget( - const example.PreferredSizeExampleApp(), - ); + testWidgets('PreferredSize determines the height of AppBarContent', (WidgetTester tester) async { + await tester.pumpWidget(const example.PreferredSizeExampleApp()); - final PreferredSize preferredSize = tester.widget( - find.ancestor( - of: find.byType(example.AppBarContent), - matching: find.byType(PreferredSize), - ), - ); + final PreferredSize preferredSize = tester.widget( + find.ancestor(of: find.byType(example.AppBarContent), matching: find.byType(PreferredSize)), + ); - final RenderBox appBarContent = tester.renderObject( - find.byType(example.AppBarContent), - ) as RenderBox; + final RenderBox appBarContent = + tester.renderObject(find.byType(example.AppBarContent)) as RenderBox; - expect( - preferredSize.preferredSize.height, - equals(appBarContent.size.height), - ); - }, - ); + expect(preferredSize.preferredSize.height, equals(appBarContent.size.height)); + }); } diff --git a/flutter/examples/api/test/widgets/raw_menu_anchor/raw_menu_anchor.0_test.dart b/flutter/examples/api/test/widgets/raw_menu_anchor/raw_menu_anchor.0_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..5136e127c8c9febb6d85cbc8a55233c337e778e0 --- /dev/null +++ b/flutter/examples/api/test/widgets/raw_menu_anchor/raw_menu_anchor.0_test.dart @@ -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. + +import 'package:flutter/material.dart'; +import 'package:flutter/services.dart'; +import 'package:flutter_api_samples/widgets/raw_menu_anchor/raw_menu_anchor.0.dart' as example; +import 'package:flutter_test/flutter_test.dart'; + +String get catLabel => example.Animal.cat.label; +String get kittenLabel => example.Animal.kitten.label; +String get felisCatusLabel => example.Animal.felisCatus.label; +String get dogLabel => example.Animal.dog.label; + +void main() { + testWidgets('Menu opens and closes', (WidgetTester tester) async { + await tester.pumpWidget(const example.RawMenuAnchorApp()); + final Finder button = find.text('Select One'); + + // Open the menu. + await tester.tap(button); + await tester.pump(); + + expect(find.text(catLabel), findsOneWidget); + expect(find.text(kittenLabel), findsOneWidget); + expect(find.text(felisCatusLabel), findsOneWidget); + expect(find.text(dogLabel), findsOneWidget); + expect( + tester.getRect(find.ancestor(of: find.text(catLabel), matching: find.byType(TapRegion))), + rectMoreOrLessEquals(const Rect.fromLTRB(447.2, 328.0, 626.3, 532.0), epsilon: 0.1), + ); + + // Close the menu. + await tester.tap(button); + await tester.pump(); + + expect(find.text(catLabel), findsNothing); + expect(find.text(kittenLabel), findsNothing); + expect(find.text(felisCatusLabel), findsNothing); + expect(find.text(dogLabel), findsNothing); + }); + + testWidgets('Can traverse menu', (WidgetTester tester) async { + await tester.pumpWidget(const example.RawMenuAnchorApp()); + + await tester.tap(find.text('Select One')); + await tester.pump(); + + expect(find.text(catLabel), findsOneWidget); + + await tester.sendKeyEvent(LogicalKeyboardKey.tab); + await tester.sendKeyEvent(LogicalKeyboardKey.arrowDown); + + expect(primaryFocus?.debugLabel, contains(kittenLabel)); + + await tester.sendKeyEvent(LogicalKeyboardKey.arrowDown); // Felis catus + + expect(primaryFocus?.debugLabel, contains(felisCatusLabel)); + + await tester.sendKeyEvent(LogicalKeyboardKey.arrowDown); // Dog + + expect(primaryFocus?.debugLabel, contains(dogLabel)); + + await tester.sendKeyEvent(LogicalKeyboardKey.arrowUp); // Felis catus + await tester.sendKeyEvent(LogicalKeyboardKey.arrowUp); // Kitten + await tester.sendKeyEvent(LogicalKeyboardKey.arrowUp); // Cat + await tester.sendKeyEvent(LogicalKeyboardKey.enter); // Select Cat + await tester.pump(); + await tester.pump(); + + expect(find.text(catLabel), findsOneWidget); + expect(find.text(felisCatusLabel), findsNothing); + }); + + testWidgets('Check appears next to selected item', (WidgetTester tester) async { + await tester.pumpWidget(const example.RawMenuAnchorApp()); + + await tester.tap(find.text('Select One')); + await tester.pump(); + + // Select Kitten + await tester.tap(find.text(kittenLabel)); + await tester.pump(); + await tester.pump(); + + expect(find.text(catLabel), findsNothing); + + await tester.tap(find.text(kittenLabel)); + await tester.pump(); + + expect( + tester.getRect(find.ancestor(of: find.text(catLabel), matching: find.byType(TapRegion))), + rectMoreOrLessEquals(const Rect.fromLTRB(447.2, 328.0, 626.3, 532.0), epsilon: 0.1), + ); + + expect( + tester.widget(find.widgetWithIcon(MenuItemButton, Icons.check)), + equals(tester.widget(find.widgetWithText(MenuItemButton, kittenLabel))), + ); + }); +} diff --git a/flutter/examples/api/test/widgets/raw_menu_anchor/raw_menu_anchor.1_test.dart b/flutter/examples/api/test/widgets/raw_menu_anchor/raw_menu_anchor.1_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..c50b26f31ee760f58f9b14037a9eacbdb8af2cb4 --- /dev/null +++ b/flutter/examples/api/test/widgets/raw_menu_anchor/raw_menu_anchor.1_test.dart @@ -0,0 +1,153 @@ +// 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/gestures.dart'; +import 'package:flutter/services.dart'; +import 'package:flutter/widgets.dart'; +import 'package:flutter_api_samples/widgets/raw_menu_anchor/raw_menu_anchor.1.dart' as example; +import 'package:flutter_test/flutter_test.dart'; + +Future hoverOver(WidgetTester tester, Offset location) async { + final TestGesture gesture = await tester.createGesture(kind: PointerDeviceKind.mouse); + addTearDown(gesture.removePointer); + await gesture.moveTo(location); + await tester.pumpAndSettle(); + return gesture; +} + +void main() { + testWidgets('Initializes with correct number of menu items in expected position', ( + WidgetTester tester, + ) async { + await tester.pumpWidget(const example.RawMenuAnchorGroupApp()); + expect(find.byType(RawMenuAnchorGroup).evaluate().length, 1); + for (final example.MenuItem item in example.menuItems) { + expect(find.text(item.label), findsOneWidget); + } + expect(find.byType(RawMenuAnchor).evaluate().length, 4); + expect( + tester.getRect(find.byType(RawMenuAnchorGroup).first), + const Rect.fromLTRB(233.0, 284.0, 567.0, 316.0), + ); + }); + testWidgets('Menu can be traversed', (WidgetTester tester) async { + await tester.pumpWidget(const example.RawMenuAnchorGroupApp()); + + await tester.sendKeyEvent(LogicalKeyboardKey.tab); + await tester.pump(); + + expect(primaryFocus?.debugLabel, contains('File')); + expect(find.text('New'), findsNothing); + + await tester.sendKeyEvent(LogicalKeyboardKey.enter); + await tester.pump(); + await tester.pump(); + + expect(primaryFocus?.debugLabel, contains('File')); + + await tester.sendKeyEvent(LogicalKeyboardKey.arrowDown); + + expect(primaryFocus?.debugLabel, contains('New')); + + await tester.sendKeyEvent(LogicalKeyboardKey.arrowRight); + await tester.pump(); + + expect(primaryFocus?.debugLabel, contains('New')); + + await tester.sendKeyEvent(LogicalKeyboardKey.arrowLeft); + await tester.pump(); + + expect(primaryFocus?.debugLabel, contains('New')); + + await tester.sendKeyEvent(LogicalKeyboardKey.arrowUp); + await tester.pump(); + + expect(primaryFocus?.debugLabel, contains('New')); + + await tester.sendKeyEvent(LogicalKeyboardKey.arrowDown); + await tester.sendKeyEvent(LogicalKeyboardKey.arrowDown); + await tester.sendKeyEvent(LogicalKeyboardKey.arrowDown); + + expect(primaryFocus?.debugLabel, contains('Share')); + + await tester.sendKeyEvent(LogicalKeyboardKey.escape); + await tester.pump(); + + expect(primaryFocus?.debugLabel, contains('File')); + expect(find.text('Share'), findsNothing); + + await tester.sendKeyEvent(LogicalKeyboardKey.arrowRight); + await tester.sendKeyEvent(LogicalKeyboardKey.arrowRight); + await tester.sendKeyEvent(LogicalKeyboardKey.arrowRight); + await tester.pump(); + + expect(primaryFocus?.debugLabel, contains('Tools')); + + await tester.sendKeyEvent(LogicalKeyboardKey.enter); + await tester.pump(); + await tester.pump(); + await tester.sendKeyEvent(LogicalKeyboardKey.arrowDown); + + expect(primaryFocus?.debugLabel, contains('Spelling')); + + await tester.sendKeyEvent(LogicalKeyboardKey.arrowDown); + + expect(primaryFocus?.debugLabel, contains('Grammar')); + + await tester.sendKeyEvent(LogicalKeyboardKey.enter); + await tester.pump(); + await tester.pump(); + expect(find.text('Selected: Grammar'), findsOneWidget); + }); + + testWidgets('Hover traversal opens submenus when the root menu is open', ( + WidgetTester tester, + ) async { + await tester.pumpWidget(const example.RawMenuAnchorGroupApp()); + + await hoverOver(tester, tester.getCenter(find.text('File'))); + await tester.pump(); + + expect(find.text('New'), findsNothing); + + await tester.tap(find.text('File')); + await tester.pump(); + await tester.pump(); + + expect(find.text('New'), findsOneWidget); + + await hoverOver(tester, tester.getCenter(find.text('Tools'))); + await tester.pump(); + + expect(find.text('Spelling'), findsOneWidget); + + await hoverOver(tester, Offset.zero); + await tester.pump(); + + expect(find.text('Spelling'), findsOneWidget); + expect( + WidgetsBinding.instance.focusManager.primaryFocus?.debugLabel, + 'MenuItemButton(Text("Tools"))', + ); + + await hoverOver(tester, tester.getCenter(find.text('Tools'))); + await tester.tap(find.text('Tools')); + await tester.pump(); + await tester.pump(); + + expect(find.text('Spelling'), findsNothing); + expect( + WidgetsBinding.instance.focusManager.primaryFocus?.debugLabel, + 'MenuItemButton(Text("Tools"))', + ); + + await hoverOver(tester, Offset.zero); + await tester.pump(); + + expect( + WidgetsBinding.instance.focusManager.primaryFocus?.debugLabel, + isNot('MenuItemButton(Text("Tools"))'), + ); + }); +} diff --git a/flutter/examples/api/test/widgets/restoration/restoration_mixin.0_test.dart b/flutter/examples/api/test/widgets/restoration/restoration_mixin.0_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..383bb24fe0e47d48195e121697999880fbd8dde0 --- /dev/null +++ b/flutter/examples/api/test/widgets/restoration/restoration_mixin.0_test.dart @@ -0,0 +1,35 @@ +// 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_api_samples/widgets/restoration/restoration_mixin.0.dart' as example; +import 'package:flutter_test/flutter_test.dart'; + +void main() { + testWidgets('The state of the counter can be restored', (WidgetTester tester) async { + await tester.pumpWidget(const example.RestorationExampleApp()); + + expect(find.widgetWithText(AppBar, 'Restorable Counter'), findsOne); + expect(find.text('You have pushed the button this many times:'), findsOne); + expect(find.text('0'), findsOne); + + await tester.tap(find.widgetWithIcon(FloatingActionButton, Icons.add)); + await tester.pump(); + expect(find.text('1'), findsOne); + + await tester.restartAndRestore(); + + expect(find.text('1'), findsOne); + + final TestRestorationData data = await tester.getRestorationData(); + + await tester.tap(find.widgetWithIcon(FloatingActionButton, Icons.add)); + await tester.pump(); + expect(find.text('2'), findsOne); + + await tester.restoreFrom(data); + + expect(find.text('1'), findsOne); + }); +} diff --git a/flutter/examples/api/test/widgets/restoration_properties/restorable_value.0_test.dart b/flutter/examples/api/test/widgets/restoration_properties/restorable_value.0_test.dart index 8c52ea8c5cfeea4b2a211624de68b058adf3c3d2..d3740bc5e3b1aa4957b8024d81320d0269776e4e 100644 --- a/flutter/examples/api/test/widgets/restoration_properties/restorable_value.0_test.dart +++ b/flutter/examples/api/test/widgets/restoration_properties/restorable_value.0_test.dart @@ -9,9 +9,7 @@ import 'package:flutter_test/flutter_test.dart'; void main() { testWidgets('Increments answer on OutlinedButton tap', (WidgetTester tester) async { - await tester.pumpWidget( - const example.RestorableValueExampleApp(), - ); + await tester.pumpWidget(const example.RestorableValueExampleApp()); // Verify that the initial answer value in the example equals 42. expect(find.text('42'), findsOneWidget); diff --git a/flutter/examples/api/test/widgets/routes/flexible_route_transitions.0_test.dart b/flutter/examples/api/test/widgets/routes/flexible_route_transitions.0_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..d1efdde7fd79454c5ca61c672a4471c8f3623347 --- /dev/null +++ b/flutter/examples/api/test/widgets/routes/flexible_route_transitions.0_test.dart @@ -0,0 +1,57 @@ +// 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_api_samples/widgets/routes/flexible_route_transitions.0.dart' as example; +import 'package:flutter_test/flutter_test.dart'; + +void main() { + testWidgets('Flexible Transitions App is able to build', (WidgetTester tester) async { + await tester.pumpWidget(const example.FlexibleRouteTransitionsApp()); + + expect(find.text('Zoom Page'), findsOneWidget); + expect(find.text('Zoom Transition'), findsOneWidget); + expect(find.text('Crazy Vertical Transition'), findsOneWidget); + expect(find.text('Cupertino Transition'), findsOneWidget); + + await tester.tap(find.text('Cupertino Transition')); + + await tester.pumpAndSettle(); + + expect(find.text('Zoom Page'), findsNothing); + expect(find.text('Cupertino Page'), findsOneWidget); + }); + + testWidgets('A vertical slide animation is passed to the previous route', ( + WidgetTester tester, + ) async { + await tester.pumpWidget(const example.FlexibleRouteTransitionsApp()); + + expect(find.text('Zoom Page'), findsOneWidget); + + // Save the Y coordinate of the page title. + double lastYPosition = tester.getTopLeft(find.text('Zoom Page')).dy; + + await tester.tap(find.text('Crazy Vertical Transition')); + + await tester.pump(); + + await tester.pump(const Duration(milliseconds: 10)); + // The current Y coordinate of the page title should be lower than it was + // before as the page slides upwards. + expect(tester.getTopLeft(find.text('Zoom Page')).dy, lessThan(lastYPosition)); + lastYPosition = tester.getTopLeft(find.text('Zoom Page')).dy; + + await tester.pump(const Duration(milliseconds: 10)); + expect(tester.getTopLeft(find.text('Zoom Page')).dy, lessThan(lastYPosition)); + lastYPosition = tester.getTopLeft(find.text('Zoom Page')).dy; + + await tester.pump(const Duration(milliseconds: 10)); + expect(tester.getTopLeft(find.text('Zoom Page')).dy, lessThan(lastYPosition)); + lastYPosition = tester.getTopLeft(find.text('Zoom Page')).dy; + + await tester.pumpAndSettle(); + + expect(find.text('Crazy Vertical Page'), findsOneWidget); + }); +} diff --git a/flutter/examples/api/test/widgets/routes/flexible_route_transitions.1_test.dart b/flutter/examples/api/test/widgets/routes/flexible_route_transitions.1_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..31f4bbd134cd7fc092ad901aedea1831c53799db --- /dev/null +++ b/flutter/examples/api/test/widgets/routes/flexible_route_transitions.1_test.dart @@ -0,0 +1,59 @@ +// 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_api_samples/widgets/routes/flexible_route_transitions.1.dart'; + +import 'package:flutter_test/flutter_test.dart'; + +import '../navigator_utils.dart'; + +void main() { + testWidgets('Flexible Transitions App is able to build', (WidgetTester tester) async { + await tester.pumpWidget(FlexibleRouteTransitionsApp()); + + expect(find.text('Zoom Transition'), findsOneWidget); + expect(find.text('Crazy Vertical Transition'), findsOneWidget); + expect(find.text('Cupertino Transition'), findsOneWidget); + }); + + testWidgets('on Pop the correct page shows', (WidgetTester tester) async { + await tester.pumpWidget(FlexibleRouteTransitionsApp()); + + await tester.pumpAndSettle(); + + expect(find.text('Home'), findsOneWidget); + expect(find.text('Cupertino Route'), findsNothing); + expect(find.text('Zoom Route'), findsNothing); + + await tester.tap(find.text('Zoom Transition')); + + await tester.pumpAndSettle(); + + expect(find.text('Home'), findsNothing); + expect(find.text('Cupertino Route'), findsNothing); + expect(find.text('Zoom Route'), findsOneWidget); + + await tester.tap(find.text('Cupertino Transition')); + + await tester.pumpAndSettle(); + + expect(find.text('Home'), findsNothing); + expect(find.text('Cupertino Route'), findsOneWidget); + expect(find.text('Zoom Route'), findsNothing); + + await simulateSystemBack(); + await tester.pumpAndSettle(); + + expect(find.text('Home'), findsNothing); + expect(find.text('Cupertino Route'), findsNothing); + expect(find.text('Zoom Route'), findsOneWidget); + + await simulateSystemBack(); + await tester.pumpAndSettle(); + + expect(find.text('Home'), findsOneWidget); + expect(find.text('Cupertino Route'), findsNothing); + expect(find.text('Zoom Route'), findsNothing); + }); +} diff --git a/flutter/examples/api/test/widgets/routes/popup_route.0_test.dart b/flutter/examples/api/test/widgets/routes/popup_route.0_test.dart index 9968cea88675ebe94eb55c2d1a67f5e6c337192f..d06a4b6064a2af064c0d1d1f325ee4b317ce5230 100644 --- a/flutter/examples/api/test/widgets/routes/popup_route.0_test.dart +++ b/flutter/examples/api/test/widgets/routes/popup_route.0_test.dart @@ -11,9 +11,7 @@ void main() { testWidgets('Dismiss dialog with tap on the scrim and escape key', (WidgetTester tester) async { const String dialogText = 'Tap in the scrim or press escape key to dismiss.'; - await tester.pumpWidget( - const example.PopupRouteApp(), - ); + await tester.pumpWidget(const example.PopupRouteApp()); expect(find.text(dialogText), findsNothing); diff --git a/flutter/examples/api/test/widgets/routes/route_observer.0_test.dart b/flutter/examples/api/test/widgets/routes/route_observer.0_test.dart index 7077c317eb0014854beead0e9836cf3b09b7a8a2..72763a9058b54383e3f1118c8c67a3a4488e1532 100644 --- a/flutter/examples/api/test/widgets/routes/route_observer.0_test.dart +++ b/flutter/examples/api/test/widgets/routes/route_observer.0_test.dart @@ -7,9 +7,7 @@ import 'package:flutter_test/flutter_test.dart'; void main() { testWidgets('RouteObserver notifies RouteAware widget', (WidgetTester tester) async { - await tester.pumpWidget( - const example.RouteObserverApp(), - ); + await tester.pumpWidget(const example.RouteObserverApp()); // Check the initial RouteObserver logs. expect(find.text('didPush'), findsOneWidget); diff --git a/flutter/examples/api/test/widgets/routes/show_general_dialog.0_test.dart b/flutter/examples/api/test/widgets/routes/show_general_dialog.0_test.dart index f6c859977a9e841264f4e4ce06ee1a077001d03c..42acb2bf9a370d5a53e2d50373be88b092003650 100644 --- a/flutter/examples/api/test/widgets/routes/show_general_dialog.0_test.dart +++ b/flutter/examples/api/test/widgets/routes/show_general_dialog.0_test.dart @@ -10,9 +10,7 @@ void main() { testWidgets('Open and dismiss general dialog', (WidgetTester tester) async { const String dialogText = 'Alert!'; - await tester.pumpWidget( - const example.GeneralDialogApp(), - ); + await tester.pumpWidget(const example.GeneralDialogApp()); expect(find.text(dialogText), findsNothing); diff --git a/flutter/examples/api/test/widgets/safe_area/safe_area.0_test.dart b/flutter/examples/api/test/widgets/safe_area/safe_area.0_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..f360d1ed6d925de9cbc2d19e83ea93fc1909374f --- /dev/null +++ b/flutter/examples/api/test/widgets/safe_area/safe_area.0_test.dart @@ -0,0 +1,107 @@ +// 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_api_samples/widgets/safe_area/safe_area.0.dart' as example; +import 'package:flutter_test/flutter_test.dart'; + +example.InsetsState get insetsState => example.InsetsState.instance; + +void main() { + testWidgets('SafeArea widget count', (WidgetTester tester) async { + await tester.pumpWidget(const example.Insets()); + + // 1 SafeArea and 2 ListTile widgets. + expect(find.byType(SafeArea), findsNWidgets(3)); + + insetsState.toggle(example.Toggle.appBar, true); + await tester.pump(); + expect(find.byType(SafeArea), findsNWidgets(4)); + }); + + testWidgets('ListTile removes side padding from its content', (WidgetTester tester) async { + await tester.pumpWidget(const example.Insets()); + + late BuildContext context; + late EdgeInsets padding; + + final Finder findBody = find.byType(example.SafeAreaExample); + final Finder findListTile = find.text(example.Toggle.appBar.label).first; + + context = tester.element(findBody); + padding = MediaQuery.paddingOf(context); + expect(padding.top, greaterThan(0)); + expect(padding.bottom, greaterThan(0)); + expect(padding.left, greaterThan(0)); + expect(padding.right, greaterThan(0)); + + context = tester.element(findListTile); + padding = MediaQuery.paddingOf(context); + expect(padding.top, greaterThan(0)); + expect(padding.bottom, greaterThan(0)); + expect(padding.left, 0); + expect(padding.right, 0); + }); + + testWidgets('AppBar removes top padding of Scaffold body', (WidgetTester tester) async { + await tester.pumpWidget(const example.Insets()); + final BuildContext context = tester.element(find.text('no safe area')); + + // Double-check that side & bottom padding are unchanged. + void verifySidesAndBottom() { + final EdgeInsets padding = MediaQuery.paddingOf(context); + expect(padding.left, example.Inset.sides.of(context)); + expect(padding.right, example.Inset.sides.of(context)); + expect(padding.bottom, example.Inset.bottom.of(context)); + } + + final double topInset = example.Inset.top.of(context); + expect(topInset, greaterThan(0)); + expect(MediaQuery.paddingOf(context).top, topInset); + verifySidesAndBottom(); + + insetsState.toggle(example.Toggle.appBar, true); + await tester.pump(); + + expect(example.Inset.top.of(context), greaterThan(0)); + expect(MediaQuery.paddingOf(context).top, 0); + verifySidesAndBottom(); + }); + + testWidgets('SafeArea removes all padding', (WidgetTester tester) async { + await tester.pumpWidget(const example.Insets()); + + BuildContext context = tester.element(find.text('no safe area')); + expect(MediaQuery.paddingOf(context), insetsState.insets); + + insetsState.toggle(example.Toggle.safeArea, true); + await tester.pump(); + + context = tester.element(find.text('safe area!')); + expect(MediaQuery.paddingOf(context), EdgeInsets.zero); + }); + + // Regression test for https://github.com/flutter/flutter/issues/159340. + testWidgets('App displays without layout issues', (WidgetTester tester) async { + // Set the app's size to to match the default DartPad demo screen. + await tester.pumpWidget( + const Center(child: SizedBox(width: 500.0, height: 480.0, child: example.Insets())), + ); + + double appScreenHeight() => tester.getRect(find.byType(example.Insets)).height; + + expect(appScreenHeight(), 480); + expect(insetsState.insets, const EdgeInsets.fromLTRB(8.0, 25.0, 8.0, 12.0)); + + // Drag each slider to its maximum value. + for (int index = 0; index < 3; index++) { + await tester.drag(find.byType(Slider).at(index), const Offset(500.0, 0.0)); + await tester.pumpAndSettle(); + expect(tester.takeException(), isNull); + } + + expect(appScreenHeight(), 480); + expect(insetsState.insets, const EdgeInsets.all(50)); + }); +} diff --git a/flutter/examples/api/test/widgets/scroll_end_notification/scroll_end_notification.0_test.dart b/flutter/examples/api/test/widgets/scroll_end_notification/scroll_end_notification.0_test.dart index d3db5a363cfdd54ff7e3d1979792d6ea4317e5ea..c8394e3f1b167c58310c4b89279a1b86429cb099 100644 --- a/flutter/examples/api/test/widgets/scroll_end_notification/scroll_end_notification.0_test.dart +++ b/flutter/examples/api/test/widgets/scroll_end_notification/scroll_end_notification.0_test.dart @@ -3,14 +3,13 @@ // found in the LICENSE file. import 'package:flutter/material.dart'; -import 'package:flutter_api_samples/widgets/scroll_end_notification/scroll_end_notification.0.dart' as example; +import 'package:flutter_api_samples/widgets/scroll_end_notification/scroll_end_notification.0.dart' + as example; import 'package:flutter_test/flutter_test.dart'; void main() { testWidgets('IsScrollingListenerApp smoke test', (WidgetTester tester) async { - await tester.pumpWidget( - const example.ScrollEndNotificationApp(), - ); + await tester.pumpWidget(const example.ScrollEndNotificationApp()); expect(find.byType(CustomScrollView), findsOneWidget); expect(find.byType(Scrollbar), findsOneWidget); diff --git a/flutter/examples/api/test/widgets/scroll_end_notification/scroll_end_notification.1_test.dart b/flutter/examples/api/test/widgets/scroll_end_notification/scroll_end_notification.1_test.dart index 8f36c8fde5d7e2c1fdc90312f48f2a01fa0624d3..85488bb2fc19bcf9482994d414bebc4c4fbf5b4d 100644 --- a/flutter/examples/api/test/widgets/scroll_end_notification/scroll_end_notification.1_test.dart +++ b/flutter/examples/api/test/widgets/scroll_end_notification/scroll_end_notification.1_test.dart @@ -3,19 +3,18 @@ // found in the LICENSE file. import 'package:flutter/material.dart'; -import 'package:flutter_api_samples/widgets/scroll_end_notification/scroll_end_notification.1.dart' as example; +import 'package:flutter_api_samples/widgets/scroll_end_notification/scroll_end_notification.1.dart' + as example; import 'package:flutter_test/flutter_test.dart'; void main() { testWidgets('SliverAutoScroll example', (WidgetTester tester) async { - await tester.pumpWidget( - const example.SliverAutoScrollExampleApp(), - ); + await tester.pumpWidget(const example.SliverAutoScrollExampleApp()); final double itemHeight = tester.getSize(find.widgetWithText(Card, 'Item 0.15')).height; // The scroll view is 600 pixels high and the big orange - // "AlignedItem" is precedeed by 15 regular items. Scroll up enough + // "AlignedItem" is preceded by 15 regular items. Scroll up enough // to make it partially visible. await tester.drag(find.byType(CustomScrollView), Offset(0, 600 - 15.5 * itemHeight)); await tester.pumpAndSettle(); @@ -33,7 +32,7 @@ void main() { // Scroll up a little and the "AlignedItem" does not auto-scroll, because // it's fully visible. - await tester.drag(find.byType(CustomScrollView), Offset(0, - 2 * itemHeight)); + await tester.drag(find.byType(CustomScrollView), Offset(0, -2 * itemHeight)); await tester.pumpAndSettle(); expect(tester.getRect(alignedItem).bottom, 600 - itemHeight); diff --git a/flutter/examples/api/test/widgets/scroll_notification_observer/scroll_notification_observer.0_test.dart b/flutter/examples/api/test/widgets/scroll_notification_observer/scroll_notification_observer.0_test.dart index 082897641793ad2d1ad1055d5749c6b62b58374f..57cdde1fbb7f863b825bf3ed94e70726a52049fc 100644 --- a/flutter/examples/api/test/widgets/scroll_notification_observer/scroll_notification_observer.0_test.dart +++ b/flutter/examples/api/test/widgets/scroll_notification_observer/scroll_notification_observer.0_test.dart @@ -3,16 +3,15 @@ // found in the LICENSE file. import 'package:flutter/material.dart'; -import 'package:flutter_api_samples/widgets/scroll_notification_observer/scroll_notification_observer.0.dart' as example; +import 'package:flutter_api_samples/widgets/scroll_notification_observer/scroll_notification_observer.0.dart' + as example; import 'package:flutter_test/flutter_test.dart'; void main() { testWidgets('Scroll to top buttons appears when scrolling down', (WidgetTester tester) async { const String buttonText = 'Scroll to top'; - await tester.pumpWidget( - const example.ScrollNotificationObserverApp(), - ); + await tester.pumpWidget(const example.ScrollNotificationObserverApp()); expect(find.byType(ScrollNotificationObserver), findsOneWidget); expect(find.text(buttonText), findsNothing); diff --git a/flutter/examples/api/test/widgets/scroll_position/is_scrolling_listener.0_test.dart b/flutter/examples/api/test/widgets/scroll_position/is_scrolling_listener.0_test.dart index 6016039f81aa21aefb289a5bbbfd8e9a80fa6d04..a1075428096e51c57423ed78cdce152e3ff8ac73 100644 --- a/flutter/examples/api/test/widgets/scroll_position/is_scrolling_listener.0_test.dart +++ b/flutter/examples/api/test/widgets/scroll_position/is_scrolling_listener.0_test.dart @@ -3,14 +3,13 @@ // found in the LICENSE file. import 'package:flutter/material.dart'; -import 'package:flutter_api_samples/widgets/scroll_position/is_scrolling_listener.0.dart' as example; +import 'package:flutter_api_samples/widgets/scroll_position/is_scrolling_listener.0.dart' + as example; import 'package:flutter_test/flutter_test.dart'; void main() { testWidgets('IsScrollingListenerApp smoke test', (WidgetTester tester) async { - await tester.pumpWidget( - const example.IsScrollingListenerApp(), - ); + await tester.pumpWidget(const example.IsScrollingListenerApp()); expect(find.byType(CustomScrollView), findsOneWidget); expect(find.byType(Scrollbar), findsOneWidget); diff --git a/flutter/examples/api/test/widgets/scroll_position/scroll_controller_notification.0_test.dart b/flutter/examples/api/test/widgets/scroll_position/scroll_controller_notification.0_test.dart index 1eec63095da25eaf7da3fa26be7e6281655505e6..db69001f411543d82c65294be676800c96c9ae3e 100644 --- a/flutter/examples/api/test/widgets/scroll_position/scroll_controller_notification.0_test.dart +++ b/flutter/examples/api/test/widgets/scroll_position/scroll_controller_notification.0_test.dart @@ -9,9 +9,7 @@ import 'package:flutter_test/flutter_test.dart'; void main() { testWidgets('Can toggle between scroll notification types', (WidgetTester tester) async { - await tester.pumpWidget( - const example.ScrollNotificationDemo(), - ); + await tester.pumpWidget(const example.ScrollNotificationDemo()); expect(find.byType(CustomScrollView), findsOneWidget); expect(find.text('Last notification: Null'), findsNothing); @@ -20,7 +18,7 @@ void main() { await tester.tap( find.byWidgetPredicate((Widget widget) { return widget is Radio && !widget.value; - }) + }), ); await tester.pumpAndSettle(); diff --git a/flutter/examples/api/test/widgets/scroll_position/scroll_controller_on_attach.0_test.dart b/flutter/examples/api/test/widgets/scroll_position/scroll_controller_on_attach.0_test.dart index 1c7d307317212bf181aa1b9d259d6fd156c87617..b8d666b8a11253e2b22a9d50a670ec9093ca84ee 100644 --- a/flutter/examples/api/test/widgets/scroll_position/scroll_controller_on_attach.0_test.dart +++ b/flutter/examples/api/test/widgets/scroll_position/scroll_controller_on_attach.0_test.dart @@ -4,33 +4,27 @@ import 'package:flutter/material.dart'; import 'package:flutter_api_samples/widgets/scroll_position/scroll_controller_on_attach.0.dart' -as example; + as example; import 'package:flutter_test/flutter_test.dart'; void main() { testWidgets('Can toggle between scroll notification types', (WidgetTester tester) async { - await tester.pumpWidget( - const example.ScrollControllerDemo(), - ); + await tester.pumpWidget(const example.ScrollControllerDemo()); expect(find.byType(CustomScrollView), findsOneWidget); expect(find.text('Not Scrolling'), findsOneWidget); Material appBarMaterial = tester.widget( - find.descendant( - of: find.byType(AppBar), - matching: find.byType(Material), - ), + find.descendant(of: find.byType(AppBar), matching: find.byType(Material)), ); expect(appBarMaterial.color, Colors.redAccent[700]!.withOpacity(.85)); - final TestGesture gesture = await tester.startGesture(tester.getCenter(find.byType(CustomScrollView))); + final TestGesture gesture = await tester.startGesture( + tester.getCenter(find.byType(CustomScrollView)), + ); await gesture.moveBy(const Offset(10.0, 10.0)); await tester.pump(); expect(find.text('Scrolling'), findsOneWidget); appBarMaterial = tester.widget( - find.descendant( - of: find.byType(AppBar), - matching: find.byType(Material), - ), + find.descendant(of: find.byType(AppBar), matching: find.byType(Material)), ); expect(appBarMaterial.color, Colors.green[800]!.withOpacity(.85)); await gesture.up(); @@ -38,10 +32,7 @@ void main() { expect(find.text('Not Scrolling'), findsOneWidget); appBarMaterial = tester.widget( - find.descendant( - of: find.byType(AppBar), - matching: find.byType(Material), - ), + find.descendant(of: find.byType(AppBar), matching: find.byType(Material)), ); }); } diff --git a/flutter/examples/api/test/widgets/scroll_position/scroll_metrics_notification.0_test.dart b/flutter/examples/api/test/widgets/scroll_position/scroll_metrics_notification.0_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..9757e1e7431f2af4a2c3b8a7a02d23135a990871 --- /dev/null +++ b/flutter/examples/api/test/widgets/scroll_position/scroll_metrics_notification.0_test.dart @@ -0,0 +1,22 @@ +// 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_api_samples/widgets/scroll_position/scroll_metrics_notification.0.dart' + as example; +import 'package:flutter_test/flutter_test.dart'; + +void main() { + testWidgets('A snackbar is shown when the scroll metrics change', (WidgetTester tester) async { + await tester.pumpWidget(const example.ScrollMetricsDemo()); + + expect(find.widgetWithText(AppBar, 'ScrollMetrics Demo'), findsOne); + expect(find.byType(FlutterLogo), findsOne); + + await tester.tap(find.widgetWithIcon(FloatingActionButton, Icons.add)); + await tester.pumpAndSettle(); + + expect(find.widgetWithText(SnackBar, 'Scroll metrics changed!'), findsOne); + }); +} diff --git a/flutter/examples/api/test/widgets/scroll_view/custom_scroll_view.1_test.dart b/flutter/examples/api/test/widgets/scroll_view/custom_scroll_view.1_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..359a243ea799b9423a6c2e199cc6e95f9211e418 --- /dev/null +++ b/flutter/examples/api/test/widgets/scroll_view/custom_scroll_view.1_test.dart @@ -0,0 +1,47 @@ +// 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_api_samples/widgets/scroll_view/custom_scroll_view.1.dart' as example; +import 'package:flutter_test/flutter_test.dart'; + +void main() { + testWidgets('What should be visible in the initial state.', (WidgetTester tester) async { + await tester.pumpWidget(const example.CustomScrollViewExampleApp()); + + expect( + find.descendant(of: find.byType(IconButton), matching: find.byIcon(Icons.add)), + findsOne, + ); + expect(find.byType(SliverList), findsOne); + + // Initial state should present only "Item: 0" on the SliverList. + expect(find.widgetWithText(SliverList, 'Item: 0'), findsOne); + expect(find.widgetWithText(SliverList, 'Item: -1'), findsNothing); + expect(find.widgetWithText(SliverList, 'Item: 1'), findsNothing); + }); + + testWidgets('Items are added correctly', (WidgetTester tester) async { + await tester.pumpWidget(const example.CustomScrollViewExampleApp()); + + await tester.tap(find.byType(IconButton)); + await tester.pump(); + + // 'Item: -1' is invisible before scrolling. + expect(find.widgetWithText(SliverList, 'Item: -1'), findsNothing); + expect(find.widgetWithText(SliverList, 'Item: 1'), findsOne); + + // Scroll the updated screen. + await tester.drag(find.byType(CustomScrollView), const Offset(0.0, 50.0)); + await tester.pump(); + + // An additional SliverList appears. + expect(find.byType(SliverList), findsExactly(2)); + + // All items are visible. + expect(find.widgetWithText(SliverList, 'Item: -1'), findsOne); + expect(find.widgetWithText(SliverList, 'Item: 0'), findsOne); + expect(find.widgetWithText(SliverList, 'Item: 1'), findsOne); + }); +} diff --git a/flutter/examples/api/test/widgets/scroll_view/grid_view.0_test.dart b/flutter/examples/api/test/widgets/scroll_view/grid_view.0_test.dart index 9368a091d3b3833175de5845d32e09272ca184a0..d6d0fb64d2ce5c2418b0e5cd4806ac0e6d17d3c9 100644 --- a/flutter/examples/api/test/widgets/scroll_view/grid_view.0_test.dart +++ b/flutter/examples/api/test/widgets/scroll_view/grid_view.0_test.dart @@ -13,13 +13,36 @@ void main() { fullRowPeriod: 3, dimension: 100, ); - final List scrollOffsets = List.generate(10, (int i) => layout.computeMaxScrollOffset(i)); - expect(scrollOffsets, [0.0, 0.0, 100.0, 100.0, 200.0, 300.0, 300.0, 400.0, 400.0, 500.0]); - final List minOffsets = List.generate(10, (int i) => layout.getMinChildIndexForScrollOffset(i * 80.0)); + final List scrollOffsets = List.generate( + 10, + (int i) => layout.computeMaxScrollOffset(i), + ); + expect(scrollOffsets, [ + 0.0, + 0.0, + 100.0, + 100.0, + 200.0, + 300.0, + 300.0, + 400.0, + 400.0, + 500.0, + ]); + final List minOffsets = List.generate( + 10, + (int i) => layout.getMinChildIndexForScrollOffset(i * 80.0), + ); expect(minOffsets, [0, 0, 2, 4, 5, 7, 7, 9, 10, 12]); - final List maxOffsets = List.generate(10, (int i) => layout.getMaxChildIndexForScrollOffset(i * 80.0)); + final List maxOffsets = List.generate( + 10, + (int i) => layout.getMaxChildIndexForScrollOffset(i * 80.0), + ); expect(maxOffsets, [1, 1, 3, 4, 6, 8, 8, 9, 11, 13]); - final List offsets = List.generate(20, (int i) => layout.getGeometryForChildIndex(i)); + final List offsets = List.generate( + 20, + (int i) => layout.getGeometryForChildIndex(i), + ); offsets.reduce((SliverGridGeometry a, SliverGridGeometry b) { if (a.scrollOffset == b.scrollOffset) { expect(a.crossAxisOffset, lessThan(b.crossAxisOffset)); diff --git a/flutter/examples/api/test/widgets/scroll_view/list_view.0_test.dart b/flutter/examples/api/test/widgets/scroll_view/list_view.0_test.dart index 1515492e5678088dd525b49e4db4f715afea3004..0475b969e68dd714c45eddeee9b4d5b0ba3829e7 100644 --- a/flutter/examples/api/test/widgets/scroll_view/list_view.0_test.dart +++ b/flutter/examples/api/test/widgets/scroll_view/list_view.0_test.dart @@ -3,16 +3,12 @@ // found in the LICENSE file. import 'package:flutter/material.dart'; -import 'package:flutter_api_samples/widgets/scroll_view/list_view.0.dart' - as example; +import 'package:flutter_api_samples/widgets/scroll_view/list_view.0.dart' as example; import 'package:flutter_test/flutter_test.dart'; void main() { - testWidgets('long press ListTile should enable edit mode', - (WidgetTester tester) async { - await tester.pumpWidget( - const example.ListViewExampleApp(), - ); + testWidgets('long press ListTile should enable edit mode', (WidgetTester tester) async { + await tester.pumpWidget(const example.ListViewExampleApp()); final Finder listView = find.byType(ListView); final Finder selectAllFinder = find.text('select all'); @@ -26,11 +22,8 @@ void main() { expect(checkBoxFinder, findsWidgets); }); - testWidgets('Pressing cross button should disable edit mode', - (WidgetTester tester) async { - await tester.pumpWidget( - const example.ListViewExampleApp(), - ); + testWidgets('Pressing cross button should disable edit mode', (WidgetTester tester) async { + await tester.pumpWidget(const example.ListViewExampleApp()); final Finder listView = find.byType(ListView); final Finder crossIconFinder = find.byIcon(Icons.close); @@ -49,11 +42,10 @@ void main() { expect(crossIconFinder, findsNothing); }); - testWidgets('tapping ListTile or checkBox should toggle ListTile state', - (WidgetTester tester) async { - await tester.pumpWidget( - const example.ListViewExampleApp(), - ); + testWidgets('tapping ListTile or checkBox should toggle ListTile state', ( + WidgetTester tester, + ) async { + await tester.pumpWidget(const example.ListViewExampleApp()); final Finder listView = find.byType(ListView); final Finder selectAllFinder = find.text('select all'); diff --git a/flutter/examples/api/test/widgets/scroll_view/list_view.1_test.dart b/flutter/examples/api/test/widgets/scroll_view/list_view.1_test.dart index 0a9e5defbb3eb5aa0d337c374e4d31554172df8c..3d0fed75701b1a3ec2d0e759bf8d6c2b33b397c2 100644 --- a/flutter/examples/api/test/widgets/scroll_view/list_view.1_test.dart +++ b/flutter/examples/api/test/widgets/scroll_view/list_view.1_test.dart @@ -3,26 +3,22 @@ // found in the LICENSE file. import 'package:flutter/material.dart'; -import 'package:flutter_api_samples/widgets/scroll_view/list_view.1.dart' - as example; +import 'package:flutter_api_samples/widgets/scroll_view/list_view.1.dart' as example; import 'package:flutter_test/flutter_test.dart'; void main() { - testWidgets( - 'tapping Reverse button should reverse ListView', - (WidgetTester tester) async { - await tester.pumpWidget(const example.ListViewExampleApp()); - final Finder listView = find.byType(ListView); - final Finder reverseFinder = find.text('Reverse items'); - expect(listView, findsOneWidget); - expect(reverseFinder, findsOneWidget); - final Finder keepAliveItemFinder = find.byType(example.KeepAliveItem); - example.KeepAliveItem firstWidget = tester.firstWidget(keepAliveItemFinder); - expect(firstWidget.data, '1'); - await tester.tap(reverseFinder); - await tester.pump(); - firstWidget = tester.firstWidget(keepAliveItemFinder); - expect(firstWidget.data, '5'); - }, - ); + testWidgets('tapping Reverse button should reverse ListView', (WidgetTester tester) async { + await tester.pumpWidget(const example.ListViewExampleApp()); + final Finder listView = find.byType(ListView); + final Finder reverseFinder = find.text('Reverse items'); + expect(listView, findsOneWidget); + expect(reverseFinder, findsOneWidget); + final Finder keepAliveItemFinder = find.byType(example.KeepAliveItem); + example.KeepAliveItem firstWidget = tester.firstWidget(keepAliveItemFinder); + expect(firstWidget.data, '1'); + await tester.tap(reverseFinder); + await tester.pump(); + firstWidget = tester.firstWidget(keepAliveItemFinder); + expect(firstWidget.data, '5'); + }); } diff --git a/flutter/examples/api/test/widgets/scrollbar/raw_scrollbar.0_test.dart b/flutter/examples/api/test/widgets/scrollbar/raw_scrollbar.0_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..7c70c813f5fcb1c983cc638d3986d73419c3b1eb --- /dev/null +++ b/flutter/examples/api/test/widgets/scrollbar/raw_scrollbar.0_test.dart @@ -0,0 +1,35 @@ +// 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/gestures.dart'; +import 'package:flutter/material.dart'; +import 'package:flutter_api_samples/widgets/scrollbar/raw_scrollbar.0.dart' as example; +import 'package:flutter_test/flutter_test.dart'; + +void main() { + testWidgets('There are two scrollbars', (WidgetTester tester) async { + await tester.pumpWidget(const example.RawScrollbarExampleApp()); + + expect(find.widgetWithText(AppBar, 'RawScrollbar Sample'), findsOne); + expect(find.byType(Scrollbar), findsExactly(2)); + + expect(find.text('Scrollable 1 : Index 0'), findsOne); + expect(find.text('Scrollable 2 : Index 0'), findsOne); + + final TestPointer pointer = TestPointer(1, PointerDeviceKind.mouse); + pointer.hover(tester.getCenter(find.byType(ListView).first)); + await tester.sendEventToBinding(pointer.scroll(const Offset(0.0, 1000))); + await tester.pumpAndSettle(); + + expect(find.text('Scrollable 1 : Index 40'), findsOne); + expect(find.text('Scrollable 2 : Index 0'), findsOne); + + pointer.hover(tester.getCenter(find.byType(ListView).last)); + await tester.sendEventToBinding(pointer.scroll(const Offset(0.0, 1000))); + await tester.pumpAndSettle(); + + expect(find.text('Scrollable 1 : Index 40'), findsOne); + expect(find.text('Scrollable 2 : Index 20'), findsOne); + }); +} diff --git a/flutter/examples/api/test/widgets/scrollbar/raw_scrollbar.1_test.dart b/flutter/examples/api/test/widgets/scrollbar/raw_scrollbar.1_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..67476292e0d06d6179fb00ed33690a7a2f7acd48 --- /dev/null +++ b/flutter/examples/api/test/widgets/scrollbar/raw_scrollbar.1_test.dart @@ -0,0 +1,36 @@ +// 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/gestures.dart'; +import 'package:flutter/material.dart'; +import 'package:flutter_api_samples/widgets/scrollbar/raw_scrollbar.1.dart' as example; +import 'package:flutter_test/flutter_test.dart'; + +void main() { + testWidgets('When thumbVisibility is true, the scrollbar thumb remains visible', ( + WidgetTester tester, + ) async { + await tester.pumpWidget(const example.RawScrollbarExampleApp()); + + expect(find.widgetWithText(AppBar, 'RawScrollbar Sample'), findsOne); + expect(find.byType(RawScrollbar), findsOne); + expect(find.byType(GridView), findsOne); + expect(find.byType(RawScrollbar), paints..clipRect()); + + expect(find.text('item 0'), findsOne); + expect(find.text('item 1'), findsOne); + expect(find.text('item 2'), findsOne); + + final TestPointer pointer = TestPointer(1, PointerDeviceKind.mouse); + pointer.hover(tester.getCenter(find.byType(GridView))); + await tester.sendEventToBinding(pointer.scroll(const Offset(0.0, 1000))); + await tester.pumpAndSettle(); + + expect(find.byType(RawScrollbar), paints..clipRect()); + + expect(find.text('item 15'), findsOne); + expect(find.text('item 16'), findsOne); + expect(find.text('item 17'), findsOne); + }); +} diff --git a/flutter/examples/api/test/widgets/scrollbar/raw_scrollbar.2_test.dart b/flutter/examples/api/test/widgets/scrollbar/raw_scrollbar.2_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..5c6a5dc3a808d3fc2604cf74d9142f777608c747 --- /dev/null +++ b/flutter/examples/api/test/widgets/scrollbar/raw_scrollbar.2_test.dart @@ -0,0 +1,35 @@ +// 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/gestures.dart'; +import 'package:flutter/material.dart'; +import 'package:flutter_api_samples/widgets/scrollbar/raw_scrollbar.2.dart' as example; +import 'package:flutter_test/flutter_test.dart'; + +void main() { + testWidgets('The scrollbar remains visible', (WidgetTester tester) async { + await tester.pumpWidget(const example.RawScrollbarExampleApp()); + + expect(find.widgetWithText(AppBar, 'RawScrollbar Sample'), findsOne); + expect(find.byType(RawScrollbar), findsOne); + expect(find.byType(GridView), findsOne); + + expect(find.byType(RawScrollbar), paints..clipRect()); + + expect(find.text('item 0'), findsOne); + expect(find.text('item 1'), findsOne); + expect(find.text('item 2'), findsOne); + + final TestPointer pointer = TestPointer(1, PointerDeviceKind.mouse); + pointer.hover(tester.getCenter(find.byType(GridView).first)); + await tester.sendEventToBinding(pointer.scroll(const Offset(0.0, 1000))); + await tester.pumpAndSettle(); + + expect(find.text('item 15'), findsOne); + expect(find.text('item 16'), findsOne); + expect(find.text('item 17'), findsOne); + + expect(find.byType(RawScrollbar), paints..clipRect()); + }); +} diff --git a/flutter/examples/api/test/widgets/scrollbar/raw_scrollbar.desktop.0_test.dart b/flutter/examples/api/test/widgets/scrollbar/raw_scrollbar.desktop.0_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..0b73c54768b04f618b99f9b1dcb864ea64b6bd75 --- /dev/null +++ b/flutter/examples/api/test/widgets/scrollbar/raw_scrollbar.desktop.0_test.dart @@ -0,0 +1,17 @@ +// 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_api_samples/widgets/scrollbar/raw_scrollbar.desktop.0.dart' as example; +import 'package:flutter_test/flutter_test.dart'; + +void main() { + testWidgets('Can hide default scrollbar on desktop', (WidgetTester tester) async { + await tester.pumpWidget(const example.ScrollbarApp()); + + // Two from left list view where scroll configuration is not set. + // One from right list view where scroll configuration is set. + expect(find.byType(Scrollbar), findsNWidgets(3)); + }, variant: TargetPlatformVariant.desktop()); +} diff --git a/flutter/examples/api/test/widgets/scrollbar/raw_scrollbar.shape.0_test.dart b/flutter/examples/api/test/widgets/scrollbar/raw_scrollbar.shape.0_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..ce3b18ac3d1ea4a2d752f8d51004119e3e37cd37 --- /dev/null +++ b/flutter/examples/api/test/widgets/scrollbar/raw_scrollbar.shape.0_test.dart @@ -0,0 +1,32 @@ +// 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_api_samples/widgets/scrollbar/raw_scrollbar.shape.0.dart' as example; +import 'package:flutter_test/flutter_test.dart'; + +void main() { + testWidgets('The thumb shape is a stadium border', (WidgetTester tester) async { + await tester.pumpWidget(const example.ShapeExampleApp()); + + expect(find.byType(RawScrollbar), findsOne); + expect(find.byType(ListView), findsOne); + + expect(find.text('0'), findsOne); + expect(find.text('1'), findsOne); + expect(find.text('4'), findsOne); + + await tester.pumpAndSettle(); + + expect( + find.byType(RawScrollbar), + paints + ..path(color: Colors.blue) + ..rrect( + rrect: RRect.fromLTRBR(786.5, 1.5, 798.5, 178.5, const Radius.circular(6)), + color: Colors.brown, + ), + ); + }); +} diff --git a/flutter/examples/api/test/widgets/shared_app_data/shared_app_data.0_test.dart b/flutter/examples/api/test/widgets/shared_app_data/shared_app_data.0_test.dart index c84cb862084841535c86062ec5f01e7126cad278..682b3a2562112add5a808b504e44ce67985b377c 100644 --- a/flutter/examples/api/test/widgets/shared_app_data/shared_app_data.0_test.dart +++ b/flutter/examples/api/test/widgets/shared_app_data/shared_app_data.0_test.dart @@ -3,15 +3,12 @@ // found in the LICENSE file. import 'package:flutter/material.dart'; -import 'package:flutter_api_samples/widgets/shared_app_data/shared_app_data.0.dart' - as example; +import 'package:flutter_api_samples/widgets/shared_app_data/shared_app_data.0.dart' as example; import 'package:flutter_test/flutter_test.dart'; void main() { testWidgets('Verify correct labels are displayed', (WidgetTester tester) async { - await tester.pumpWidget( - const example.SharedAppDataExampleApp(), - ); + await tester.pumpWidget(const example.SharedAppDataExampleApp()); expect(find.text('SharedAppData Sample'), findsOneWidget); expect(find.text('foo: initial'), findsOneWidget); @@ -21,19 +18,16 @@ void main() { }); testWidgets('foo value can be updated', (WidgetTester tester) async { - await tester.pumpWidget( - const example.SharedAppDataExampleApp(), - ); + await tester.pumpWidget(const example.SharedAppDataExampleApp()); int counter = 0; while (counter < 10) { counter++; - await tester.tap(find.ancestor( - of: find.text('change foo'), - matching: find.byType(ElevatedButton), - )); + await tester.tap( + find.ancestor(of: find.text('change foo'), matching: find.byType(ElevatedButton)), + ); await tester.pump(); expect(find.text('foo: FOO $counter'), findsOneWidget); @@ -41,29 +35,26 @@ void main() { }); testWidgets('bar value can be updated', (WidgetTester tester) async { - await tester.pumpWidget( - const example.SharedAppDataExampleApp(), - ); + await tester.pumpWidget(const example.SharedAppDataExampleApp()); int counter = 0; while (counter < 10) { counter++; - await tester.tap(find.ancestor( - of: find.text('change bar'), - matching: find.byType(ElevatedButton), - )); + await tester.tap( + find.ancestor(of: find.text('change bar'), matching: find.byType(ElevatedButton)), + ); await tester.pump(); expect(find.text('bar: BAR $counter'), findsOneWidget); } }); - testWidgets('foo and bar values update independently of one another', (WidgetTester tester) async { - await tester.pumpWidget( - const example.SharedAppDataExampleApp(), - ); + testWidgets('foo and bar values update independently of one another', ( + WidgetTester tester, + ) async { + await tester.pumpWidget(const example.SharedAppDataExampleApp()); int fooCounter = 0; int barCounter = 0; @@ -83,18 +74,8 @@ void main() { ); await tester.pump(); - expect( - find.text( - 'foo: ${fooCounter == 0 ? 'initial' : 'FOO $fooCounter'}', - ), - findsOneWidget, - ); - expect( - find.text( - 'bar: ${barCounter == 0 ? 'initial' : 'BAR $barCounter'}', - ), - findsOneWidget, - ); + expect(find.text('foo: ${fooCounter == 0 ? 'initial' : 'FOO $fooCounter'}'), findsOneWidget); + expect(find.text('bar: ${barCounter == 0 ? 'initial' : 'BAR $barCounter'}'), findsOneWidget); } }); } diff --git a/flutter/examples/api/test/widgets/shared_app_data/shared_app_data.1_test.dart b/flutter/examples/api/test/widgets/shared_app_data/shared_app_data.1_test.dart index 4ada24bddd3a421d3ae49b0be1d41ce6e3e196fd..08152fe8094925476b37e5c42e62e356293f5c2e 100644 --- a/flutter/examples/api/test/widgets/shared_app_data/shared_app_data.1_test.dart +++ b/flutter/examples/api/test/widgets/shared_app_data/shared_app_data.1_test.dart @@ -3,22 +3,17 @@ // found in the LICENSE file. import 'package:flutter/material.dart'; -import 'package:flutter_api_samples/widgets/shared_app_data/shared_app_data.1.dart' - as example; +import 'package:flutter_api_samples/widgets/shared_app_data/shared_app_data.1.dart' as example; import 'package:flutter_test/flutter_test.dart'; void main() { example.SharedObject getSharedObject(WidgetTester tester) { - final BuildContext context = tester.element( - find.byType(example.CustomWidget), - ); + final BuildContext context = tester.element(find.byType(example.CustomWidget)); return example.SharedObject.of(context); } testWidgets('Verify correct labels are displayed', (WidgetTester tester) async { - await tester.pumpWidget( - const example.SharedAppDataExampleApp(), - ); + await tester.pumpWidget(const example.SharedAppDataExampleApp()); final example.SharedObject sharedObject = getSharedObject(tester); @@ -27,9 +22,7 @@ void main() { }); testWidgets('Button tap resets SharedObject', (WidgetTester tester) async { - await tester.pumpWidget( - const example.SharedAppDataExampleApp(), - ); + await tester.pumpWidget(const example.SharedAppDataExampleApp()); for (int i = 0; i < 10; i++) { final example.SharedObject sharedObject = getSharedObject(tester); diff --git a/flutter/examples/api/test/widgets/shortcuts/callback_shortcuts.0_test.dart b/flutter/examples/api/test/widgets/shortcuts/callback_shortcuts.0_test.dart index d65ecccfc17be38cdbe8f9ce6a4ca3bc9a8382f0..67a3d2253999b6c10f4e54e15b8c7a471e3e731c 100644 --- a/flutter/examples/api/test/widgets/shortcuts/callback_shortcuts.0_test.dart +++ b/flutter/examples/api/test/widgets/shortcuts/callback_shortcuts.0_test.dart @@ -3,32 +3,21 @@ // found in the LICENSE file. import 'package:flutter/services.dart'; -import 'package:flutter_api_samples/widgets/shortcuts/callback_shortcuts.0.dart' - as example; +import 'package:flutter_api_samples/widgets/shortcuts/callback_shortcuts.0.dart' as example; import 'package:flutter_test/flutter_test.dart'; void main() { testWidgets('Verify correct labels are displayed', (WidgetTester tester) async { - await tester.pumpWidget( - const example.CallbackShortcutsApp(), - ); + await tester.pumpWidget(const example.CallbackShortcutsApp()); expect(find.text('CallbackShortcuts Sample'), findsOneWidget); - expect( - find.text('Press the up arrow key to add to the counter'), - findsOneWidget, - ); - expect( - find.text('Press the down arrow key to subtract from the counter'), - findsOneWidget, - ); + expect(find.text('Press the up arrow key to add to the counter'), findsOneWidget); + expect(find.text('Press the down arrow key to subtract from the counter'), findsOneWidget); expect(find.text('count: 0'), findsOneWidget); }); testWidgets('Up and down arrow press updates counter', (WidgetTester tester) async { - await tester.pumpWidget( - const example.CallbackShortcutsApp(), - ); + await tester.pumpWidget(const example.CallbackShortcutsApp()); int counter = 0; diff --git a/flutter/examples/api/test/widgets/shortcuts/character_activator.0_test.dart b/flutter/examples/api/test/widgets/shortcuts/character_activator.0_test.dart index fda1dccc21a90d476862d89e8a7cf71a6ddded8e..2cbe45260e7820df4f43cd8ad46f53672e338c82 100644 --- a/flutter/examples/api/test/widgets/shortcuts/character_activator.0_test.dart +++ b/flutter/examples/api/test/widgets/shortcuts/character_activator.0_test.dart @@ -4,50 +4,42 @@ import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; -import 'package:flutter_api_samples/widgets/shortcuts/character_activator.0.dart' - as example; +import 'package:flutter_api_samples/widgets/shortcuts/character_activator.0.dart' as example; import 'package:flutter_test/flutter_test.dart'; void main() { group('CharacterActivatorExampleApp', () { testWidgets('displays correct labels', (WidgetTester tester) async { - await tester.pumpWidget( - const example.CharacterActivatorExampleApp(), - ); + await tester.pumpWidget(const example.CharacterActivatorExampleApp()); expect(find.text('CharacterActivator Sample'), findsOneWidget); expect(find.text('Press question mark for help'), findsOneWidget); }); - testWidgets( - 'shows snack bar on question key pressed', - (WidgetTester tester) async { - await tester.pumpWidget( - const example.CharacterActivatorExampleApp(), - ); + testWidgets('shows snack bar on question key pressed', (WidgetTester tester) async { + await tester.pumpWidget(const example.CharacterActivatorExampleApp()); - final Finder snackBarFinder = find.ancestor( - of: find.text('Keep calm and carry on!'), - matching: find.byType(SnackBar), - ); + final Finder snackBarFinder = find.ancestor( + of: find.text('Keep calm and carry on!'), + matching: find.byType(SnackBar), + ); - expect(snackBarFinder, findsNothing); + expect(snackBarFinder, findsNothing); - await tester.sendKeyEvent(LogicalKeyboardKey.slash, character: '?'); + await tester.sendKeyEvent(LogicalKeyboardKey.slash, character: '?'); - // Advance the SnackBar entrance animation to the end. - await tester.pumpAndSettle(); + // Advance the SnackBar entrance animation to the end. + await tester.pumpAndSettle(); - expect(snackBarFinder, findsOneWidget); + expect(snackBarFinder, findsOneWidget); - // Advance time by default SnackBar display duration. - await tester.pump(const Duration(milliseconds: 4000)); + // Advance time by default SnackBar display duration. + await tester.pump(const Duration(milliseconds: 4000)); - // Advance the SnackBar exit animation to the end. - await tester.pumpAndSettle(); + // Advance the SnackBar exit animation to the end. + await tester.pumpAndSettle(); - expect(snackBarFinder, findsNothing); - }, - ); + expect(snackBarFinder, findsNothing); + }); }); } diff --git a/flutter/examples/api/test/widgets/shortcuts/logical_key_set.0_test.dart b/flutter/examples/api/test/widgets/shortcuts/logical_key_set.0_test.dart index 8c6c0a766d2d1ce2e2ba9b0c1fcd6681e3adeb39..57f6e3009586132b09911abcfd939c9dba1d7f15 100644 --- a/flutter/examples/api/test/widgets/shortcuts/logical_key_set.0_test.dart +++ b/flutter/examples/api/test/widgets/shortcuts/logical_key_set.0_test.dart @@ -3,15 +3,11 @@ // found in the LICENSE file. import 'package:flutter/services.dart'; -import 'package:flutter_api_samples/widgets/shortcuts/logical_key_set.0.dart' - as example; +import 'package:flutter_api_samples/widgets/shortcuts/logical_key_set.0.dart' as example; import 'package:flutter_test/flutter_test.dart'; void main() { - Future sendKeyCombination( - WidgetTester tester, - List keys, - ) async { + Future sendKeyCombination(WidgetTester tester, List keys) async { for (final LogicalKeyboardKey key in keys) { await tester.sendKeyDownEvent(key); } @@ -21,22 +17,17 @@ void main() { } testWidgets('Verify correct labels are displayed', (WidgetTester tester) async { - await tester.pumpWidget( - const example.LogicalKeySetExampleApp(), - ); + await tester.pumpWidget(const example.LogicalKeySetExampleApp()); expect(find.text('LogicalKeySet Sample'), findsOneWidget); - expect( - find.text('Add to the counter by pressing Ctrl+C'), - findsOneWidget, - ); + expect(find.text('Add to the counter by pressing Ctrl+C'), findsOneWidget); expect(find.text('count: 0'), findsOneWidget); }); - testWidgets('CtrlLeft+C or C+CtrlLeft key combination updates counter', (WidgetTester tester) async { - await tester.pumpWidget( - const example.LogicalKeySetExampleApp(), - ); + testWidgets('CtrlLeft+C or C+CtrlLeft key combination updates counter', ( + WidgetTester tester, + ) async { + await tester.pumpWidget(const example.LogicalKeySetExampleApp()); for (int counter = 0; counter < 10; counter++) { expect(find.text('count: $counter'), findsOneWidget); @@ -44,74 +35,53 @@ void main() { await sendKeyCombination( tester, counter.isEven - ? [ - LogicalKeyboardKey.controlLeft, - LogicalKeyboardKey.keyC, - ] - : [ - LogicalKeyboardKey.keyC, - LogicalKeyboardKey.controlLeft, - ], + ? [LogicalKeyboardKey.controlLeft, LogicalKeyboardKey.keyC] + : [LogicalKeyboardKey.keyC, LogicalKeyboardKey.controlLeft], ); await tester.pump(); } }); testWidgets('CtrlRight+C key combination updates counter', (WidgetTester tester) async { - await tester.pumpWidget( - const example.LogicalKeySetExampleApp(), - ); + await tester.pumpWidget(const example.LogicalKeySetExampleApp()); for (int counter = 0; counter < 10; counter++) { expect(find.text('count: $counter'), findsOneWidget); - await sendKeyCombination( - tester, - [ - LogicalKeyboardKey.controlRight, - LogicalKeyboardKey.keyC, - ], - ); + await sendKeyCombination(tester, [ + LogicalKeyboardKey.controlRight, + LogicalKeyboardKey.keyC, + ]); await tester.pump(); } }); testWidgets('CtrlLeft+A+C key combination does not update counter', (WidgetTester tester) async { - await tester.pumpWidget( - const example.LogicalKeySetExampleApp(), - ); + await tester.pumpWidget(const example.LogicalKeySetExampleApp()); for (int counter = 0; counter < 10; counter++) { expect(find.text('count: 0'), findsOneWidget); - await sendKeyCombination( - tester, - [ - LogicalKeyboardKey.controlLeft, - LogicalKeyboardKey.keyA, - LogicalKeyboardKey.keyC, - ], - ); + await sendKeyCombination(tester, [ + LogicalKeyboardKey.controlLeft, + LogicalKeyboardKey.keyA, + LogicalKeyboardKey.keyC, + ]); await tester.pump(); } }); testWidgets('CtrlRight+A+C key combination does not update counter', (WidgetTester tester) async { - await tester.pumpWidget( - const example.LogicalKeySetExampleApp(), - ); + await tester.pumpWidget(const example.LogicalKeySetExampleApp()); for (int counter = 0; counter < 10; counter++) { expect(find.text('count: 0'), findsOneWidget); - await sendKeyCombination( - tester, - [ - LogicalKeyboardKey.controlRight, - LogicalKeyboardKey.keyA, - LogicalKeyboardKey.keyC, - ], - ); + await sendKeyCombination(tester, [ + LogicalKeyboardKey.controlRight, + LogicalKeyboardKey.keyA, + LogicalKeyboardKey.keyC, + ]); await tester.pump(); } }); diff --git a/flutter/examples/api/test/widgets/shortcuts/shortcuts.0_test.dart b/flutter/examples/api/test/widgets/shortcuts/shortcuts.0_test.dart index 0a9275140614ad82d529882c5da65193bbb7a611..303e61ec78ac9dfa10de0d4fba9ed2f0a17b4c21 100644 --- a/flutter/examples/api/test/widgets/shortcuts/shortcuts.0_test.dart +++ b/flutter/examples/api/test/widgets/shortcuts/shortcuts.0_test.dart @@ -3,32 +3,21 @@ // found in the LICENSE file. import 'package:flutter/services.dart'; -import 'package:flutter_api_samples/widgets/shortcuts/shortcuts.0.dart' - as example; +import 'package:flutter_api_samples/widgets/shortcuts/shortcuts.0.dart' as example; import 'package:flutter_test/flutter_test.dart'; void main() { testWidgets('Verify correct labels are displayed', (WidgetTester tester) async { - await tester.pumpWidget( - const example.ShortcutsExampleApp(), - ); + await tester.pumpWidget(const example.ShortcutsExampleApp()); expect(find.text('Shortcuts Sample'), findsOneWidget); - expect( - find.text('Add to the counter by pressing the up arrow key'), - findsOneWidget, - ); - expect( - find.text('Subtract from the counter by pressing the down arrow key'), - findsOneWidget, - ); + expect(find.text('Add to the counter by pressing the up arrow key'), findsOneWidget); + expect(find.text('Subtract from the counter by pressing the down arrow key'), findsOneWidget); expect(find.text('count: 0'), findsOneWidget); }); testWidgets('Up and down arrow press updates counter', (WidgetTester tester) async { - await tester.pumpWidget( - const example.ShortcutsExampleApp(), - ); + await tester.pumpWidget(const example.ShortcutsExampleApp()); int counter = 0; diff --git a/flutter/examples/api/test/widgets/shortcuts/shortcuts.1_test.dart b/flutter/examples/api/test/widgets/shortcuts/shortcuts.1_test.dart index 17a2155739d6851f108f393383238be845cb601a..7083aa67972ba4b1d1fa787ba0cc9caf61e0f582 100644 --- a/flutter/examples/api/test/widgets/shortcuts/shortcuts.1_test.dart +++ b/flutter/examples/api/test/widgets/shortcuts/shortcuts.1_test.dart @@ -3,32 +3,22 @@ // found in the LICENSE file. import 'package:flutter/services.dart'; -import 'package:flutter_api_samples/widgets/shortcuts/shortcuts.1.dart' - as example; +import 'package:flutter/widgets.dart'; +import 'package:flutter_api_samples/widgets/shortcuts/shortcuts.1.dart' as example; import 'package:flutter_test/flutter_test.dart'; void main() { testWidgets('Verify correct labels are displayed', (WidgetTester tester) async { - await tester.pumpWidget( - const example.ShortcutsExampleApp(), - ); + await tester.pumpWidget(const example.ShortcutsExampleApp()); expect(find.text('Shortcuts Sample'), findsOneWidget); - expect( - find.text('Add to the counter by pressing the up arrow key'), - findsOneWidget, - ); - expect( - find.text('Subtract from the counter by pressing the down arrow key'), - findsOneWidget, - ); + expect(find.text('Add to the counter by pressing the up arrow key'), findsOneWidget); + expect(find.text('Subtract from the counter by pressing the down arrow key'), findsOneWidget); expect(find.text('count: 0'), findsOneWidget); }); testWidgets('Up and down arrow press updates counter', (WidgetTester tester) async { - await tester.pumpWidget( - const example.ShortcutsExampleApp(), - ); + await tester.pumpWidget(const example.ShortcutsExampleApp()); int counter = 0; @@ -52,4 +42,19 @@ void main() { counter -= 2; } }); + + // Regression test for https://github.com/flutter/flutter/issues/156806. + testWidgets('SingleActivator is used instead of LogicalKeySet', (WidgetTester tester) async { + await tester.pumpWidget(const example.ShortcutsExampleApp()); + + final Shortcuts shortcuts = tester.firstWidget( + find.descendant(of: find.byType(example.ShortcutsExample), matching: find.byType(Shortcuts)), + ); + + expect(shortcuts.shortcuts.length, 2); + for (final ShortcutActivator activator in shortcuts.shortcuts.keys) { + expect(activator is LogicalKeySet, false); + expect(activator is SingleActivator, true); + } + }); } diff --git a/flutter/examples/api/test/widgets/shortcuts/single_activator.0_test.dart b/flutter/examples/api/test/widgets/shortcuts/single_activator.0_test.dart index 2be8c32126155a86b14707142605090be0d5ad0d..aba7021732f370429e8067f7abdf5032ba5575a6 100644 --- a/flutter/examples/api/test/widgets/shortcuts/single_activator.0_test.dart +++ b/flutter/examples/api/test/widgets/shortcuts/single_activator.0_test.dart @@ -3,8 +3,7 @@ // found in the LICENSE file. import 'package:flutter/services.dart'; -import 'package:flutter_api_samples/widgets/shortcuts/single_activator.0.dart' - as example; +import 'package:flutter_api_samples/widgets/shortcuts/single_activator.0.dart' as example; import 'package:flutter_test/flutter_test.dart'; void main() { @@ -17,31 +16,21 @@ void main() { group('SingleActivatorExampleApp', () { testWidgets('displays correct labels', (WidgetTester tester) async { - await tester.pumpWidget( - const example.SingleActivatorExampleApp(), - ); + await tester.pumpWidget(const example.SingleActivatorExampleApp()); - expect( - find.text('Add to the counter by pressing Ctrl+C'), - findsOneWidget, - ); + expect(find.text('Add to the counter by pressing Ctrl+C'), findsOneWidget); expect(find.text('count: 0'), findsOneWidget); }); - testWidgets( - 'updates counter when Ctrl-C combination pressed', - (WidgetTester tester) async { - await tester.pumpWidget( - const example.SingleActivatorExampleApp(), - ); + testWidgets('updates counter when Ctrl-C combination pressed', (WidgetTester tester) async { + await tester.pumpWidget(const example.SingleActivatorExampleApp()); - for (int counter = 0; counter < 10; counter++) { - expect(find.text('count: $counter'), findsOneWidget); + for (int counter = 0; counter < 10; counter++) { + expect(find.text('count: $counter'), findsOneWidget); - await pressControlC(tester); - await tester.pump(); - } - }, - ); + await pressControlC(tester); + await tester.pump(); + } + }); }); } diff --git a/flutter/examples/api/test/widgets/single_child_scroll_view/single_child_scroll_view.0_test.dart b/flutter/examples/api/test/widgets/single_child_scroll_view/single_child_scroll_view.0_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..d697c4e740b724e969dad0df2a90a138aa926c6c --- /dev/null +++ b/flutter/examples/api/test/widgets/single_child_scroll_view/single_child_scroll_view.0_test.dart @@ -0,0 +1,46 @@ +// 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/widgets.dart'; +import 'package:flutter_api_samples/widgets/single_child_scroll_view/single_child_scroll_view.0.dart' + as example; +import 'package:flutter_test/flutter_test.dart'; + +void main() { + testWidgets('The children should be spaced out equally when the screen is big enough', ( + WidgetTester tester, + ) async { + await tester.pumpWidget(const example.SingleChildScrollViewExampleApp()); + + expect(find.text('Fixed Height Content'), findsExactly(2)); + expect(tester.getTopLeft(find.byType(Container).first), const Offset(0, 90)); + expect(tester.getTopLeft(find.byType(Container).last), const Offset(0, 390)); + + await tester.fling(find.byType(SingleChildScrollView).last, const Offset(0, -100), 10.0); + + // The view should not scroll when the screen is big enough. + expect(tester.getTopLeft(find.byType(Container).first), const Offset(0, 90)); + expect(tester.getTopLeft(find.byType(Container).last), const Offset(0, 390)); + }); + + testWidgets('The view should be scrollable when the screen is not big enough', ( + WidgetTester tester, + ) async { + tester.view + ..physicalSize = const Size(400, 200) + ..devicePixelRatio = 1; + addTearDown(tester.view.reset); + await tester.pumpWidget(const example.SingleChildScrollViewExampleApp()); + + expect(find.text('Fixed Height Content'), findsExactly(2)); + expect(tester.getTopLeft(find.byType(Container).first), Offset.zero); + expect(tester.getTopLeft(find.byType(Container).last), const Offset(0, 120)); + + await tester.fling(find.byType(SingleChildScrollView).last, const Offset(0, -40), 10.0); + + // The view should scroll when the screen is not big enough. + expect(tester.getTopLeft(find.byType(Container).first), const Offset(0, -40)); + expect(tester.getTopLeft(find.byType(Container).last), const Offset(0, 80)); + }); +} diff --git a/flutter/examples/api/test/widgets/single_child_scroll_view/single_child_scroll_view.1_test.dart b/flutter/examples/api/test/widgets/single_child_scroll_view/single_child_scroll_view.1_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..71436b49ce1405c9566980b427ca8fc2ef6dd627 --- /dev/null +++ b/flutter/examples/api/test/widgets/single_child_scroll_view/single_child_scroll_view.1_test.dart @@ -0,0 +1,56 @@ +// 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/widgets.dart'; +import 'package:flutter_api_samples/widgets/single_child_scroll_view/single_child_scroll_view.1.dart' + as example; +import 'package:flutter_test/flutter_test.dart'; + +void main() { + testWidgets('The flexible child should fill the space if the screen is big enough', ( + WidgetTester tester, + ) async { + await tester.pumpWidget(const example.SingleChildScrollViewExampleApp()); + + final Finder fixedHeightFinder = find.widgetWithText(Container, 'Fixed Height Content'); + final Finder flexibleHeightFinder = find.widgetWithText(Container, 'Flexible Content'); + expect(tester.getTopLeft(fixedHeightFinder), Offset.zero); + expect(tester.getSize(fixedHeightFinder), const Size(800, 120)); + expect(tester.getTopLeft(flexibleHeightFinder), const Offset(0, 120)); + expect(tester.getSize(flexibleHeightFinder), const Size(800, 480)); + + await tester.fling(find.byType(SingleChildScrollView).last, const Offset(0, -100), 10.0); + + // The view should not scroll when the screen is big enough. + expect(tester.getTopLeft(fixedHeightFinder), Offset.zero); + expect(tester.getSize(fixedHeightFinder), const Size(800, 120)); + expect(tester.getTopLeft(flexibleHeightFinder), const Offset(0, 120)); + expect(tester.getSize(flexibleHeightFinder), const Size(800, 480)); + }); + + testWidgets('The view should be scrollable when the screen is not big enough', ( + WidgetTester tester, + ) async { + tester.view + ..physicalSize = const Size(400, 200) + ..devicePixelRatio = 1; + addTearDown(tester.view.reset); + await tester.pumpWidget(const example.SingleChildScrollViewExampleApp()); + + final Finder fixedHeightFinder = find.widgetWithText(Container, 'Fixed Height Content'); + final Finder flexibleHeightFinder = find.widgetWithText(Container, 'Flexible Content'); + expect(tester.getTopLeft(fixedHeightFinder), Offset.zero); + expect(tester.getSize(fixedHeightFinder), const Size(400, 120)); + expect(tester.getTopLeft(flexibleHeightFinder), const Offset(0, 120)); + expect(tester.getSize(flexibleHeightFinder), const Size(400, 120)); + + await tester.fling(find.byType(SingleChildScrollView).last, const Offset(0, -40), 10.0); + + // The view should scroll when the screen is not big enough. + expect(tester.getTopLeft(fixedHeightFinder), const Offset(0, -40)); + expect(tester.getSize(fixedHeightFinder), const Size(400, 120)); + expect(tester.getTopLeft(flexibleHeightFinder), const Offset(0, 80)); + expect(tester.getSize(flexibleHeightFinder), const Size(400, 120)); + }); +} diff --git a/flutter/examples/api/test/widgets/sliver/decorated_sliver.0_test.dart b/flutter/examples/api/test/widgets/sliver/decorated_sliver.0_test.dart index 6298215aca67cc05f0c49c5ef5f07c84c73a7226..ee39812427700e4113eb6bfe2d114b27686d673e 100644 --- a/flutter/examples/api/test/widgets/sliver/decorated_sliver.0_test.dart +++ b/flutter/examples/api/test/widgets/sliver/decorated_sliver.0_test.dart @@ -8,9 +8,7 @@ import 'package:flutter_test/flutter_test.dart'; void main() { testWidgets('Verify the texts are displayed', (WidgetTester tester) async { - await tester.pumpWidget( - const example.SliverDecorationExampleApp(), - ); + await tester.pumpWidget(const example.SliverDecorationExampleApp()); final Finder moonText = find.text('A moon on a night sky'); expect(moonText, findsOneWidget); @@ -19,10 +17,10 @@ void main() { expect(blueSkyText, findsOneWidget); }); - testWidgets('Verify the sliver with key `radial-gradient` has a RadialGradient', (WidgetTester tester) async { - await tester.pumpWidget( - const example.SliverDecorationExampleApp(), - ); + testWidgets('Verify the sliver with key `radial-gradient` has a RadialGradient', ( + WidgetTester tester, + ) async { + await tester.pumpWidget(const example.SliverDecorationExampleApp()); final DecoratedSliver radialDecoratedSliver = tester.widget( find.byKey(const ValueKey('radial-gradient')), @@ -33,20 +31,17 @@ void main() { gradient: RadialGradient( center: Alignment(-0.5, -0.6), radius: 0.15, - colors: [ - Color(0xFFEEEEEE), - Color(0xFF111133), - ], + colors: [Color(0xFFEEEEEE), Color(0xFF111133)], stops: [0.4, 0.8], ), ), ); }); - testWidgets('Verify that the sliver with key `linear-gradient` has a LinearGradient', (WidgetTester tester) async { - await tester.pumpWidget( - const example.SliverDecorationExampleApp(), - ); + testWidgets('Verify that the sliver with key `linear-gradient` has a LinearGradient', ( + WidgetTester tester, + ) async { + await tester.pumpWidget(const example.SliverDecorationExampleApp()); final DecoratedSliver linearDecoratedSliver = tester.widget( find.byKey(const ValueKey('linear-gradient')), diff --git a/flutter/examples/api/test/widgets/sliver/decorated_sliver.1_test.dart b/flutter/examples/api/test/widgets/sliver/decorated_sliver.1_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..47ccab7480bf08bdf7aa99a0b8796e4d76c4be7d --- /dev/null +++ b/flutter/examples/api/test/widgets/sliver/decorated_sliver.1_test.dart @@ -0,0 +1,40 @@ +// 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_api_samples/widgets/sliver/decorated_sliver.1.dart' as example; +import 'package:flutter_test/flutter_test.dart'; + +void main() { + testWidgets('CustomScrollView clipBehavior is Clip.none when is Clipped is false', ( + WidgetTester tester, + ) async { + await tester.pumpWidget(const MaterialApp(home: example.DecoratedSliverClipExample())); + + final CustomScrollView customScrollView = tester.widget(find.byType(CustomScrollView)); + + expect(customScrollView.clipBehavior, equals(Clip.none)); + }); + + testWidgets('Verify the DecoratedSliver has shadow property in decoration', ( + WidgetTester tester, + ) async { + await tester.pumpWidget( + const MaterialApp(home: example.ResizableCustomScrollView(isClipped: false)), + ); + + final DecoratedSliver decoratedSliver = tester.widget(find.byType(DecoratedSliver)); + final ShapeDecoration shapeDecoration = decoratedSliver.decoration as ShapeDecoration; + + expect(shapeDecoration.shadows, isNotEmpty); + }); + + testWidgets('Verify Slider and Switch widgets', (WidgetTester tester) async { + await tester.pumpWidget(const example.DecoratedSliverClipExampleApp()); + + expect(find.byType(Slider), findsOneWidget); + + expect(find.byType(Switch), findsOneWidget); + }); +} diff --git a/flutter/examples/api/test/widgets/sliver/pinned_header_sliver.0_test.dart b/flutter/examples/api/test/widgets/sliver/pinned_header_sliver.0_test.dart index ac5dfbcacd113618c782d72ee2c91d3aeb27534f..364801d350b6a7a1554cf7fa92e95547f94b7d45 100644 --- a/flutter/examples/api/test/widgets/sliver/pinned_header_sliver.0_test.dart +++ b/flutter/examples/api/test/widgets/sliver/pinned_header_sliver.0_test.dart @@ -8,9 +8,7 @@ import 'package:flutter_test/flutter_test.dart'; void main() { testWidgets('PinnedHeaderSliver example', (WidgetTester tester) async { - await tester.pumpWidget( - const example.PinnedHeaderSliverApp(), - ); + await tester.pumpWidget(const example.PinnedHeaderSliverApp()); expect(find.text('PinnedHeaderSliver'), findsOneWidget); diff --git a/flutter/examples/api/test/widgets/sliver/pinned_header_sliver.1_test.dart b/flutter/examples/api/test/widgets/sliver/pinned_header_sliver.1_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..a0ad79a7d3fb9605ccebee6f6511f6232f1e42ea --- /dev/null +++ b/flutter/examples/api/test/widgets/sliver/pinned_header_sliver.1_test.dart @@ -0,0 +1,49 @@ +// 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_api_samples/widgets/sliver/pinned_header_sliver.1.dart' as example; +import 'package:flutter_test/flutter_test.dart'; + +void main() { + testWidgets('PinnedHeaderSliver iOS Settings example', (WidgetTester tester) async { + await tester.pumpWidget(const example.SettingsAppBarApp()); + + // Verify that the app contains a header: a SliverPersistentHeader + // with an AnimatedOpacity widget below it, and a Text('Settings') below that. + expect(find.byType(PinnedHeaderSliver), findsOneWidget); + expect( + find.descendant(of: find.byType(PinnedHeaderSliver), matching: find.byType(AnimatedOpacity)), + findsOneWidget, + ); + expect(find.widgetWithText(AnimatedOpacity, 'Settings'), findsOneWidget); + + // Verify that the app contains a "Settings" title: a SliverToBoxAdapter + // with a Text('Settings') widget below it. + expect(find.widgetWithText(SliverToBoxAdapter, 'Settings'), findsOneWidget); + + final Finder headerOpacity = find.widgetWithText(AnimatedOpacity, 'Settings'); + expect(tester.widget(headerOpacity).opacity, 0); + + // Scroll up: the header's opacity goes to 1 and the title disappears. + await tester.timedDrag( + find.byType(CustomScrollView), + const Offset(0, -500), + const Duration(milliseconds: 500), + ); + await tester.pumpAndSettle(); + expect(tester.widget(headerOpacity).opacity, 1); + expect(find.widgetWithText(SliverToBoxAdapter, 'Settings'), findsNothing); + + // Scroll back down and we're back to where we started. + await tester.timedDrag( + find.byType(CustomScrollView), + const Offset(0, 500), + const Duration(milliseconds: 500), + ); + await tester.pumpAndSettle(); + expect(tester.widget(headerOpacity).opacity, 0); + expect(find.widgetWithText(SliverToBoxAdapter, 'Settings'), findsOneWidget); + }); +} diff --git a/flutter/examples/api/test/widgets/sliver/sliver_constrained_cross_axis.0_test.dart b/flutter/examples/api/test/widgets/sliver/sliver_constrained_cross_axis.0_test.dart index 32f7093cdf3b2fa55c6323db7e142c754e334f4c..710caac4dfa6392b316d8e230d8e5a1c8612b23b 100644 --- a/flutter/examples/api/test/widgets/sliver/sliver_constrained_cross_axis.0_test.dart +++ b/flutter/examples/api/test/widgets/sliver/sliver_constrained_cross_axis.0_test.dart @@ -4,15 +4,12 @@ import 'package:flutter/material.dart'; import 'package:flutter/rendering.dart'; -import 'package:flutter_api_samples/widgets/sliver/sliver_constrained_cross_axis.0.dart' - as example; +import 'package:flutter_api_samples/widgets/sliver/sliver_constrained_cross_axis.0.dart' as example; import 'package:flutter_test/flutter_test.dart'; void main() { testWidgets('SliverConstrainedCrossAxis example', (WidgetTester tester) async { - await tester.pumpWidget( - const example.SliverConstrainedCrossAxisExampleApp(), - ); + await tester.pumpWidget(const example.SliverConstrainedCrossAxisExampleApp()); final RenderSliverList renderSliverList = tester.renderObject(find.byType(SliverList)); expect(renderSliverList.constraints.crossAxisExtent, equals(200)); diff --git a/flutter/examples/api/test/widgets/sliver/sliver_cross_axis_group.0_test.dart b/flutter/examples/api/test/widgets/sliver/sliver_cross_axis_group.0_test.dart index d49b6f5935b9e125aff4bd09af8d398312e23fac..8efa4e81399b79ca2b176effdeeabbf662e4cbfa 100644 --- a/flutter/examples/api/test/widgets/sliver/sliver_cross_axis_group.0_test.dart +++ b/flutter/examples/api/test/widgets/sliver/sliver_cross_axis_group.0_test.dart @@ -4,22 +4,22 @@ import 'package:flutter/material.dart'; import 'package:flutter/rendering.dart'; -import 'package:flutter_api_samples/widgets/sliver/sliver_cross_axis_group.0.dart' - as example; +import 'package:flutter_api_samples/widgets/sliver/sliver_cross_axis_group.0.dart' as example; import 'package:flutter_test/flutter_test.dart'; void main() { testWidgets('SliverCrossAxisGroup example', (WidgetTester tester) async { - await tester.pumpWidget( - const example.SliverCrossAxisGroupExampleApp(), - ); + await tester.pumpWidget(const example.SliverCrossAxisGroupExampleApp()); - final RenderSliverCrossAxisGroup renderSliverGroup = tester.renderObject(find.byType(SliverCrossAxisGroup)); + final RenderSliverCrossAxisGroup renderSliverGroup = tester.renderObject( + find.byType(SliverCrossAxisGroup), + ); expect(renderSliverGroup, isNotNull); final double crossAxisExtent = renderSliverGroup.constraints.crossAxisExtent; - final List renderSliverLists = tester.renderObjectList(find.byType(SliverList)).toList(); + final List renderSliverLists = + tester.renderObjectList(find.byType(SliverList)).toList(); final RenderSliverList firstList = renderSliverLists[0]; final RenderSliverList secondList = renderSliverLists[1]; final RenderSliverList thirdList = renderSliverLists[2]; @@ -32,12 +32,17 @@ void main() { expect(thirdList.constraints.crossAxisExtent, equals(expectedThirdExtent)); // Also check that the paint offsets are correct. - final RenderSliverConstrainedCrossAxis renderConstrained = tester.renderObject( - find.byType(SliverConstrainedCrossAxis) - ); + final RenderSliverConstrainedCrossAxis renderConstrained = tester + .renderObject(find.byType(SliverConstrainedCrossAxis)); expect((firstList.parentData! as SliverPhysicalParentData).paintOffset.dx, equals(0)); - expect((renderConstrained.parentData! as SliverPhysicalParentData).paintOffset.dx, equals(expectedFirstExtent)); - expect((thirdList.parentData! as SliverPhysicalParentData).paintOffset.dx, equals(expectedFirstExtent + expectedSecondExtent)); + expect( + (renderConstrained.parentData! as SliverPhysicalParentData).paintOffset.dx, + equals(expectedFirstExtent), + ); + expect( + (thirdList.parentData! as SliverPhysicalParentData).paintOffset.dx, + equals(expectedFirstExtent + expectedSecondExtent), + ); }); } diff --git a/flutter/examples/api/test/widgets/sliver/sliver_ensure_semantics.0_test.dart b/flutter/examples/api/test/widgets/sliver/sliver_ensure_semantics.0_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..651d98d6f8dd8dcd62ddc4d3a2965715d8a1a72e --- /dev/null +++ b/flutter/examples/api/test/widgets/sliver/sliver_ensure_semantics.0_test.dart @@ -0,0 +1,14 @@ +// 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_api_samples/widgets/sliver/sliver_ensure_semantics.0.dart' as example; +import 'package:flutter_test/flutter_test.dart'; + +void main() { + testWidgets('SliverEnsureSemantics example', (WidgetTester tester) async { + await tester.pumpWidget(const example.SliverEnsureSemanticsExampleApp()); + + expect(find.text('SliverEnsureSemantics Demo'), findsOneWidget); + }); +} diff --git a/flutter/examples/api/test/widgets/sliver/sliver_floating_header.0_test.dart b/flutter/examples/api/test/widgets/sliver/sliver_floating_header.0_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..54833de77792fd8ccb3e9bd7bcf31d6ae580eb3b --- /dev/null +++ b/flutter/examples/api/test/widgets/sliver/sliver_floating_header.0_test.dart @@ -0,0 +1,30 @@ +// 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_api_samples/widgets/sliver/sliver_floating_header.0.dart' as example; +import 'package:flutter_test/flutter_test.dart'; + +void main() { + testWidgets('SliverFloatingHeader example', (WidgetTester tester) async { + await tester.pumpWidget(const example.SliverFloatingHeaderApp()); + + final Finder headerText = find.text( + 'SliverFloatingHeader\nScroll down a little to show\nScroll up a little to hide', + ); + final double headerHeight = tester.getSize(headerText).height; + + await tester.drag(find.byType(CustomScrollView), Offset(0, -2 * headerHeight)); + await tester.pumpAndSettle(); + expect(headerText, findsNothing); + + await tester.drag(find.byType(CustomScrollView), Offset(0, 0.5 * headerHeight)); + await tester.pumpAndSettle(); + expect(headerText, findsOneWidget); + + await tester.drag(find.byType(CustomScrollView), Offset(0, -0.5 * headerHeight)); + await tester.pumpAndSettle(); + expect(headerText, findsNothing); + }); +} diff --git a/flutter/examples/api/test/widgets/sliver/sliver_main_axis_group.0_test.dart b/flutter/examples/api/test/widgets/sliver/sliver_main_axis_group.0_test.dart index 563b54739d843a7bf8af6ff3552cc675492b546e..4b5e5e8d84c8bdbac279a98375fdb11f9fe50dbf 100644 --- a/flutter/examples/api/test/widgets/sliver/sliver_main_axis_group.0_test.dart +++ b/flutter/examples/api/test/widgets/sliver/sliver_main_axis_group.0_test.dart @@ -4,22 +4,31 @@ import 'package:flutter/material.dart'; import 'package:flutter/rendering.dart'; -import 'package:flutter_api_samples/widgets/sliver/sliver_main_axis_group.0.dart' - as example; +import 'package:flutter_api_samples/widgets/sliver/sliver_main_axis_group.0.dart' as example; import 'package:flutter_test/flutter_test.dart'; void main() { testWidgets('SliverMainAxisGroup example', (WidgetTester tester) async { - await tester.pumpWidget( - const example.SliverMainAxisGroupExampleApp(), - ); + await tester.pumpWidget(const example.SliverMainAxisGroupExampleApp()); - final RenderSliverMainAxisGroup renderSliverGroup = tester.renderObject(find.byType(SliverMainAxisGroup)); + final RenderSliverMainAxisGroup renderSliverGroup = tester.renderObject( + find.byType(SliverMainAxisGroup), + ); expect(renderSliverGroup, isNotNull); - final RenderSliverPersistentHeader renderAppBar = tester.renderObject(find.byType(SliverAppBar)); - final RenderSliverList renderSliverList = tester.renderObject(find.byType(SliverList)); - final RenderSliverToBoxAdapter renderSliverAdapter = tester.renderObject(find.byType(SliverToBoxAdapter)); + final RenderSliverPersistentHeader renderAppBar = tester + .renderObject(find.byType(SliverAppBar)); + final RenderSliverList renderSliverList = tester.renderObject( + find.byType(SliverList), + ); + final RenderSliverToBoxAdapter renderSliverAdapter = tester + .renderObject( + find.descendant( + of: find.byType(SliverMainAxisGroup), + matching: find.byType(SliverToBoxAdapter, skipOffstage: false), + skipOffstage: false, + ), + ); // renderAppBar, renderSliverList, and renderSliverAdapter1 are part of the same sliver group. expect(renderAppBar.geometry!.scrollExtent, equals(70.0)); diff --git a/flutter/examples/api/test/widgets/sliver/sliver_opacity.1_test.dart b/flutter/examples/api/test/widgets/sliver/sliver_opacity.1_test.dart index 3c72f5ef3dfc1b65d66d4e941d5f2ca31c546026..168fe96afe9569e565da97b566e9e4337572674c 100644 --- a/flutter/examples/api/test/widgets/sliver/sliver_opacity.1_test.dart +++ b/flutter/examples/api/test/widgets/sliver/sliver_opacity.1_test.dart @@ -3,15 +3,12 @@ // found in the LICENSE file. import 'package:flutter/material.dart'; -import 'package:flutter_api_samples/widgets/sliver/sliver_opacity.1.dart' - as example; +import 'package:flutter_api_samples/widgets/sliver/sliver_opacity.1.dart' as example; import 'package:flutter_test/flutter_test.dart'; void main() { testWidgets('SliverOpacity example', (WidgetTester tester) async { - await tester.pumpWidget( - const example.SliverOpacityExampleApp(), - ); + await tester.pumpWidget(const example.SliverOpacityExampleApp()); final Finder button = find.byType(FloatingActionButton); final Finder opacity = find.byType(SliverOpacity); diff --git a/flutter/examples/api/test/widgets/sliver/sliver_resizing_header.0_test.dart b/flutter/examples/api/test/widgets/sliver/sliver_resizing_header.0_test.dart index 70a5a5ef1354f878a419cd183982f39663f8acc5..0f0bba5334d85f9aa23c3039b9057a3a9811f9d4 100644 --- a/flutter/examples/api/test/widgets/sliver/sliver_resizing_header.0_test.dart +++ b/flutter/examples/api/test/widgets/sliver/sliver_resizing_header.0_test.dart @@ -8,11 +8,11 @@ import 'package:flutter_test/flutter_test.dart'; void main() { testWidgets('SliverResizingHeader example', (WidgetTester tester) async { - await tester.pumpWidget( - const example.SliverResizingHeaderApp(), - ); + await tester.pumpWidget(const example.SliverResizingHeaderApp()); - final Finder headerMaterial = find.text('SliverResizingHeader\nWith Two Optional\nLines of Text'); + final Finder headerMaterial = find.text( + 'SliverResizingHeader\nWith Two Optional\nLines of Text', + ); final double initialHeight = tester.getSize(headerMaterial).height; await tester.drag(find.byType(CustomScrollView), const Offset(0, -200)); diff --git a/flutter/examples/api/test/widgets/sliver/sliver_tree.0_test.dart b/flutter/examples/api/test/widgets/sliver/sliver_tree.0_test.dart index 46d77c06f3bd2fa5cdb83db4bac299d3646bb7c4..cacea24e69611791db24c19b8e780396992e794c 100644 --- a/flutter/examples/api/test/widgets/sliver/sliver_tree.0_test.dart +++ b/flutter/examples/api/test/widgets/sliver/sliver_tree.0_test.dart @@ -2,15 +2,12 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -import 'package:flutter_api_samples/widgets/sliver/sliver_tree.0.dart' - as example; +import 'package:flutter_api_samples/widgets/sliver/sliver_tree.0.dart' as example; import 'package:flutter_test/flutter_test.dart'; void main() { testWidgets('Can toggle nodes in TreeSliver', (WidgetTester tester) async { - await tester.pumpWidget( - const example.TreeSliverExampleApp(), - ); + await tester.pumpWidget(const example.TreeSliverExampleApp()); expect(find.text('Second'), findsOneWidget); expect(find.text('alpha'), findsNothing); // Toggle tree node. diff --git a/flutter/examples/api/test/widgets/sliver/sliver_tree.1_test.dart b/flutter/examples/api/test/widgets/sliver/sliver_tree.1_test.dart index d54f839c6bcd1a979b75615b98a1249a02838d81..8382fb61e7e2cf30c4b69a59534b4dae105a885d 100644 --- a/flutter/examples/api/test/widgets/sliver/sliver_tree.1_test.dart +++ b/flutter/examples/api/test/widgets/sliver/sliver_tree.1_test.dart @@ -2,15 +2,12 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -import 'package:flutter_api_samples/widgets/sliver/sliver_tree.1.dart' - as example; +import 'package:flutter_api_samples/widgets/sliver/sliver_tree.1.dart' as example; import 'package:flutter_test/flutter_test.dart'; void main() { testWidgets('Can toggle nodes in TreeSliver', (WidgetTester tester) async { - await tester.pumpWidget( - const example.TreeSliverExampleApp(), - ); + await tester.pumpWidget(const example.TreeSliverExampleApp()); expect(find.text('lib'), findsOneWidget); expect(find.text('src'), findsNothing); // Toggle tree node. diff --git a/flutter/examples/api/test/widgets/sliver_fill/sliver_fill_remaining.0_test.dart b/flutter/examples/api/test/widgets/sliver_fill/sliver_fill_remaining.0_test.dart index cb60dc3bf9f93d7da17d83a979fc7a72b96a977a..13fe831e1b2c4b0547e4082868c60788f70d962e 100644 --- a/flutter/examples/api/test/widgets/sliver_fill/sliver_fill_remaining.0_test.dart +++ b/flutter/examples/api/test/widgets/sliver_fill/sliver_fill_remaining.0_test.dart @@ -7,36 +7,49 @@ import 'package:flutter_api_samples/widgets/sliver_fill/sliver_fill_remaining.0. import 'package:flutter_test/flutter_test.dart'; void main() { - testWidgets('shows how SliverFillRemaining takes up remaining space', (WidgetTester tester) async { + testWidgets('shows how SliverFillRemaining takes up remaining space', ( + WidgetTester tester, + ) async { await tester.pumpWidget(const example.SliverFillRemainingExampleApp()); expect(find.text('SliverFillRemaining Sample'), findsOneWidget); expect(find.byType(CustomScrollView), findsOneWidget); - expect(find.descendant( - of: find.byType(SliverToBoxAdapter), - matching: find.byType(Container)), findsOneWidget); - final Container upperContainer = tester.widget(find.descendant( - of: find.byType(SliverToBoxAdapter), - matching: find.byType(Container))); + expect( + find.descendant(of: find.byType(SliverToBoxAdapter), matching: find.byType(Container)), + findsOneWidget, + ); + final Container upperContainer = tester.widget( + find.descendant(of: find.byType(SliverToBoxAdapter), matching: find.byType(Container)), + ); expect(upperContainer.color, Colors.amber[300]); expect(find.byType(SliverFillRemaining), findsOneWidget); - expect(find.descendant( - of: find.byType(SliverFillRemaining), - matching: find.byType(Container)), findsOneWidget); + expect( + find.descendant(of: find.byType(SliverFillRemaining), matching: find.byType(Container)), + findsOneWidget, + ); expect(find.byIcon(Icons.sentiment_very_satisfied), findsOneWidget); - final Icon lowerIcon = tester.widget(find.descendant( - of: find.byType(SliverFillRemaining), - matching: find.byType(Icon))); + final Icon lowerIcon = tester.widget( + find.descendant(of: find.byType(SliverFillRemaining), matching: find.byType(Icon)), + ); expect(lowerIcon.color, Colors.blue[900]); final double total = tester.getSize(find.byType(CustomScrollView)).height; - final double upperHeight = tester.getSize(find.descendant( - of: find.byType(SliverToBoxAdapter), - matching: find.byType(Container))).height; - final double lowerHeight = tester.getSize(find.descendant( - of: find.byType(SliverFillRemaining), - matching: find.byType(Icon))).height; + final double upperHeight = + tester + .getSize( + find.descendant( + of: find.byType(SliverToBoxAdapter), + matching: find.byType(Container), + ), + ) + .height; + final double lowerHeight = + tester + .getSize( + find.descendant(of: find.byType(SliverFillRemaining), matching: find.byType(Icon)), + ) + .height; expect(upperHeight + lowerHeight, equals(total)); }); } diff --git a/flutter/examples/api/test/widgets/sliver_fill/sliver_fill_remaining.1_test.dart b/flutter/examples/api/test/widgets/sliver_fill/sliver_fill_remaining.1_test.dart index de66a3ea692af06a7a6270a5fda416c84689cc46..9e365bbfe4194433e5484cc928cc89b29c44b29e 100644 --- a/flutter/examples/api/test/widgets/sliver_fill/sliver_fill_remaining.1_test.dart +++ b/flutter/examples/api/test/widgets/sliver_fill/sliver_fill_remaining.1_test.dart @@ -11,15 +11,24 @@ void main() { await tester.pumpWidget(const example.SliverFillRemainingExampleApp()); expect(find.text('SliverFillRemaining Sample'), findsOneWidget); expect(find.byType(CustomScrollView), findsOneWidget); - expect(find.byWidgetPredicate((Widget widget) => (widget is Container) - && widget.color == Colors.amber[200]), - findsNWidgets(2)); - expect(find.byWidgetPredicate((Widget widget) => (widget is Container) - && widget.color == Colors.blue[200]), - findsOneWidget); - expect(find.byWidgetPredicate((Widget widget) => (widget is Container) - && widget.color == Colors.orange[300]), - findsOneWidget); + expect( + find.byWidgetPredicate( + (Widget widget) => (widget is Container) && widget.color == Colors.amber[200], + ), + findsNWidgets(2), + ); + expect( + find.byWidgetPredicate( + (Widget widget) => (widget is Container) && widget.color == Colors.blue[200], + ), + findsOneWidget, + ); + expect( + find.byWidgetPredicate( + (Widget widget) => (widget is Container) && widget.color == Colors.orange[300], + ), + findsOneWidget, + ); expect(find.byType(SliverFixedExtentList), findsOneWidget); expect(find.byType(SliverFillRemaining), findsOneWidget); expect(find.byType(FlutterLogo), findsOneWidget); @@ -30,12 +39,17 @@ void main() { final double listSpace = tester.getSize(find.byType(CustomScrollView)).height; double contentHeight = 0.0; - for (final Widget widget in tester.widgetList(find.byWidgetPredicate( - (Widget widget) => - (widget is Container) - && [Colors.orange[300]!, Colors.blue[200]!, Colors.amber[200]!] - .contains(widget.color))) - ) { + for (final Widget widget in tester.widgetList( + find.byWidgetPredicate( + (Widget widget) => + (widget is Container) && + [ + Colors.orange[300]!, + Colors.blue[200]!, + Colors.amber[200]!, + ].contains(widget.color), + ), + )) { contentHeight += tester.getSize(find.byWidget(widget)).height; } expectLater(contentHeight, equals(listSpace)); diff --git a/flutter/examples/api/test/widgets/sliver_fill/sliver_fill_remaining.2_test.dart b/flutter/examples/api/test/widgets/sliver_fill/sliver_fill_remaining.2_test.dart index 5d3a5535de5f05b9a3fc9c123f4a850edfa240ca..59a22e5f70df680ebb2feb6dcb9874412aca181c 100644 --- a/flutter/examples/api/test/widgets/sliver_fill/sliver_fill_remaining.2_test.dart +++ b/flutter/examples/api/test/widgets/sliver_fill/sliver_fill_remaining.2_test.dart @@ -13,14 +13,20 @@ void main() { expect(find.byType(CustomScrollView), findsOneWidget); expect(find.byType(SliverFixedExtentList), findsOneWidget); - expect(find.byWidgetPredicate((Widget widget) => (widget is Container) - && widget.color == Colors.indigo[200], - skipOffstage: false, - ), findsNWidgets(3)); - expect(find.byWidgetPredicate((Widget widget) => (widget is Container) - && widget.color == Colors.orange[200] - ), findsNWidgets(2)); - expect(find.byType(Container, skipOffstage: false,), findsNWidgets(5)); + expect( + find.byWidgetPredicate( + (Widget widget) => (widget is Container) && widget.color == Colors.indigo[200], + skipOffstage: false, + ), + findsNWidgets(3), + ); + expect( + find.byWidgetPredicate( + (Widget widget) => (widget is Container) && widget.color == Colors.orange[200], + ), + findsNWidgets(2), + ); + expect(find.byType(Container, skipOffstage: false), findsNWidgets(5)); expect(find.byType(SliverFillRemaining), findsNothing); await tester.scrollUntilVisible(find.byType(SliverFillRemaining), 20); diff --git a/flutter/examples/api/test/widgets/sliver_fill/sliver_fill_remaining.3_test.dart b/flutter/examples/api/test/widgets/sliver_fill/sliver_fill_remaining.3_test.dart index fbd88e9f1f330a66c1ae1ca5172020cf97c18ee6..8bd6785d282890186827e3765e99918806d105f3 100644 --- a/flutter/examples/api/test/widgets/sliver_fill/sliver_fill_remaining.3_test.dart +++ b/flutter/examples/api/test/widgets/sliver_fill/sliver_fill_remaining.3_test.dart @@ -14,15 +14,27 @@ void main() { expect(find.text('Bottom Pinned Button!'), findsOneWidget); expect(find.byType(CustomScrollView), findsOneWidget); final CustomScrollView scroll = tester.widget(find.byType(CustomScrollView)); - expect(scroll.physics, isA(). - having((BouncingScrollPhysics bsp) => bsp.parent, 'parent', isA())); + expect( + scroll.physics, + isA().having( + (BouncingScrollPhysics bsp) => bsp.parent, + 'parent', + isA(), + ), + ); - expect(find.byWidgetPredicate((Widget widget) => (widget is Container) - && widget.color == Colors.tealAccent[700], - ), findsOneWidget); - expect(find.byWidgetPredicate((Widget widget) => (widget is Container) - && widget.color == Colors.teal[100] - ), findsOneWidget); + expect( + find.byWidgetPredicate( + (Widget widget) => (widget is Container) && widget.color == Colors.tealAccent[700], + ), + findsOneWidget, + ); + expect( + find.byWidgetPredicate( + (Widget widget) => (widget is Container) && widget.color == Colors.teal[100], + ), + findsOneWidget, + ); expect(find.byType(Container), findsNWidgets(2)); expect(find.byType(SliverFillRemaining), findsOneWidget); diff --git a/flutter/examples/api/test/widgets/slotted_render_object_widget/slotted_multi_child_render_object_widget_mixin.0_test.dart b/flutter/examples/api/test/widgets/slotted_render_object_widget/slotted_multi_child_render_object_widget_mixin.0_test.dart index 150d9e57fd1a3dde0860809337f922a4472f4fd5..c59dd1abbd779ef94395a35b8deaf98364ae04ea 100644 --- a/flutter/examples/api/test/widgets/slotted_render_object_widget/slotted_multi_child_render_object_widget_mixin.0_test.dart +++ b/flutter/examples/api/test/widgets/slotted_render_object_widget/slotted_multi_child_render_object_widget_mixin.0_test.dart @@ -3,14 +3,13 @@ // found in the LICENSE file. import 'package:flutter/widgets.dart'; -import 'package:flutter_api_samples/widgets/slotted_render_object_widget/slotted_multi_child_render_object_widget_mixin.0.dart' as example; +import 'package:flutter_api_samples/widgets/slotted_render_object_widget/slotted_multi_child_render_object_widget_mixin.0.dart' + as example; import 'package:flutter_test/flutter_test.dart'; void main() { testWidgets('shows two widgets arranged diagonally', (WidgetTester tester) async { - await tester.pumpWidget( - const example.ExampleWidget(), - ); + await tester.pumpWidget(const example.ExampleWidget()); expect(find.text('topLeft'), findsOneWidget); expect(find.text('bottomRight'), findsOneWidget); @@ -20,19 +19,10 @@ void main() { tester.getTopLeft(findContainerWithText('bottomRight')), ); - expect( - tester.getSize(findContainerWithText('topLeft')), - const Size(200, 100), - ); - expect( - tester.getSize(findContainerWithText('bottomRight')), - const Size(30, 60), - ); + expect(tester.getSize(findContainerWithText('topLeft')), const Size(200, 100)); + expect(tester.getSize(findContainerWithText('bottomRight')), const Size(30, 60)); - expect( - tester.getSize(find.byType(example.Diagonal)), - const Size(200 + 30, 100 + 60), - ); + expect(tester.getSize(find.byType(example.Diagonal)), const Size(200 + 30, 100 + 60)); }); } diff --git a/flutter/examples/api/web/index.html b/flutter/examples/api/web/index.html index f84a455ae9a60c12736ffb7fae6574d99eb6d49f..cc3d33c2fa811fa5f8e8d877e9f88ca435440304 100644 --- a/flutter/examples/api/web/index.html +++ b/flutter/examples/api/web/index.html @@ -20,11 +20,10 @@ found in the LICENSE file. --> - - + @@ -33,72 +32,6 @@ found in the LICENSE file. --> - - + diff --git a/flutter/examples/api/windows/runner/runner.exe.manifest b/flutter/examples/api/windows/runner/runner.exe.manifest index a42ea7687cb67e55af955dc8874a072e087ce3ed..153653e8d67f81b901d28257a65908f3278e058d 100644 --- a/flutter/examples/api/windows/runner/runner.exe.manifest +++ b/flutter/examples/api/windows/runner/runner.exe.manifest @@ -9,12 +9,6 @@ - - - - - - diff --git a/flutter/examples/api/windows/runner/utils.cpp b/flutter/examples/api/windows/runner/utils.cpp index b849ce2c32702dc4b1f35161e794e7dcc5a81ef8..6abcd650420706858d2bff4ec04d4fbd993b4652 100644 --- a/flutter/examples/api/windows/runner/utils.cpp +++ b/flutter/examples/api/windows/runner/utils.cpp @@ -49,12 +49,12 @@ std::string Utf8FromUtf16(const wchar_t* utf16_string) { if (utf16_string == nullptr) { return std::string(); } - int target_length = ::WideCharToMultiByte( + unsigned int target_length = ::WideCharToMultiByte( CP_UTF8, WC_ERR_INVALID_CHARS, utf16_string, -1, nullptr, 0, nullptr, nullptr) -1; // remove the trailing null character std::string utf8_string; - if (target_length <= 0 || target_length > utf8_string.max_size()) { + if (target_length == 0 || target_length > utf8_string.max_size()) { return utf8_string; } utf8_string.resize(target_length); diff --git a/flutter/examples/flutter_view/README.md b/flutter/examples/flutter_view/README.md index 70146153945bb8f899022985b586a0c4060b4710..c47ba2baedc3cb7107361d235c248cedc44e185e 100644 --- a/flutter/examples/flutter_view/README.md +++ b/flutter/examples/flutter_view/README.md @@ -6,7 +6,7 @@ Android, the Android and Flutter components are built with Android Studio or Gradle. You can read more about -[accessing platform and third-party services in Flutter](https://flutter.dev/platform-services/). +[accessing platform and third-party services in Flutter](https://flutter.dev/to/platform-channels/). ## iOS diff --git a/flutter/examples/flutter_view/android/app/build.gradle b/flutter/examples/flutter_view/android/app/build.gradle index ecbe93db92f92b9e1c758126739e16d594f9bfa7..1feb5a505b8ec982aae709dc396d27dd1bf0c17f 100644 --- a/flutter/examples/flutter_view/android/app/build.gradle +++ b/flutter/examples/flutter_view/android/app/build.gradle @@ -2,36 +2,24 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -def localProperties = new Properties() -def localPropertiesFile = rootProject.file('local.properties') -if (localPropertiesFile.exists()) { - localPropertiesFile.withReader('UTF-8') { reader -> - localProperties.load(reader) - } -} - -def flutterRoot = localProperties.getProperty('flutter.sdk') -if (flutterRoot == null) { - throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") -} - -def flutterVersionCode = localProperties.getProperty('flutter.versionCode') -if (flutterVersionCode == null) { - flutterVersionCode = '1' +plugins { + id "com.android.application" + id "dev.flutter.flutter-gradle-plugin" } -def flutterVersionName = localProperties.getProperty('flutter.versionName') -if (flutterVersionName == null) { - flutterVersionName = '1.0' -} - -apply plugin: 'com.android.application' -apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" - android { namespace "com.example.view" compileSdk flutter.compileSdkVersion + // Flutter's CI installs the NDK at a non-standard path. + // This non-standard structure is initially created by + // https://github.com/flutter/engine/blob/3.27.0/tools/android_sdk/create_cipd_packages.sh. + String systemNdkPath = System.getenv("ANDROID_NDK_PATH") + if (systemNdkPath != null) { + ndkVersion = flutter.ndkVersion + ndkPath = systemNdkPath + } + compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 @@ -41,8 +29,8 @@ android { applicationId "io.flutter.examples.flutter_view" minSdkVersion flutter.minSdkVersion targetSdkVersion flutter.targetSdkVersion - versionCode flutterVersionCode.toInteger() - versionName flutterVersionName + versionCode flutter.versionCode + versionName flutter.versionName } buildTypes { diff --git a/flutter/examples/flutter_view/android/app/src/main/AndroidManifest.xml b/flutter/examples/flutter_view/android/app/src/main/AndroidManifest.xml index f45c7021b5d21cb3389695aa258de4010d57d971..45e46b84a920b15c55c973efd755137eaea53f7f 100644 --- a/flutter/examples/flutter_view/android/app/src/main/AndroidManifest.xml +++ b/flutter/examples/flutter_view/android/app/src/main/AndroidManifest.xml @@ -27,7 +27,7 @@ found in the LICENSE file. --> android:value="2" /> diff --git a/flutter/examples/flutter_view/android/build.gradle b/flutter/examples/flutter_view/android/build.gradle index 2de20623576a82c3115eca8b1bdb56fd5b5051cb..bedac9d2d4db435dfecb639ddd968f06a9375609 100644 --- a/flutter/examples/flutter_view/android/build.gradle +++ b/flutter/examples/flutter_view/android/build.gradle @@ -6,23 +6,6 @@ // To update all the build.gradle files in the Flutter repo, // See dev/tools/bin/generate_gradle_lockfiles.dart. -buildscript { - ext.kotlin_version = '1.5.31' - repositories { - google() - mavenCentral() - } - - dependencies { - classpath 'com.android.tools.build:gradle:7.2.0' - classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" - } - - configurations.classpath { - resolutionStrategy.activateDependencyLocking() - } -} - allprojects { repositories { google() diff --git a/flutter/examples/flutter_view/android/buildscript-gradle.lockfile b/flutter/examples/flutter_view/android/buildscript-gradle.lockfile index efe13277310ee8fef3c9d7f6f8a2cbbe601d110f..545abc59e924a9127dd0d66b4c85bb9e855adb90 100644 --- a/flutter/examples/flutter_view/android/buildscript-gradle.lockfile +++ b/flutter/examples/flutter_view/android/buildscript-gradle.lockfile @@ -1,71 +1,68 @@ # 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:7.2.0=classpath -androidx.databinding:databinding-compiler-common:7.2.0=classpath -com.android.databinding:baseLibrary:7.2.0=classpath -com.android.tools.analytics-library:crash:30.2.0=classpath -com.android.tools.analytics-library:protos:30.2.0=classpath -com.android.tools.analytics-library:shared:30.2.0=classpath -com.android.tools.analytics-library:tracker:30.2.0=classpath -com.android.tools.build.jetifier:jetifier-core:1.0.0-beta09=classpath -com.android.tools.build.jetifier:jetifier-processor:1.0.0-beta09=classpath -com.android.tools.build:aapt2-proto:7.2.0-7984345=classpath -com.android.tools.build:aaptcompiler:7.2.0=classpath -com.android.tools.build:apksig:7.2.0=classpath -com.android.tools.build:apkzlib:7.2.0=classpath -com.android.tools.build:builder-model:7.2.0=classpath -com.android.tools.build:builder-test-api:7.2.0=classpath -com.android.tools.build:builder:7.2.0=classpath -com.android.tools.build:bundletool:1.8.2=classpath -com.android.tools.build:gradle-api:7.2.0=classpath -com.android.tools.build:gradle:7.2.0=classpath -com.android.tools.build:manifest-merger:30.2.0=classpath +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:30.2.0=classpath -com.android.tools.layoutlib:layoutlib-api:30.2.0=classpath -com.android.tools.lint:lint-model:30.2.0=classpath -com.android.tools.lint:lint-typedef-remover:30.2.0=classpath -com.android.tools.utp:android-device-provider-ddmlib-proto:30.2.0=classpath -com.android.tools.utp:android-device-provider-gradle-proto:30.2.0=classpath -com.android.tools.utp:android-test-plugin-host-additional-test-output-proto:30.2.0=classpath -com.android.tools.utp:android-test-plugin-host-coverage-proto:30.2.0=classpath -com.android.tools.utp:android-test-plugin-host-retention-proto:30.2.0=classpath -com.android.tools.utp:android-test-plugin-result-listener-gradle-proto:30.2.0=classpath -com.android.tools:annotations:30.2.0=classpath -com.android.tools:common:30.2.0=classpath -com.android.tools:dvlib:30.2.0=classpath -com.android.tools:repository:30.2.0=classpath -com.android.tools:sdk-common:30.2.0=classpath -com.android.tools:sdklib:30.2.0=classpath -com.android:signflinger:7.2.0=classpath -com.android:zipflinger:7.2.0=classpath -com.fasterxml.jackson.core:jackson-annotations:2.11.1=classpath -com.fasterxml.jackson.core:jackson-core:2.11.1=classpath -com.fasterxml.jackson.core:jackson-databind:2.11.1=classpath -com.fasterxml.jackson.dataformat:jackson-dataformat-xml:2.11.1=classpath -com.fasterxml.jackson.module:jackson-module-jaxb-annotations:2.11.1=classpath -com.fasterxml.jackson.module:jackson-module-kotlin:2.11.1=classpath -com.fasterxml.woodstox:woodstox-core:6.2.1=classpath -com.github.gundy:semver4j:0.16.4=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:1.12.0=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.8.6=classpath -com.google.crypto.tink:tink:1.3.0-rc2=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.3.4=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:30.1-jre=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:1.3=classpath +com.google.j2objc:j2objc-annotations:2.8=classpath com.google.jimfs:jimfs:1.1=classpath -com.google.protobuf:protobuf-java-util:3.10.0=classpath -com.google.protobuf:protobuf-java:3.10.0=classpath -com.google.testing.platform:core-proto:0.0.8-alpha07=classpath -com.googlecode.json-simple:json-simple: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 @@ -73,91 +70,89 @@ 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.4=classpath +commons-io:commons-io:2.13.0=classpath commons-logging:commons-logging:1.2=classpath -de.undercouch:gradle-download-task:4.1.1=classpath -io.grpc:grpc-api:1.21.1=classpath -io.grpc:grpc-context:1.21.1=classpath -io.grpc:grpc-core:1.21.1=classpath -io.grpc:grpc-netty:1.21.1=classpath -io.grpc:grpc-protobuf-lite:1.21.1=classpath -io.grpc:grpc-protobuf:1.21.1=classpath -io.grpc:grpc-stub:1.21.1=classpath -io.netty:netty-buffer:4.1.34.Final=classpath -io.netty:netty-codec-http2:4.1.34.Final=classpath -io.netty:netty-codec-http:4.1.34.Final=classpath -io.netty:netty-codec-socks:4.1.34.Final=classpath -io.netty:netty-codec:4.1.34.Final=classpath -io.netty:netty-common:4.1.34.Final=classpath -io.netty:netty-handler-proxy:4.1.34.Final=classpath -io.netty:netty-handler:4.1.34.Final=classpath -io.netty:netty-resolver:4.1.34.Final=classpath -io.netty:netty-transport:4.1.34.Final=classpath -io.opencensus:opencensus-api:0.21.0=classpath -io.opencensus:opencensus-contrib-grpc-metrics:0.21.0=classpath -it.unimi.dsi:fastutil:8.4.0=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.20=classpath -org.apache.httpcomponents:httpclient:4.5.9=classpath -org.apache.httpcomponents:httpcore:4.4.11=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.7.0=classpath -org.bouncycastle:bcpkix-jdk15on:1.56=classpath -org.bouncycastle:bcprov-jdk15on:1.56=classpath -org.checkerframework:checker-qual:3.5.0=classpath -org.codehaus.mojo:animal-sniffer-annotations:1.17=classpath -org.codehaus.woodstox:stax2-api:4.2.1=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.dokka:dokka-core:1.4.32=classpath -org.jetbrains.intellij.deps:trove4j:1.0.20181211=classpath -org.jetbrains.kotlin:kotlin-android-extensions:1.5.31=classpath -org.jetbrains.kotlin:kotlin-annotation-processing-gradle:1.5.31=classpath -org.jetbrains.kotlin:kotlin-build-common:1.5.31=classpath -org.jetbrains.kotlin:kotlin-compiler-embeddable:1.5.31=classpath -org.jetbrains.kotlin:kotlin-compiler-runner:1.5.31=classpath -org.jetbrains.kotlin:kotlin-daemon-client:1.5.31=classpath -org.jetbrains.kotlin:kotlin-daemon-embeddable:1.5.31=classpath -org.jetbrains.kotlin:kotlin-gradle-plugin-api:1.5.31=classpath -org.jetbrains.kotlin:kotlin-gradle-plugin-model:1.5.31=classpath -org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.31=classpath -org.jetbrains.kotlin:kotlin-klib-commonizer-api:1.5.31=classpath -org.jetbrains.kotlin:kotlin-native-utils:1.5.31=classpath -org.jetbrains.kotlin:kotlin-project-model:1.5.31=classpath -org.jetbrains.kotlin:kotlin-reflect:1.5.31=classpath -org.jetbrains.kotlin:kotlin-scripting-common:1.5.31=classpath -org.jetbrains.kotlin:kotlin-scripting-compiler-embeddable:1.5.31=classpath -org.jetbrains.kotlin:kotlin-scripting-compiler-impl-embeddable:1.5.31=classpath -org.jetbrains.kotlin:kotlin-scripting-jvm:1.5.31=classpath -org.jetbrains.kotlin:kotlin-stdlib-common:1.5.31=classpath -org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.5.31=classpath -org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.5.31=classpath -org.jetbrains.kotlin:kotlin-stdlib:1.5.31=classpath -org.jetbrains.kotlin:kotlin-tooling-metadata:1.5.31=classpath -org.jetbrains.kotlin:kotlin-util-io:1.5.31=classpath -org.jetbrains.kotlin:kotlin-util-klib:1.5.31=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-common:1.9.20=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.kotlinx:kotlinx-coroutines-core:1.5.0=classpath -org.jetbrains:annotations:13.0=classpath -org.jetbrains:markdown-jvm:0.2.1=classpath -org.jetbrains:markdown:0.2.1=classpath -org.json:json:20180813=classpath -org.jsoup:jsoup:1.13.1=classpath +org.jetbrains.kotlinx:kotlinx-serialization-core-jvm:1.4.0=classpath +org.jetbrains.kotlinx:kotlinx-serialization-core:1.4.0=classpath +org.jetbrains.kotlinx:kotlinx-serialization-json-jvm:1.4.0=classpath +org.jetbrains.kotlinx:kotlinx-serialization-json:1.4.0=classpath +org.jetbrains:annotations:23.0.0=classpath org.jvnet.staxex:stax-ex:1.8.1=classpath -org.ow2.asm:asm-analysis:9.1=classpath -org.ow2.asm:asm-commons:9.1=classpath -org.ow2.asm:asm-tree:9.1=classpath -org.ow2.asm:asm-util:9.1=classpath -org.ow2.asm:asm:9.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 -xerces:xercesImpl:2.12.0=classpath -xml-apis:xml-apis:1.4.01=classpath empty= diff --git a/flutter/examples/flutter_view/android/gradle.properties b/flutter/examples/flutter_view/android/gradle.properties index 598d13fee446372f156ecc38527b54c7cdcc8e3b..f018a61817f55e78bb92ce8df2dda423ec570a4a 100644 --- a/flutter/examples/flutter_view/android/gradle.properties +++ b/flutter/examples/flutter_view/android/gradle.properties @@ -1,3 +1,3 @@ -org.gradle.jvmargs=-Xmx4G +org.gradle.jvmargs=-Xmx8G -XX:MaxMetaspaceSize=4G -XX:ReservedCodeCacheSize=512m -XX:+HeapDumpOnOutOfMemoryError android.useAndroidX=true android.enableJetifier=true diff --git a/flutter/examples/flutter_view/android/gradle/wrapper/gradle-wrapper.properties b/flutter/examples/flutter_view/android/gradle/wrapper/gradle-wrapper.properties index e1ca574ef017c1bc00556b96ea372e2c07948771..afa1e8eb0a835ba6be2286d1b399c4e47b7a79a0 100644 --- a/flutter/examples/flutter_view/android/gradle/wrapper/gradle-wrapper.properties +++ b/flutter/examples/flutter_view/android/gradle/wrapper/gradle-wrapper.properties @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.3-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-all.zip diff --git a/flutter/examples/flutter_view/android/project-app.lockfile b/flutter/examples/flutter_view/android/project-app.lockfile index 607f89c82b3473c34b4fdedca4f5aeb69bd8d933..fc27bb8b189cb87002e0e9aafe9c4730bd6ee0f6 100644 --- a/flutter/examples/flutter_view/android/project-app.lockfile +++ b/flutter/examples/flutter_view/android/project-app.lockfile @@ -1,47 +1,57 @@ # 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,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.annotation:annotation-experimental:1.1.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.annotation:annotation:1.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.activity:activity:1.8.1=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.annotation:annotation-experimental:1.4.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.annotation:annotation-jvm:1.8.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.annotation:annotation:1.8.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath androidx.appcompat:appcompat-resources:1.1.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath androidx.appcompat:appcompat:1.1.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.arch.core:core-common:2.1.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.arch.core:core-runtime:2.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.arch.core:core-common:2.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.arch.core:core-runtime:2.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath androidx.asynclayoutinflater:asynclayoutinflater:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath androidx.cardview:cardview:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath androidx.collection:collection:1.1.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.concurrent:concurrent-futures:1.1.0=debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath androidx.coordinatorlayout:coordinatorlayout:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.core:core:1.6.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.core:core-ktx:1.13.1=debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.core:core-ktx:1.2.0=debugAndroidTestCompileClasspath +androidx.core:core:1.13.1=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath androidx.cursoradapter:cursoradapter:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath androidx.customview:customview:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath androidx.documentfile:documentfile:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath androidx.drawerlayout:drawerlayout:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.fragment:fragment:1.1.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.fragment:fragment:1.7.1=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath androidx.interpolator:interpolator:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath androidx.legacy:legacy-support-core-ui:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath androidx.legacy:legacy-support-core-utils:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.lifecycle:lifecycle-common-java8:2.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.lifecycle:lifecycle-common:2.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.lifecycle:lifecycle-livedata-core:2.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.lifecycle:lifecycle-livedata:2.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.lifecycle:lifecycle-runtime:2.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.lifecycle:lifecycle-viewmodel:2.1.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-common-java8:2.7.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-common:2.7.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-livedata-core-ktx:2.7.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-livedata-core:2.7.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-livedata:2.7.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-process:2.7.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-runtime:2.7.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-viewmodel-savedstate:2.7.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-viewmodel:2.7.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath androidx.loader:loader:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath androidx.localbroadcastmanager:localbroadcastmanager:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath androidx.print:print:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.profileinstaller:profileinstaller:1.3.1=debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath androidx.recyclerview:recyclerview:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.savedstate:savedstate:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.savedstate:savedstate:1.2.1=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath androidx.slidingpanelayout:slidingpanelayout:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.startup:startup-runtime:1.1.1=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath androidx.swiperefreshlayout:swiperefreshlayout:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.tracing:tracing:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.tracing:tracing:1.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath androidx.transition:transition:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath androidx.vectordrawable:vectordrawable-animated:1.1.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath androidx.vectordrawable:vectordrawable:1.1.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath androidx.versionedparcelable:versionedparcelable:1.1.1=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath androidx.viewpager:viewpager:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.window:window-java:1.0.0-beta04=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.window:window:1.0.0-beta04=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.window.extensions.core:core:1.0.0=debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath +androidx.window:window-java:1.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.window:window:1.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath com.android.tools.analytics-library:protos:27.1.3=lintClassPath com.android.tools.analytics-library:shared:27.1.3=lintClassPath com.android.tools.analytics-library:tracker:27.1.3=lintClassPath @@ -55,6 +65,8 @@ com.android.tools.build:builder:4.1.3=lintClassPath com.android.tools.build:gradle-api:4.1.3=lintClassPath com.android.tools.build:manifest-merger:27.1.3=lintClassPath com.android.tools.ddms:ddmlib:27.1.3=lintClassPath +com.android.tools.ddms:ddmlib:31.7.0=_internal-unified-test-platform-android-device-provider-ddmlib +com.android.tools.emulator:proto:31.7.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention com.android.tools.external.com-intellij:intellij-core:27.1.3=lintClassPath com.android.tools.external.com-intellij:kotlin-compiler:27.1.3=lintClassPath com.android.tools.external.org-jetbrains:uast:27.1.3=lintClassPath @@ -65,37 +77,101 @@ com.android.tools.lint:lint-gradle-api:27.1.3=lintClassPath com.android.tools.lint:lint-gradle:27.1.3=lintClassPath com.android.tools.lint:lint-model:27.1.3=lintClassPath com.android.tools.lint:lint:27.1.3=lintClassPath +com.android.tools.utp:android-device-provider-ddmlib-proto:31.7.0=_internal-unified-test-platform-android-device-provider-ddmlib +com.android.tools.utp:android-device-provider-ddmlib:31.7.0=_internal-unified-test-platform-android-device-provider-ddmlib +com.android.tools.utp:android-device-provider-gradle-proto:31.7.0=_internal-unified-test-platform-android-device-provider-gradle +com.android.tools.utp:android-device-provider-gradle:31.7.0=_internal-unified-test-platform-android-device-provider-gradle +com.android.tools.utp:android-device-provider-profile-proto:31.7.0=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle +com.android.tools.utp:android-device-provider-profile:31.7.0=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle +com.android.tools.utp:android-test-plugin-host-additional-test-output-proto:31.7.0=_internal-unified-test-platform-android-test-plugin-host-additional-test-output +com.android.tools.utp:android-test-plugin-host-additional-test-output:31.7.0=_internal-unified-test-platform-android-test-plugin-host-additional-test-output +com.android.tools.utp:android-test-plugin-host-apk-installer-proto:31.7.0=_internal-unified-test-platform-android-test-plugin-host-apk-installer +com.android.tools.utp:android-test-plugin-host-apk-installer:31.7.0=_internal-unified-test-platform-android-test-plugin-host-apk-installer +com.android.tools.utp:android-test-plugin-host-coverage-proto:31.7.0=_internal-unified-test-platform-android-test-plugin-host-coverage +com.android.tools.utp:android-test-plugin-host-coverage:31.7.0=_internal-unified-test-platform-android-test-plugin-host-coverage +com.android.tools.utp:android-test-plugin-host-device-info-proto:31.7.0=_internal-unified-test-platform-android-test-plugin-host-device-info +com.android.tools.utp:android-test-plugin-host-device-info:31.7.0=_internal-unified-test-platform-android-test-plugin-host-device-info +com.android.tools.utp:android-test-plugin-host-emulator-control-proto:31.7.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control +com.android.tools.utp:android-test-plugin-host-emulator-control:31.7.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control +com.android.tools.utp:android-test-plugin-host-logcat-proto:31.7.0=_internal-unified-test-platform-android-test-plugin-host-logcat +com.android.tools.utp:android-test-plugin-host-logcat:31.7.0=_internal-unified-test-platform-android-test-plugin-host-logcat +com.android.tools.utp:android-test-plugin-host-retention-proto:31.7.0=_internal-unified-test-platform-android-test-plugin-host-retention +com.android.tools.utp:android-test-plugin-host-retention:31.7.0=_internal-unified-test-platform-android-test-plugin-host-retention +com.android.tools.utp:android-test-plugin-result-listener-gradle-proto:31.7.0=_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.android.tools.utp:android-test-plugin-result-listener-gradle:31.7.0=_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.android.tools.utp:utp-common:31.7.0=_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention com.android.tools:annotations:27.1.3=lintClassPath +com.android.tools:annotations:31.7.0=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle com.android.tools:common:27.1.3=lintClassPath +com.android.tools:common:31.7.0=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle com.android.tools:dvlib:27.1.3=lintClassPath com.android.tools:repository:27.1.3=lintClassPath com.android.tools:sdk-common:27.1.3=lintClassPath com.android.tools:sdklib:27.1.3=lintClassPath com.android:signflinger:4.1.3=lintClassPath com.android:zipflinger:4.1.3=lintClassPath +com.getkeepsafe.relinker:relinker:1.4.5=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath com.google.android.material:material:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -com.google.code.findbugs:jsr305:3.0.2=lintClassPath +com.google.android:annotations:4.1.1.4=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.google.api.grpc:proto-google-common-protos:2.17.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.google.code.findbugs:jsr305:3.0.2=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle,lintClassPath +com.google.code.gson:gson:2.10.1=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle com.google.code.gson:gson:2.8.5=lintClassPath +com.google.crypto.tink:tink:1.7.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control +com.google.errorprone:error_prone_annotations:2.18.0=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle com.google.errorprone:error_prone_annotations:2.3.2=lintClassPath -com.google.guava:failureaccess:1.0.1=lintClassPath +com.google.guava:failureaccess:1.0.1=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle,lintClassPath com.google.guava:guava:28.1-jre=lintClassPath -com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava=lintClassPath +com.google.guava:guava:32.0.1-jre=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.google.guava:listenablefuture:1.0=debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath +com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle,lintClassPath com.google.j2objc:j2objc-annotations:1.3=lintClassPath +com.google.j2objc:j2objc-annotations:2.8=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle com.google.jimfs:jimfs:1.1=lintClassPath com.google.protobuf:protobuf-java:3.10.0=lintClassPath +com.google.protobuf:protobuf-java:3.22.3=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.google.testing.platform:android-device-provider-local:0.0.9-alpha02=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.google.testing.platform:android-driver-instrumentation:0.0.9-alpha02=_internal-unified-test-platform-android-driver-instrumentation,_internal-unified-test-platform-android-test-plugin-host-emulator-control +com.google.testing.platform:android-test-plugin:0.0.9-alpha02=_internal-unified-test-platform-android-test-plugin +com.google.testing.platform:core-proto:0.0.9-alpha02=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.google.testing.platform:core:0.0.9-alpha02=_internal-unified-test-platform-core +com.google.testing.platform:launcher:0.0.9-alpha02=_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-launcher com.googlecode.json-simple:json-simple:1.1=lintClassPath com.squareup:javawriter:2.5.0=lintClassPath com.sun.activation:javax.activation:1.2.0=lintClassPath com.sun.istack:istack-commons-runtime:3.0.7=lintClassPath com.sun.xml.fastinfoset:FastInfoset:1.2.15=lintClassPath commons-codec:commons-codec:1.10=lintClassPath +commons-io:commons-io:2.13.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention commons-logging:commons-logging:1.2=lintClassPath +io.grpc:grpc-api:1.57.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.grpc:grpc-context:1.57.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.grpc:grpc-core:1.57.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.grpc:grpc-netty:1.57.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.grpc:grpc-protobuf-lite:1.57.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.grpc:grpc-protobuf:1.57.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.grpc:grpc-stub:1.57.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-buffer:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-codec-http2:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-codec-http:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-codec-socks:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-codec:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-common:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-handler-proxy:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-handler:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-resolver:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-transport-native-unix-common:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-transport:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.perfmark:perfmark-api:0.26.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle it.unimi.dsi:fastutil:7.2.0=lintClassPath javax.activation:javax.activation-api:1.2.0=lintClassPath +javax.annotation:javax.annotation-api:1.3.2=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle javax.inject:javax.inject:1=lintClassPath javax.xml.bind:jaxb-api:2.3.1=lintClassPath +net.java.dev.jna:jna-platform:5.6.0=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +net.java.dev.jna:jna:5.6.0=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle net.sf.jopt-simple:jopt-simple:4.9=lintClassPath -net.sf.kxml:kxml2:2.3.0=lintClassPath +net.sf.kxml:kxml2:2.3.0=_internal-unified-test-platform-android-device-provider-ddmlib,lintClassPath org.apache.commons:commons-compress:1.12=lintClassPath org.apache.httpcomponents:httpclient:4.5.6=lintClassPath org.apache.httpcomponents:httpcore:4.4.10=lintClassPath @@ -103,8 +179,10 @@ org.apache.httpcomponents:httpmime:4.5.6=lintClassPath org.bouncycastle:bcpkix-jdk15on:1.56=lintClassPath org.bouncycastle:bcprov-jdk15on:1.56=lintClassPath org.checkerframework:checker-qual:2.8.1=lintClassPath +org.checkerframework:checker-qual:3.33.0=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle org.codehaus.groovy:groovy-all:2.4.15=lintClassPath org.codehaus.mojo:animal-sniffer-annotations:1.18=lintClassPath +org.codehaus.mojo:animal-sniffer-annotations:1.23=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle org.glassfish.jaxb:jaxb-runtime:2.3.1=lintClassPath org.glassfish.jaxb:txw2:2.3.1=lintClassPath org.jacoco:org.jacoco.agent:0.8.7=androidJacocoAnt @@ -113,18 +191,27 @@ org.jacoco:org.jacoco.core:0.8.7=androidJacocoAnt org.jacoco:org.jacoco.report:0.8.7=androidJacocoAnt org.jetbrains.kotlin:kotlin-reflect:1.3.72=lintClassPath org.jetbrains.kotlin:kotlin-stdlib-common:1.3.72=lintClassPath -org.jetbrains.kotlin:kotlin-stdlib-common:1.5.31=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-common:1.8.22=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-common:1.9.20=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.3.72=lintClassPath -org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.5.30=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.8.20=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.9.20=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.72=lintClassPath -org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.5.30=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.8.20=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.9.20=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle org.jetbrains.kotlin:kotlin-stdlib:1.3.72=lintClassPath -org.jetbrains.kotlin:kotlin-stdlib:1.5.31=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.2=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.5.2=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib:1.8.22=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib:1.9.20=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.1=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-bom:1.6.4=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +org.jetbrains.kotlinx:kotlinx-coroutines-bom:1.7.1=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.6.4=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.7.1=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.1=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath org.jetbrains.trove4j:trove4j:20160824=lintClassPath -org.jetbrains:annotations:13.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,lintClassPath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains:annotations:13.0=_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle,lintClassPath +org.jetbrains:annotations:23.0.0=_internal-unified-test-platform-android-device-provider-ddmlib,debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath org.jvnet.staxex:stax-ex:1.8=lintClassPath org.ow2.asm:asm-analysis:7.0=lintClassPath org.ow2.asm:asm-analysis:9.1=androidJacocoAnt diff --git a/flutter/examples/flutter_view/android/settings.gradle b/flutter/examples/flutter_view/android/settings.gradle index 03ae72d135c01f849e6812b36575b62b14fee791..4a155b35ec304af4a4baaf5f5fcbe6d0ac296764 100644 --- a/flutter/examples/flutter_view/android/settings.gradle +++ b/flutter/examples/flutter_view/android/settings.gradle @@ -6,16 +6,36 @@ // To update all the settings.gradle files in the Flutter repo, // See dev/tools/bin/generate_gradle_lockfiles.dart. -include ':app' +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() -enableFeaturePreview('ONE_LOCKFILE_PER_PROJECT') + includeBuild("${settings.ext.flutterSdkPath}/packages/flutter_tools/gradle") -def localPropertiesFile = new File(rootProject.projectDir, "local.properties") -def properties = new Properties() + repositories { + google() + mavenCentral() + gradlePluginPortal() + } +} -assert localPropertiesFile.exists() -localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) } +buildscript { + dependencyLocking { + lockFile = file("${rootProject.projectDir}/buildscript-gradle.lockfile") + lockAllConfigurations() + } +} -def flutterSdkPath = properties.getProperty("flutter.sdk") -assert flutterSdkPath != null, "flutter.sdk not set in local.properties" -apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle" +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" diff --git a/flutter/examples/flutter_view/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/flutter/examples/flutter_view/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme index e67b2808af02f9ec16f2d72b7961aefdf844afa5..4f746537f280af75dcdac17b8e41c5a5d051e1d1 100644 --- a/flutter/examples/flutter_view/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme +++ b/flutter/examples/flutter_view/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme @@ -50,6 +50,7 @@ ignoresPersistentStateOnLaunch = "NO" debugDocumentVersioning = "YES" debugServiceExtension = "internal" + enableGPUValidationMode = "1" allowLocationSimulation = "YES"> diff --git a/flutter/examples/flutter_view/lib/main.dart b/flutter/examples/flutter_view/lib/main.dart index 352908b6ab5015078c29282c28a67420862355c7..328763285e762f93ae3a79758a61fa65c150d461 100644 --- a/flutter/examples/flutter_view/lib/main.dart +++ b/flutter/examples/flutter_view/lib/main.dart @@ -17,9 +17,7 @@ class FlutterView extends StatelessWidget { Widget build(BuildContext context) { return MaterialApp( title: 'Flutter View', - theme: ThemeData( - primarySwatch: Colors.grey, - ), + theme: ThemeData(primarySwatch: Colors.grey), home: const MyHomePage(), ); } @@ -36,8 +34,10 @@ class _MyHomePageState extends State { static const String _channel = 'increment'; static const String _pong = 'pong'; static const String _emptyMessage = ''; - static const BasicMessageChannel platform = - BasicMessageChannel(_channel, StringCodec()); + static const BasicMessageChannel platform = BasicMessageChannel( + _channel, + StringCodec(), + ); int _counter = 0; @@ -67,7 +67,7 @@ class _MyHomePageState extends State { Expanded( child: Center( child: Text( - 'Platform button tapped $_counter time${ _counter == 1 ? '' : 's' }.', + 'Platform button tapped $_counter time${_counter == 1 ? '' : 's'}.', style: const TextStyle(fontSize: 17.0), ), ), diff --git a/flutter/examples/flutter_view/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/flutter/examples/flutter_view/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme index a7d8ce3a9a3c7de5d02135759c45aebc9d871c72..394ad7ac6d550a71549d1eb4187df3db14364e52 100644 --- a/flutter/examples/flutter_view/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme +++ b/flutter/examples/flutter_view/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme @@ -48,6 +48,7 @@ ignoresPersistentStateOnLaunch = "NO" debugDocumentVersioning = "YES" debugServiceExtension = "internal" + enableGPUValidationMode = "1" allowLocationSimulation = "YES"> diff --git a/flutter/examples/flutter_view/macos/Runner/AppDelegate.swift b/flutter/examples/flutter_view/macos/Runner/AppDelegate.swift index d080d41951d3506a861ceadcf4354bbbb609a562..573ad7b432ae4637bfcb6ba0131363199cba1076 100644 --- a/flutter/examples/flutter_view/macos/Runner/AppDelegate.swift +++ b/flutter/examples/flutter_view/macos/Runner/AppDelegate.swift @@ -5,9 +5,13 @@ import Cocoa import FlutterMacOS -@NSApplicationMain +@main class AppDelegate: FlutterAppDelegate { override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool { return true } + + override func applicationSupportsSecureRestorableState(_ app: NSApplication) -> Bool { + return true + } } diff --git a/flutter/examples/flutter_view/pubspec.yaml b/flutter/examples/flutter_view/pubspec.yaml index 7cccec050e458da0a2c1235e973498c3d27e0539..087c50083931d927bb46ef9e47b7b1218dd45766 100644 --- a/flutter/examples/flutter_view/pubspec.yaml +++ b/flutter/examples/flutter_view/pubspec.yaml @@ -2,16 +2,16 @@ name: flutter_view description: A new flutter project. environment: - sdk: '>=3.2.0-0 <4.0.0' + sdk: ^3.7.0-0 dependencies: flutter: sdk: flutter - characters: 1.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - collection: 1.18.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - material_color_utilities: 0.8.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - meta: 1.11.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + characters: 1.4.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + collection: 1.19.1 # 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.16.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: @@ -19,4 +19,4 @@ flutter: assets: - assets/flutter-mark-square-64.png -# PUBSPEC CHECKSUM: 4694 +# PUBSPEC CHECKSUM: e4c7 diff --git a/flutter/examples/flutter_view/windows/runner/runner.exe.manifest b/flutter/examples/flutter_view/windows/runner/runner.exe.manifest index a42ea7687cb67e55af955dc8874a072e087ce3ed..153653e8d67f81b901d28257a65908f3278e058d 100644 --- a/flutter/examples/flutter_view/windows/runner/runner.exe.manifest +++ b/flutter/examples/flutter_view/windows/runner/runner.exe.manifest @@ -9,12 +9,6 @@ - - - - - - diff --git a/flutter/examples/flutter_view/windows/runner/utils.cpp b/flutter/examples/flutter_view/windows/runner/utils.cpp index b849ce2c32702dc4b1f35161e794e7dcc5a81ef8..6abcd650420706858d2bff4ec04d4fbd993b4652 100644 --- a/flutter/examples/flutter_view/windows/runner/utils.cpp +++ b/flutter/examples/flutter_view/windows/runner/utils.cpp @@ -49,12 +49,12 @@ std::string Utf8FromUtf16(const wchar_t* utf16_string) { if (utf16_string == nullptr) { return std::string(); } - int target_length = ::WideCharToMultiByte( + unsigned int target_length = ::WideCharToMultiByte( CP_UTF8, WC_ERR_INVALID_CHARS, utf16_string, -1, nullptr, 0, nullptr, nullptr) -1; // remove the trailing null character std::string utf8_string; - if (target_length <= 0 || target_length > utf8_string.max_size()) { + if (target_length == 0 || target_length > utf8_string.max_size()) { return utf8_string; } utf8_string.resize(target_length); diff --git a/flutter/examples/hello_world/README.md b/flutter/examples/hello_world/README.md index 0a9132c3761313fbc2080a6b4567e678927a21d5..83789437cebb8e9c1cab56906f15f6f2b4c1311e 100644 --- a/flutter/examples/hello_world/README.md +++ b/flutter/examples/hello_world/README.md @@ -1,8 +1,8 @@ ## To run the Hello World demo: -``` +```sh flutter run ``` ## To run the Hello World demo showing Arabic: -``` +```sh flutter run lib/arabic.dart ``` diff --git a/flutter/examples/hello_world/android/app/build.gradle.kts b/flutter/examples/hello_world/android/app/build.gradle.kts index 175e23095a74a0c621321352595f471669dcc9a0..d0e5ec689c817dcfc33faaa8fcd5ccc878c18036 100644 --- a/flutter/examples/hello_world/android/app/build.gradle.kts +++ b/flutter/examples/hello_world/android/app/build.gradle.kts @@ -11,6 +11,15 @@ android { namespace = "io.flutter.examples.hello_world" compileSdk = flutter.compileSdkVersion + // Flutter's CI installs the NDK at a non-standard path. + // This non-standard structure is initially created by + // https://github.com/flutter/engine/blob/3.27.0/tools/android_sdk/create_cipd_packages.sh. + val systemNdkPath: String? = System.getenv("ANDROID_NDK_PATH") + if (systemNdkPath != null) { + ndkVersion = flutter.ndkVersion + ndkPath = systemNdkPath + } + compileOptions { sourceCompatibility = JavaVersion.VERSION_1_8 targetCompatibility = JavaVersion.VERSION_1_8 diff --git a/flutter/examples/hello_world/android/app/src/main/AndroidManifest.xml b/flutter/examples/hello_world/android/app/src/main/AndroidManifest.xml index 2b5da75800b971d5a987c0fa719b010b0e26a349..29b8d0c491556be2c2a928cd213f81af4da8a871 100644 --- a/flutter/examples/hello_world/android/app/src/main/AndroidManifest.xml +++ b/flutter/examples/hello_world/android/app/src/main/AndroidManifest.xml @@ -29,7 +29,7 @@ found in the LICENSE file. --> android:value="2" /> diff --git a/flutter/examples/hello_world/android/build.gradle.kts b/flutter/examples/hello_world/android/build.gradle.kts index e7755cd5f8d4372dda99ff012db8599d7d2cc487..cfbd086c70420439783553d803979c719b7491b0 100644 --- a/flutter/examples/hello_world/android/build.gradle.kts +++ b/flutter/examples/hello_world/android/build.gradle.kts @@ -2,9 +2,9 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -// Contents of this file should be generated automatically by -// dev/tools/bin/generate_gradle_lockfiles.dart, but currently are not. -// See #141540. +// This file is auto generated. +// To update all the settings.gradle files in the Flutter repo, +// See dev/tools/bin/generate_gradle_lockfiles.dart. allprojects { repositories { @@ -13,10 +13,18 @@ allprojects { } } -rootProject.buildDir = file("../build") +rootProject.layout.buildDirectory.value( + rootProject.layout.buildDirectory + .dir("../../build") + .get() +) subprojects { - project.buildDir = file("${rootProject.buildDir}/${project.name}") + project.layout.buildDirectory.value( + rootProject.layout.buildDirectory + .dir(project.name) + .get() + ) } subprojects { project.evaluationDependsOn(":app") @@ -30,5 +38,5 @@ subprojects { } tasks.register("clean") { - delete(rootProject.buildDir) + delete(rootProject.layout.buildDirectory) } diff --git a/flutter/examples/hello_world/android/buildscript-gradle.lockfile b/flutter/examples/hello_world/android/buildscript-gradle.lockfile index 14350adbcb4575031503358df422a1ab7096a7ab..6412c16e86f8cdb927816074db2cd7fa3984e9c8 100644 --- a/flutter/examples/hello_world/android/buildscript-gradle.lockfile +++ b/flutter/examples/hello_world/android/buildscript-gradle.lockfile @@ -1,29 +1,159 @@ # 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:kotlin-android-extensions:1.9.0=classpath -org.jetbrains.kotlin:kotlin-build-tools-api:1.9.0=classpath -org.jetbrains.kotlin:kotlin-compiler-embeddable:1.9.0=classpath -org.jetbrains.kotlin:kotlin-compiler-runner:1.9.0=classpath -org.jetbrains.kotlin:kotlin-daemon-client:1.9.0=classpath -org.jetbrains.kotlin:kotlin-daemon-embeddable:1.9.0=classpath -org.jetbrains.kotlin:kotlin-gradle-plugin-annotations:1.9.0=classpath -org.jetbrains.kotlin:kotlin-gradle-plugin-api:1.9.0=classpath -org.jetbrains.kotlin:kotlin-gradle-plugin-idea-proto:1.9.0=classpath -org.jetbrains.kotlin:kotlin-gradle-plugin-idea:1.9.0=classpath -org.jetbrains.kotlin:kotlin-gradle-plugin-model:1.9.0=classpath -org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.0=classpath -org.jetbrains.kotlin:kotlin-gradle-plugins-bom:1.9.0=classpath -org.jetbrains.kotlin:kotlin-klib-commonizer-api:1.9.0=classpath -org.jetbrains.kotlin:kotlin-native-utils:1.9.0=classpath -org.jetbrains.kotlin:kotlin-project-model:1.9.0=classpath -org.jetbrains.kotlin:kotlin-scripting-common:1.9.0=classpath -org.jetbrains.kotlin:kotlin-scripting-compiler-embeddable:1.9.0=classpath -org.jetbrains.kotlin:kotlin-scripting-compiler-impl-embeddable:1.9.0=classpath -org.jetbrains.kotlin:kotlin-scripting-jvm:1.9.0=classpath -org.jetbrains.kotlin:kotlin-tooling-core:1.9.0=classpath -org.jetbrains.kotlin:kotlin-util-io:1.9.0=classpath -org.jetbrains.kotlin:kotlin-util-klib:1.9.0=classpath +org.jetbrains.kotlin.android:org.jetbrains.kotlin.android.gradle.plugin:1.8.22=classpath +org.jetbrains.kotlin:kotlin-android-extensions:1.8.22=classpath +org.jetbrains.kotlin:kotlin-annotation-processing-gradle:1.8.22=classpath +org.jetbrains.kotlin:kotlin-compiler-embeddable:1.8.22=classpath +org.jetbrains.kotlin:kotlin-compiler-runner:1.8.22=classpath +org.jetbrains.kotlin:kotlin-daemon-client:1.8.22=classpath +org.jetbrains.kotlin:kotlin-daemon-embeddable:1.8.22=classpath +org.jetbrains.kotlin:kotlin-gradle-plugin-annotations:1.8.22=classpath +org.jetbrains.kotlin:kotlin-gradle-plugin-api:1.8.22=classpath +org.jetbrains.kotlin:kotlin-gradle-plugin-idea-proto:1.8.22=classpath +org.jetbrains.kotlin:kotlin-gradle-plugin-idea:1.8.22=classpath +org.jetbrains.kotlin:kotlin-gradle-plugin-model:1.8.22=classpath +org.jetbrains.kotlin:kotlin-gradle-plugin:1.8.22=classpath +org.jetbrains.kotlin:kotlin-gradle-plugins-bom:1.8.22=classpath +org.jetbrains.kotlin:kotlin-klib-commonizer-api:1.8.22=classpath +org.jetbrains.kotlin:kotlin-native-utils:1.8.22=classpath +org.jetbrains.kotlin:kotlin-project-model:1.8.22=classpath +org.jetbrains.kotlin:kotlin-reflect:1.9.24=classpath +org.jetbrains.kotlin:kotlin-scripting-common:1.8.22=classpath +org.jetbrains.kotlin:kotlin-scripting-compiler-embeddable:1.8.22=classpath +org.jetbrains.kotlin:kotlin-scripting-compiler-impl-embeddable:1.8.22=classpath +org.jetbrains.kotlin:kotlin-scripting-jvm:1.8.22=classpath +org.jetbrains.kotlin:kotlin-stdlib-common:1.9.24=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.24=classpath +org.jetbrains.kotlin:kotlin-tooling-core:1.8.22=classpath +org.jetbrains.kotlin:kotlin-util-io:1.8.22=classpath +org.jetbrains.kotlin:kotlin-util-klib:1.8.22=classpath org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.5.0=classpath +org.jetbrains.kotlinx:kotlinx-serialization-core-jvm:1.4.0=classpath +org.jetbrains.kotlinx:kotlinx-serialization-core:1.4.0=classpath +org.jetbrains.kotlinx:kotlinx-serialization-json-jvm:1.4.0=classpath +org.jetbrains.kotlinx:kotlinx-serialization-json:1.4.0=classpath +org.jetbrains:annotations:13.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= diff --git a/flutter/examples/hello_world/android/gradle.properties b/flutter/examples/hello_world/android/gradle.properties index 598d13fee446372f156ecc38527b54c7cdcc8e3b..f018a61817f55e78bb92ce8df2dda423ec570a4a 100644 --- a/flutter/examples/hello_world/android/gradle.properties +++ b/flutter/examples/hello_world/android/gradle.properties @@ -1,3 +1,3 @@ -org.gradle.jvmargs=-Xmx4G +org.gradle.jvmargs=-Xmx8G -XX:MaxMetaspaceSize=4G -XX:ReservedCodeCacheSize=512m -XX:+HeapDumpOnOutOfMemoryError android.useAndroidX=true android.enableJetifier=true diff --git a/flutter/examples/hello_world/android/gradle/wrapper/gradle-wrapper.properties b/flutter/examples/hello_world/android/gradle/wrapper/gradle-wrapper.properties index ec915a81eb454eecf81a2f25441611dcbdd17968..afa1e8eb0a835ba6be2286d1b399c4e47b7a79a0 100644 --- a/flutter/examples/hello_world/android/gradle/wrapper/gradle-wrapper.properties +++ b/flutter/examples/hello_world/android/gradle/wrapper/gradle-wrapper.properties @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.2.1-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-all.zip diff --git a/flutter/examples/hello_world/android/project-app.lockfile b/flutter/examples/hello_world/android/project-app.lockfile index 0d87887fa38ec4e6f3bee73be248e003d7c37a4f..bfffc96e588c6081a22f854d453b1b9d3cd8ca35 100644 --- a/flutter/examples/hello_world/android/project-app.lockfile +++ b/flutter/examples/hello_world/android/project-app.lockfile @@ -1,118 +1,126 @@ # 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,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.annotation:annotation-experimental:1.1.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.annotation:annotation:1.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.arch.core:core-common:2.1.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.arch.core:core-runtime:2.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.activity:activity:1.8.1=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.annotation:annotation-experimental:1.4.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.annotation:annotation-jvm:1.8.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.annotation:annotation:1.8.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.arch.core:core-common:2.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.arch.core:core-runtime:2.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath androidx.collection:collection:1.1.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.core:core:1.6.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.concurrent:concurrent-futures:1.1.0=debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath +androidx.core:core-ktx:1.13.1=debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.core:core-ktx:1.2.0=debugAndroidTestCompileClasspath +androidx.core:core:1.13.1=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath androidx.customview:customview:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.fragment:fragment:1.1.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.lifecycle:lifecycle-common-java8:2.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.lifecycle:lifecycle-common:2.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.lifecycle:lifecycle-livedata-core:2.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.lifecycle:lifecycle-livedata:2.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.lifecycle:lifecycle-runtime:2.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.lifecycle:lifecycle-viewmodel:2.1.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.fragment:fragment:1.7.1=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.interpolator:interpolator:1.0.0=debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-common-java8:2.7.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-common:2.7.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-livedata-core-ktx:2.7.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-livedata-core:2.7.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-livedata:2.7.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-process:2.7.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-runtime:2.7.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-viewmodel-savedstate:2.7.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-viewmodel:2.7.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath androidx.loader:loader:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.savedstate:savedstate:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.tracing:tracing:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.profileinstaller:profileinstaller:1.3.1=debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath +androidx.savedstate:savedstate:1.2.1=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.startup:startup-runtime:1.1.1=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.tracing:tracing:1.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath androidx.versionedparcelable:versionedparcelable:1.1.1=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath androidx.viewpager:viewpager:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.window:window-java:1.0.0-beta04=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.window:window:1.0.0-beta04=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -com.android.tools.analytics-library:protos:27.1.3=lintClassPath -com.android.tools.analytics-library:shared:27.1.3=lintClassPath -com.android.tools.analytics-library:tracker:27.1.3=lintClassPath -com.android.tools.build:aapt2-proto:4.1.0-alpha01-6193524=lintClassPath -com.android.tools.build:aapt2:4.1.3-6503028=_internal_aapt2_binary -com.android.tools.build:apksig:4.1.3=lintClassPath -com.android.tools.build:apkzlib:4.1.3=lintClassPath -com.android.tools.build:builder-model:4.1.3=lintClassPath -com.android.tools.build:builder-test-api:4.1.3=lintClassPath -com.android.tools.build:builder:4.1.3=lintClassPath -com.android.tools.build:gradle-api:4.1.3=lintClassPath -com.android.tools.build:manifest-merger:27.1.3=lintClassPath -com.android.tools.ddms:ddmlib:27.1.3=lintClassPath -com.android.tools.external.com-intellij:intellij-core:27.1.3=lintClassPath -com.android.tools.external.com-intellij:kotlin-compiler:27.1.3=lintClassPath -com.android.tools.external.org-jetbrains:uast:27.1.3=lintClassPath -com.android.tools.layoutlib:layoutlib-api:27.1.3=lintClassPath -com.android.tools.lint:lint-api:27.1.3=lintClassPath -com.android.tools.lint:lint-checks:27.1.3=lintClassPath -com.android.tools.lint:lint-gradle-api:27.1.3=lintClassPath -com.android.tools.lint:lint-gradle:27.1.3=lintClassPath -com.android.tools.lint:lint-model:27.1.3=lintClassPath -com.android.tools.lint:lint:27.1.3=lintClassPath -com.android.tools:annotations:27.1.3=lintClassPath -com.android.tools:common:27.1.3=lintClassPath -com.android.tools:dvlib:27.1.3=lintClassPath -com.android.tools:repository:27.1.3=lintClassPath -com.android.tools:sdk-common:27.1.3=lintClassPath -com.android.tools:sdklib:27.1.3=lintClassPath -com.android:signflinger:4.1.3=lintClassPath -com.android:zipflinger:4.1.3=lintClassPath -com.google.code.findbugs:jsr305:3.0.2=lintClassPath -com.google.code.gson:gson:2.8.5=lintClassPath -com.google.errorprone:error_prone_annotations:2.3.2=lintClassPath -com.google.guava:failureaccess:1.0.1=lintClassPath -com.google.guava:guava:28.1-jre=lintClassPath -com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava=lintClassPath -com.google.j2objc:j2objc-annotations:1.3=lintClassPath -com.google.jimfs:jimfs:1.1=lintClassPath -com.google.protobuf:protobuf-java:3.10.0=lintClassPath -com.googlecode.json-simple:json-simple:1.1=lintClassPath -com.squareup:javawriter:2.5.0=lintClassPath -com.sun.activation:javax.activation:1.2.0=lintClassPath -com.sun.istack:istack-commons-runtime:3.0.7=lintClassPath -com.sun.xml.fastinfoset:FastInfoset:1.2.15=lintClassPath -commons-codec:commons-codec:1.10=lintClassPath -commons-logging:commons-logging:1.2=lintClassPath -it.unimi.dsi:fastutil:7.2.0=lintClassPath -javax.activation:javax.activation-api:1.2.0=lintClassPath -javax.inject:javax.inject:1=lintClassPath -javax.xml.bind:jaxb-api:2.3.1=lintClassPath -net.sf.jopt-simple:jopt-simple:4.9=lintClassPath -net.sf.kxml:kxml2:2.3.0=lintClassPath -org.apache.commons:commons-compress:1.12=lintClassPath -org.apache.httpcomponents:httpclient:4.5.6=lintClassPath -org.apache.httpcomponents:httpcore:4.4.10=lintClassPath -org.apache.httpcomponents:httpmime:4.5.6=lintClassPath -org.bouncycastle:bcpkix-jdk15on:1.56=lintClassPath -org.bouncycastle:bcprov-jdk15on:1.56=lintClassPath -org.checkerframework:checker-qual:2.8.1=lintClassPath -org.codehaus.groovy:groovy-all:2.4.15=lintClassPath -org.codehaus.mojo:animal-sniffer-annotations:1.18=lintClassPath -org.glassfish.jaxb:jaxb-runtime:2.3.1=lintClassPath -org.glassfish.jaxb:txw2:2.3.1=lintClassPath -org.jacoco:org.jacoco.agent:0.8.8=androidJacocoAnt -org.jacoco:org.jacoco.ant:0.8.8=androidJacocoAnt -org.jacoco:org.jacoco.core:0.8.8=androidJacocoAnt -org.jacoco:org.jacoco.report:0.8.8=androidJacocoAnt -org.jetbrains.kotlin:kotlin-reflect:1.3.72=lintClassPath -org.jetbrains.kotlin:kotlin-stdlib-common:1.3.72=lintClassPath -org.jetbrains.kotlin:kotlin-stdlib-common:1.5.31=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.3.72=lintClassPath -org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.5.30=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.72=lintClassPath -org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.5.30=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -org.jetbrains.kotlin:kotlin-stdlib:1.3.72=lintClassPath -org.jetbrains.kotlin:kotlin-stdlib:1.5.31=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.2=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.5.2=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -org.jetbrains.trove4j:trove4j:20160824=lintClassPath -org.jetbrains:annotations:13.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,lintClassPath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -org.jvnet.staxex:stax-ex:1.8=lintClassPath -org.ow2.asm:asm-analysis:7.0=lintClassPath -org.ow2.asm:asm-analysis:9.2=androidJacocoAnt -org.ow2.asm:asm-commons:7.0=lintClassPath -org.ow2.asm:asm-commons:9.2=androidJacocoAnt -org.ow2.asm:asm-tree:7.0=lintClassPath -org.ow2.asm:asm-tree:9.2=androidJacocoAnt -org.ow2.asm:asm-util:7.0=lintClassPath -org.ow2.asm:asm:7.0=lintClassPath -org.ow2.asm:asm:9.2=androidJacocoAnt -empty=androidApis,androidJdkImage,androidTestUtil,compile,coreLibraryDesugaring,debugAndroidTestAnnotationProcessorClasspath,debugAndroidTestRuntimeClasspath,debugAnnotationProcessorClasspath,debugReverseMetadataValues,debugUnitTestAnnotationProcessorClasspath,debugWearBundling,lintChecks,lintPublish,profileAnnotationProcessorClasspath,profileReverseMetadataValues,profileUnitTestAnnotationProcessorClasspath,profileWearBundling,releaseAnnotationProcessorClasspath,releaseReverseMetadataValues,releaseUnitTestAnnotationProcessorClasspath,releaseWearBundling,testCompile +androidx.window.extensions.core:core:1.0.0=debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath +androidx.window:window-java:1.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.window:window:1.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.android.tools.ddms:ddmlib:31.7.0=_internal-unified-test-platform-android-device-provider-ddmlib +com.android.tools.emulator:proto:31.7.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention +com.android.tools.utp:android-device-provider-ddmlib-proto:31.7.0=_internal-unified-test-platform-android-device-provider-ddmlib +com.android.tools.utp:android-device-provider-ddmlib:31.7.0=_internal-unified-test-platform-android-device-provider-ddmlib +com.android.tools.utp:android-device-provider-gradle-proto:31.7.0=_internal-unified-test-platform-android-device-provider-gradle +com.android.tools.utp:android-device-provider-gradle:31.7.0=_internal-unified-test-platform-android-device-provider-gradle +com.android.tools.utp:android-device-provider-profile-proto:31.7.0=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle +com.android.tools.utp:android-device-provider-profile:31.7.0=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle +com.android.tools.utp:android-test-plugin-host-additional-test-output-proto:31.7.0=_internal-unified-test-platform-android-test-plugin-host-additional-test-output +com.android.tools.utp:android-test-plugin-host-additional-test-output:31.7.0=_internal-unified-test-platform-android-test-plugin-host-additional-test-output +com.android.tools.utp:android-test-plugin-host-apk-installer-proto:31.7.0=_internal-unified-test-platform-android-test-plugin-host-apk-installer +com.android.tools.utp:android-test-plugin-host-apk-installer:31.7.0=_internal-unified-test-platform-android-test-plugin-host-apk-installer +com.android.tools.utp:android-test-plugin-host-coverage-proto:31.7.0=_internal-unified-test-platform-android-test-plugin-host-coverage +com.android.tools.utp:android-test-plugin-host-coverage:31.7.0=_internal-unified-test-platform-android-test-plugin-host-coverage +com.android.tools.utp:android-test-plugin-host-device-info-proto:31.7.0=_internal-unified-test-platform-android-test-plugin-host-device-info +com.android.tools.utp:android-test-plugin-host-device-info:31.7.0=_internal-unified-test-platform-android-test-plugin-host-device-info +com.android.tools.utp:android-test-plugin-host-emulator-control-proto:31.7.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control +com.android.tools.utp:android-test-plugin-host-emulator-control:31.7.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control +com.android.tools.utp:android-test-plugin-host-logcat-proto:31.7.0=_internal-unified-test-platform-android-test-plugin-host-logcat +com.android.tools.utp:android-test-plugin-host-logcat:31.7.0=_internal-unified-test-platform-android-test-plugin-host-logcat +com.android.tools.utp:android-test-plugin-host-retention-proto:31.7.0=_internal-unified-test-platform-android-test-plugin-host-retention +com.android.tools.utp:android-test-plugin-host-retention:31.7.0=_internal-unified-test-platform-android-test-plugin-host-retention +com.android.tools.utp:android-test-plugin-result-listener-gradle-proto:31.7.0=_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.android.tools.utp:android-test-plugin-result-listener-gradle:31.7.0=_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.android.tools.utp:utp-common:31.7.0=_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention +com.android.tools:annotations:31.7.0=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.android.tools:common:31.7.0=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.getkeepsafe.relinker:relinker:1.4.5=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.android:annotations:4.1.1.4=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.google.api.grpc:proto-google-common-protos:2.17.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.google.code.findbugs:jsr305:3.0.2=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.google.code.gson:gson:2.10.1=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.google.crypto.tink:tink:1.7.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control +com.google.errorprone:error_prone_annotations:2.18.0=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.google.guava:failureaccess:1.0.1=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.google.guava:guava:32.0.1-jre=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.google.guava:listenablefuture:1.0=debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath +com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.google.j2objc:j2objc-annotations:2.8=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.google.protobuf:protobuf-java:3.22.3=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.google.testing.platform:android-device-provider-local:0.0.9-alpha02=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.google.testing.platform:android-driver-instrumentation:0.0.9-alpha02=_internal-unified-test-platform-android-driver-instrumentation,_internal-unified-test-platform-android-test-plugin-host-emulator-control +com.google.testing.platform:android-test-plugin:0.0.9-alpha02=_internal-unified-test-platform-android-test-plugin +com.google.testing.platform:core-proto:0.0.9-alpha02=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.google.testing.platform:core:0.0.9-alpha02=_internal-unified-test-platform-core +com.google.testing.platform:launcher:0.0.9-alpha02=_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-launcher +commons-io:commons-io:2.13.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention +io.grpc:grpc-api:1.57.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.grpc:grpc-context:1.57.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.grpc:grpc-core:1.57.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.grpc:grpc-netty:1.57.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.grpc:grpc-protobuf-lite:1.57.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.grpc:grpc-protobuf:1.57.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.grpc:grpc-stub:1.57.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-buffer:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-codec-http2:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-codec-http:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-codec-socks:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-codec:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-common:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-handler-proxy:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-handler:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-resolver:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-transport-native-unix-common:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-transport:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.perfmark:perfmark-api:0.26.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +javax.annotation:javax.annotation-api:1.3.2=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +net.java.dev.jna:jna-platform:5.6.0=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +net.java.dev.jna:jna:5.6.0=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +net.sf.kxml:kxml2:2.3.0=_internal-unified-test-platform-android-device-provider-ddmlib +org.checkerframework:checker-qual:3.33.0=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +org.codehaus.mojo:animal-sniffer-annotations:1.23=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +org.jetbrains.kotlin:kotlin-stdlib-common:1.8.22=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-common:1.9.20=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.8.20=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.9.20=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.8.20=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.9.20=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +org.jetbrains.kotlin:kotlin-stdlib:1.8.22=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib:1.9.20=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.1=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-bom:1.6.4=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +org.jetbrains.kotlinx:kotlinx-coroutines-bom:1.7.1=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.6.4=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.7.1=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.1=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains:annotations:13.0=_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +org.jetbrains:annotations:23.0.0=_internal-unified-test-platform-android-device-provider-ddmlib,debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +empty=androidApis,androidJdkImage,androidTestUtil,coreLibraryDesugaring,debugAndroidTestAnnotationProcessorClasspath,debugAndroidTestRuntimeClasspath,debugAnnotationProcessorClasspath,debugReverseMetadataValues,debugUnitTestAnnotationProcessorClasspath,debugWearBundling,lintChecks,lintPublish,profileAnnotationProcessorClasspath,profileReverseMetadataValues,profileUnitTestAnnotationProcessorClasspath,profileWearBundling,releaseAnnotationProcessorClasspath,releaseReverseMetadataValues,releaseUnitTestAnnotationProcessorClasspath,releaseWearBundling diff --git a/flutter/examples/hello_world/android/settings.gradle.kts b/flutter/examples/hello_world/android/settings.gradle.kts index b1a0c7d3234c425a54e9dd4d27ff431450dd4e2e..7b83c06e5340b3d74d7f372e8108771b8935e3e0 100644 --- a/flutter/examples/hello_world/android/settings.gradle.kts +++ b/flutter/examples/hello_world/android/settings.gradle.kts @@ -2,9 +2,9 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -// Contents of this file should be generated automatically by -// dev/tools/bin/generate_gradle_lockfiles.dart, but currently are not. -// See #141540. +// 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 { val flutterSdkPath = @@ -34,8 +34,8 @@ buildscript { plugins { id("dev.flutter.flutter-plugin-loader") version "1.0.0" - id("com.android.application") version "7.4.2" apply false - id("org.jetbrains.kotlin.android") version "1.7.10" apply false + id("com.android.application") version "8.7.0" apply false + id("org.jetbrains.kotlin.android") version "1.8.22" apply false } include(":app") diff --git a/flutter/examples/hello_world/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/flutter/examples/hello_world/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme index e67b2808af02f9ec16f2d72b7961aefdf844afa5..4f746537f280af75dcdac17b8e41c5a5d051e1d1 100644 --- a/flutter/examples/hello_world/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme +++ b/flutter/examples/hello_world/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme @@ -50,6 +50,7 @@ ignoresPersistentStateOnLaunch = "NO" debugDocumentVersioning = "YES" debugServiceExtension = "internal" + enableGPUValidationMode = "1" allowLocationSimulation = "YES"> diff --git a/flutter/examples/hello_world/lib/arabic.dart b/flutter/examples/hello_world/lib/arabic.dart index 8b5bae33230da9224e70e676571089d01fbf8ac2..460b6eece55b30a9d7e88d5caee410e939dc2ea4 100644 --- a/flutter/examples/hello_world/lib/arabic.dart +++ b/flutter/examples/hello_world/lib/arabic.dart @@ -4,4 +4,5 @@ import 'package:flutter/widgets.dart'; -void main() => runApp(const Center(child: Text('برنامج أهلا بالعالم', textDirection: TextDirection.rtl))); +void main() => + runApp(const Center(child: Text('برنامج أهلا بالعالم', textDirection: TextDirection.rtl))); diff --git a/flutter/examples/hello_world/lib/main.dart b/flutter/examples/hello_world/lib/main.dart index 3fcab6a389483b7498bd8a23501ef72846f109b6..681efb7457df6d40840eb07773417782fd645ac4 100644 --- a/flutter/examples/hello_world/lib/main.dart +++ b/flutter/examples/hello_world/lib/main.dart @@ -4,13 +4,6 @@ import 'package:flutter/widgets.dart'; -void main() => - runApp( - const Center( - child: - Text('Hello, world!', - key: Key('title'), - textDirection: TextDirection.ltr, - ), - ), - ); +void main() => runApp( + const Center(child: Text('Hello, world!', key: Key('title'), textDirection: TextDirection.ltr)), +); diff --git a/flutter/examples/hello_world/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/flutter/examples/hello_world/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme index aa9d3f928d03d24415ec2fcb39aa571d10a5fab2..86297218ed5bf903c3d263ee17acf9e62d734542 100644 --- a/flutter/examples/hello_world/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme +++ b/flutter/examples/hello_world/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme @@ -48,6 +48,7 @@ ignoresPersistentStateOnLaunch = "NO" debugDocumentVersioning = "YES" debugServiceExtension = "internal" + enableGPUValidationMode = "1" allowLocationSimulation = "YES"> diff --git a/flutter/examples/hello_world/macos/Runner/AppDelegate.swift b/flutter/examples/hello_world/macos/Runner/AppDelegate.swift index d080d41951d3506a861ceadcf4354bbbb609a562..573ad7b432ae4637bfcb6ba0131363199cba1076 100644 --- a/flutter/examples/hello_world/macos/Runner/AppDelegate.swift +++ b/flutter/examples/hello_world/macos/Runner/AppDelegate.swift @@ -5,9 +5,13 @@ import Cocoa import FlutterMacOS -@NSApplicationMain +@main class AppDelegate: FlutterAppDelegate { override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool { return true } + + override func applicationSupportsSecureRestorableState(_ app: NSApplication) -> Bool { + return true + } } diff --git a/flutter/examples/hello_world/pubspec.yaml b/flutter/examples/hello_world/pubspec.yaml index de6cfa22ab95c384ebdc83d232d84d697f6e0978..704702fb84e4787d85e55c705159093198d21b6c 100644 --- a/flutter/examples/hello_world/pubspec.yaml +++ b/flutter/examples/hello_world/pubspec.yaml @@ -1,16 +1,16 @@ name: hello_world environment: - sdk: '>=3.2.0-0 <4.0.0' + sdk: ^3.7.0-0 dependencies: flutter: sdk: flutter - characters: 1.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - collection: 1.18.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - material_color_utilities: 0.8.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - meta: 1.11.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + characters: 1.4.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + collection: 1.19.1 # 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.16.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" dev_dependencies: @@ -18,57 +18,58 @@ dev_dependencies: sdk: flutter flutter_test: sdk: flutter - test: 1.24.9 + test: 1.25.15 - _fe_analyzer_shared: 65.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - analyzer: 6.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - args: 2.4.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - async: 2.11.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - boolean_selector: 2.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - clock: 1.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - convert: 3.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - coverage: 1.7.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - crypto: 3.0.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - fake_async: 1.3.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - file: 7.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - frontend_server_client: 3.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - glob: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - http_multi_server: 3.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - http_parser: 4.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - io: 1.0.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - js: 0.6.7 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - leak_tracker: 10.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - leak_tracker_flutter_testing: 2.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - leak_tracker_testing: 2.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - logging: 1.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - matcher: 0.12.16+1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - mime: 1.0.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + _fe_analyzer_shared: 80.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + analyzer: 7.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + args: 2.7.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + async: 2.13.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + boolean_selector: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + clock: 1.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + convert: 3.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + coverage: 1.11.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + crypto: 3.0.6 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + fake_async: 1.3.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + file: 7.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + frontend_server_client: 4.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + glob: 2.1.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + http_multi_server: 3.2.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + http_parser: 4.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + io: 1.0.5 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + js: 0.7.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + leak_tracker: 10.0.9 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + leak_tracker_flutter_testing: 3.0.9 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + leak_tracker_testing: 3.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + logging: 1.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + matcher: 0.12.17 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + mime: 2.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" node_preamble: 2.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - package_config: 2.1.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - path: 1.9.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + package_config: 2.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + path: 1.9.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" pool: 1.5.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - pub_semver: 2.1.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - shelf: 1.4.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + pub_semver: 2.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + shelf: 1.4.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" shelf_packages_handler: 3.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - shelf_static: 1.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - shelf_web_socket: 1.0.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - source_map_stack_trace: 2.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - source_maps: 0.10.12 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - source_span: 1.10.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - stack_trace: 1.11.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - stream_channel: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - string_scanner: 1.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + shelf_static: 1.1.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + shelf_web_socket: 2.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + source_map_stack_trace: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + source_maps: 0.10.13 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + source_span: 1.10.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + stack_trace: 1.12.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + stream_channel: 2.1.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + string_scanner: 1.4.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" sync_http: 0.3.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - term_glyph: 1.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - test_api: 0.6.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - test_core: 0.5.9 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - typed_data: 1.3.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - vm_service: 13.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - watcher: 1.1.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - web: 0.4.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - web_socket_channel: 2.4.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - webdriver: 3.0.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + term_glyph: 1.2.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + test_api: 0.7.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + test_core: 0.6.8 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + typed_data: 1.4.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + vm_service: 15.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + watcher: 1.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + web: 1.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + web_socket: 0.1.6 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + web_socket_channel: 3.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + webdriver: 3.1.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" webkit_inspection_protocol: 1.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - yaml: 3.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + yaml: 3.1.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" -# PUBSPEC CHECKSUM: 6020 +# PUBSPEC CHECKSUM: 8aed diff --git a/flutter/examples/hello_world/test_driver/smoke_web_engine_test.dart b/flutter/examples/hello_world/test_driver/smoke_web_engine_test.dart index c7dcaa0873b8c9cbec387b31f036a7e1ad6ced21..62b339d348a37b73093745b76ace4af0038a99b0 100644 --- a/flutter/examples/hello_world/test_driver/smoke_web_engine_test.dart +++ b/flutter/examples/hello_world/test_driver/smoke_web_engine_test.dart @@ -38,10 +38,12 @@ void main() { // TODO(ianh): this delay violates our style guide. We should instead wait for a triggering event. await Future.delayed(const Duration(seconds: 2)); - final WebElement? fltSemantics = await driver.webDriver.execute( - 'return document.querySelector("flt-semantics")', - [], - ) as WebElement?; + final WebElement? fltSemantics = + await driver.webDriver.execute( + 'return document.querySelector("flt-semantics")', + [], + ) + as WebElement?; expect(fltSemantics, isNotNull); }); }); diff --git a/flutter/examples/hello_world/web/index.html b/flutter/examples/hello_world/web/index.html index a856086c8ee988a3c27b67aae4f14f19bf709c37..313adac93f978d8df1fe889809ca1adb9e50ff1f 100644 --- a/flutter/examples/hello_world/web/index.html +++ b/flutter/examples/hello_world/web/index.html @@ -7,6 +7,6 @@ found in the LICENSE file. --> Hello, World - + diff --git a/flutter/examples/hello_world/windows/runner/runner.exe.manifest b/flutter/examples/hello_world/windows/runner/runner.exe.manifest index a42ea7687cb67e55af955dc8874a072e087ce3ed..153653e8d67f81b901d28257a65908f3278e058d 100644 --- a/flutter/examples/hello_world/windows/runner/runner.exe.manifest +++ b/flutter/examples/hello_world/windows/runner/runner.exe.manifest @@ -9,12 +9,6 @@ - - - - - - diff --git a/flutter/examples/hello_world/windows/runner/utils.cpp b/flutter/examples/hello_world/windows/runner/utils.cpp index b849ce2c32702dc4b1f35161e794e7dcc5a81ef8..6abcd650420706858d2bff4ec04d4fbd993b4652 100644 --- a/flutter/examples/hello_world/windows/runner/utils.cpp +++ b/flutter/examples/hello_world/windows/runner/utils.cpp @@ -49,12 +49,12 @@ std::string Utf8FromUtf16(const wchar_t* utf16_string) { if (utf16_string == nullptr) { return std::string(); } - int target_length = ::WideCharToMultiByte( + unsigned int target_length = ::WideCharToMultiByte( CP_UTF8, WC_ERR_INVALID_CHARS, utf16_string, -1, nullptr, 0, nullptr, nullptr) -1; // remove the trailing null character std::string utf8_string; - if (target_length <= 0 || target_length > utf8_string.max_size()) { + if (target_length == 0 || target_length > utf8_string.max_size()) { return utf8_string; } utf8_string.resize(target_length); diff --git a/flutter/examples/image_list/android/app/build.gradle b/flutter/examples/image_list/android/app/build.gradle index 2670aafd6e76c18a3e58b87085bb5ada08ea1138..1adead8eb0db874b84d03986e2b6b47512e50a10 100644 --- a/flutter/examples/image_list/android/app/build.gradle +++ b/flutter/examples/image_list/android/app/build.gradle @@ -2,6 +2,11 @@ // 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 "dev.flutter.flutter-gradle-plugin" +} + def localProperties = new Properties() def localPropertiesFile = rootProject.file('local.properties') if (localPropertiesFile.exists()) { @@ -10,11 +15,6 @@ if (localPropertiesFile.exists()) { } } -def flutterRoot = localProperties.getProperty('flutter.sdk') -if (flutterRoot == null) { - throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") -} - def flutterVersionCode = localProperties.getProperty('flutter.versionCode') if (flutterVersionCode == null) { flutterVersionCode = '1' @@ -25,13 +25,19 @@ if (flutterVersionName == null) { flutterVersionName = '1.0' } -apply plugin: 'com.android.application' -apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" - android { namespace "com.example.image_list" compileSdk flutter.compileSdkVersion + // Flutter's CI installs the NDK at a non-standard path. + // This non-standard structure is initially created by + // https://github.com/flutter/engine/blob/3.27.0/tools/android_sdk/create_cipd_packages.sh. + String systemNdkPath = System.getenv("ANDROID_NDK_PATH") + if (systemNdkPath != null) { + ndkVersion = flutter.ndkVersion + ndkPath = systemNdkPath + } + compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 diff --git a/flutter/examples/image_list/android/app/src/main/AndroidManifest.xml b/flutter/examples/image_list/android/app/src/main/AndroidManifest.xml index 9943200ec1752ed748c4ee7510a4bc6879eb3e49..7e99816f428b46e9cdb902ffa968695a88a6088b 100644 --- a/flutter/examples/image_list/android/app/src/main/AndroidManifest.xml +++ b/flutter/examples/image_list/android/app/src/main/AndroidManifest.xml @@ -28,7 +28,7 @@ found in the LICENSE file. --> android:value="2" /> diff --git a/flutter/examples/image_list/android/build.gradle b/flutter/examples/image_list/android/build.gradle index 2de20623576a82c3115eca8b1bdb56fd5b5051cb..bedac9d2d4db435dfecb639ddd968f06a9375609 100644 --- a/flutter/examples/image_list/android/build.gradle +++ b/flutter/examples/image_list/android/build.gradle @@ -6,23 +6,6 @@ // To update all the build.gradle files in the Flutter repo, // See dev/tools/bin/generate_gradle_lockfiles.dart. -buildscript { - ext.kotlin_version = '1.5.31' - repositories { - google() - mavenCentral() - } - - dependencies { - classpath 'com.android.tools.build:gradle:7.2.0' - classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" - } - - configurations.classpath { - resolutionStrategy.activateDependencyLocking() - } -} - allprojects { repositories { google() diff --git a/flutter/examples/image_list/android/buildscript-gradle.lockfile b/flutter/examples/image_list/android/buildscript-gradle.lockfile index efe13277310ee8fef3c9d7f6f8a2cbbe601d110f..545abc59e924a9127dd0d66b4c85bb9e855adb90 100644 --- a/flutter/examples/image_list/android/buildscript-gradle.lockfile +++ b/flutter/examples/image_list/android/buildscript-gradle.lockfile @@ -1,71 +1,68 @@ # 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:7.2.0=classpath -androidx.databinding:databinding-compiler-common:7.2.0=classpath -com.android.databinding:baseLibrary:7.2.0=classpath -com.android.tools.analytics-library:crash:30.2.0=classpath -com.android.tools.analytics-library:protos:30.2.0=classpath -com.android.tools.analytics-library:shared:30.2.0=classpath -com.android.tools.analytics-library:tracker:30.2.0=classpath -com.android.tools.build.jetifier:jetifier-core:1.0.0-beta09=classpath -com.android.tools.build.jetifier:jetifier-processor:1.0.0-beta09=classpath -com.android.tools.build:aapt2-proto:7.2.0-7984345=classpath -com.android.tools.build:aaptcompiler:7.2.0=classpath -com.android.tools.build:apksig:7.2.0=classpath -com.android.tools.build:apkzlib:7.2.0=classpath -com.android.tools.build:builder-model:7.2.0=classpath -com.android.tools.build:builder-test-api:7.2.0=classpath -com.android.tools.build:builder:7.2.0=classpath -com.android.tools.build:bundletool:1.8.2=classpath -com.android.tools.build:gradle-api:7.2.0=classpath -com.android.tools.build:gradle:7.2.0=classpath -com.android.tools.build:manifest-merger:30.2.0=classpath +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:30.2.0=classpath -com.android.tools.layoutlib:layoutlib-api:30.2.0=classpath -com.android.tools.lint:lint-model:30.2.0=classpath -com.android.tools.lint:lint-typedef-remover:30.2.0=classpath -com.android.tools.utp:android-device-provider-ddmlib-proto:30.2.0=classpath -com.android.tools.utp:android-device-provider-gradle-proto:30.2.0=classpath -com.android.tools.utp:android-test-plugin-host-additional-test-output-proto:30.2.0=classpath -com.android.tools.utp:android-test-plugin-host-coverage-proto:30.2.0=classpath -com.android.tools.utp:android-test-plugin-host-retention-proto:30.2.0=classpath -com.android.tools.utp:android-test-plugin-result-listener-gradle-proto:30.2.0=classpath -com.android.tools:annotations:30.2.0=classpath -com.android.tools:common:30.2.0=classpath -com.android.tools:dvlib:30.2.0=classpath -com.android.tools:repository:30.2.0=classpath -com.android.tools:sdk-common:30.2.0=classpath -com.android.tools:sdklib:30.2.0=classpath -com.android:signflinger:7.2.0=classpath -com.android:zipflinger:7.2.0=classpath -com.fasterxml.jackson.core:jackson-annotations:2.11.1=classpath -com.fasterxml.jackson.core:jackson-core:2.11.1=classpath -com.fasterxml.jackson.core:jackson-databind:2.11.1=classpath -com.fasterxml.jackson.dataformat:jackson-dataformat-xml:2.11.1=classpath -com.fasterxml.jackson.module:jackson-module-jaxb-annotations:2.11.1=classpath -com.fasterxml.jackson.module:jackson-module-kotlin:2.11.1=classpath -com.fasterxml.woodstox:woodstox-core:6.2.1=classpath -com.github.gundy:semver4j:0.16.4=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:1.12.0=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.8.6=classpath -com.google.crypto.tink:tink:1.3.0-rc2=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.3.4=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:30.1-jre=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:1.3=classpath +com.google.j2objc:j2objc-annotations:2.8=classpath com.google.jimfs:jimfs:1.1=classpath -com.google.protobuf:protobuf-java-util:3.10.0=classpath -com.google.protobuf:protobuf-java:3.10.0=classpath -com.google.testing.platform:core-proto:0.0.8-alpha07=classpath -com.googlecode.json-simple:json-simple: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 @@ -73,91 +70,89 @@ 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.4=classpath +commons-io:commons-io:2.13.0=classpath commons-logging:commons-logging:1.2=classpath -de.undercouch:gradle-download-task:4.1.1=classpath -io.grpc:grpc-api:1.21.1=classpath -io.grpc:grpc-context:1.21.1=classpath -io.grpc:grpc-core:1.21.1=classpath -io.grpc:grpc-netty:1.21.1=classpath -io.grpc:grpc-protobuf-lite:1.21.1=classpath -io.grpc:grpc-protobuf:1.21.1=classpath -io.grpc:grpc-stub:1.21.1=classpath -io.netty:netty-buffer:4.1.34.Final=classpath -io.netty:netty-codec-http2:4.1.34.Final=classpath -io.netty:netty-codec-http:4.1.34.Final=classpath -io.netty:netty-codec-socks:4.1.34.Final=classpath -io.netty:netty-codec:4.1.34.Final=classpath -io.netty:netty-common:4.1.34.Final=classpath -io.netty:netty-handler-proxy:4.1.34.Final=classpath -io.netty:netty-handler:4.1.34.Final=classpath -io.netty:netty-resolver:4.1.34.Final=classpath -io.netty:netty-transport:4.1.34.Final=classpath -io.opencensus:opencensus-api:0.21.0=classpath -io.opencensus:opencensus-contrib-grpc-metrics:0.21.0=classpath -it.unimi.dsi:fastutil:8.4.0=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.20=classpath -org.apache.httpcomponents:httpclient:4.5.9=classpath -org.apache.httpcomponents:httpcore:4.4.11=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.7.0=classpath -org.bouncycastle:bcpkix-jdk15on:1.56=classpath -org.bouncycastle:bcprov-jdk15on:1.56=classpath -org.checkerframework:checker-qual:3.5.0=classpath -org.codehaus.mojo:animal-sniffer-annotations:1.17=classpath -org.codehaus.woodstox:stax2-api:4.2.1=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.dokka:dokka-core:1.4.32=classpath -org.jetbrains.intellij.deps:trove4j:1.0.20181211=classpath -org.jetbrains.kotlin:kotlin-android-extensions:1.5.31=classpath -org.jetbrains.kotlin:kotlin-annotation-processing-gradle:1.5.31=classpath -org.jetbrains.kotlin:kotlin-build-common:1.5.31=classpath -org.jetbrains.kotlin:kotlin-compiler-embeddable:1.5.31=classpath -org.jetbrains.kotlin:kotlin-compiler-runner:1.5.31=classpath -org.jetbrains.kotlin:kotlin-daemon-client:1.5.31=classpath -org.jetbrains.kotlin:kotlin-daemon-embeddable:1.5.31=classpath -org.jetbrains.kotlin:kotlin-gradle-plugin-api:1.5.31=classpath -org.jetbrains.kotlin:kotlin-gradle-plugin-model:1.5.31=classpath -org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.31=classpath -org.jetbrains.kotlin:kotlin-klib-commonizer-api:1.5.31=classpath -org.jetbrains.kotlin:kotlin-native-utils:1.5.31=classpath -org.jetbrains.kotlin:kotlin-project-model:1.5.31=classpath -org.jetbrains.kotlin:kotlin-reflect:1.5.31=classpath -org.jetbrains.kotlin:kotlin-scripting-common:1.5.31=classpath -org.jetbrains.kotlin:kotlin-scripting-compiler-embeddable:1.5.31=classpath -org.jetbrains.kotlin:kotlin-scripting-compiler-impl-embeddable:1.5.31=classpath -org.jetbrains.kotlin:kotlin-scripting-jvm:1.5.31=classpath -org.jetbrains.kotlin:kotlin-stdlib-common:1.5.31=classpath -org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.5.31=classpath -org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.5.31=classpath -org.jetbrains.kotlin:kotlin-stdlib:1.5.31=classpath -org.jetbrains.kotlin:kotlin-tooling-metadata:1.5.31=classpath -org.jetbrains.kotlin:kotlin-util-io:1.5.31=classpath -org.jetbrains.kotlin:kotlin-util-klib:1.5.31=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-common:1.9.20=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.kotlinx:kotlinx-coroutines-core:1.5.0=classpath -org.jetbrains:annotations:13.0=classpath -org.jetbrains:markdown-jvm:0.2.1=classpath -org.jetbrains:markdown:0.2.1=classpath -org.json:json:20180813=classpath -org.jsoup:jsoup:1.13.1=classpath +org.jetbrains.kotlinx:kotlinx-serialization-core-jvm:1.4.0=classpath +org.jetbrains.kotlinx:kotlinx-serialization-core:1.4.0=classpath +org.jetbrains.kotlinx:kotlinx-serialization-json-jvm:1.4.0=classpath +org.jetbrains.kotlinx:kotlinx-serialization-json:1.4.0=classpath +org.jetbrains:annotations:23.0.0=classpath org.jvnet.staxex:stax-ex:1.8.1=classpath -org.ow2.asm:asm-analysis:9.1=classpath -org.ow2.asm:asm-commons:9.1=classpath -org.ow2.asm:asm-tree:9.1=classpath -org.ow2.asm:asm-util:9.1=classpath -org.ow2.asm:asm:9.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 -xerces:xercesImpl:2.12.0=classpath -xml-apis:xml-apis:1.4.01=classpath empty= diff --git a/flutter/examples/image_list/android/gradle.properties b/flutter/examples/image_list/android/gradle.properties index 598d13fee446372f156ecc38527b54c7cdcc8e3b..f018a61817f55e78bb92ce8df2dda423ec570a4a 100644 --- a/flutter/examples/image_list/android/gradle.properties +++ b/flutter/examples/image_list/android/gradle.properties @@ -1,3 +1,3 @@ -org.gradle.jvmargs=-Xmx4G +org.gradle.jvmargs=-Xmx8G -XX:MaxMetaspaceSize=4G -XX:ReservedCodeCacheSize=512m -XX:+HeapDumpOnOutOfMemoryError android.useAndroidX=true android.enableJetifier=true diff --git a/flutter/examples/image_list/android/gradle/wrapper/gradle-wrapper.properties b/flutter/examples/image_list/android/gradle/wrapper/gradle-wrapper.properties index e1ca574ef017c1bc00556b96ea372e2c07948771..afa1e8eb0a835ba6be2286d1b399c4e47b7a79a0 100644 --- a/flutter/examples/image_list/android/gradle/wrapper/gradle-wrapper.properties +++ b/flutter/examples/image_list/android/gradle/wrapper/gradle-wrapper.properties @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.3-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-all.zip diff --git a/flutter/examples/image_list/android/project-app.lockfile b/flutter/examples/image_list/android/project-app.lockfile index e160a81ffd42a36bca35a414c624786fdac26bc3..e914d37f4a11ec988f25450ed17567e21e048750 100644 --- a/flutter/examples/image_list/android/project-app.lockfile +++ b/flutter/examples/image_list/android/project-app.lockfile @@ -1,28 +1,39 @@ # 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,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.annotation:annotation-experimental:1.1.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.annotation:annotation:1.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.arch.core:core-common:2.1.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.arch.core:core-runtime:2.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.activity:activity:1.8.1=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.annotation:annotation-experimental:1.4.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.annotation:annotation-jvm:1.8.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.annotation:annotation:1.8.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.arch.core:core-common:2.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.arch.core:core-runtime:2.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath androidx.collection:collection:1.1.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.core:core:1.6.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.concurrent:concurrent-futures:1.1.0=debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath +androidx.core:core-ktx:1.13.1=debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.core:core-ktx:1.2.0=debugAndroidTestCompileClasspath +androidx.core:core:1.13.1=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath androidx.customview:customview:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.fragment:fragment:1.1.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.lifecycle:lifecycle-common-java8:2.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.lifecycle:lifecycle-common:2.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.lifecycle:lifecycle-livedata-core:2.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.lifecycle:lifecycle-livedata:2.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.lifecycle:lifecycle-runtime:2.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.lifecycle:lifecycle-viewmodel:2.1.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.fragment:fragment:1.7.1=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.interpolator:interpolator:1.0.0=debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-common-java8:2.7.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-common:2.7.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-livedata-core-ktx:2.7.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-livedata-core:2.7.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-livedata:2.7.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-process:2.7.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-runtime:2.7.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-viewmodel-savedstate:2.7.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-viewmodel:2.7.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath androidx.loader:loader:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.savedstate:savedstate:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.tracing:tracing:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.profileinstaller:profileinstaller:1.3.1=debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath +androidx.savedstate:savedstate:1.2.1=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.startup:startup-runtime:1.1.1=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.tracing:tracing:1.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath androidx.versionedparcelable:versionedparcelable:1.1.1=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath androidx.viewpager:viewpager:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.window:window-java:1.0.0-beta04=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.window:window:1.0.0-beta04=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.window.extensions.core:core:1.0.0=debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath +androidx.window:window-java:1.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.window:window:1.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath com.android.tools.analytics-library:protos:27.1.3=lintClassPath com.android.tools.analytics-library:shared:27.1.3=lintClassPath com.android.tools.analytics-library:tracker:27.1.3=lintClassPath @@ -36,6 +47,8 @@ com.android.tools.build:builder:4.1.3=lintClassPath com.android.tools.build:gradle-api:4.1.3=lintClassPath com.android.tools.build:manifest-merger:27.1.3=lintClassPath com.android.tools.ddms:ddmlib:27.1.3=lintClassPath +com.android.tools.ddms:ddmlib:31.7.0=_internal-unified-test-platform-android-device-provider-ddmlib +com.android.tools.emulator:proto:31.7.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention com.android.tools.external.com-intellij:intellij-core:27.1.3=lintClassPath com.android.tools.external.com-intellij:kotlin-compiler:27.1.3=lintClassPath com.android.tools.external.org-jetbrains:uast:27.1.3=lintClassPath @@ -46,36 +59,100 @@ com.android.tools.lint:lint-gradle-api:27.1.3=lintClassPath com.android.tools.lint:lint-gradle:27.1.3=lintClassPath com.android.tools.lint:lint-model:27.1.3=lintClassPath com.android.tools.lint:lint:27.1.3=lintClassPath +com.android.tools.utp:android-device-provider-ddmlib-proto:31.7.0=_internal-unified-test-platform-android-device-provider-ddmlib +com.android.tools.utp:android-device-provider-ddmlib:31.7.0=_internal-unified-test-platform-android-device-provider-ddmlib +com.android.tools.utp:android-device-provider-gradle-proto:31.7.0=_internal-unified-test-platform-android-device-provider-gradle +com.android.tools.utp:android-device-provider-gradle:31.7.0=_internal-unified-test-platform-android-device-provider-gradle +com.android.tools.utp:android-device-provider-profile-proto:31.7.0=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle +com.android.tools.utp:android-device-provider-profile:31.7.0=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle +com.android.tools.utp:android-test-plugin-host-additional-test-output-proto:31.7.0=_internal-unified-test-platform-android-test-plugin-host-additional-test-output +com.android.tools.utp:android-test-plugin-host-additional-test-output:31.7.0=_internal-unified-test-platform-android-test-plugin-host-additional-test-output +com.android.tools.utp:android-test-plugin-host-apk-installer-proto:31.7.0=_internal-unified-test-platform-android-test-plugin-host-apk-installer +com.android.tools.utp:android-test-plugin-host-apk-installer:31.7.0=_internal-unified-test-platform-android-test-plugin-host-apk-installer +com.android.tools.utp:android-test-plugin-host-coverage-proto:31.7.0=_internal-unified-test-platform-android-test-plugin-host-coverage +com.android.tools.utp:android-test-plugin-host-coverage:31.7.0=_internal-unified-test-platform-android-test-plugin-host-coverage +com.android.tools.utp:android-test-plugin-host-device-info-proto:31.7.0=_internal-unified-test-platform-android-test-plugin-host-device-info +com.android.tools.utp:android-test-plugin-host-device-info:31.7.0=_internal-unified-test-platform-android-test-plugin-host-device-info +com.android.tools.utp:android-test-plugin-host-emulator-control-proto:31.7.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control +com.android.tools.utp:android-test-plugin-host-emulator-control:31.7.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control +com.android.tools.utp:android-test-plugin-host-logcat-proto:31.7.0=_internal-unified-test-platform-android-test-plugin-host-logcat +com.android.tools.utp:android-test-plugin-host-logcat:31.7.0=_internal-unified-test-platform-android-test-plugin-host-logcat +com.android.tools.utp:android-test-plugin-host-retention-proto:31.7.0=_internal-unified-test-platform-android-test-plugin-host-retention +com.android.tools.utp:android-test-plugin-host-retention:31.7.0=_internal-unified-test-platform-android-test-plugin-host-retention +com.android.tools.utp:android-test-plugin-result-listener-gradle-proto:31.7.0=_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.android.tools.utp:android-test-plugin-result-listener-gradle:31.7.0=_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.android.tools.utp:utp-common:31.7.0=_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention com.android.tools:annotations:27.1.3=lintClassPath +com.android.tools:annotations:31.7.0=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle com.android.tools:common:27.1.3=lintClassPath +com.android.tools:common:31.7.0=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle com.android.tools:dvlib:27.1.3=lintClassPath com.android.tools:repository:27.1.3=lintClassPath com.android.tools:sdk-common:27.1.3=lintClassPath com.android.tools:sdklib:27.1.3=lintClassPath com.android:signflinger:4.1.3=lintClassPath com.android:zipflinger:4.1.3=lintClassPath -com.google.code.findbugs:jsr305:3.0.2=lintClassPath +com.getkeepsafe.relinker:relinker:1.4.5=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.android:annotations:4.1.1.4=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.google.api.grpc:proto-google-common-protos:2.17.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.google.code.findbugs:jsr305:3.0.2=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle,lintClassPath +com.google.code.gson:gson:2.10.1=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle com.google.code.gson:gson:2.8.5=lintClassPath +com.google.crypto.tink:tink:1.7.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control +com.google.errorprone:error_prone_annotations:2.18.0=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle com.google.errorprone:error_prone_annotations:2.3.2=lintClassPath -com.google.guava:failureaccess:1.0.1=lintClassPath +com.google.guava:failureaccess:1.0.1=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle,lintClassPath com.google.guava:guava:28.1-jre=lintClassPath -com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava=lintClassPath +com.google.guava:guava:32.0.1-jre=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.google.guava:listenablefuture:1.0=debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath +com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle,lintClassPath com.google.j2objc:j2objc-annotations:1.3=lintClassPath +com.google.j2objc:j2objc-annotations:2.8=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle com.google.jimfs:jimfs:1.1=lintClassPath com.google.protobuf:protobuf-java:3.10.0=lintClassPath +com.google.protobuf:protobuf-java:3.22.3=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.google.testing.platform:android-device-provider-local:0.0.9-alpha02=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.google.testing.platform:android-driver-instrumentation:0.0.9-alpha02=_internal-unified-test-platform-android-driver-instrumentation,_internal-unified-test-platform-android-test-plugin-host-emulator-control +com.google.testing.platform:android-test-plugin:0.0.9-alpha02=_internal-unified-test-platform-android-test-plugin +com.google.testing.platform:core-proto:0.0.9-alpha02=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.google.testing.platform:core:0.0.9-alpha02=_internal-unified-test-platform-core +com.google.testing.platform:launcher:0.0.9-alpha02=_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-launcher com.googlecode.json-simple:json-simple:1.1=lintClassPath com.squareup:javawriter:2.5.0=lintClassPath com.sun.activation:javax.activation:1.2.0=lintClassPath com.sun.istack:istack-commons-runtime:3.0.7=lintClassPath com.sun.xml.fastinfoset:FastInfoset:1.2.15=lintClassPath commons-codec:commons-codec:1.10=lintClassPath +commons-io:commons-io:2.13.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention commons-logging:commons-logging:1.2=lintClassPath +io.grpc:grpc-api:1.57.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.grpc:grpc-context:1.57.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.grpc:grpc-core:1.57.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.grpc:grpc-netty:1.57.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.grpc:grpc-protobuf-lite:1.57.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.grpc:grpc-protobuf:1.57.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.grpc:grpc-stub:1.57.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-buffer:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-codec-http2:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-codec-http:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-codec-socks:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-codec:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-common:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-handler-proxy:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-handler:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-resolver:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-transport-native-unix-common:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-transport:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.perfmark:perfmark-api:0.26.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle it.unimi.dsi:fastutil:7.2.0=lintClassPath javax.activation:javax.activation-api:1.2.0=lintClassPath +javax.annotation:javax.annotation-api:1.3.2=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle javax.inject:javax.inject:1=lintClassPath javax.xml.bind:jaxb-api:2.3.1=lintClassPath +net.java.dev.jna:jna-platform:5.6.0=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +net.java.dev.jna:jna:5.6.0=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle net.sf.jopt-simple:jopt-simple:4.9=lintClassPath -net.sf.kxml:kxml2:2.3.0=lintClassPath +net.sf.kxml:kxml2:2.3.0=_internal-unified-test-platform-android-device-provider-ddmlib,lintClassPath org.apache.commons:commons-compress:1.12=lintClassPath org.apache.httpcomponents:httpclient:4.5.6=lintClassPath org.apache.httpcomponents:httpcore:4.4.10=lintClassPath @@ -83,8 +160,10 @@ org.apache.httpcomponents:httpmime:4.5.6=lintClassPath org.bouncycastle:bcpkix-jdk15on:1.56=lintClassPath org.bouncycastle:bcprov-jdk15on:1.56=lintClassPath org.checkerframework:checker-qual:2.8.1=lintClassPath +org.checkerframework:checker-qual:3.33.0=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle org.codehaus.groovy:groovy-all:2.4.15=lintClassPath org.codehaus.mojo:animal-sniffer-annotations:1.18=lintClassPath +org.codehaus.mojo:animal-sniffer-annotations:1.23=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle org.glassfish.jaxb:jaxb-runtime:2.3.1=lintClassPath org.glassfish.jaxb:txw2:2.3.1=lintClassPath org.jacoco:org.jacoco.agent:0.8.7=androidJacocoAnt @@ -93,18 +172,27 @@ org.jacoco:org.jacoco.core:0.8.7=androidJacocoAnt org.jacoco:org.jacoco.report:0.8.7=androidJacocoAnt org.jetbrains.kotlin:kotlin-reflect:1.3.72=lintClassPath org.jetbrains.kotlin:kotlin-stdlib-common:1.3.72=lintClassPath -org.jetbrains.kotlin:kotlin-stdlib-common:1.5.31=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-common:1.8.22=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-common:1.9.20=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.3.72=lintClassPath -org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.5.30=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.8.20=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.9.20=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.72=lintClassPath -org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.5.30=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.8.20=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.9.20=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle org.jetbrains.kotlin:kotlin-stdlib:1.3.72=lintClassPath -org.jetbrains.kotlin:kotlin-stdlib:1.5.31=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.2=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.5.2=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib:1.8.22=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib:1.9.20=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.1=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-bom:1.6.4=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +org.jetbrains.kotlinx:kotlinx-coroutines-bom:1.7.1=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.6.4=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.7.1=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.1=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath org.jetbrains.trove4j:trove4j:20160824=lintClassPath -org.jetbrains:annotations:13.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,lintClassPath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains:annotations:13.0=_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle,lintClassPath +org.jetbrains:annotations:23.0.0=_internal-unified-test-platform-android-device-provider-ddmlib,debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath org.jvnet.staxex:stax-ex:1.8=lintClassPath org.ow2.asm:asm-analysis:7.0=lintClassPath org.ow2.asm:asm-analysis:9.1=androidJacocoAnt diff --git a/flutter/examples/image_list/android/settings.gradle b/flutter/examples/image_list/android/settings.gradle index 03ae72d135c01f849e6812b36575b62b14fee791..4a155b35ec304af4a4baaf5f5fcbe6d0ac296764 100644 --- a/flutter/examples/image_list/android/settings.gradle +++ b/flutter/examples/image_list/android/settings.gradle @@ -6,16 +6,36 @@ // To update all the settings.gradle files in the Flutter repo, // See dev/tools/bin/generate_gradle_lockfiles.dart. -include ':app' +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() -enableFeaturePreview('ONE_LOCKFILE_PER_PROJECT') + includeBuild("${settings.ext.flutterSdkPath}/packages/flutter_tools/gradle") -def localPropertiesFile = new File(rootProject.projectDir, "local.properties") -def properties = new Properties() + repositories { + google() + mavenCentral() + gradlePluginPortal() + } +} -assert localPropertiesFile.exists() -localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) } +buildscript { + dependencyLocking { + lockFile = file("${rootProject.projectDir}/buildscript-gradle.lockfile") + lockAllConfigurations() + } +} -def flutterSdkPath = properties.getProperty("flutter.sdk") -assert flutterSdkPath != null, "flutter.sdk not set in local.properties" -apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle" +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" diff --git a/flutter/examples/image_list/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/flutter/examples/image_list/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme index a00db7a9e12a704a72a09581cfe235a7f58061ec..4430d329ff9b88c58e9113cdd77a1d07cb96d474 100644 --- a/flutter/examples/image_list/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme +++ b/flutter/examples/image_list/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme @@ -52,6 +52,7 @@ ignoresPersistentStateOnLaunch = "NO" debugDocumentVersioning = "YES" debugServiceExtension = "internal" + enableGPUValidationMode = "1" allowLocationSimulation = "YES"> diff --git a/flutter/examples/image_list/lib/main.dart b/flutter/examples/image_list/lib/main.dart index 5c7522263baf37f5d7fba819e8a65c3e06625042..5925cd262069fa9c54c592e3572ff5b65af906ee 100644 --- a/flutter/examples/image_list/lib/main.dart +++ b/flutter/examples/image_list/lib/main.dart @@ -82,7 +82,7 @@ class MyHttpOverrides extends HttpOverrides { @override HttpClient createHttpClient(SecurityContext? context) { return super.createHttpClient( - (context ?? SecurityContext())..setTrustedCertificatesBytes(certificate.codeUnits), + (context ?? SecurityContext())..setTrustedCertificatesBytes(certificate.codeUnits), ); } } @@ -90,12 +90,12 @@ class MyHttpOverrides extends HttpOverrides { Future main() async { HttpOverrides.global = MyHttpOverrides(); - final SecurityContext serverContext = SecurityContext() - ..useCertificateChainBytes(certificate.codeUnits) - ..usePrivateKeyBytes(privateKey.codeUnits); + final SecurityContext serverContext = + SecurityContext() + ..useCertificateChainBytes(certificate.codeUnits) + ..usePrivateKeyBytes(privateKey.codeUnits); - final HttpServer httpServer = - await HttpServer.bindSecure('localhost', 0, serverContext); + final HttpServer httpServer = await HttpServer.bindSecure('localhost', 0, serverContext); final int port = httpServer.port; debugPrint('Listening on port $port.'); @@ -131,9 +131,7 @@ class MyApp extends StatelessWidget { Widget build(BuildContext context) { return MaterialApp( title: 'Flutter Demo', - theme: ThemeData( - primarySwatch: Colors.blue, - ), + theme: ThemeData(primarySwatch: Colors.blue), home: MyHomePage(title: 'Flutter Demo Home Page', port: port), ); } @@ -159,18 +157,13 @@ class _MyHomePageState extends State with TickerProviderStateMixin { Widget createImage(final int index, final Completer completer) { return Image.network( - 'https://localhost:${widget.port}/${_counter * images + index}', - frameBuilder: ( - BuildContext context, - Widget child, - int? frame, - bool wasSynchronouslyLoaded, - ) { - if (frame == 0 && !completer.isCompleted) { - completer.complete(true); - } - return child; - }, + 'https://localhost:${widget.port}/${_counter * images + index}', + frameBuilder: (BuildContext context, Widget child, int? frame, bool wasSynchronouslyLoaded) { + if (frame == 0 && !completer.isCompleted) { + completer.complete(true); + } + return child; + }, ); } @@ -178,18 +171,13 @@ class _MyHomePageState extends State with TickerProviderStateMixin { Widget build(BuildContext context) { final List controllers = [ for (int i = 0; i < images; i++) - AnimationController( - duration: const Duration(milliseconds: 3600), - vsync: this, - )..repeat(), + AnimationController(duration: const Duration(milliseconds: 3600), vsync: this)..repeat(), ]; final List> completers = >[ - for (int i = 0; i < images; i++) - Completer(), + for (int i = 0; i < images; i++) Completer(), ]; - final List> futures = completers.map( - (Completer completer) => completer.future, - ).toList(); + final List> futures = + completers.map((Completer completer) => completer.future).toList(); final DateTime started = DateTime.now(); Future.wait(futures).then((_) { debugPrint( @@ -197,21 +185,14 @@ class _MyHomePageState extends State with TickerProviderStateMixin { ); }); return Scaffold( - appBar: AppBar( - title: Text(widget.title), - ), + appBar: AppBar(title: Text(widget.title)), body: Center( child: Column( mainAxisAlignment: MainAxisAlignment.center, children: [ Row(children: createImageList(images, completers, controllers)), - const Text( - 'You have pushed the button this many times:', - ), - Text( - '$_counter', - style: Theme.of(context).textTheme.headlineMedium, - ), + const Text('You have pushed the button this many times:'), + Text('$_counter', style: Theme.of(context).textTheme.headlineMedium), ], ), ), @@ -230,14 +211,16 @@ class _MyHomePageState extends State with TickerProviderStateMixin { ) { final List list = []; for (int i = 0; i < count; i++) { - list.add(Flexible( - fit: FlexFit.tight, - flex: i + 1, - child: RotationTransition( - turns: controllers[i], - child: createImage(i + 1, completers[i]), + list.add( + Flexible( + fit: FlexFit.tight, + flex: i + 1, + child: RotationTransition( + turns: controllers[i], + child: createImage(i + 1, completers[i]), + ), ), - )); + ); } return list; } diff --git a/flutter/examples/image_list/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/flutter/examples/image_list/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme index 95ef0b61381557625e5a00317f32a70dd41a73d3..dcc468c2fe52d09b46e1e650958f0e69c333c65d 100644 --- a/flutter/examples/image_list/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme +++ b/flutter/examples/image_list/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme @@ -48,6 +48,7 @@ ignoresPersistentStateOnLaunch = "NO" debugDocumentVersioning = "YES" debugServiceExtension = "internal" + enableGPUValidationMode = "1" allowLocationSimulation = "YES"> diff --git a/flutter/examples/image_list/macos/Runner/AppDelegate.swift b/flutter/examples/image_list/macos/Runner/AppDelegate.swift index d080d41951d3506a861ceadcf4354bbbb609a562..573ad7b432ae4637bfcb6ba0131363199cba1076 100644 --- a/flutter/examples/image_list/macos/Runner/AppDelegate.swift +++ b/flutter/examples/image_list/macos/Runner/AppDelegate.swift @@ -5,9 +5,13 @@ import Cocoa import FlutterMacOS -@NSApplicationMain +@main class AppDelegate: FlutterAppDelegate { override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool { return true } + + override func applicationSupportsSecureRestorableState(_ app: NSApplication) -> Bool { + return true + } } diff --git a/flutter/examples/image_list/pubspec.yaml b/flutter/examples/image_list/pubspec.yaml index 8a6d11936ec168f6e17adec464a708e72abcc0b9..f0e9dfc36d52513ba7810f6bbae249232c77d82b 100644 --- a/flutter/examples/image_list/pubspec.yaml +++ b/flutter/examples/image_list/pubspec.yaml @@ -4,7 +4,7 @@ description: Simple Flutter project used for benchmarking image loading over net version: 1.0.0+1 environment: - sdk: '>=3.2.0-0 <4.0.0' + sdk: ^3.7.0-0 dependencies: flutter: @@ -12,12 +12,12 @@ dependencies: # The following adds the Cupertino Icons font to your application. # Use with the CupertinoIcons class for iOS style icons. - cupertino_icons: 1.0.6 + cupertino_icons: 1.0.8 - characters: 1.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - collection: 1.18.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - material_color_utilities: 0.8.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - meta: 1.11.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + characters: 1.4.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + collection: 1.19.1 # 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.16.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" dev_dependencies: @@ -29,22 +29,22 @@ dev_dependencies: # The following section is specific to Flutter. - async: 2.11.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - boolean_selector: 2.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - clock: 1.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - fake_async: 1.3.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - leak_tracker: 10.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - leak_tracker_flutter_testing: 2.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - leak_tracker_testing: 2.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - matcher: 0.12.16+1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - path: 1.9.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - source_span: 1.10.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - stack_trace: 1.11.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - stream_channel: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - string_scanner: 1.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - term_glyph: 1.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - test_api: 0.6.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - vm_service: 13.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + async: 2.13.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + boolean_selector: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + clock: 1.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + fake_async: 1.3.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + leak_tracker: 10.0.9 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + leak_tracker_flutter_testing: 3.0.9 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + leak_tracker_testing: 3.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + matcher: 0.12.17 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + path: 1.9.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + source_span: 1.10.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + stack_trace: 1.12.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + stream_channel: 2.1.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + string_scanner: 1.4.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + term_glyph: 1.2.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + test_api: 0.7.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + vm_service: 15.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" flutter: @@ -57,4 +57,4 @@ flutter: assets: - images/coast.jpg -# PUBSPEC CHECKSUM: 58cb +# PUBSPEC CHECKSUM: 16cd diff --git a/flutter/examples/layers/README.md b/flutter/examples/layers/README.md index d888e5e26005522d61afc66b05a701830089afa5..c0044d138e63f81c740f35ad96e342e1a0f12d1b 100644 --- a/flutter/examples/layers/README.md +++ b/flutter/examples/layers/README.md @@ -21,7 +21,7 @@ Flutter's layered architecture. To run each example, specify the demo file on the `flutter run` command line, for example: -``` +```sh flutter run raw/spinning_square.dart flutter run rendering/spinning_square.dart flutter run widgets/spinning_square.dart diff --git a/flutter/examples/layers/android/app/build.gradle b/flutter/examples/layers/android/app/build.gradle index 322731cf699bbc74a639909f2ef6fa18589b2ac7..3cb9dd323cee9ca8f7f0e782d3fd389d56b3af63 100644 --- a/flutter/examples/layers/android/app/build.gradle +++ b/flutter/examples/layers/android/app/build.gradle @@ -2,36 +2,24 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -def localProperties = new Properties() -def localPropertiesFile = rootProject.file('local.properties') -if (localPropertiesFile.exists()) { - localPropertiesFile.withReader('UTF-8') { reader -> - localProperties.load(reader) - } -} - -def flutterRoot = localProperties.getProperty('flutter.sdk') -if (flutterRoot == null) { - throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") -} - -def flutterVersionCode = localProperties.getProperty('flutter.versionCode') -if (flutterVersionCode == null) { - flutterVersionCode = '1' +plugins { + id "com.android.application" + id "dev.flutter.flutter-gradle-plugin" } -def flutterVersionName = localProperties.getProperty('flutter.versionName') -if (flutterVersionName == null) { - flutterVersionName = '1.0' -} - -apply plugin: 'com.android.application' -apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" - android { namespace "io.flutter.examples.Layers" compileSdk flutter.compileSdkVersion + // Flutter's CI installs the NDK at a non-standard path. + // This non-standard structure is initially created by + // https://github.com/flutter/engine/blob/3.27.0/tools/android_sdk/create_cipd_packages.sh. + String systemNdkPath = System.getenv("ANDROID_NDK_PATH") + if (systemNdkPath != null) { + ndkVersion = flutter.ndkVersion + ndkPath = systemNdkPath + } + compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 @@ -41,8 +29,8 @@ android { applicationId "io.flutter.examples.layers" minSdkVersion flutter.minSdkVersion targetSdkVersion flutter.targetSdkVersion - versionCode flutterVersionCode.toInteger() - versionName flutterVersionName + versionCode flutter.versionCode + versionName flutter.versionName } buildTypes { diff --git a/flutter/examples/layers/android/app/src/main/AndroidManifest.xml b/flutter/examples/layers/android/app/src/main/AndroidManifest.xml index 0184de100a97521885c53b665c3c42880cd39de4..4bd555617c63028574230361bc9b1d7370581811 100644 --- a/flutter/examples/layers/android/app/src/main/AndroidManifest.xml +++ b/flutter/examples/layers/android/app/src/main/AndroidManifest.xml @@ -29,7 +29,7 @@ found in the LICENSE file. --> android:value="2" /> diff --git a/flutter/examples/layers/android/build.gradle b/flutter/examples/layers/android/build.gradle index 2de20623576a82c3115eca8b1bdb56fd5b5051cb..a9cc5e6a9cfae783646a78f195efc04afe934513 100644 --- a/flutter/examples/layers/android/build.gradle +++ b/flutter/examples/layers/android/build.gradle @@ -6,23 +6,6 @@ // To update all the build.gradle files in the Flutter repo, // See dev/tools/bin/generate_gradle_lockfiles.dart. -buildscript { - ext.kotlin_version = '1.5.31' - repositories { - google() - mavenCentral() - } - - dependencies { - classpath 'com.android.tools.build:gradle:7.2.0' - classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" - } - - configurations.classpath { - resolutionStrategy.activateDependencyLocking() - } -} - allprojects { repositories { google() @@ -30,10 +13,10 @@ allprojects { } } -rootProject.buildDir = '../build' +rootProject.layout.buildDirectory.value(rootProject.layout.buildDirectory.dir("../../build").get()) subprojects { - project.buildDir = "${rootProject.buildDir}/${project.name}" + project.layout.buildDirectory.value(rootProject.layout.buildDirectory.dir(project.name).get()) } subprojects { project.evaluationDependsOn(':app') @@ -47,5 +30,5 @@ subprojects { } tasks.register("clean", Delete) { - delete rootProject.buildDir + delete rootProject.layout.buildDirectory } diff --git a/flutter/examples/layers/android/buildscript-gradle.lockfile b/flutter/examples/layers/android/buildscript-gradle.lockfile index efe13277310ee8fef3c9d7f6f8a2cbbe601d110f..545abc59e924a9127dd0d66b4c85bb9e855adb90 100644 --- a/flutter/examples/layers/android/buildscript-gradle.lockfile +++ b/flutter/examples/layers/android/buildscript-gradle.lockfile @@ -1,71 +1,68 @@ # 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:7.2.0=classpath -androidx.databinding:databinding-compiler-common:7.2.0=classpath -com.android.databinding:baseLibrary:7.2.0=classpath -com.android.tools.analytics-library:crash:30.2.0=classpath -com.android.tools.analytics-library:protos:30.2.0=classpath -com.android.tools.analytics-library:shared:30.2.0=classpath -com.android.tools.analytics-library:tracker:30.2.0=classpath -com.android.tools.build.jetifier:jetifier-core:1.0.0-beta09=classpath -com.android.tools.build.jetifier:jetifier-processor:1.0.0-beta09=classpath -com.android.tools.build:aapt2-proto:7.2.0-7984345=classpath -com.android.tools.build:aaptcompiler:7.2.0=classpath -com.android.tools.build:apksig:7.2.0=classpath -com.android.tools.build:apkzlib:7.2.0=classpath -com.android.tools.build:builder-model:7.2.0=classpath -com.android.tools.build:builder-test-api:7.2.0=classpath -com.android.tools.build:builder:7.2.0=classpath -com.android.tools.build:bundletool:1.8.2=classpath -com.android.tools.build:gradle-api:7.2.0=classpath -com.android.tools.build:gradle:7.2.0=classpath -com.android.tools.build:manifest-merger:30.2.0=classpath +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:30.2.0=classpath -com.android.tools.layoutlib:layoutlib-api:30.2.0=classpath -com.android.tools.lint:lint-model:30.2.0=classpath -com.android.tools.lint:lint-typedef-remover:30.2.0=classpath -com.android.tools.utp:android-device-provider-ddmlib-proto:30.2.0=classpath -com.android.tools.utp:android-device-provider-gradle-proto:30.2.0=classpath -com.android.tools.utp:android-test-plugin-host-additional-test-output-proto:30.2.0=classpath -com.android.tools.utp:android-test-plugin-host-coverage-proto:30.2.0=classpath -com.android.tools.utp:android-test-plugin-host-retention-proto:30.2.0=classpath -com.android.tools.utp:android-test-plugin-result-listener-gradle-proto:30.2.0=classpath -com.android.tools:annotations:30.2.0=classpath -com.android.tools:common:30.2.0=classpath -com.android.tools:dvlib:30.2.0=classpath -com.android.tools:repository:30.2.0=classpath -com.android.tools:sdk-common:30.2.0=classpath -com.android.tools:sdklib:30.2.0=classpath -com.android:signflinger:7.2.0=classpath -com.android:zipflinger:7.2.0=classpath -com.fasterxml.jackson.core:jackson-annotations:2.11.1=classpath -com.fasterxml.jackson.core:jackson-core:2.11.1=classpath -com.fasterxml.jackson.core:jackson-databind:2.11.1=classpath -com.fasterxml.jackson.dataformat:jackson-dataformat-xml:2.11.1=classpath -com.fasterxml.jackson.module:jackson-module-jaxb-annotations:2.11.1=classpath -com.fasterxml.jackson.module:jackson-module-kotlin:2.11.1=classpath -com.fasterxml.woodstox:woodstox-core:6.2.1=classpath -com.github.gundy:semver4j:0.16.4=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:1.12.0=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.8.6=classpath -com.google.crypto.tink:tink:1.3.0-rc2=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.3.4=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:30.1-jre=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:1.3=classpath +com.google.j2objc:j2objc-annotations:2.8=classpath com.google.jimfs:jimfs:1.1=classpath -com.google.protobuf:protobuf-java-util:3.10.0=classpath -com.google.protobuf:protobuf-java:3.10.0=classpath -com.google.testing.platform:core-proto:0.0.8-alpha07=classpath -com.googlecode.json-simple:json-simple: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 @@ -73,91 +70,89 @@ 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.4=classpath +commons-io:commons-io:2.13.0=classpath commons-logging:commons-logging:1.2=classpath -de.undercouch:gradle-download-task:4.1.1=classpath -io.grpc:grpc-api:1.21.1=classpath -io.grpc:grpc-context:1.21.1=classpath -io.grpc:grpc-core:1.21.1=classpath -io.grpc:grpc-netty:1.21.1=classpath -io.grpc:grpc-protobuf-lite:1.21.1=classpath -io.grpc:grpc-protobuf:1.21.1=classpath -io.grpc:grpc-stub:1.21.1=classpath -io.netty:netty-buffer:4.1.34.Final=classpath -io.netty:netty-codec-http2:4.1.34.Final=classpath -io.netty:netty-codec-http:4.1.34.Final=classpath -io.netty:netty-codec-socks:4.1.34.Final=classpath -io.netty:netty-codec:4.1.34.Final=classpath -io.netty:netty-common:4.1.34.Final=classpath -io.netty:netty-handler-proxy:4.1.34.Final=classpath -io.netty:netty-handler:4.1.34.Final=classpath -io.netty:netty-resolver:4.1.34.Final=classpath -io.netty:netty-transport:4.1.34.Final=classpath -io.opencensus:opencensus-api:0.21.0=classpath -io.opencensus:opencensus-contrib-grpc-metrics:0.21.0=classpath -it.unimi.dsi:fastutil:8.4.0=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.20=classpath -org.apache.httpcomponents:httpclient:4.5.9=classpath -org.apache.httpcomponents:httpcore:4.4.11=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.7.0=classpath -org.bouncycastle:bcpkix-jdk15on:1.56=classpath -org.bouncycastle:bcprov-jdk15on:1.56=classpath -org.checkerframework:checker-qual:3.5.0=classpath -org.codehaus.mojo:animal-sniffer-annotations:1.17=classpath -org.codehaus.woodstox:stax2-api:4.2.1=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.dokka:dokka-core:1.4.32=classpath -org.jetbrains.intellij.deps:trove4j:1.0.20181211=classpath -org.jetbrains.kotlin:kotlin-android-extensions:1.5.31=classpath -org.jetbrains.kotlin:kotlin-annotation-processing-gradle:1.5.31=classpath -org.jetbrains.kotlin:kotlin-build-common:1.5.31=classpath -org.jetbrains.kotlin:kotlin-compiler-embeddable:1.5.31=classpath -org.jetbrains.kotlin:kotlin-compiler-runner:1.5.31=classpath -org.jetbrains.kotlin:kotlin-daemon-client:1.5.31=classpath -org.jetbrains.kotlin:kotlin-daemon-embeddable:1.5.31=classpath -org.jetbrains.kotlin:kotlin-gradle-plugin-api:1.5.31=classpath -org.jetbrains.kotlin:kotlin-gradle-plugin-model:1.5.31=classpath -org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.31=classpath -org.jetbrains.kotlin:kotlin-klib-commonizer-api:1.5.31=classpath -org.jetbrains.kotlin:kotlin-native-utils:1.5.31=classpath -org.jetbrains.kotlin:kotlin-project-model:1.5.31=classpath -org.jetbrains.kotlin:kotlin-reflect:1.5.31=classpath -org.jetbrains.kotlin:kotlin-scripting-common:1.5.31=classpath -org.jetbrains.kotlin:kotlin-scripting-compiler-embeddable:1.5.31=classpath -org.jetbrains.kotlin:kotlin-scripting-compiler-impl-embeddable:1.5.31=classpath -org.jetbrains.kotlin:kotlin-scripting-jvm:1.5.31=classpath -org.jetbrains.kotlin:kotlin-stdlib-common:1.5.31=classpath -org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.5.31=classpath -org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.5.31=classpath -org.jetbrains.kotlin:kotlin-stdlib:1.5.31=classpath -org.jetbrains.kotlin:kotlin-tooling-metadata:1.5.31=classpath -org.jetbrains.kotlin:kotlin-util-io:1.5.31=classpath -org.jetbrains.kotlin:kotlin-util-klib:1.5.31=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-common:1.9.20=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.kotlinx:kotlinx-coroutines-core:1.5.0=classpath -org.jetbrains:annotations:13.0=classpath -org.jetbrains:markdown-jvm:0.2.1=classpath -org.jetbrains:markdown:0.2.1=classpath -org.json:json:20180813=classpath -org.jsoup:jsoup:1.13.1=classpath +org.jetbrains.kotlinx:kotlinx-serialization-core-jvm:1.4.0=classpath +org.jetbrains.kotlinx:kotlinx-serialization-core:1.4.0=classpath +org.jetbrains.kotlinx:kotlinx-serialization-json-jvm:1.4.0=classpath +org.jetbrains.kotlinx:kotlinx-serialization-json:1.4.0=classpath +org.jetbrains:annotations:23.0.0=classpath org.jvnet.staxex:stax-ex:1.8.1=classpath -org.ow2.asm:asm-analysis:9.1=classpath -org.ow2.asm:asm-commons:9.1=classpath -org.ow2.asm:asm-tree:9.1=classpath -org.ow2.asm:asm-util:9.1=classpath -org.ow2.asm:asm:9.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 -xerces:xercesImpl:2.12.0=classpath -xml-apis:xml-apis:1.4.01=classpath empty= diff --git a/flutter/examples/layers/android/gradle.properties b/flutter/examples/layers/android/gradle.properties index 598d13fee446372f156ecc38527b54c7cdcc8e3b..f018a61817f55e78bb92ce8df2dda423ec570a4a 100644 --- a/flutter/examples/layers/android/gradle.properties +++ b/flutter/examples/layers/android/gradle.properties @@ -1,3 +1,3 @@ -org.gradle.jvmargs=-Xmx4G +org.gradle.jvmargs=-Xmx8G -XX:MaxMetaspaceSize=4G -XX:ReservedCodeCacheSize=512m -XX:+HeapDumpOnOutOfMemoryError android.useAndroidX=true android.enableJetifier=true diff --git a/flutter/examples/layers/android/gradle/wrapper/gradle-wrapper.properties b/flutter/examples/layers/android/gradle/wrapper/gradle-wrapper.properties index e1ca574ef017c1bc00556b96ea372e2c07948771..afa1e8eb0a835ba6be2286d1b399c4e47b7a79a0 100644 --- a/flutter/examples/layers/android/gradle/wrapper/gradle-wrapper.properties +++ b/flutter/examples/layers/android/gradle/wrapper/gradle-wrapper.properties @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.3-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-all.zip diff --git a/flutter/examples/layers/android/project-app.lockfile b/flutter/examples/layers/android/project-app.lockfile index e160a81ffd42a36bca35a414c624786fdac26bc3..e914d37f4a11ec988f25450ed17567e21e048750 100644 --- a/flutter/examples/layers/android/project-app.lockfile +++ b/flutter/examples/layers/android/project-app.lockfile @@ -1,28 +1,39 @@ # 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,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.annotation:annotation-experimental:1.1.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.annotation:annotation:1.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.arch.core:core-common:2.1.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.arch.core:core-runtime:2.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.activity:activity:1.8.1=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.annotation:annotation-experimental:1.4.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.annotation:annotation-jvm:1.8.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.annotation:annotation:1.8.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.arch.core:core-common:2.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.arch.core:core-runtime:2.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath androidx.collection:collection:1.1.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.core:core:1.6.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.concurrent:concurrent-futures:1.1.0=debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath +androidx.core:core-ktx:1.13.1=debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.core:core-ktx:1.2.0=debugAndroidTestCompileClasspath +androidx.core:core:1.13.1=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath androidx.customview:customview:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.fragment:fragment:1.1.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.lifecycle:lifecycle-common-java8:2.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.lifecycle:lifecycle-common:2.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.lifecycle:lifecycle-livedata-core:2.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.lifecycle:lifecycle-livedata:2.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.lifecycle:lifecycle-runtime:2.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.lifecycle:lifecycle-viewmodel:2.1.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.fragment:fragment:1.7.1=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.interpolator:interpolator:1.0.0=debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-common-java8:2.7.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-common:2.7.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-livedata-core-ktx:2.7.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-livedata-core:2.7.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-livedata:2.7.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-process:2.7.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-runtime:2.7.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-viewmodel-savedstate:2.7.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-viewmodel:2.7.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath androidx.loader:loader:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.savedstate:savedstate:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.tracing:tracing:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.profileinstaller:profileinstaller:1.3.1=debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath +androidx.savedstate:savedstate:1.2.1=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.startup:startup-runtime:1.1.1=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.tracing:tracing:1.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath androidx.versionedparcelable:versionedparcelable:1.1.1=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath androidx.viewpager:viewpager:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.window:window-java:1.0.0-beta04=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.window:window:1.0.0-beta04=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.window.extensions.core:core:1.0.0=debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath +androidx.window:window-java:1.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.window:window:1.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath com.android.tools.analytics-library:protos:27.1.3=lintClassPath com.android.tools.analytics-library:shared:27.1.3=lintClassPath com.android.tools.analytics-library:tracker:27.1.3=lintClassPath @@ -36,6 +47,8 @@ com.android.tools.build:builder:4.1.3=lintClassPath com.android.tools.build:gradle-api:4.1.3=lintClassPath com.android.tools.build:manifest-merger:27.1.3=lintClassPath com.android.tools.ddms:ddmlib:27.1.3=lintClassPath +com.android.tools.ddms:ddmlib:31.7.0=_internal-unified-test-platform-android-device-provider-ddmlib +com.android.tools.emulator:proto:31.7.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention com.android.tools.external.com-intellij:intellij-core:27.1.3=lintClassPath com.android.tools.external.com-intellij:kotlin-compiler:27.1.3=lintClassPath com.android.tools.external.org-jetbrains:uast:27.1.3=lintClassPath @@ -46,36 +59,100 @@ com.android.tools.lint:lint-gradle-api:27.1.3=lintClassPath com.android.tools.lint:lint-gradle:27.1.3=lintClassPath com.android.tools.lint:lint-model:27.1.3=lintClassPath com.android.tools.lint:lint:27.1.3=lintClassPath +com.android.tools.utp:android-device-provider-ddmlib-proto:31.7.0=_internal-unified-test-platform-android-device-provider-ddmlib +com.android.tools.utp:android-device-provider-ddmlib:31.7.0=_internal-unified-test-platform-android-device-provider-ddmlib +com.android.tools.utp:android-device-provider-gradle-proto:31.7.0=_internal-unified-test-platform-android-device-provider-gradle +com.android.tools.utp:android-device-provider-gradle:31.7.0=_internal-unified-test-platform-android-device-provider-gradle +com.android.tools.utp:android-device-provider-profile-proto:31.7.0=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle +com.android.tools.utp:android-device-provider-profile:31.7.0=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle +com.android.tools.utp:android-test-plugin-host-additional-test-output-proto:31.7.0=_internal-unified-test-platform-android-test-plugin-host-additional-test-output +com.android.tools.utp:android-test-plugin-host-additional-test-output:31.7.0=_internal-unified-test-platform-android-test-plugin-host-additional-test-output +com.android.tools.utp:android-test-plugin-host-apk-installer-proto:31.7.0=_internal-unified-test-platform-android-test-plugin-host-apk-installer +com.android.tools.utp:android-test-plugin-host-apk-installer:31.7.0=_internal-unified-test-platform-android-test-plugin-host-apk-installer +com.android.tools.utp:android-test-plugin-host-coverage-proto:31.7.0=_internal-unified-test-platform-android-test-plugin-host-coverage +com.android.tools.utp:android-test-plugin-host-coverage:31.7.0=_internal-unified-test-platform-android-test-plugin-host-coverage +com.android.tools.utp:android-test-plugin-host-device-info-proto:31.7.0=_internal-unified-test-platform-android-test-plugin-host-device-info +com.android.tools.utp:android-test-plugin-host-device-info:31.7.0=_internal-unified-test-platform-android-test-plugin-host-device-info +com.android.tools.utp:android-test-plugin-host-emulator-control-proto:31.7.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control +com.android.tools.utp:android-test-plugin-host-emulator-control:31.7.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control +com.android.tools.utp:android-test-plugin-host-logcat-proto:31.7.0=_internal-unified-test-platform-android-test-plugin-host-logcat +com.android.tools.utp:android-test-plugin-host-logcat:31.7.0=_internal-unified-test-platform-android-test-plugin-host-logcat +com.android.tools.utp:android-test-plugin-host-retention-proto:31.7.0=_internal-unified-test-platform-android-test-plugin-host-retention +com.android.tools.utp:android-test-plugin-host-retention:31.7.0=_internal-unified-test-platform-android-test-plugin-host-retention +com.android.tools.utp:android-test-plugin-result-listener-gradle-proto:31.7.0=_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.android.tools.utp:android-test-plugin-result-listener-gradle:31.7.0=_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.android.tools.utp:utp-common:31.7.0=_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention com.android.tools:annotations:27.1.3=lintClassPath +com.android.tools:annotations:31.7.0=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle com.android.tools:common:27.1.3=lintClassPath +com.android.tools:common:31.7.0=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle com.android.tools:dvlib:27.1.3=lintClassPath com.android.tools:repository:27.1.3=lintClassPath com.android.tools:sdk-common:27.1.3=lintClassPath com.android.tools:sdklib:27.1.3=lintClassPath com.android:signflinger:4.1.3=lintClassPath com.android:zipflinger:4.1.3=lintClassPath -com.google.code.findbugs:jsr305:3.0.2=lintClassPath +com.getkeepsafe.relinker:relinker:1.4.5=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.android:annotations:4.1.1.4=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.google.api.grpc:proto-google-common-protos:2.17.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.google.code.findbugs:jsr305:3.0.2=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle,lintClassPath +com.google.code.gson:gson:2.10.1=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle com.google.code.gson:gson:2.8.5=lintClassPath +com.google.crypto.tink:tink:1.7.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control +com.google.errorprone:error_prone_annotations:2.18.0=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle com.google.errorprone:error_prone_annotations:2.3.2=lintClassPath -com.google.guava:failureaccess:1.0.1=lintClassPath +com.google.guava:failureaccess:1.0.1=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle,lintClassPath com.google.guava:guava:28.1-jre=lintClassPath -com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava=lintClassPath +com.google.guava:guava:32.0.1-jre=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.google.guava:listenablefuture:1.0=debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath +com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle,lintClassPath com.google.j2objc:j2objc-annotations:1.3=lintClassPath +com.google.j2objc:j2objc-annotations:2.8=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle com.google.jimfs:jimfs:1.1=lintClassPath com.google.protobuf:protobuf-java:3.10.0=lintClassPath +com.google.protobuf:protobuf-java:3.22.3=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.google.testing.platform:android-device-provider-local:0.0.9-alpha02=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.google.testing.platform:android-driver-instrumentation:0.0.9-alpha02=_internal-unified-test-platform-android-driver-instrumentation,_internal-unified-test-platform-android-test-plugin-host-emulator-control +com.google.testing.platform:android-test-plugin:0.0.9-alpha02=_internal-unified-test-platform-android-test-plugin +com.google.testing.platform:core-proto:0.0.9-alpha02=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.google.testing.platform:core:0.0.9-alpha02=_internal-unified-test-platform-core +com.google.testing.platform:launcher:0.0.9-alpha02=_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-launcher com.googlecode.json-simple:json-simple:1.1=lintClassPath com.squareup:javawriter:2.5.0=lintClassPath com.sun.activation:javax.activation:1.2.0=lintClassPath com.sun.istack:istack-commons-runtime:3.0.7=lintClassPath com.sun.xml.fastinfoset:FastInfoset:1.2.15=lintClassPath commons-codec:commons-codec:1.10=lintClassPath +commons-io:commons-io:2.13.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention commons-logging:commons-logging:1.2=lintClassPath +io.grpc:grpc-api:1.57.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.grpc:grpc-context:1.57.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.grpc:grpc-core:1.57.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.grpc:grpc-netty:1.57.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.grpc:grpc-protobuf-lite:1.57.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.grpc:grpc-protobuf:1.57.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.grpc:grpc-stub:1.57.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-buffer:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-codec-http2:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-codec-http:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-codec-socks:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-codec:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-common:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-handler-proxy:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-handler:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-resolver:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-transport-native-unix-common:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-transport:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.perfmark:perfmark-api:0.26.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle it.unimi.dsi:fastutil:7.2.0=lintClassPath javax.activation:javax.activation-api:1.2.0=lintClassPath +javax.annotation:javax.annotation-api:1.3.2=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle javax.inject:javax.inject:1=lintClassPath javax.xml.bind:jaxb-api:2.3.1=lintClassPath +net.java.dev.jna:jna-platform:5.6.0=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +net.java.dev.jna:jna:5.6.0=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle net.sf.jopt-simple:jopt-simple:4.9=lintClassPath -net.sf.kxml:kxml2:2.3.0=lintClassPath +net.sf.kxml:kxml2:2.3.0=_internal-unified-test-platform-android-device-provider-ddmlib,lintClassPath org.apache.commons:commons-compress:1.12=lintClassPath org.apache.httpcomponents:httpclient:4.5.6=lintClassPath org.apache.httpcomponents:httpcore:4.4.10=lintClassPath @@ -83,8 +160,10 @@ org.apache.httpcomponents:httpmime:4.5.6=lintClassPath org.bouncycastle:bcpkix-jdk15on:1.56=lintClassPath org.bouncycastle:bcprov-jdk15on:1.56=lintClassPath org.checkerframework:checker-qual:2.8.1=lintClassPath +org.checkerframework:checker-qual:3.33.0=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle org.codehaus.groovy:groovy-all:2.4.15=lintClassPath org.codehaus.mojo:animal-sniffer-annotations:1.18=lintClassPath +org.codehaus.mojo:animal-sniffer-annotations:1.23=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle org.glassfish.jaxb:jaxb-runtime:2.3.1=lintClassPath org.glassfish.jaxb:txw2:2.3.1=lintClassPath org.jacoco:org.jacoco.agent:0.8.7=androidJacocoAnt @@ -93,18 +172,27 @@ org.jacoco:org.jacoco.core:0.8.7=androidJacocoAnt org.jacoco:org.jacoco.report:0.8.7=androidJacocoAnt org.jetbrains.kotlin:kotlin-reflect:1.3.72=lintClassPath org.jetbrains.kotlin:kotlin-stdlib-common:1.3.72=lintClassPath -org.jetbrains.kotlin:kotlin-stdlib-common:1.5.31=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-common:1.8.22=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-common:1.9.20=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.3.72=lintClassPath -org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.5.30=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.8.20=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.9.20=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.72=lintClassPath -org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.5.30=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.8.20=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.9.20=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle org.jetbrains.kotlin:kotlin-stdlib:1.3.72=lintClassPath -org.jetbrains.kotlin:kotlin-stdlib:1.5.31=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.2=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.5.2=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib:1.8.22=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib:1.9.20=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.1=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-bom:1.6.4=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +org.jetbrains.kotlinx:kotlinx-coroutines-bom:1.7.1=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.6.4=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.7.1=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.1=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath org.jetbrains.trove4j:trove4j:20160824=lintClassPath -org.jetbrains:annotations:13.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,lintClassPath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains:annotations:13.0=_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle,lintClassPath +org.jetbrains:annotations:23.0.0=_internal-unified-test-platform-android-device-provider-ddmlib,debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath org.jvnet.staxex:stax-ex:1.8=lintClassPath org.ow2.asm:asm-analysis:7.0=lintClassPath org.ow2.asm:asm-analysis:9.1=androidJacocoAnt diff --git a/flutter/examples/layers/android/settings.gradle b/flutter/examples/layers/android/settings.gradle index 03ae72d135c01f849e6812b36575b62b14fee791..4a155b35ec304af4a4baaf5f5fcbe6d0ac296764 100644 --- a/flutter/examples/layers/android/settings.gradle +++ b/flutter/examples/layers/android/settings.gradle @@ -6,16 +6,36 @@ // To update all the settings.gradle files in the Flutter repo, // See dev/tools/bin/generate_gradle_lockfiles.dart. -include ':app' +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() -enableFeaturePreview('ONE_LOCKFILE_PER_PROJECT') + includeBuild("${settings.ext.flutterSdkPath}/packages/flutter_tools/gradle") -def localPropertiesFile = new File(rootProject.projectDir, "local.properties") -def properties = new Properties() + repositories { + google() + mavenCentral() + gradlePluginPortal() + } +} -assert localPropertiesFile.exists() -localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) } +buildscript { + dependencyLocking { + lockFile = file("${rootProject.projectDir}/buildscript-gradle.lockfile") + lockAllConfigurations() + } +} -def flutterSdkPath = properties.getProperty("flutter.sdk") -assert flutterSdkPath != null, "flutter.sdk not set in local.properties" -apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle" +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" diff --git a/flutter/examples/layers/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/flutter/examples/layers/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme index e67b2808af02f9ec16f2d72b7961aefdf844afa5..4f746537f280af75dcdac17b8e41c5a5d051e1d1 100644 --- a/flutter/examples/layers/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme +++ b/flutter/examples/layers/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme @@ -50,6 +50,7 @@ ignoresPersistentStateOnLaunch = "NO" debugDocumentVersioning = "YES" debugServiceExtension = "internal" + enableGPUValidationMode = "1" allowLocationSimulation = "YES"> diff --git a/flutter/examples/layers/lib/main.dart b/flutter/examples/layers/lib/main.dart index 7b09b8be6fabab51671af31064a00a371a85b407..cc95bb1d2b36eb7453b71c234a73dcfb4fcc0d41 100644 --- a/flutter/examples/layers/lib/main.dart +++ b/flutter/examples/layers/lib/main.dart @@ -7,10 +7,7 @@ import 'package:flutter/widgets.dart'; void main() { runApp( const Center( - child: Text( - 'Instead run:\nflutter run xxx/yyy.dart', - textDirection: TextDirection.ltr, - ), + child: Text('Instead run:\nflutter run xxx/yyy.dart', textDirection: TextDirection.ltr), ), ); } diff --git a/flutter/examples/layers/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/flutter/examples/layers/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme index fcb264ef5f028138760c94ebc7b9e39323b8256a..467bcf77769db2abdf8b9bb98e0f3faabee92e88 100644 --- a/flutter/examples/layers/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme +++ b/flutter/examples/layers/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme @@ -48,6 +48,7 @@ ignoresPersistentStateOnLaunch = "NO" debugDocumentVersioning = "YES" debugServiceExtension = "internal" + enableGPUValidationMode = "1" allowLocationSimulation = "YES"> diff --git a/flutter/examples/layers/macos/Runner/AppDelegate.swift b/flutter/examples/layers/macos/Runner/AppDelegate.swift index d080d41951d3506a861ceadcf4354bbbb609a562..573ad7b432ae4637bfcb6ba0131363199cba1076 100644 --- a/flutter/examples/layers/macos/Runner/AppDelegate.swift +++ b/flutter/examples/layers/macos/Runner/AppDelegate.swift @@ -5,9 +5,13 @@ import Cocoa import FlutterMacOS -@NSApplicationMain +@main class AppDelegate: FlutterAppDelegate { override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool { return true } + + override func applicationSupportsSecureRestorableState(_ app: NSApplication) -> Bool { + return true + } } diff --git a/flutter/examples/layers/pubspec.yaml b/flutter/examples/layers/pubspec.yaml index 2b42be330691a33a13b524c9910a5a41bb396298..27f390799db45a7b85f04c299cdc4edbd0174bbc 100644 --- a/flutter/examples/layers/pubspec.yaml +++ b/flutter/examples/layers/pubspec.yaml @@ -1,42 +1,42 @@ name: flutter_examples_layers environment: - sdk: '>=3.2.0-0 <4.0.0' + sdk: ^3.7.0-0 dependencies: flutter: sdk: flutter - characters: 1.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - collection: 1.18.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - material_color_utilities: 0.8.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - meta: 1.11.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + characters: 1.4.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + collection: 1.19.1 # 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.16.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" dev_dependencies: flutter_test: sdk: flutter - async: 2.11.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - boolean_selector: 2.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - clock: 1.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - fake_async: 1.3.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - leak_tracker: 10.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - leak_tracker_flutter_testing: 2.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - leak_tracker_testing: 2.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - matcher: 0.12.16+1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - path: 1.9.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - source_span: 1.10.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - stack_trace: 1.11.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - stream_channel: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - string_scanner: 1.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - term_glyph: 1.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - test_api: 0.6.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - vm_service: 13.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + async: 2.13.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + boolean_selector: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + clock: 1.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + fake_async: 1.3.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + leak_tracker: 10.0.9 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + leak_tracker_flutter_testing: 3.0.9 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + leak_tracker_testing: 3.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + matcher: 0.12.17 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + path: 1.9.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + source_span: 1.10.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + stack_trace: 1.12.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + stream_channel: 2.1.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + string_scanner: 1.4.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + term_glyph: 1.2.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + test_api: 0.7.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + vm_service: 15.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" flutter: assets: - services/data.json uses-material-design: true -# PUBSPEC CHECKSUM: 8023 +# PUBSPEC CHECKSUM: 5b23 diff --git a/flutter/examples/layers/raw/canvas.dart b/flutter/examples/layers/raw/canvas.dart index 8af0ca2fd47b2a2c3a950f7a0fc1ef8360e7fd89..0e53f4ee0ae1894cd458fa78197ed62c7a5ed41b 100644 --- a/flutter/examples/layers/raw/canvas.dart +++ b/flutter/examples/layers/raw/canvas.dart @@ -54,7 +54,7 @@ ui.Picture paint(ui.Rect paintBounds) { // Shifts the coordinate space of and rotates the current transform. canvas.translate(mid.dx, mid.dy); - canvas.rotate(math.pi/4); + canvas.rotate(math.pi / 4); final ui.Gradient yellowBlue = ui.Gradient.linear( ui.Offset(-radius, -radius), @@ -73,10 +73,22 @@ ui.Picture paint(ui.Rect paintBounds) { // Scale x and y by 0.5. final Float64List scaleMatrix = Float64List.fromList([ - 0.5, 0.0, 0.0, 0.0, - 0.0, 0.5, 0.0, 0.0, - 0.0, 0.0, 1.0, 0.0, - 0.0, 0.0, 0.0, 1.0, + 0.5, + 0.0, + 0.0, + 0.0, + 0.0, + 0.5, + 0.0, + 0.0, + 0.0, + 0.0, + 1.0, + 0.0, + 0.0, + 0.0, + 0.0, + 1.0, ]); canvas.transform(scaleMatrix); @@ -105,15 +117,17 @@ ui.Picture paint(ui.Rect paintBounds) { ui.Scene composite(ui.Picture picture, ui.Rect paintBounds) { final double devicePixelRatio = view.devicePixelRatio; - final Float64List deviceTransform = Float64List(16) - ..[0] = devicePixelRatio - ..[5] = devicePixelRatio - ..[10] = 1.0 - ..[15] = 1.0; - final ui.SceneBuilder sceneBuilder = ui.SceneBuilder() - ..pushTransform(deviceTransform) - ..addPicture(ui.Offset.zero, picture) - ..pop(); + final Float64List deviceTransform = + Float64List(16) + ..[0] = devicePixelRatio + ..[5] = devicePixelRatio + ..[10] = 1.0 + ..[15] = 1.0; + final ui.SceneBuilder sceneBuilder = + ui.SceneBuilder() + ..pushTransform(deviceTransform) + ..addPicture(ui.Offset.zero, picture) + ..pop(); return sceneBuilder.build(); } diff --git a/flutter/examples/layers/raw/hello_world.dart b/flutter/examples/layers/raw/hello_world.dart index e0a24c3fcd348418fb9adba74e60d47dc8874d82..aa72aadda9864b03bceab4b8a139c672089edc83 100644 --- a/flutter/examples/layers/raw/hello_world.dart +++ b/flutter/examples/layers/raw/hello_world.dart @@ -16,27 +16,30 @@ void beginFrame(Duration timeStamp) { final ui.ParagraphBuilder paragraphBuilder = ui.ParagraphBuilder( ui.ParagraphStyle(textDirection: ui.TextDirection.ltr), - ) - ..addText('Hello, world.'); - final ui.Paragraph paragraph = paragraphBuilder.build() - ..layout(ui.ParagraphConstraints(width: logicalSize.width)); + )..addText('Hello, world.'); + final ui.Paragraph paragraph = + paragraphBuilder.build()..layout(ui.ParagraphConstraints(width: logicalSize.width)); final ui.Rect physicalBounds = ui.Offset.zero & (logicalSize * devicePixelRatio); final ui.PictureRecorder recorder = ui.PictureRecorder(); final ui.Canvas canvas = ui.Canvas(recorder, physicalBounds); canvas.scale(devicePixelRatio, devicePixelRatio); - canvas.drawParagraph(paragraph, ui.Offset( - (logicalSize.width - paragraph.maxIntrinsicWidth) / 2.0, - (logicalSize.height - paragraph.height) / 2.0, - )); + canvas.drawParagraph( + paragraph, + ui.Offset( + (logicalSize.width - paragraph.maxIntrinsicWidth) / 2.0, + (logicalSize.height - paragraph.height) / 2.0, + ), + ); final ui.Picture picture = recorder.endRecording(); - final ui.SceneBuilder sceneBuilder = ui.SceneBuilder() - // TODO(abarth): We should be able to add a picture without pushing a - // container layer first. - ..pushClipRect(physicalBounds) - ..addPicture(ui.Offset.zero, picture) - ..pop(); + final ui.SceneBuilder sceneBuilder = + ui.SceneBuilder() + // TODO(abarth): We should be able to add a picture without pushing a + // container layer first. + ..pushClipRect(physicalBounds) + ..addPicture(ui.Offset.zero, picture) + ..pop(); view.render(sceneBuilder.build()); } diff --git a/flutter/examples/layers/raw/spinning_square.dart b/flutter/examples/layers/raw/spinning_square.dart index df8515ca646685024b3a32304e87cc52a8a423ba..882b9ad3d2123dc63ffb8999850ce36f09174722 100644 --- a/flutter/examples/layers/raw/spinning_square.dart +++ b/flutter/examples/layers/raw/spinning_square.dart @@ -41,15 +41,17 @@ void beginFrame(Duration timeStamp) { // COMPOSITE final double devicePixelRatio = view.devicePixelRatio; - final Float64List deviceTransform = Float64List(16) - ..[0] = devicePixelRatio - ..[5] = devicePixelRatio - ..[10] = 1.0 - ..[15] = 1.0; - final ui.SceneBuilder sceneBuilder = ui.SceneBuilder() - ..pushTransform(deviceTransform) - ..addPicture(ui.Offset.zero, picture) - ..pop(); + final Float64List deviceTransform = + Float64List(16) + ..[0] = devicePixelRatio + ..[5] = devicePixelRatio + ..[10] = 1.0 + ..[15] = 1.0; + final ui.SceneBuilder sceneBuilder = + ui.SceneBuilder() + ..pushTransform(deviceTransform) + ..addPicture(ui.Offset.zero, picture) + ..pop(); view.render(sceneBuilder.build()); // After rendering the current frame of the animation, we ask the engine to diff --git a/flutter/examples/layers/raw/text.dart b/flutter/examples/layers/raw/text.dart index 616e8fa75ad75a299d92955f629c99be43ece5ba..f0bd60c9a31b3cccf5318802b8abeb23cfda77c7 100644 --- a/flutter/examples/layers/raw/text.dart +++ b/flutter/examples/layers/raw/text.dart @@ -29,22 +29,27 @@ ui.Picture paint(ui.Rect paintBounds) { // The paint method of Paragraph draws the contents of the paragraph onto the // given canvas. - canvas.drawParagraph(paragraph, ui.Offset(-paragraph.width / 2.0, (paragraph.width / 2.0) - 125.0)); + canvas.drawParagraph( + paragraph, + ui.Offset(-paragraph.width / 2.0, (paragraph.width / 2.0) - 125.0), + ); return recorder.endRecording(); } ui.Scene composite(ui.Picture picture, ui.Rect paintBounds) { final double devicePixelRatio = view.devicePixelRatio; - final Float64List deviceTransform = Float64List(16) - ..[0] = devicePixelRatio - ..[5] = devicePixelRatio - ..[10] = 1.0 - ..[15] = 1.0; - final ui.SceneBuilder sceneBuilder = ui.SceneBuilder() - ..pushTransform(deviceTransform) - ..addPicture(ui.Offset.zero, picture) - ..pop(); + final Float64List deviceTransform = + Float64List(16) + ..[0] = devicePixelRatio + ..[5] = devicePixelRatio + ..[10] = 1.0 + ..[15] = 1.0; + final ui.SceneBuilder sceneBuilder = + ui.SceneBuilder() + ..pushTransform(deviceTransform) + ..addPicture(ui.Offset.zero, picture) + ..pop(); return sceneBuilder.build(); } @@ -61,42 +66,44 @@ void main() { view = ui.PlatformDispatcher.instance.implicitView!; // To create a paragraph of text, we use ParagraphBuilder. - final ui.ParagraphBuilder builder = ui.ParagraphBuilder( - // The text below has a primary direction of left-to-right. - // The embedded text has other directions. - // If this was TextDirection.rtl, the "Hello, world" text would end up on - // the other side of the right-to-left text. - ui.ParagraphStyle(textDirection: ui.TextDirection.ltr), - ) - // We first push a style that turns the text blue. - ..pushStyle(ui.TextStyle(color: const ui.Color(0xFF0000FF))) - ..addText('Hello, ') - // The next run of text will be bold. - ..pushStyle(ui.TextStyle(fontWeight: ui.FontWeight.bold)) - ..addText('world. ') - // The pop() command signals the end of the bold styling. - ..pop() - // We add text to the paragraph in logical order. The paragraph object - // understands bi-directional text and will compute the visual ordering - // during layout. - ..addText('هذا هو قليلا طويلة من النص الذي يجب التفاف .') - // The second pop() removes the blue color. - ..pop() - // We can add more text with the default styling. - ..addText(' و أكثر قليلا لجعله أطول. ') - ..addText('สวัสดี'); + final ui.ParagraphBuilder builder = + ui.ParagraphBuilder( + // The text below has a primary direction of left-to-right. + // The embedded text has other directions. + // If this was TextDirection.rtl, the "Hello, world" text would end up on + // the other side of the right-to-left text. + ui.ParagraphStyle(textDirection: ui.TextDirection.ltr), + ) + // We first push a style that turns the text blue. + ..pushStyle(ui.TextStyle(color: const ui.Color(0xFF0000FF))) + ..addText('Hello, ') + // The next run of text will be bold. + ..pushStyle(ui.TextStyle(fontWeight: ui.FontWeight.bold)) + ..addText('world. ') + // The pop() command signals the end of the bold styling. + ..pop() + // We add text to the paragraph in logical order. The paragraph object + // understands bi-directional text and will compute the visual ordering + // during layout. + ..addText('هذا هو قليلا طويلة من النص الذي يجب التفاف .') + // The second pop() removes the blue color. + ..pop() + // We can add more text with the default styling. + ..addText(' و أكثر قليلا لجعله أطول. ') + ..addText('สวัสดี'); // When we're done adding styles and text, we build the Paragraph object, at // which time we can apply styling that affects the entire paragraph, such as // left, right, or center alignment. Once built, the contents of the paragraph // cannot be altered, but sizing and positioning information can be updated. - paragraph = builder.build() - // Next, we supply a width that the text is permitted to occupy and we ask - // the paragraph to the visual position of each its glyphs as well as its - // overall size, subject to its sizing constraints. - ..layout(const ui.ParagraphConstraints(width: 180.0)); + paragraph = + builder.build() + // Next, we supply a width that the text is permitted to occupy and we ask + // the paragraph to the visual position of each its glyphs as well as its + // overall size, subject to its sizing constraints. + ..layout(const ui.ParagraphConstraints(width: 180.0)); // Finally, we register our beginFrame callback and kick off the first frame. ui.PlatformDispatcher.instance - ..onBeginFrame = beginFrame - ..scheduleFrame(); + ..onBeginFrame = beginFrame + ..scheduleFrame(); } diff --git a/flutter/examples/layers/raw/touch_input.dart b/flutter/examples/layers/raw/touch_input.dart index cd83f4ee61d829cb892aa15f2fd49aa8a446937e..172d0ea2d06ad10b0ca979132a2ab88ca9561de7 100644 --- a/flutter/examples/layers/raw/touch_input.dart +++ b/flutter/examples/layers/raw/touch_input.dart @@ -49,20 +49,22 @@ ui.Scene composite(ui.Picture picture, ui.Rect paintBounds) { final double devicePixelRatio = view.devicePixelRatio; // This transform scales the x and y coordinates by the devicePixelRatio. - final Float64List deviceTransform = Float64List(16) - ..[0] = devicePixelRatio - ..[5] = devicePixelRatio - ..[10] = 1.0 - ..[15] = 1.0; + final Float64List deviceTransform = + Float64List(16) + ..[0] = devicePixelRatio + ..[5] = devicePixelRatio + ..[10] = 1.0 + ..[15] = 1.0; // We build a very simple scene graph with two nodes. The root node is a // transform that scale its children by the device pixel ratio. This transform // lets us paint in "logical" pixels which are converted to device pixels by // this scaling operation. - final ui.SceneBuilder sceneBuilder = ui.SceneBuilder() - ..pushTransform(deviceTransform) - ..addPicture(ui.Offset.zero, picture) - ..pop(); + final ui.SceneBuilder sceneBuilder = + ui.SceneBuilder() + ..pushTransform(deviceTransform) + ..addPicture(ui.Offset.zero, picture) + ..pop(); // When we're done recording the scene, we call build() to obtain an immutable // record of the scene we've recorded. diff --git a/flutter/examples/layers/rendering/flex_layout.dart b/flutter/examples/layers/rendering/flex_layout.dart index 845a232fa18199864924faa12ff1878823731467..9775384d4369a4570d9c6395e87c1c492ca401f8 100644 --- a/flutter/examples/layers/rendering/flex_layout.dart +++ b/flutter/examples/layers/rendering/flex_layout.dart @@ -20,32 +20,46 @@ void main() { textDirection: TextDirection.ltr, ); table.add(RenderPadding(child: paragraph, padding: const EdgeInsets.only(top: 20.0))); - final RenderFlex row = RenderFlex(crossAxisAlignment: crossAxisAlignment, textBaseline: TextBaseline.alphabetic, textDirection: TextDirection.ltr); + final RenderFlex row = RenderFlex( + crossAxisAlignment: crossAxisAlignment, + textBaseline: TextBaseline.alphabetic, + textDirection: TextDirection.ltr, + ); style = const TextStyle(fontSize: 15.0, color: Color(0xFF000000)); - row.add(RenderDecoratedBox( - decoration: const BoxDecoration(color: Color(0x7FFFCCCC)), - child: RenderParagraph( - TextSpan(style: style, text: 'foo foo foo'), - textDirection: TextDirection.ltr, + row.add( + RenderDecoratedBox( + decoration: const BoxDecoration(color: Color(0x7FFFCCCC)), + child: RenderParagraph( + TextSpan(style: style, text: 'foo foo foo'), + textDirection: TextDirection.ltr, + ), ), - )); + ); style = const TextStyle(fontSize: 10.0, color: Color(0xFF000000)); - row.add(RenderDecoratedBox( - decoration: const BoxDecoration(color: Color(0x7FCCFFCC)), - child: RenderParagraph( - TextSpan(style: style, text: 'foo foo foo'), - textDirection: TextDirection.ltr, + row.add( + RenderDecoratedBox( + decoration: const BoxDecoration(color: Color(0x7FCCFFCC)), + child: RenderParagraph( + TextSpan(style: style, text: 'foo foo foo'), + textDirection: TextDirection.ltr, + ), ), - )); - final RenderFlex subrow = RenderFlex(crossAxisAlignment: crossAxisAlignment, textBaseline: TextBaseline.alphabetic, textDirection: TextDirection.ltr); + ); + final RenderFlex subrow = RenderFlex( + crossAxisAlignment: crossAxisAlignment, + textBaseline: TextBaseline.alphabetic, + textDirection: TextDirection.ltr, + ); style = const TextStyle(fontSize: 25.0, color: Color(0xFF000000)); - subrow.add(RenderDecoratedBox( - decoration: const BoxDecoration(color: Color(0x7FCCCCFF)), - child: RenderParagraph( - TextSpan(style: style, text: 'foo foo foo foo'), - textDirection: TextDirection.ltr, + subrow.add( + RenderDecoratedBox( + decoration: const BoxDecoration(color: Color(0x7FCCCCFF)), + child: RenderParagraph( + TextSpan(style: style, text: 'foo foo foo foo'), + textDirection: TextDirection.ltr, + ), ), - )); + ); subrow.add(RenderSolidColorBox(const Color(0x7FCCFFFF), desiredSize: const Size(30.0, 40.0))); row.add(subrow); table.add(row); diff --git a/flutter/examples/layers/rendering/spinning_square.dart b/flutter/examples/layers/rendering/spinning_square.dart index cb833069fdeccf750019386c3661cdaf97f2a357..ab66cbec55856ed4e3df2016251c79d79bbb82cb 100644 --- a/flutter/examples/layers/rendering/spinning_square.dart +++ b/flutter/examples/layers/rendering/spinning_square.dart @@ -40,9 +40,7 @@ void main() { child: square, ); // Finally, we center the spinning green square... - final RenderBox root = RenderPositionedBox( - child: spin, - ); + final RenderBox root = RenderPositionedBox(child: spin); // and attach it to the window. ViewRenderingFlutterBinding(root: root); diff --git a/flutter/examples/layers/rendering/src/binding.dart b/flutter/examples/layers/rendering/src/binding.dart index ae8cedcc90dde2278b14ea59026ac518a009f4e1..38e24405ef333dd3af30c1554e23821af61166bb 100644 --- a/flutter/examples/layers/rendering/src/binding.dart +++ b/flutter/examples/layers/rendering/src/binding.dart @@ -21,7 +21,7 @@ class ViewRenderingFlutterBinding extends RenderingFlutterBinding { /// /// This binding does not automatically schedule any frames. Callers are /// responsible for deciding when to first call [scheduleFrame]. - ViewRenderingFlutterBinding({ RenderBox? root }) : _root = root; + ViewRenderingFlutterBinding({RenderBox? root}) : _root = root; @override void initInstances() { diff --git a/flutter/examples/layers/rendering/src/sector_layout.dart b/flutter/examples/layers/rendering/src/sector_layout.dart index a8bfa641f94dc52da170218c5fa13733b5e18368..f61b34be1c7e5c0cbf0b28cd9be7e69645c30cab 100644 --- a/flutter/examples/layers/rendering/src/sector_layout.dart +++ b/flutter/examples/layers/rendering/src/sector_layout.dart @@ -17,7 +17,7 @@ class SectorConstraints extends Constraints { }) : assert(maxDeltaRadius >= minDeltaRadius), assert(maxDeltaTheta >= minDeltaTheta); - const SectorConstraints.tight({ double deltaRadius = 0.0, double deltaTheta = 0.0 }) + const SectorConstraints.tight({double deltaRadius = 0.0, double deltaTheta = 0.0}) : minDeltaRadius = deltaRadius, maxDeltaRadius = deltaRadius, minDeltaTheta = deltaTheta, @@ -53,7 +53,7 @@ class SectorConstraints extends Constraints { } class SectorDimensions { - const SectorDimensions({ this.deltaRadius = 0.0, this.deltaTheta = 0.0 }); + const SectorDimensions({this.deltaRadius = 0.0, this.deltaTheta = 0.0}); factory SectorDimensions.withConstraints( SectorConstraints constraints, { @@ -88,7 +88,6 @@ class SectorParentData extends ParentData { /// * [RenderBox], which is the base class for [RenderObject]s that live in a /// Cartesian coordinate space. abstract class RenderSector extends RenderObject { - @override void setupParentData(RenderObject child) { if (child.parentData is! SectorParentData) { @@ -137,25 +136,32 @@ abstract class RenderSector extends RenderObject { Rect get paintBounds => Rect.fromLTWH(0.0, 0.0, 2.0 * deltaRadius, 2.0 * deltaRadius); @override - Rect get semanticBounds => Rect.fromLTWH(-deltaRadius, -deltaRadius, 2.0 * deltaRadius, 2.0 * deltaRadius); + Rect get semanticBounds => + Rect.fromLTWH(-deltaRadius, -deltaRadius, 2.0 * deltaRadius, 2.0 * deltaRadius); - bool hitTest(SectorHitTestResult result, { required double radius, required double theta }) { - if (radius < parentData!.radius || radius >= parentData!.radius + deltaRadius || - theta < parentData!.theta || theta >= parentData!.theta + deltaTheta) { + bool hitTest(SectorHitTestResult result, {required double radius, required double theta}) { + if (radius < parentData!.radius || + radius >= parentData!.radius + deltaRadius || + theta < parentData!.theta || + theta >= parentData!.theta + deltaTheta) { return false; } hitTestChildren(result, radius: radius, theta: theta); result.add(SectorHitTestEntry(this, radius: radius, theta: theta)); return true; } - void hitTestChildren(SectorHitTestResult result, { required double radius, required double theta }) { } + + void hitTestChildren( + SectorHitTestResult result, { + required double radius, + required double theta, + }) {} late double deltaRadius; late double deltaTheta; } abstract class RenderDecoratedSector extends RenderSector { - RenderDecoratedSector(BoxDecoration? decoration) : _decoration = decoration; BoxDecoration? _decoration; @@ -182,31 +188,47 @@ abstract class RenderDecoratedSector extends RenderSector { final Paint paint = Paint()..color = _decoration!.color!; final Path path = Path(); final double outerRadius = parentData!.radius + deltaRadius; - final Rect outerBounds = Rect.fromLTRB(offset.dx-outerRadius, offset.dy-outerRadius, offset.dx+outerRadius, offset.dy+outerRadius); + final Rect outerBounds = Rect.fromLTRB( + offset.dx - outerRadius, + offset.dy - outerRadius, + offset.dx + outerRadius, + offset.dy + outerRadius, + ); path.arcTo(outerBounds, parentData!.theta, deltaTheta, true); final double innerRadius = parentData!.radius; - final Rect innerBounds = Rect.fromLTRB(offset.dx-innerRadius, offset.dy-innerRadius, offset.dx+innerRadius, offset.dy+innerRadius); + final Rect innerBounds = Rect.fromLTRB( + offset.dx - innerRadius, + offset.dy - innerRadius, + offset.dx + innerRadius, + offset.dy + innerRadius, + ); path.arcTo(innerBounds, parentData!.theta + deltaTheta, -deltaTheta, false); path.close(); canvas.drawPath(path, paint); } } - } -class SectorChildListParentData extends SectorParentData with ContainerParentDataMixin { } +class SectorChildListParentData extends SectorParentData + with ContainerParentDataMixin {} -class RenderSectorWithChildren extends RenderDecoratedSector with ContainerRenderObjectMixin { +class RenderSectorWithChildren extends RenderDecoratedSector + with ContainerRenderObjectMixin { RenderSectorWithChildren(super.decoration); @override - void hitTestChildren(SectorHitTestResult result, { required double radius, required double theta }) { + void hitTestChildren( + SectorHitTestResult result, { + required double radius, + required double theta, + }) { RenderSector? child = lastChild; while (child != null) { if (child.hitTest(result, radius: radius, theta: theta)) { return; } - final SectorChildListParentData childParentData = child.parentData! as SectorChildListParentData; + final SectorChildListParentData childParentData = + child.parentData! as SectorChildListParentData; child = childParentData.previousSibling; } } @@ -216,7 +238,8 @@ class RenderSectorWithChildren extends RenderDecoratedSector with ContainerRende RenderSector? child = lastChild; while (child != null) { visitor(child); - final SectorChildListParentData childParentData = child.parentData! as SectorChildListParentData; + final SectorChildListParentData childParentData = + child.parentData! as SectorChildListParentData; child = childParentData.previousSibling; } } @@ -269,17 +292,24 @@ class RenderSectorRing extends RenderSectorWithChildren { final double childRadius = radius + padding; final double paddingTheta = math.atan(padding / (radius + outerDeltaRadius)); double innerTheta = paddingTheta; // increments with each child - double remainingDeltaTheta = math.max(0.0, constraints.maxDeltaTheta - (innerTheta + paddingTheta)); + double remainingDeltaTheta = math.max( + 0.0, + constraints.maxDeltaTheta - (innerTheta + paddingTheta), + ); RenderSector? child = firstChild; while (child != null) { final SectorConstraints innerConstraints = SectorConstraints( maxDeltaRadius: innerDeltaRadius, maxDeltaTheta: remainingDeltaTheta, ); - final SectorDimensions childDimensions = child.getIntrinsicDimensions(innerConstraints, childRadius); + final SectorDimensions childDimensions = child.getIntrinsicDimensions( + innerConstraints, + childRadius, + ); innerTheta += childDimensions.deltaTheta; remainingDeltaTheta -= childDimensions.deltaTheta; - final SectorChildListParentData childParentData = child.parentData! as SectorChildListParentData; + final SectorChildListParentData childParentData = + child.parentData! as SectorChildListParentData; child = childParentData.nextSibling; if (child != null) { innerTheta += paddingTheta; @@ -315,7 +345,8 @@ class RenderSectorRing extends RenderSectorWithChildren { child.layout(innerConstraints, parentUsesSize: true); innerTheta += child.deltaTheta; remainingDeltaTheta -= child.deltaTheta; - final SectorChildListParentData childParentData = child.parentData! as SectorChildListParentData; + final SectorChildListParentData childParentData = + child.parentData! as SectorChildListParentData; child = childParentData.nextSibling; if (child != null) { innerTheta += paddingTheta; @@ -334,21 +365,20 @@ class RenderSectorRing extends RenderSectorWithChildren { RenderSector? child = firstChild; while (child != null) { context.paintChild(child, offset); - final SectorChildListParentData childParentData = child.parentData! as SectorChildListParentData; + final SectorChildListParentData childParentData = + child.parentData! as SectorChildListParentData; child = childParentData.nextSibling; } } - } class RenderSectorSlice extends RenderSectorWithChildren { // lays out RenderSector children in a stack - RenderSectorSlice({ - BoxDecoration? decoration, - double deltaTheta = kTwoPi, - double padding = 0.0, - }) : _padding = padding, _desiredDeltaTheta = deltaTheta, super(decoration); + RenderSectorSlice({BoxDecoration? decoration, double deltaTheta = kTwoPi, double padding = 0.0}) + : _padding = padding, + _desiredDeltaTheta = deltaTheta, + super(decoration); double _desiredDeltaTheta; double get desiredDeltaTheta => _desiredDeltaTheta; @@ -391,10 +421,14 @@ class RenderSectorSlice extends RenderSectorWithChildren { maxDeltaRadius: remainingDeltaRadius, maxDeltaTheta: innerDeltaTheta, ); - final SectorDimensions childDimensions = child.getIntrinsicDimensions(innerConstraints, childRadius); + final SectorDimensions childDimensions = child.getIntrinsicDimensions( + innerConstraints, + childRadius, + ); childRadius += childDimensions.deltaRadius; remainingDeltaRadius -= childDimensions.deltaRadius; - final SectorChildListParentData childParentData = child.parentData! as SectorChildListParentData; + final SectorChildListParentData childParentData = + child.parentData! as SectorChildListParentData; child = childParentData.nextSibling; childRadius += padding; remainingDeltaRadius -= padding; @@ -427,7 +461,8 @@ class RenderSectorSlice extends RenderSectorWithChildren { child.layout(innerConstraints, parentUsesSize: true); childRadius += child.deltaRadius; remainingDeltaRadius -= child.deltaRadius; - final SectorChildListParentData childParentData = child.parentData! as SectorChildListParentData; + final SectorChildListParentData childParentData = + child.parentData! as SectorChildListParentData; child = childParentData.nextSibling; childRadius += padding; remainingDeltaRadius -= padding; @@ -445,15 +480,16 @@ class RenderSectorSlice extends RenderSectorWithChildren { while (child != null) { assert(child.parentData is SectorChildListParentData); context.paintChild(child, offset); - final SectorChildListParentData childParentData = child.parentData! as SectorChildListParentData; + final SectorChildListParentData childParentData = + child.parentData! as SectorChildListParentData; child = childParentData.nextSibling; } } - } -class RenderBoxToRenderSectorAdapter extends RenderBox with RenderObjectWithChildMixin { - RenderBoxToRenderSectorAdapter({ double innerRadius = 0.0, RenderSector? child }) +class RenderBoxToRenderSectorAdapter extends RenderBox + with RenderObjectWithChildMixin { + RenderBoxToRenderSectorAdapter({double innerRadius = 0.0, RenderSector? child}) : _innerRadius = innerRadius { this.child = child; } @@ -504,17 +540,17 @@ class RenderBoxToRenderSectorAdapter extends RenderBox with RenderObjectWithChil return getIntrinsicDimensions(width: width).height; } - Size getIntrinsicDimensions({ - double width = double.infinity, - double height = double.infinity, - }) { + Size getIntrinsicDimensions({double width = double.infinity, double height = double.infinity}) { assert(child is RenderSector); assert(child!.parentData is SectorParentData); if (!width.isFinite && !height.isFinite) { return Size.zero; } final double maxChildDeltaRadius = math.max(0.0, math.min(width, height) / 2.0 - innerRadius); - final SectorDimensions childDimensions = child!.getIntrinsicDimensions(SectorConstraints(maxDeltaRadius: maxChildDeltaRadius), innerRadius); + final SectorDimensions childDimensions = child!.getIntrinsicDimensions( + SectorConstraints(maxDeltaRadius: maxChildDeltaRadius), + innerRadius, + ); final double dimension = (innerRadius + childDimensions.deltaRadius) * 2.0; return Size.square(dimension); } @@ -528,7 +564,8 @@ class RenderBoxToRenderSectorAdapter extends RenderBox with RenderObjectWithChil } assert(child is RenderSector); assert(child!.parentData is SectorParentData); - final double maxChildDeltaRadius = math.min(constraints.maxWidth, constraints.maxHeight) / 2.0 - innerRadius; + final double maxChildDeltaRadius = + math.min(constraints.maxWidth, constraints.maxHeight) / 2.0 - innerRadius; child!.parentData!.radius = innerRadius; child!.parentData!.theta = 0.0; child!.layout(SectorConstraints(maxDeltaRadius: maxChildDeltaRadius), parentUsesSize: true); @@ -547,7 +584,7 @@ class RenderBoxToRenderSectorAdapter extends RenderBox with RenderObjectWithChil } @override - bool hitTest(BoxHitTestResult result, { required Offset position }) { + bool hitTest(BoxHitTestResult result, {required Offset position}) { if (child == null) { return false; } @@ -636,7 +673,7 @@ class SectorHitTestResult extends HitTestResult { /// A hit test entry used by [RenderSector]. class SectorHitTestEntry extends HitTestEntry { /// Creates a box hit test entry. - SectorHitTestEntry(RenderSector super.target, { required this.radius, required this.theta }); + SectorHitTestEntry(RenderSector super.target, {required this.radius, required this.theta}); @override RenderSector get target => super.target as RenderSector; diff --git a/flutter/examples/layers/rendering/src/solid_color_box.dart b/flutter/examples/layers/rendering/src/solid_color_box.dart index b72759b58d3185d6301197693da8a9ebfe5c344d..5d1cd70a133ed3b4eefeec6c0c5048d93be03a02 100644 --- a/flutter/examples/layers/rendering/src/solid_color_box.dart +++ b/flutter/examples/layers/rendering/src/solid_color_box.dart @@ -5,8 +5,8 @@ import 'package:flutter/rendering.dart'; class RenderSolidColorBox extends RenderDecoratedBox { - RenderSolidColorBox(this.backgroundColor, { this.desiredSize = Size.infinite }) - : super(decoration: BoxDecoration(color: backgroundColor)); + RenderSolidColorBox(this.backgroundColor, {this.desiredSize = Size.infinite}) + : super(decoration: BoxDecoration(color: backgroundColor)); final Size desiredSize; final Color backgroundColor; diff --git a/flutter/examples/layers/rendering/touch_input.dart b/flutter/examples/layers/rendering/touch_input.dart index 37a944528447dd38c64b2db25c3e587d6263119a..4dedb30de358b176515d64b4d925921b23ee2779 100644 --- a/flutter/examples/layers/rendering/touch_input.dart +++ b/flutter/examples/layers/rendering/touch_input.dart @@ -22,7 +22,7 @@ List _kColors = [ /// A simple model object for a dot that reacts to pointer pressure. class Dot { - Dot({ required Color color }) : _paint = Paint()..color = color; + Dot({required Color color}) : _paint = Paint()..color = color; final Paint _paint; Offset position = Offset.zero; @@ -105,10 +105,7 @@ class RenderDots extends RenderBox { void main() { // Create some styled text to tell the user to interact with the app. final RenderParagraph paragraph = RenderParagraph( - const TextSpan( - style: TextStyle(color: Colors.black87), - text: 'Touch me!', - ), + const TextSpan(style: TextStyle(color: Colors.black87), text: 'Touch me!'), textDirection: TextDirection.ltr, ); // A stack is a render object that layers its children on top of each other. @@ -116,10 +113,7 @@ void main() { // text. final RenderStack stack = RenderStack( textDirection: TextDirection.ltr, - children: [ - RenderDots(), - paragraph, - ], + children: [RenderDots(), paragraph], ); // The "parentData" field of a render object is controlled by the render // object's parent render object. Now that we've added the paragraph as a diff --git a/flutter/examples/layers/services/isolate.dart b/flutter/examples/layers/services/isolate.dart index c7cd96782e9b40af1365250c2729d2fd162aabdd..86d54537219f159bf9faab66597c652c8733a91b 100644 --- a/flutter/examples/layers/services/isolate.dart +++ b/flutter/examples/layers/services/isolate.dart @@ -16,7 +16,7 @@ typedef OnResultListener = void Function(String result); // The choice of JSON parsing here is meant as an example that might surface // in real-world applications. class Calculator { - Calculator({ required this.onProgressListener, required this.onResultListener, String? data }) + Calculator({required this.onProgressListener, required this.onResultListener, String? data}) : _data = _replicateJson(data, 10000); final OnProgressListener onProgressListener; @@ -31,14 +31,12 @@ class Calculator { // Run the computation associated with this Calculator. void run() { int i = 0; - final JsonDecoder decoder = JsonDecoder( - (dynamic key, dynamic value) { - if (key is int && i++ % _NOTIFY_INTERVAL == 0) { - onProgressListener(i.toDouble(), _NUM_ITEMS.toDouble()); - } - return value; - }, - ); + final JsonDecoder decoder = JsonDecoder((dynamic key, dynamic value) { + if (key is int && i++ % _NOTIFY_INTERVAL == 0) { + onProgressListener(i.toDouble(), _NUM_ITEMS.toDouble()); + } + return value; + }); try { final List result = decoder.convert(_data) as List; final int n = result.length; @@ -63,11 +61,7 @@ class Calculator { } // The current state of the calculation. -enum CalculationState { - idle, - loading, - calculating -} +enum CalculationState { idle, loading, calculating } // Structured message to initialize the spawned isolate. class CalculationMessage { @@ -82,7 +76,7 @@ class CalculationMessage { // This class manages these ports and maintains state related to the // progress of the background computation. class CalculationManager { - CalculationManager({ required this.onProgressListener, required this.onResultListener }) + CalculationManager({required this.onProgressListener, required this.onResultListener}) : _receivePort = ReceivePort() { _receivePort.listen(_handleMessage); } @@ -175,7 +169,7 @@ class CalculationManager { final SendPort sender = message.sendPort; final Calculator calculator = Calculator( onProgressListener: (double completed, double total) { - sender.send([ completed, total ]); + sender.send([completed, total]); }, onResultListener: sender.send, data: message.data, @@ -201,7 +195,6 @@ class IsolateExampleWidget extends StatefulWidget { // Main application state. class IsolateExampleState extends State with SingleTickerProviderStateMixin { - String _status = 'Idle'; String _label = 'Start'; String _result = ' '; @@ -229,25 +222,14 @@ class IsolateExampleState extends State with SingleTickerProvide children: [ RotationTransition( turns: _animation, - child: Container( - width: 120.0, - height: 120.0, - color: const Color(0xFF882222), - ), + child: Container(width: 120.0, height: 120.0, color: const Color(0xFF882222)), ), Opacity( opacity: _calculationManager.isRunning ? 1.0 : 0.0, - child: CircularProgressIndicator( - value: _progress, - ), + child: CircularProgressIndicator(value: _progress), ), Text(_status), - Center( - child: ElevatedButton( - onPressed: _handleButtonPressed, - child: Text(_label), - ), - ), + Center(child: ElevatedButton(onPressed: _handleButtonPressed, child: Text(_label))), Text(_result), ], ), @@ -273,9 +255,9 @@ class IsolateExampleState extends State with SingleTickerProvide String _getStatus(CalculationState state) { return switch (state) { - CalculationState.loading => 'Loading...', + CalculationState.loading => 'Loading...', CalculationState.calculating => 'In Progress', - CalculationState.idle => 'Idle', + CalculationState.idle => 'Idle', }; } diff --git a/flutter/examples/layers/services/lifecycle.dart b/flutter/examples/layers/services/lifecycle.dart index 5a60b86304021fcaf1ecc27e2464b4cb1e0502a8..978bfeaf8a15aaa52e3832a90c97799cc74c3036 100644 --- a/flutter/examples/layers/services/lifecycle.dart +++ b/flutter/examples/layers/services/lifecycle.dart @@ -5,14 +5,13 @@ import 'package:flutter/widgets.dart'; class LifecycleWatcher extends StatefulWidget { - const LifecycleWatcher({ super.key }); + const LifecycleWatcher({super.key}); @override State createState() => _LifecycleWatcherState(); } -class _LifecycleWatcherState extends State - with WidgetsBindingObserver { +class _LifecycleWatcherState extends State with WidgetsBindingObserver { AppLifecycleState? _lastLifecycleState; @override @@ -43,14 +42,11 @@ class _LifecycleWatcherState extends State } } - void main() { runApp( const Directionality( textDirection: TextDirection.ltr, - child: Center( - child: LifecycleWatcher(), - ), + child: Center(child: LifecycleWatcher()), ), ); } diff --git a/flutter/examples/layers/test/gestures_test.dart b/flutter/examples/layers/test/gestures_test.dart index 82e64f28aad05caf93e98e177c6d52a1338e29b0..920faa65377c744a7f248fbbdc0d37d3b53987ab 100644 --- a/flutter/examples/layers/test/gestures_test.dart +++ b/flutter/examples/layers/test/gestures_test.dart @@ -9,10 +9,9 @@ import '../widgets/gestures.dart'; void main() { testWidgets('Tap on center change color', (WidgetTester tester) async { - await tester.pumpWidget(const Directionality( - textDirection: TextDirection.ltr, - child: GestureDemo(), - )); + await tester.pumpWidget( + const Directionality(textDirection: TextDirection.ltr, child: GestureDemo()), + ); final Finder finder = find.byType(GestureDemo); MaterialColor getSwatch() => tester.state(finder).swatch; diff --git a/flutter/examples/layers/test/smoketests/rendering/custom_coordinate_systems_test.dart b/flutter/examples/layers/test/smoketests/rendering/custom_coordinate_systems_test.dart index deebc6a8291678cd5fe7d94b7fb3cde74912b867..e3db223de292264210d7f5fb8e8a1a303e3d2339 100644 --- a/flutter/examples/layers/test/smoketests/rendering/custom_coordinate_systems_test.dart +++ b/flutter/examples/layers/test/smoketests/rendering/custom_coordinate_systems_test.dart @@ -10,7 +10,9 @@ import '../../../rendering/custom_coordinate_systems.dart' as demo; void main() { test('layers smoketest for rendering/custom_coordinate_systems.dart', () { - FlutterError.onError = (FlutterErrorDetails details) { throw details.exception; }; + FlutterError.onError = (FlutterErrorDetails details) { + throw details.exception; + }; demo.main(); expect(SchedulerBinding.instance.hasScheduledFrame, true); }); diff --git a/flutter/examples/layers/test/smoketests/rendering/flex_layout_test.dart b/flutter/examples/layers/test/smoketests/rendering/flex_layout_test.dart index 5f01f33f45241b2fcb6d7617d026c4e540fc55ad..8d9064db6d4a32fa14125945800d5914058b934a 100644 --- a/flutter/examples/layers/test/smoketests/rendering/flex_layout_test.dart +++ b/flutter/examples/layers/test/smoketests/rendering/flex_layout_test.dart @@ -10,7 +10,9 @@ import '../../../rendering/flex_layout.dart' as demo; void main() { test('layers smoketest for rendering/flex_layout.dart', () { - FlutterError.onError = (FlutterErrorDetails details) { throw details.exception; }; + FlutterError.onError = (FlutterErrorDetails details) { + throw details.exception; + }; demo.main(); expect(SchedulerBinding.instance.hasScheduledFrame, true); }); diff --git a/flutter/examples/layers/test/smoketests/rendering/hello_world_test.dart b/flutter/examples/layers/test/smoketests/rendering/hello_world_test.dart index 746d451003f81cf17d32e9cdfd1ebdf496dc7e6d..2112a86264666ba26b3d6d66270f81ff8faf1ca3 100644 --- a/flutter/examples/layers/test/smoketests/rendering/hello_world_test.dart +++ b/flutter/examples/layers/test/smoketests/rendering/hello_world_test.dart @@ -10,7 +10,9 @@ import '../../../rendering/hello_world.dart' as demo; void main() { test('layers smoketest for rendering/hello_world.dart', () { - FlutterError.onError = (FlutterErrorDetails details) { throw details.exception; }; + FlutterError.onError = (FlutterErrorDetails details) { + throw details.exception; + }; demo.main(); expect(SchedulerBinding.instance.hasScheduledFrame, true); }); diff --git a/flutter/examples/layers/test/smoketests/rendering/spinning_square_test.dart b/flutter/examples/layers/test/smoketests/rendering/spinning_square_test.dart index e8fe0e17860fd79f99309095d0d16bdf70c4eb23..1418d44c5503bd08a22722d214fe0f6351ae7f4e 100644 --- a/flutter/examples/layers/test/smoketests/rendering/spinning_square_test.dart +++ b/flutter/examples/layers/test/smoketests/rendering/spinning_square_test.dart @@ -10,7 +10,9 @@ import '../../../rendering/spinning_square.dart' as demo; void main() { test('layers smoketest for rendering/spinning_square.dart', () { - FlutterError.onError = (FlutterErrorDetails details) { throw details.exception; }; + FlutterError.onError = (FlutterErrorDetails details) { + throw details.exception; + }; demo.main(); expect(SchedulerBinding.instance.hasScheduledFrame, true); }); diff --git a/flutter/examples/layers/test/smoketests/rendering/touch_input_test.dart b/flutter/examples/layers/test/smoketests/rendering/touch_input_test.dart index 461c4b3d1de7cd7565dbe3e08927d6a2507cbc86..9c97273a1e1f1c75fac7ec733ef0b1bfc6f24be6 100644 --- a/flutter/examples/layers/test/smoketests/rendering/touch_input_test.dart +++ b/flutter/examples/layers/test/smoketests/rendering/touch_input_test.dart @@ -10,7 +10,9 @@ import '../../../rendering/touch_input.dart' as demo; void main() { test('layers smoketest for rendering/touch_input.dart', () { - FlutterError.onError = (FlutterErrorDetails details) { throw details.exception; }; + FlutterError.onError = (FlutterErrorDetails details) { + throw details.exception; + }; demo.main(); expect(SchedulerBinding.instance.hasScheduledFrame, true); }); diff --git a/flutter/examples/layers/test/smoketests/widgets/spinning_mixed_test.dart b/flutter/examples/layers/test/smoketests/widgets/spinning_mixed_test.dart index 469273cc452e9822c3b9d8f0bc82a9ccfce09dc5..55065e5cac2aa84a20acc381e4fca2db1cc9d3b0 100644 --- a/flutter/examples/layers/test/smoketests/widgets/spinning_mixed_test.dart +++ b/flutter/examples/layers/test/smoketests/widgets/spinning_mixed_test.dart @@ -9,7 +9,9 @@ import '../../../widgets/spinning_mixed.dart' as demo; void main() { test('layers smoketest for widgets/spinning_mixed.dart', () { - FlutterError.onError = (FlutterErrorDetails details) { throw details.exception; }; + FlutterError.onError = (FlutterErrorDetails details) { + throw details.exception; + }; demo.main(); }); } diff --git a/flutter/examples/layers/widgets/custom_render_box.dart b/flutter/examples/layers/widgets/custom_render_box.dart index 8838cbdcf967aa118b9ff44e42801b95affcf2e1..ac5dfa2635f149e93b8f29d963bcfaa4ea6d8ce1 100644 --- a/flutter/examples/layers/widgets/custom_render_box.dart +++ b/flutter/examples/layers/widgets/custom_render_box.dart @@ -40,7 +40,7 @@ class RenderDots extends RenderConstrainedBox { } class Dots extends SingleChildRenderObjectWidget { - const Dots({ super.key, super.child }); + const Dots({super.key, super.child}); @override RenderDots createRenderObject(BuildContext context) => RenderDots(); @@ -50,11 +50,7 @@ void main() { runApp( const Directionality( textDirection: TextDirection.ltr, - child: Dots( - child: Center( - child: Text('Touch me!'), - ), - ), + child: Dots(child: Center(child: Text('Touch me!'))), ), ); } diff --git a/flutter/examples/layers/widgets/gestures.dart b/flutter/examples/layers/widgets/gestures.dart index c8594d97a76ffa730ce01b8cefe407b23c5fd4ab..d0ad63d5c5388935c5a70b7f84ab128e77c68bb8 100644 --- a/flutter/examples/layers/widgets/gestures.dart +++ b/flutter/examples/layers/widgets/gestures.dart @@ -30,28 +30,26 @@ class _GesturePainter extends CustomPainter { final Offset center = size.center(Offset.zero) * zoom + offset; final double radius = size.width / 2.0 * zoom; final Gradient gradient = RadialGradient( - colors: forward - ? [swatch.shade50, swatch.shade900] - : [swatch.shade900, swatch.shade50], + colors: + forward + ? [swatch.shade50, swatch.shade900] + : [swatch.shade900, swatch.shade50], ); - final Paint paint = Paint() - ..shader = gradient.createShader(Rect.fromCircle( - center: center, - radius: radius, - )); + final Paint paint = + Paint()..shader = gradient.createShader(Rect.fromCircle(center: center, radius: radius)); canvas.drawCircle(center, radius, paint); } @override bool shouldRepaint(_GesturePainter oldPainter) { - return oldPainter.zoom != zoom - || oldPainter.offset != offset - || oldPainter.swatch != swatch - || oldPainter.forward != forward - || oldPainter.scaleEnabled != scaleEnabled - || oldPainter.tapEnabled != tapEnabled - || oldPainter.doubleTapEnabled != doubleTapEnabled - || oldPainter.longPressEnabled != longPressEnabled; + return oldPainter.zoom != zoom || + oldPainter.offset != offset || + oldPainter.swatch != swatch || + oldPainter.forward != forward || + oldPainter.scaleEnabled != scaleEnabled || + oldPainter.tapEnabled != tapEnabled || + oldPainter.doubleTapEnabled != doubleTapEnabled || + oldPainter.longPressEnabled != longPressEnabled; } } @@ -63,7 +61,6 @@ class GestureDemo extends StatefulWidget { } class GestureDemoState extends State { - late Offset _startingFocalPoint; late Offset _previousOffset; @@ -180,7 +177,11 @@ class GestureDemoState extends State { children: [ Checkbox( value: _scaleEnabled, - onChanged: (bool? value) { setState(() { _scaleEnabled = value!; }); }, + onChanged: (bool? value) { + setState(() { + _scaleEnabled = value!; + }); + }, ), const Text('Scale'), ], @@ -189,7 +190,11 @@ class GestureDemoState extends State { children: [ Checkbox( value: _tapEnabled, - onChanged: (bool? value) { setState(() { _tapEnabled = value!; }); }, + onChanged: (bool? value) { + setState(() { + _tapEnabled = value!; + }); + }, ), const Text('Tap'), ], @@ -198,7 +203,11 @@ class GestureDemoState extends State { children: [ Checkbox( value: _doubleTapEnabled, - onChanged: (bool? value) { setState(() { _doubleTapEnabled = value!; }); }, + onChanged: (bool? value) { + setState(() { + _doubleTapEnabled = value!; + }); + }, ), const Text('Double Tap'), ], @@ -207,7 +216,11 @@ class GestureDemoState extends State { children: [ Checkbox( value: _longPressEnabled, - onChanged: (bool? value) { setState(() { _longPressEnabled = value!; }); }, + onChanged: (bool? value) { + setState(() { + _longPressEnabled = value!; + }); + }, ), const Text('Long Press'), ], @@ -223,11 +236,10 @@ class GestureDemoState extends State { } void main() { - runApp(MaterialApp( - theme: ThemeData.dark(), - home: Scaffold( - appBar: AppBar(title: const Text('Gestures Demo')), - body: const GestureDemo(), + runApp( + MaterialApp( + theme: ThemeData.dark(), + home: Scaffold(appBar: AppBar(title: const Text('Gestures Demo')), body: const GestureDemo()), ), - )); + ); } diff --git a/flutter/examples/layers/widgets/media_query.dart b/flutter/examples/layers/widgets/media_query.dart index 39c996a25be9eeaf0b150b5de2437a127ce21be0..5ac280d75933a3b0a19127a8bcd0128d4f2e8f3c 100644 --- a/flutter/examples/layers/widgets/media_query.dart +++ b/flutter/examples/layers/widgets/media_query.dart @@ -5,7 +5,7 @@ import 'package:flutter/material.dart'; class AdaptedListItem extends StatelessWidget { - const AdaptedListItem({ super.key, required this.name }); + const AdaptedListItem({super.key, required this.name}); final String name; @@ -26,7 +26,7 @@ class AdaptedListItem extends StatelessWidget { } class AdaptedGridItem extends StatelessWidget { - const AdaptedGridItem({ super.key, required this.name }); + const AdaptedGridItem({super.key, required this.name}); final String name; @@ -35,22 +35,13 @@ class AdaptedGridItem extends StatelessWidget { return Card( child: Column( children: [ - Expanded( - child: Container( - color: Colors.lightBlueAccent.shade100, - ), - ), + Expanded(child: Container(color: Colors.lightBlueAccent.shade100)), Container( margin: const EdgeInsets.only(left: 8.0), child: Row( children: [ - Expanded( - child: Text(name), - ), - const IconButton( - icon: Icon(Icons.more_vert), - onPressed: null, - ), + Expanded(child: Text(name)), + const IconButton(icon: Icon(Icons.more_vert), onPressed: null), ], ), ), @@ -65,7 +56,7 @@ const double _kMaxTileWidth = 150.0; const double _kGridViewBreakpoint = 450.0; class AdaptiveContainer extends StatelessWidget { - const AdaptiveContainer({ super.key, required this.names }); + const AdaptiveContainer({super.key, required this.names}); final List names; @@ -90,13 +81,13 @@ List _initNames() => List.generate(30, (int i) => 'Item $i'); final List _kNames = _initNames(); void main() { - runApp(MaterialApp( - title: 'Media Query Example', - home: Scaffold( - appBar: AppBar( - title: const Text('Media Query Example'), + runApp( + MaterialApp( + title: 'Media Query Example', + home: Scaffold( + appBar: AppBar(title: const Text('Media Query Example')), + body: Material(child: AdaptiveContainer(names: _kNames)), ), - body: Material(child: AdaptiveContainer(names: _kNames)), ), - )); + ); } diff --git a/flutter/examples/layers/widgets/sectors.dart b/flutter/examples/layers/widgets/sectors.dart index 74c7fc1975842645d56b8420d0a77da2375f076e..97a1551c4a8e9ed942482fc21ac27c37f94b4012 100644 --- a/flutter/examples/layers/widgets/sectors.dart +++ b/flutter/examples/layers/widgets/sectors.dart @@ -9,10 +9,7 @@ import 'package:flutter/material.dart'; import '../rendering/src/sector_layout.dart'; RenderBoxToRenderSectorAdapter initCircle() { - return RenderBoxToRenderSectorAdapter( - innerRadius: 25.0, - child: RenderSectorRing(), - ); + return RenderBoxToRenderSectorAdapter(innerRadius: 25.0, child: RenderSectorRing()); } class SectorApp extends StatefulWidget { @@ -23,13 +20,13 @@ class SectorApp extends StatefulWidget { } class SectorAppState extends State { - final RenderBoxToRenderSectorAdapter sectors = initCircle(); final math.Random rand = math.Random(1); List wantedSectorSizes = []; List actualSectorSizes = []; - double get currentTheta => wantedSectorSizes.fold(0.0, (double total, double value) => total + value); + double get currentTheta => + wantedSectorSizes.fold(0.0, (double total, double value) => total + value); void addSector() { final double currentTheta = this.currentTheta; @@ -54,7 +51,9 @@ class SectorAppState extends State { void doUpdates() { int index = 0; - while (index < actualSectorSizes.length && index < wantedSectorSizes.length && actualSectorSizes[index] == wantedSectorSizes[index]) { + while (index < actualSectorSizes.length && + index < wantedSectorSizes.length && + actualSectorSizes[index] == wantedSectorSizes[index]) { index += 1; } final RenderSectorRing ring = sectors.child! as RenderSectorRing; @@ -75,11 +74,9 @@ class SectorAppState extends State { ring.add(RenderSolidColor(const Color(0xFF909090), desiredDeltaTheta: kTwoPi * 0.15)); ring.add(RenderSolidColor(const Color(0xFF909090), desiredDeltaTheta: kTwoPi * 0.15)); ring.add(RenderSolidColor(color, desiredDeltaTheta: kTwoPi * 0.2)); - return RenderBoxToRenderSectorAdapter( - innerRadius: 5.0, - child: ring, - ); + return RenderBoxToRenderSectorAdapter(innerRadius: 5.0, child: ring); } + RenderBoxToRenderSectorAdapter sectorAddIcon = initSector(const Color(0xFF00DD00)); RenderBoxToRenderSectorAdapter sectorRemoveIcon = initSector(const Color(0xFFDD0000)); @@ -154,9 +151,7 @@ class SectorAppState extends State { Expanded( child: Container( margin: const EdgeInsets.all(8.0), - decoration: BoxDecoration( - border: Border.all(), - ), + decoration: BoxDecoration(border: Border.all()), padding: const EdgeInsets.all(8.0), child: WidgetToRenderBoxAdapter( renderBox: sectors, @@ -174,12 +169,9 @@ class SectorAppState extends State { @override Widget build(BuildContext context) { return MaterialApp( - theme: ThemeData.light(), title: 'Sector Layout', home: Scaffold( - appBar: AppBar( - title: const Text('Sector Layout in a Widget Tree'), - ), + appBar: AppBar(title: const Text('Sector Layout in a Widget Tree')), body: buildBody(), ), ); diff --git a/flutter/examples/layers/widgets/spinning_mixed.dart b/flutter/examples/layers/widgets/spinning_mixed.dart index 6d3223c7b0065bdbd2a557a70a1ab7e06ace4321..669a1f0f9134d2f9055d53e27d83077a38e1c3ce 100644 --- a/flutter/examples/layers/widgets/spinning_mixed.dart +++ b/flutter/examples/layers/widgets/spinning_mixed.dart @@ -8,7 +8,7 @@ import 'package:flutter/rendering.dart'; import '../rendering/src/solid_color_box.dart'; // Solid color, RenderObject version -void addFlexChildSolidColor(RenderFlex parent, Color backgroundColor, { int flex = 0 }) { +void addFlexChildSolidColor(RenderFlex parent, Color backgroundColor, {int flex = 0}) { final RenderSolidColorBox child = RenderSolidColorBox(backgroundColor); parent.add(child); final FlexParentData childParentData = child.parentData! as FlexParentData; @@ -17,17 +17,13 @@ void addFlexChildSolidColor(RenderFlex parent, Color backgroundColor, { int flex // Solid color, Widget version class Rectangle extends StatelessWidget { - const Rectangle(this.color, { super.key }); + const Rectangle(this.color, {super.key}); final Color color; @override Widget build(BuildContext context) { - return Expanded( - child: Container( - color: color, - ), - ); + return Expanded(child: Container(color: color)); } } @@ -52,12 +48,7 @@ void attachWidgetTreeToRenderTree(RenderProxyBox container) { mainAxisAlignment: MainAxisAlignment.spaceAround, children: [ ElevatedButton( - child: const Row( - children: [ - FlutterLogo(), - Text('PRESS ME'), - ], - ), + child: const Row(children: [FlutterLogo(), Text('PRESS ME')]), onPressed: () { value = value == null ? 0.1 : (value! + 0.1) % 1.0; attachWidgetTreeToRenderTree(container); @@ -81,7 +72,8 @@ late RenderTransform transformBox; void rotate(Duration timeStamp) { timeBase ??= timeStamp; - final double delta = (timeStamp - timeBase!).inMicroseconds.toDouble() / Duration.microsecondsPerSecond; // radians + final double delta = + (timeStamp - timeBase!).inMicroseconds.toDouble() / Duration.microsecondsPerSecond; // radians transformBox.setIdentity(); transformBox.rotateZ(delta); @@ -99,15 +91,19 @@ void main() { flexRoot.add(proxy); addFlexChildSolidColor(flexRoot, const Color(0xFF0000FF), flex: 1); - transformBox = RenderTransform(child: flexRoot, transform: Matrix4.identity(), alignment: Alignment.center); - final RenderPadding root = RenderPadding(padding: const EdgeInsets.all(80.0), child: transformBox); + transformBox = RenderTransform( + child: flexRoot, + transform: Matrix4.identity(), + alignment: Alignment.center, + ); + final RenderPadding root = RenderPadding( + padding: const EdgeInsets.all(80.0), + child: transformBox, + ); // TODO(goderbauer): Create a window if embedder doesn't provide an implicit view to draw into. assert(binding.platformDispatcher.implicitView != null); - final RenderView view = RenderView( - view: binding.platformDispatcher.implicitView!, - child: root, - ); + final RenderView view = RenderView(view: binding.platformDispatcher.implicitView!, child: root); final PipelineOwner pipelineOwner = PipelineOwner()..rootNode = view; binding.rootPipelineOwner.adoptChild(pipelineOwner); binding.addRenderView(view); diff --git a/flutter/examples/layers/widgets/spinning_square.dart b/flutter/examples/layers/widgets/spinning_square.dart index 26bc474ab8159ae0ff82f53b16a6448d6c28f469..08c13f0f439d698382ca1975b6ef6897d15223e2 100644 --- a/flutter/examples/layers/widgets/spinning_square.dart +++ b/flutter/examples/layers/widgets/spinning_square.dart @@ -30,11 +30,7 @@ class _SpinningSquareState extends State with SingleTickerProvid Widget build(BuildContext context) { return RotationTransition( turns: _animation, - child: Container( - width: 200.0, - height: 200.0, - color: const Color(0xFF00FF00), - ), + child: Container(width: 200.0, height: 200.0, color: const Color(0xFF00FF00)), ); } } diff --git a/flutter/examples/layers/widgets/styled_text.dart b/flutter/examples/layers/widgets/styled_text.dart index 38c143ad3ecd8280c97bccc068efcfbd7eccd808..a3656afbfd20aa26a118c45b0c8babcfd8f03991 100644 --- a/flutter/examples/layers/widgets/styled_text.dart +++ b/flutter/examples/layers/widgets/styled_text.dart @@ -18,10 +18,8 @@ Dave: What are you talking about, HAL? HAL: This mission is too important for me to allow you to jeopardize it.'''; // [["Dave", "Open the pod bay..."] ...] -final List> _kNameLines = _kDialogText - .split('\n') - .map>((String line) => line.split(':')) - .toList(); +final List> _kNameLines = + _kDialogText.split('\n').map>((String line) => line.split(':')).toList(); final TextStyle _kDaveStyle = TextStyle(color: Colors.indigo.shade400, height: 1.8); final TextStyle _kHalStyle = TextStyle(color: Colors.red.shade400, fontFamily: 'monospace'); @@ -41,13 +39,7 @@ Widget toStyledText(String name, String text) { children: [ TextSpan( style: _kBold, - children: [ - TextSpan( - style: _kUnderline, - text: name, - ), - const TextSpan(text: ':'), - ], + children: [TextSpan(style: _kUnderline, text: name), const TextSpan(text: ':')], ), TextSpan(text: text), ], @@ -66,9 +58,7 @@ class SpeakerSeparator extends StatelessWidget { constraints: const BoxConstraints.expand(height: 0.0), margin: const EdgeInsets.symmetric(vertical: 10.0, horizontal: 64.0), decoration: const BoxDecoration( - border: Border( - bottom: BorderSide(color: Color.fromARGB(24, 0, 0, 0)), - ), + border: Border(bottom: BorderSide(color: Color.fromARGB(24, 0, 0, 0))), ), ); } @@ -99,13 +89,14 @@ class _StyledTextDemoState extends State { child: Column( mainAxisAlignment: MainAxisAlignment.center, crossAxisAlignment: CrossAxisAlignment.start, - children: _kNameLines - .map((List nameAndText) => _toText(nameAndText[0], nameAndText[1])) - .expand((Widget line) => [ - line, - const SpeakerSeparator(), - ]) - .toList()..removeLast(), + children: + _kNameLines + .map( + (List nameAndText) => _toText(nameAndText[0], nameAndText[1]), + ) + .expand((Widget line) => [line, const SpeakerSeparator()]) + .toList() + ..removeLast(), ), ), ); @@ -113,16 +104,12 @@ class _StyledTextDemoState extends State { } void main() { - runApp(MaterialApp( - theme: ThemeData.light(), - home: Scaffold( - appBar: AppBar( - title: const Text('Hal and Dave'), - ), - body: Material( - color: Colors.grey.shade50, - child: const StyledTextDemo(), + runApp( + MaterialApp( + home: Scaffold( + appBar: AppBar(title: const Text('Hal and Dave')), + body: Material(color: Colors.grey.shade50, child: const StyledTextDemo()), ), ), - )); + ); } diff --git a/flutter/examples/layers/windows/runner/runner.exe.manifest b/flutter/examples/layers/windows/runner/runner.exe.manifest index a42ea7687cb67e55af955dc8874a072e087ce3ed..153653e8d67f81b901d28257a65908f3278e058d 100644 --- a/flutter/examples/layers/windows/runner/runner.exe.manifest +++ b/flutter/examples/layers/windows/runner/runner.exe.manifest @@ -9,12 +9,6 @@ - - - - - - diff --git a/flutter/examples/layers/windows/runner/utils.cpp b/flutter/examples/layers/windows/runner/utils.cpp index f677d8d5f71412f9b1445a198b3a7685f5bfcb74..02f43627405c4a6bf01f3f2c7d4500b679570dc2 100644 --- a/flutter/examples/layers/windows/runner/utils.cpp +++ b/flutter/examples/layers/windows/runner/utils.cpp @@ -49,13 +49,13 @@ std::string Utf8FromUtf16(const wchar_t* utf16_string) { if (utf16_string == nullptr) { return std::string(); } - int target_length = ::WideCharToMultiByte( + unsigned int target_length = ::WideCharToMultiByte( CP_UTF8, WC_ERR_INVALID_CHARS, utf16_string, -1, nullptr, 0, nullptr, nullptr) -1; // remove the trailing null character int input_length = (int)wcslen(utf16_string); std::string utf8_string; - if (target_length <= 0 || target_length > utf8_string.max_size()) { + if (target_length == 0 || target_length > utf8_string.max_size()) { return utf8_string; } utf8_string.resize(target_length); diff --git a/flutter/examples/platform_channel/README.md b/flutter/examples/platform_channel/README.md index da81169a6904be5037bdb4b0faee86a11740ce43..69e9a232ce0ba260e8f4725be7225563f7888363 100644 --- a/flutter/examples/platform_channel/README.md +++ b/flutter/examples/platform_channel/README.md @@ -3,7 +3,7 @@ This project demonstrates how to connect a Flutter app to platform-specific services. You can read more about -[accessing platform and third-party services in Flutter](https://flutter.dev/platform-channels/). +[accessing platform and third-party services in Flutter](https://flutter.dev/to/platform-channels/). ## iOS You can use the commands `flutter build` and `flutter run` from the app's root diff --git a/flutter/examples/platform_channel/android/app/build.gradle b/flutter/examples/platform_channel/android/app/build.gradle index 3c28e7c27a16ec2d827edeaceb87d837a135e36e..762775b520372fa27f17106eba43515dd03cd1ea 100644 --- a/flutter/examples/platform_channel/android/app/build.gradle +++ b/flutter/examples/platform_channel/android/app/build.gradle @@ -2,6 +2,11 @@ // 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 "dev.flutter.flutter-gradle-plugin" +} + def localProperties = new Properties() def localPropertiesFile = rootProject.file('local.properties') if (localPropertiesFile.exists()) { @@ -10,11 +15,6 @@ if (localPropertiesFile.exists()) { } } -def flutterRoot = localProperties.getProperty('flutter.sdk') -if (flutterRoot == null) { - throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") -} - def flutterVersionCode = localProperties.getProperty('flutter.versionCode') if (flutterVersionCode == null) { flutterVersionCode = '1' @@ -25,13 +25,19 @@ if (flutterVersionName == null) { flutterVersionName = '1.0' } -apply plugin: 'com.android.application' -apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" - android { namespace "com.example.platformchannel" compileSdk flutter.compileSdkVersion + // Flutter's CI installs the NDK at a non-standard path. + // This non-standard structure is initially created by + // https://github.com/flutter/engine/blob/3.27.0/tools/android_sdk/create_cipd_packages.sh. + String systemNdkPath = System.getenv("ANDROID_NDK_PATH") + if (systemNdkPath != null) { + ndkVersion = flutter.ndkVersion + ndkPath = systemNdkPath + } + compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 diff --git a/flutter/examples/platform_channel/android/app/src/main/AndroidManifest.xml b/flutter/examples/platform_channel/android/app/src/main/AndroidManifest.xml index 803e946a373e1508e1a19c3e860127472cc5cff2..1cd6e5f64cae1250880f41ad06503bbc5ddfc115 100644 --- a/flutter/examples/platform_channel/android/app/src/main/AndroidManifest.xml +++ b/flutter/examples/platform_channel/android/app/src/main/AndroidManifest.xml @@ -31,7 +31,7 @@ found in the LICENSE file. --> android:value="2" /> diff --git a/flutter/examples/platform_channel/android/build.gradle b/flutter/examples/platform_channel/android/build.gradle index 2de20623576a82c3115eca8b1bdb56fd5b5051cb..bedac9d2d4db435dfecb639ddd968f06a9375609 100644 --- a/flutter/examples/platform_channel/android/build.gradle +++ b/flutter/examples/platform_channel/android/build.gradle @@ -6,23 +6,6 @@ // To update all the build.gradle files in the Flutter repo, // See dev/tools/bin/generate_gradle_lockfiles.dart. -buildscript { - ext.kotlin_version = '1.5.31' - repositories { - google() - mavenCentral() - } - - dependencies { - classpath 'com.android.tools.build:gradle:7.2.0' - classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" - } - - configurations.classpath { - resolutionStrategy.activateDependencyLocking() - } -} - allprojects { repositories { google() diff --git a/flutter/examples/platform_channel/android/buildscript-gradle.lockfile b/flutter/examples/platform_channel/android/buildscript-gradle.lockfile index efe13277310ee8fef3c9d7f6f8a2cbbe601d110f..545abc59e924a9127dd0d66b4c85bb9e855adb90 100644 --- a/flutter/examples/platform_channel/android/buildscript-gradle.lockfile +++ b/flutter/examples/platform_channel/android/buildscript-gradle.lockfile @@ -1,71 +1,68 @@ # 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:7.2.0=classpath -androidx.databinding:databinding-compiler-common:7.2.0=classpath -com.android.databinding:baseLibrary:7.2.0=classpath -com.android.tools.analytics-library:crash:30.2.0=classpath -com.android.tools.analytics-library:protos:30.2.0=classpath -com.android.tools.analytics-library:shared:30.2.0=classpath -com.android.tools.analytics-library:tracker:30.2.0=classpath -com.android.tools.build.jetifier:jetifier-core:1.0.0-beta09=classpath -com.android.tools.build.jetifier:jetifier-processor:1.0.0-beta09=classpath -com.android.tools.build:aapt2-proto:7.2.0-7984345=classpath -com.android.tools.build:aaptcompiler:7.2.0=classpath -com.android.tools.build:apksig:7.2.0=classpath -com.android.tools.build:apkzlib:7.2.0=classpath -com.android.tools.build:builder-model:7.2.0=classpath -com.android.tools.build:builder-test-api:7.2.0=classpath -com.android.tools.build:builder:7.2.0=classpath -com.android.tools.build:bundletool:1.8.2=classpath -com.android.tools.build:gradle-api:7.2.0=classpath -com.android.tools.build:gradle:7.2.0=classpath -com.android.tools.build:manifest-merger:30.2.0=classpath +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:30.2.0=classpath -com.android.tools.layoutlib:layoutlib-api:30.2.0=classpath -com.android.tools.lint:lint-model:30.2.0=classpath -com.android.tools.lint:lint-typedef-remover:30.2.0=classpath -com.android.tools.utp:android-device-provider-ddmlib-proto:30.2.0=classpath -com.android.tools.utp:android-device-provider-gradle-proto:30.2.0=classpath -com.android.tools.utp:android-test-plugin-host-additional-test-output-proto:30.2.0=classpath -com.android.tools.utp:android-test-plugin-host-coverage-proto:30.2.0=classpath -com.android.tools.utp:android-test-plugin-host-retention-proto:30.2.0=classpath -com.android.tools.utp:android-test-plugin-result-listener-gradle-proto:30.2.0=classpath -com.android.tools:annotations:30.2.0=classpath -com.android.tools:common:30.2.0=classpath -com.android.tools:dvlib:30.2.0=classpath -com.android.tools:repository:30.2.0=classpath -com.android.tools:sdk-common:30.2.0=classpath -com.android.tools:sdklib:30.2.0=classpath -com.android:signflinger:7.2.0=classpath -com.android:zipflinger:7.2.0=classpath -com.fasterxml.jackson.core:jackson-annotations:2.11.1=classpath -com.fasterxml.jackson.core:jackson-core:2.11.1=classpath -com.fasterxml.jackson.core:jackson-databind:2.11.1=classpath -com.fasterxml.jackson.dataformat:jackson-dataformat-xml:2.11.1=classpath -com.fasterxml.jackson.module:jackson-module-jaxb-annotations:2.11.1=classpath -com.fasterxml.jackson.module:jackson-module-kotlin:2.11.1=classpath -com.fasterxml.woodstox:woodstox-core:6.2.1=classpath -com.github.gundy:semver4j:0.16.4=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:1.12.0=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.8.6=classpath -com.google.crypto.tink:tink:1.3.0-rc2=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.3.4=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:30.1-jre=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:1.3=classpath +com.google.j2objc:j2objc-annotations:2.8=classpath com.google.jimfs:jimfs:1.1=classpath -com.google.protobuf:protobuf-java-util:3.10.0=classpath -com.google.protobuf:protobuf-java:3.10.0=classpath -com.google.testing.platform:core-proto:0.0.8-alpha07=classpath -com.googlecode.json-simple:json-simple: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 @@ -73,91 +70,89 @@ 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.4=classpath +commons-io:commons-io:2.13.0=classpath commons-logging:commons-logging:1.2=classpath -de.undercouch:gradle-download-task:4.1.1=classpath -io.grpc:grpc-api:1.21.1=classpath -io.grpc:grpc-context:1.21.1=classpath -io.grpc:grpc-core:1.21.1=classpath -io.grpc:grpc-netty:1.21.1=classpath -io.grpc:grpc-protobuf-lite:1.21.1=classpath -io.grpc:grpc-protobuf:1.21.1=classpath -io.grpc:grpc-stub:1.21.1=classpath -io.netty:netty-buffer:4.1.34.Final=classpath -io.netty:netty-codec-http2:4.1.34.Final=classpath -io.netty:netty-codec-http:4.1.34.Final=classpath -io.netty:netty-codec-socks:4.1.34.Final=classpath -io.netty:netty-codec:4.1.34.Final=classpath -io.netty:netty-common:4.1.34.Final=classpath -io.netty:netty-handler-proxy:4.1.34.Final=classpath -io.netty:netty-handler:4.1.34.Final=classpath -io.netty:netty-resolver:4.1.34.Final=classpath -io.netty:netty-transport:4.1.34.Final=classpath -io.opencensus:opencensus-api:0.21.0=classpath -io.opencensus:opencensus-contrib-grpc-metrics:0.21.0=classpath -it.unimi.dsi:fastutil:8.4.0=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.20=classpath -org.apache.httpcomponents:httpclient:4.5.9=classpath -org.apache.httpcomponents:httpcore:4.4.11=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.7.0=classpath -org.bouncycastle:bcpkix-jdk15on:1.56=classpath -org.bouncycastle:bcprov-jdk15on:1.56=classpath -org.checkerframework:checker-qual:3.5.0=classpath -org.codehaus.mojo:animal-sniffer-annotations:1.17=classpath -org.codehaus.woodstox:stax2-api:4.2.1=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.dokka:dokka-core:1.4.32=classpath -org.jetbrains.intellij.deps:trove4j:1.0.20181211=classpath -org.jetbrains.kotlin:kotlin-android-extensions:1.5.31=classpath -org.jetbrains.kotlin:kotlin-annotation-processing-gradle:1.5.31=classpath -org.jetbrains.kotlin:kotlin-build-common:1.5.31=classpath -org.jetbrains.kotlin:kotlin-compiler-embeddable:1.5.31=classpath -org.jetbrains.kotlin:kotlin-compiler-runner:1.5.31=classpath -org.jetbrains.kotlin:kotlin-daemon-client:1.5.31=classpath -org.jetbrains.kotlin:kotlin-daemon-embeddable:1.5.31=classpath -org.jetbrains.kotlin:kotlin-gradle-plugin-api:1.5.31=classpath -org.jetbrains.kotlin:kotlin-gradle-plugin-model:1.5.31=classpath -org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.31=classpath -org.jetbrains.kotlin:kotlin-klib-commonizer-api:1.5.31=classpath -org.jetbrains.kotlin:kotlin-native-utils:1.5.31=classpath -org.jetbrains.kotlin:kotlin-project-model:1.5.31=classpath -org.jetbrains.kotlin:kotlin-reflect:1.5.31=classpath -org.jetbrains.kotlin:kotlin-scripting-common:1.5.31=classpath -org.jetbrains.kotlin:kotlin-scripting-compiler-embeddable:1.5.31=classpath -org.jetbrains.kotlin:kotlin-scripting-compiler-impl-embeddable:1.5.31=classpath -org.jetbrains.kotlin:kotlin-scripting-jvm:1.5.31=classpath -org.jetbrains.kotlin:kotlin-stdlib-common:1.5.31=classpath -org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.5.31=classpath -org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.5.31=classpath -org.jetbrains.kotlin:kotlin-stdlib:1.5.31=classpath -org.jetbrains.kotlin:kotlin-tooling-metadata:1.5.31=classpath -org.jetbrains.kotlin:kotlin-util-io:1.5.31=classpath -org.jetbrains.kotlin:kotlin-util-klib:1.5.31=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-common:1.9.20=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.kotlinx:kotlinx-coroutines-core:1.5.0=classpath -org.jetbrains:annotations:13.0=classpath -org.jetbrains:markdown-jvm:0.2.1=classpath -org.jetbrains:markdown:0.2.1=classpath -org.json:json:20180813=classpath -org.jsoup:jsoup:1.13.1=classpath +org.jetbrains.kotlinx:kotlinx-serialization-core-jvm:1.4.0=classpath +org.jetbrains.kotlinx:kotlinx-serialization-core:1.4.0=classpath +org.jetbrains.kotlinx:kotlinx-serialization-json-jvm:1.4.0=classpath +org.jetbrains.kotlinx:kotlinx-serialization-json:1.4.0=classpath +org.jetbrains:annotations:23.0.0=classpath org.jvnet.staxex:stax-ex:1.8.1=classpath -org.ow2.asm:asm-analysis:9.1=classpath -org.ow2.asm:asm-commons:9.1=classpath -org.ow2.asm:asm-tree:9.1=classpath -org.ow2.asm:asm-util:9.1=classpath -org.ow2.asm:asm:9.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 -xerces:xercesImpl:2.12.0=classpath -xml-apis:xml-apis:1.4.01=classpath empty= diff --git a/flutter/examples/platform_channel/android/gradle.properties b/flutter/examples/platform_channel/android/gradle.properties index 598d13fee446372f156ecc38527b54c7cdcc8e3b..f018a61817f55e78bb92ce8df2dda423ec570a4a 100644 --- a/flutter/examples/platform_channel/android/gradle.properties +++ b/flutter/examples/platform_channel/android/gradle.properties @@ -1,3 +1,3 @@ -org.gradle.jvmargs=-Xmx4G +org.gradle.jvmargs=-Xmx8G -XX:MaxMetaspaceSize=4G -XX:ReservedCodeCacheSize=512m -XX:+HeapDumpOnOutOfMemoryError android.useAndroidX=true android.enableJetifier=true diff --git a/flutter/examples/platform_channel/android/gradle/wrapper/gradle-wrapper.properties b/flutter/examples/platform_channel/android/gradle/wrapper/gradle-wrapper.properties index e1ca574ef017c1bc00556b96ea372e2c07948771..afa1e8eb0a835ba6be2286d1b399c4e47b7a79a0 100644 --- a/flutter/examples/platform_channel/android/gradle/wrapper/gradle-wrapper.properties +++ b/flutter/examples/platform_channel/android/gradle/wrapper/gradle-wrapper.properties @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.3-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-all.zip diff --git a/flutter/examples/platform_channel/android/project-app.lockfile b/flutter/examples/platform_channel/android/project-app.lockfile index a482ce1f40d46fcd124bffd55b61609d975c6f65..4f9687d61581615859380e25d079b921ba49ad5f 100644 --- a/flutter/examples/platform_channel/android/project-app.lockfile +++ b/flutter/examples/platform_channel/android/project-app.lockfile @@ -1,32 +1,43 @@ # 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,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.annotation:annotation-experimental:1.1.0=debugAndroidTestCompileClasspath,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,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.arch.core:core-runtime:2.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.activity:activity:1.8.1=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.annotation:annotation-experimental:1.4.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.annotation:annotation-jvm:1.8.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.annotation:annotation:1.8.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.arch.core:core-common:2.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.arch.core:core-runtime:2.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath androidx.collection:collection:1.1.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.core:core:1.6.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.concurrent:concurrent-futures:1.1.0=debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath +androidx.core:core-ktx:1.13.1=debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.core:core-ktx:1.2.0=debugAndroidTestCompileClasspath +androidx.core:core:1.13.1=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath androidx.customview:customview:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.fragment:fragment:1.1.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.lifecycle:lifecycle-common-java8:2.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.lifecycle:lifecycle-common:2.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.lifecycle:lifecycle-livedata-core:2.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.lifecycle:lifecycle-livedata:2.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.lifecycle:lifecycle-runtime:2.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.lifecycle:lifecycle-viewmodel:2.1.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.fragment:fragment:1.7.1=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.interpolator:interpolator:1.0.0=debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-common-java8:2.7.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-common:2.7.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-livedata-core-ktx:2.7.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-livedata-core:2.7.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-livedata:2.7.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-process:2.7.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-runtime:2.7.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-viewmodel-savedstate:2.7.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-viewmodel:2.7.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath androidx.loader:loader:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.savedstate:savedstate:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.profileinstaller:profileinstaller:1.3.1=debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath +androidx.savedstate:savedstate:1.2.1=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.startup:startup-runtime:1.1.1=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath androidx.test.espresso:espresso-core:3.1.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath androidx.test.espresso:espresso-idling-resource:3.1.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath androidx.test:monitor:1.1.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath androidx.test:runner:1.1.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath -androidx.tracing:tracing:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.tracing:tracing:1.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath androidx.versionedparcelable:versionedparcelable:1.1.1=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath androidx.viewpager:viewpager:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.window:window-java:1.0.0-beta04=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.window:window:1.0.0-beta04=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.window.extensions.core:core:1.0.0=debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath +androidx.window:window-java:1.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.window:window:1.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath com.android.tools.analytics-library:protos:27.1.3=lintClassPath com.android.tools.analytics-library:shared:27.1.3=lintClassPath com.android.tools.analytics-library:tracker:27.1.3=lintClassPath @@ -40,6 +51,8 @@ com.android.tools.build:builder:4.1.3=lintClassPath com.android.tools.build:gradle-api:4.1.3=lintClassPath com.android.tools.build:manifest-merger:27.1.3=lintClassPath com.android.tools.ddms:ddmlib:27.1.3=lintClassPath +com.android.tools.ddms:ddmlib:31.7.0=_internal-unified-test-platform-android-device-provider-ddmlib +com.android.tools.emulator:proto:31.7.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention com.android.tools.external.com-intellij:intellij-core:27.1.3=lintClassPath com.android.tools.external.com-intellij:kotlin-compiler:27.1.3=lintClassPath com.android.tools.external.org-jetbrains:uast:27.1.3=lintClassPath @@ -50,24 +63,65 @@ com.android.tools.lint:lint-gradle-api:27.1.3=lintClassPath com.android.tools.lint:lint-gradle:27.1.3=lintClassPath com.android.tools.lint:lint-model:27.1.3=lintClassPath com.android.tools.lint:lint:27.1.3=lintClassPath +com.android.tools.utp:android-device-provider-ddmlib-proto:31.7.0=_internal-unified-test-platform-android-device-provider-ddmlib +com.android.tools.utp:android-device-provider-ddmlib:31.7.0=_internal-unified-test-platform-android-device-provider-ddmlib +com.android.tools.utp:android-device-provider-gradle-proto:31.7.0=_internal-unified-test-platform-android-device-provider-gradle +com.android.tools.utp:android-device-provider-gradle:31.7.0=_internal-unified-test-platform-android-device-provider-gradle +com.android.tools.utp:android-device-provider-profile-proto:31.7.0=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle +com.android.tools.utp:android-device-provider-profile:31.7.0=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle +com.android.tools.utp:android-test-plugin-host-additional-test-output-proto:31.7.0=_internal-unified-test-platform-android-test-plugin-host-additional-test-output +com.android.tools.utp:android-test-plugin-host-additional-test-output:31.7.0=_internal-unified-test-platform-android-test-plugin-host-additional-test-output +com.android.tools.utp:android-test-plugin-host-apk-installer-proto:31.7.0=_internal-unified-test-platform-android-test-plugin-host-apk-installer +com.android.tools.utp:android-test-plugin-host-apk-installer:31.7.0=_internal-unified-test-platform-android-test-plugin-host-apk-installer +com.android.tools.utp:android-test-plugin-host-coverage-proto:31.7.0=_internal-unified-test-platform-android-test-plugin-host-coverage +com.android.tools.utp:android-test-plugin-host-coverage:31.7.0=_internal-unified-test-platform-android-test-plugin-host-coverage +com.android.tools.utp:android-test-plugin-host-device-info-proto:31.7.0=_internal-unified-test-platform-android-test-plugin-host-device-info +com.android.tools.utp:android-test-plugin-host-device-info:31.7.0=_internal-unified-test-platform-android-test-plugin-host-device-info +com.android.tools.utp:android-test-plugin-host-emulator-control-proto:31.7.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control +com.android.tools.utp:android-test-plugin-host-emulator-control:31.7.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control +com.android.tools.utp:android-test-plugin-host-logcat-proto:31.7.0=_internal-unified-test-platform-android-test-plugin-host-logcat +com.android.tools.utp:android-test-plugin-host-logcat:31.7.0=_internal-unified-test-platform-android-test-plugin-host-logcat +com.android.tools.utp:android-test-plugin-host-retention-proto:31.7.0=_internal-unified-test-platform-android-test-plugin-host-retention +com.android.tools.utp:android-test-plugin-host-retention:31.7.0=_internal-unified-test-platform-android-test-plugin-host-retention +com.android.tools.utp:android-test-plugin-result-listener-gradle-proto:31.7.0=_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.android.tools.utp:android-test-plugin-result-listener-gradle:31.7.0=_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.android.tools.utp:utp-common:31.7.0=_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention com.android.tools:annotations:27.1.3=lintClassPath +com.android.tools:annotations:31.7.0=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle com.android.tools:common:27.1.3=lintClassPath +com.android.tools:common:31.7.0=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle com.android.tools:dvlib:27.1.3=lintClassPath com.android.tools:repository:27.1.3=lintClassPath com.android.tools:sdk-common:27.1.3=lintClassPath com.android.tools:sdklib:27.1.3=lintClassPath com.android:signflinger:4.1.3=lintClassPath com.android:zipflinger:4.1.3=lintClassPath +com.getkeepsafe.relinker:relinker:1.4.5=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +com.google.android:annotations:4.1.1.4=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.google.api.grpc:proto-google-common-protos:2.17.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle com.google.code.findbugs:jsr305:2.0.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath -com.google.code.findbugs:jsr305:3.0.2=lintClassPath +com.google.code.findbugs:jsr305:3.0.2=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle,lintClassPath +com.google.code.gson:gson:2.10.1=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle com.google.code.gson:gson:2.8.5=lintClassPath +com.google.crypto.tink:tink:1.7.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control +com.google.errorprone:error_prone_annotations:2.18.0=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle com.google.errorprone:error_prone_annotations:2.3.2=lintClassPath -com.google.guava:failureaccess:1.0.1=lintClassPath +com.google.guava:failureaccess:1.0.1=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle,lintClassPath com.google.guava:guava:28.1-jre=lintClassPath -com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava=lintClassPath +com.google.guava:guava:32.0.1-jre=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.google.guava:listenablefuture:1.0=debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath +com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle,lintClassPath com.google.j2objc:j2objc-annotations:1.3=lintClassPath +com.google.j2objc:j2objc-annotations:2.8=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle com.google.jimfs:jimfs:1.1=lintClassPath com.google.protobuf:protobuf-java:3.10.0=lintClassPath +com.google.protobuf:protobuf-java:3.22.3=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.google.testing.platform:android-device-provider-local:0.0.9-alpha02=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.google.testing.platform:android-driver-instrumentation:0.0.9-alpha02=_internal-unified-test-platform-android-driver-instrumentation,_internal-unified-test-platform-android-test-plugin-host-emulator-control +com.google.testing.platform:android-test-plugin:0.0.9-alpha02=_internal-unified-test-platform-android-test-plugin +com.google.testing.platform:core-proto:0.0.9-alpha02=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.google.testing.platform:core:0.0.9-alpha02=_internal-unified-test-platform-core +com.google.testing.platform:launcher:0.0.9-alpha02=_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-launcher com.googlecode.json-simple:json-simple:1.1=lintClassPath com.squareup:javawriter:2.1.1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath com.squareup:javawriter:2.5.0=lintClassPath @@ -75,15 +129,38 @@ com.sun.activation:javax.activation:1.2.0=lintClassPath com.sun.istack:istack-commons-runtime:3.0.7=lintClassPath com.sun.xml.fastinfoset:FastInfoset:1.2.15=lintClassPath commons-codec:commons-codec:1.10=lintClassPath +commons-io:commons-io:2.13.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention commons-logging:commons-logging:1.2=lintClassPath +io.grpc:grpc-api:1.57.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.grpc:grpc-context:1.57.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.grpc:grpc-core:1.57.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.grpc:grpc-netty:1.57.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.grpc:grpc-protobuf-lite:1.57.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.grpc:grpc-protobuf:1.57.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.grpc:grpc-stub:1.57.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-buffer:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-codec-http2:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-codec-http:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-codec-socks:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-codec:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-common:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-handler-proxy:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-handler:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-resolver:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-transport-native-unix-common:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-transport:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.perfmark:perfmark-api:0.26.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle it.unimi.dsi:fastutil:7.2.0=lintClassPath javax.activation:javax.activation-api:1.2.0=lintClassPath +javax.annotation:javax.annotation-api:1.3.2=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle javax.inject:javax.inject:1=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,lintClassPath javax.xml.bind:jaxb-api:2.3.1=lintClassPath junit:junit:4.12=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath junit:junit:4.13=debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +net.java.dev.jna:jna-platform:5.6.0=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +net.java.dev.jna:jna:5.6.0=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle net.sf.jopt-simple:jopt-simple:4.9=lintClassPath -net.sf.kxml:kxml2:2.3.0=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,lintClassPath +net.sf.kxml:kxml2:2.3.0=_internal-unified-test-platform-android-device-provider-ddmlib,debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,lintClassPath org.apache.commons:commons-compress:1.12=lintClassPath org.apache.httpcomponents:httpclient:4.5.6=lintClassPath org.apache.httpcomponents:httpcore:4.4.10=lintClassPath @@ -91,8 +168,10 @@ org.apache.httpcomponents:httpmime:4.5.6=lintClassPath org.bouncycastle:bcpkix-jdk15on:1.56=lintClassPath org.bouncycastle:bcprov-jdk15on:1.56=lintClassPath org.checkerframework:checker-qual:2.8.1=lintClassPath +org.checkerframework:checker-qual:3.33.0=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle org.codehaus.groovy:groovy-all:2.4.15=lintClassPath org.codehaus.mojo:animal-sniffer-annotations:1.18=lintClassPath +org.codehaus.mojo:animal-sniffer-annotations:1.23=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle org.glassfish.jaxb:jaxb-runtime:2.3.1=lintClassPath org.glassfish.jaxb:txw2:2.3.1=lintClassPath org.hamcrest:hamcrest-core:1.3=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath @@ -104,18 +183,27 @@ org.jacoco:org.jacoco.core:0.8.7=androidJacocoAnt org.jacoco:org.jacoco.report:0.8.7=androidJacocoAnt org.jetbrains.kotlin:kotlin-reflect:1.3.72=lintClassPath org.jetbrains.kotlin:kotlin-stdlib-common:1.3.72=lintClassPath -org.jetbrains.kotlin:kotlin-stdlib-common:1.5.31=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-common:1.8.22=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-common:1.9.20=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.3.72=lintClassPath -org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.5.30=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.8.20=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.9.20=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.72=lintClassPath -org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.5.30=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.8.20=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.9.20=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle org.jetbrains.kotlin:kotlin-stdlib:1.3.72=lintClassPath -org.jetbrains.kotlin:kotlin-stdlib:1.5.31=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.2=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.5.2=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib:1.8.22=debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib:1.9.20=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.1=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-bom:1.6.4=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +org.jetbrains.kotlinx:kotlinx-coroutines-bom:1.7.1=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.6.4=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.7.1=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.1=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath org.jetbrains.trove4j:trove4j:20160824=lintClassPath -org.jetbrains:annotations:13.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,lintClassPath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains:annotations:13.0=_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle,lintClassPath +org.jetbrains:annotations:23.0.0=_internal-unified-test-platform-android-device-provider-ddmlib,debugAndroidTestCompileClasspath,debugAndroidTestRuntimeClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath org.jvnet.staxex:stax-ex:1.8=lintClassPath org.ow2.asm:asm-analysis:7.0=lintClassPath org.ow2.asm:asm-analysis:9.1=androidJacocoAnt diff --git a/flutter/examples/platform_channel/android/settings.gradle b/flutter/examples/platform_channel/android/settings.gradle index 03ae72d135c01f849e6812b36575b62b14fee791..4a155b35ec304af4a4baaf5f5fcbe6d0ac296764 100644 --- a/flutter/examples/platform_channel/android/settings.gradle +++ b/flutter/examples/platform_channel/android/settings.gradle @@ -6,16 +6,36 @@ // To update all the settings.gradle files in the Flutter repo, // See dev/tools/bin/generate_gradle_lockfiles.dart. -include ':app' +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() -enableFeaturePreview('ONE_LOCKFILE_PER_PROJECT') + includeBuild("${settings.ext.flutterSdkPath}/packages/flutter_tools/gradle") -def localPropertiesFile = new File(rootProject.projectDir, "local.properties") -def properties = new Properties() + repositories { + google() + mavenCentral() + gradlePluginPortal() + } +} -assert localPropertiesFile.exists() -localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) } +buildscript { + dependencyLocking { + lockFile = file("${rootProject.projectDir}/buildscript-gradle.lockfile") + lockAllConfigurations() + } +} -def flutterSdkPath = properties.getProperty("flutter.sdk") -assert flutterSdkPath != null, "flutter.sdk not set in local.properties" -apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle" +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" diff --git a/flutter/examples/platform_channel/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/flutter/examples/platform_channel/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme index e67b2808af02f9ec16f2d72b7961aefdf844afa5..4f746537f280af75dcdac17b8e41c5a5d051e1d1 100644 --- a/flutter/examples/platform_channel/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme +++ b/flutter/examples/platform_channel/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme @@ -50,6 +50,7 @@ ignoresPersistentStateOnLaunch = "NO" debugDocumentVersioning = "YES" debugServiceExtension = "internal" + enableGPUValidationMode = "1" allowLocationSimulation = "YES"> diff --git a/flutter/examples/platform_channel/lib/main.dart b/flutter/examples/platform_channel/lib/main.dart index ede86a0f1b9eaf73a4d28e9179a366150a235bd1..0c057ab13b164fe506c46f82992f146d6c3b130f 100644 --- a/flutter/examples/platform_channel/lib/main.dart +++ b/flutter/examples/platform_channel/lib/main.dart @@ -15,10 +15,8 @@ class PlatformChannel extends StatefulWidget { } class _PlatformChannelState extends State { - static const MethodChannel methodChannel = - MethodChannel('samples.flutter.io/battery'); - static const EventChannel eventChannel = - EventChannel('samples.flutter.io/charging'); + static const MethodChannel methodChannel = MethodChannel('samples.flutter.io/battery'); + static const EventChannel eventChannel = EventChannel('samples.flutter.io/charging'); String _batteryLevel = 'Battery level: unknown.'; String _chargingStatus = 'Battery status: unknown.'; @@ -48,8 +46,7 @@ class _PlatformChannelState extends State { void _onEvent(Object? event) { setState(() { - _chargingStatus = - "Battery status: ${event == 'charging' ? '' : 'dis'}charging."; + _chargingStatus = "Battery status: ${event == 'charging' ? '' : 'dis'}charging."; }); } @@ -71,10 +68,7 @@ class _PlatformChannelState extends State { Text(_batteryLevel, key: const Key('Battery level label')), Padding( padding: const EdgeInsets.all(16.0), - child: ElevatedButton( - onPressed: _getBatteryLevel, - child: const Text('Refresh'), - ), + child: ElevatedButton(onPressed: _getBatteryLevel, child: const Text('Refresh')), ), ], ), diff --git a/flutter/examples/platform_channel/linux/my_application.cc b/flutter/examples/platform_channel/linux/my_application.cc index 9abcb1bbb478375eab1704464e96cffa11980d6a..a0bcb384df47a2ad584d647251dcb08f87e9a6a3 100644 --- a/flutter/examples/platform_channel/linux/my_application.cc +++ b/flutter/examples/platform_channel/linux/my_application.cc @@ -42,8 +42,7 @@ static void update_charging_state(MyApplication* self) { const gchar* charge_event = "discharging"; for (guint i = 0; i < self->battery_devices->len; i++) { - UpDevice* device = - static_cast(g_ptr_array_index(self->battery_devices, i)); + UpDevice* device = UP_DEVICE(g_ptr_array_index(self->battery_devices, i)); guint state; g_object_get(device, "state", &state, nullptr); @@ -97,8 +96,7 @@ static void up_device_removed_cb(MyApplication* self, UpDevice* device) { static FlMethodResponse* get_battery_level(MyApplication* self) { // Find the first available battery and use that. for (guint i = 0; i < self->battery_devices->len; i++) { - UpDevice* device = - static_cast(g_ptr_array_index(self->battery_devices, i)); + UpDevice* device = UP_DEVICE(g_ptr_array_index(self->battery_devices, i)); double percentage; g_object_get(device, "percentage", &percentage, nullptr); @@ -225,8 +223,7 @@ static void my_application_activate(GApplication* application) { g_autoptr(GPtrArray) devices = up_client_get_devices(self->up_client); #endif for (guint i = 0; i < devices->len; i++) { - g_autoptr(UpDevice) device = - static_cast(g_ptr_array_index(devices, i)); + UpDevice* device = UP_DEVICE(g_ptr_array_index(devices, i)); up_device_added_cb(self, device); } @@ -268,8 +265,7 @@ static void my_application_dispose(GObject* object) { MyApplication* self = MY_APPLICATION(object); for (guint i = 0; i < self->battery_devices->len; i++) { - UpDevice* device = - static_cast(g_ptr_array_index(self->battery_devices, i)); + UpDevice* device = UP_DEVICE(g_ptr_array_index(self->battery_devices, i)); g_signal_handlers_disconnect_matched(device, G_SIGNAL_MATCH_DATA, 0, 0, nullptr, nullptr, self); } @@ -278,7 +274,7 @@ static void my_application_dispose(GObject* object) { g_clear_pointer(&self->dart_entrypoint_arguments, g_strfreev); g_clear_object(&self->up_client); - g_clear_object(&self->battery_devices); + g_clear_pointer(&self->battery_devices, g_ptr_array_unref); g_clear_object(&self->battery_channel); g_clear_object(&self->charging_channel); g_clear_pointer(&self->last_charge_event, g_free); diff --git a/flutter/examples/platform_channel/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/flutter/examples/platform_channel/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme index 8d923f3b2bbce015fd092da2a7f1e240708abb28..bd565a5574654797ad1fa348bb79e32111ffb0d2 100644 --- a/flutter/examples/platform_channel/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme +++ b/flutter/examples/platform_channel/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme @@ -48,6 +48,7 @@ ignoresPersistentStateOnLaunch = "NO" debugDocumentVersioning = "YES" debugServiceExtension = "internal" + enableGPUValidationMode = "1" allowLocationSimulation = "YES"> diff --git a/flutter/examples/platform_channel/macos/Runner/AppDelegate.swift b/flutter/examples/platform_channel/macos/Runner/AppDelegate.swift index d080d41951d3506a861ceadcf4354bbbb609a562..573ad7b432ae4637bfcb6ba0131363199cba1076 100644 --- a/flutter/examples/platform_channel/macos/Runner/AppDelegate.swift +++ b/flutter/examples/platform_channel/macos/Runner/AppDelegate.swift @@ -5,9 +5,13 @@ import Cocoa import FlutterMacOS -@NSApplicationMain +@main class AppDelegate: FlutterAppDelegate { override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool { return true } + + override func applicationSupportsSecureRestorableState(_ app: NSApplication) -> Bool { + return true + } } diff --git a/flutter/examples/platform_channel/pubspec.yaml b/flutter/examples/platform_channel/pubspec.yaml index 3486f86b7a2ee94d622cb330645c075a1c0f921f..2f52b5c1f7ce906aa661f7ddd926831b1cf597a3 100644 --- a/flutter/examples/platform_channel/pubspec.yaml +++ b/flutter/examples/platform_channel/pubspec.yaml @@ -1,16 +1,16 @@ name: platform_channel environment: - sdk: '>=3.2.0-0 <4.0.0' + sdk: ^3.7.0-0 dependencies: flutter: sdk: flutter - characters: 1.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - collection: 1.18.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - material_color_utilities: 0.8.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - meta: 1.11.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + characters: 1.4.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + collection: 1.19.1 # 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.16.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" dev_dependencies: @@ -18,60 +18,61 @@ dev_dependencies: sdk: flutter flutter_driver: sdk: flutter - test: 1.24.9 + test: 1.25.15 - _fe_analyzer_shared: 65.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - analyzer: 6.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - args: 2.4.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - async: 2.11.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - boolean_selector: 2.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - clock: 1.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - convert: 3.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - coverage: 1.7.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - crypto: 3.0.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - fake_async: 1.3.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - file: 7.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - frontend_server_client: 3.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - glob: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - http_multi_server: 3.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - http_parser: 4.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - io: 1.0.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - js: 0.6.7 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - leak_tracker: 10.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - leak_tracker_flutter_testing: 2.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - leak_tracker_testing: 2.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - logging: 1.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - matcher: 0.12.16+1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - mime: 1.0.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + _fe_analyzer_shared: 80.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + analyzer: 7.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + args: 2.7.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + async: 2.13.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + boolean_selector: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + clock: 1.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + convert: 3.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + coverage: 1.11.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + crypto: 3.0.6 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + fake_async: 1.3.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + file: 7.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + frontend_server_client: 4.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + glob: 2.1.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + http_multi_server: 3.2.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + http_parser: 4.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + io: 1.0.5 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + js: 0.7.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + leak_tracker: 10.0.9 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + leak_tracker_flutter_testing: 3.0.9 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + leak_tracker_testing: 3.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + logging: 1.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + matcher: 0.12.17 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + mime: 2.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" node_preamble: 2.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - package_config: 2.1.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - path: 1.9.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + package_config: 2.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + path: 1.9.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" pool: 1.5.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - pub_semver: 2.1.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - shelf: 1.4.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + pub_semver: 2.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + shelf: 1.4.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" shelf_packages_handler: 3.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - shelf_static: 1.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - shelf_web_socket: 1.0.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - source_map_stack_trace: 2.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - source_maps: 0.10.12 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - source_span: 1.10.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - stack_trace: 1.11.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - stream_channel: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - string_scanner: 1.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + shelf_static: 1.1.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + shelf_web_socket: 2.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + source_map_stack_trace: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + source_maps: 0.10.13 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + source_span: 1.10.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + stack_trace: 1.12.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + stream_channel: 2.1.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + string_scanner: 1.4.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" sync_http: 0.3.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - term_glyph: 1.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - test_api: 0.6.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - test_core: 0.5.9 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - typed_data: 1.3.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - vm_service: 13.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - watcher: 1.1.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - web: 0.4.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - web_socket_channel: 2.4.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - webdriver: 3.0.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + term_glyph: 1.2.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + test_api: 0.7.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + test_core: 0.6.8 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + typed_data: 1.4.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + vm_service: 15.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + watcher: 1.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + web: 1.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + web_socket: 0.1.6 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + web_socket_channel: 3.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + webdriver: 3.1.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" webkit_inspection_protocol: 1.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - yaml: 3.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + yaml: 3.1.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" flutter: uses-material-design: true -# PUBSPEC CHECKSUM: 6020 +# PUBSPEC CHECKSUM: 8aed diff --git a/flutter/examples/platform_channel/test/platform_channel_test.dart b/flutter/examples/platform_channel/test/platform_channel_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..3d2590b19a742d9e69344c86ca6cf39b14678dcd --- /dev/null +++ b/flutter/examples/platform_channel/test/platform_channel_test.dart @@ -0,0 +1,15 @@ +// 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_test/flutter_test.dart'; +import 'package:platform_channel/main.dart' as platform_channel; + +void main() { + testWidgets('Platform channel smoke test', (WidgetTester tester) async { + platform_channel.main(); // builds the app and schedules a frame but doesn't trigger one + await tester.pump(); // triggers a frame + + expect(find.textContaining('Battery level: '), findsOneWidget); + }); +} diff --git a/flutter/examples/platform_channel/test_driver/button_tap_test.dart b/flutter/examples/platform_channel/test_driver/button_tap_test.dart index be36536c5632d2ae99213af841110df97d2a737a..091392f5748be57ad5355cea53f1fa2dc03ac2ab 100644 --- a/flutter/examples/platform_channel/test_driver/button_tap_test.dart +++ b/flutter/examples/platform_channel/test_driver/button_tap_test.dart @@ -18,8 +18,7 @@ void main() { }); test('tap on the button, verify result', () async { - final SerializableFinder batteryLevelLabel = - find.byValueKey('Battery level label'); + final SerializableFinder batteryLevelLabel = find.byValueKey('Battery level label'); expect(batteryLevelLabel, isNotNull); final SerializableFinder button = find.text('Refresh'); @@ -34,8 +33,7 @@ void main() { // Allow either a battery percentage or "No battery" since it will vary // by device; either indicates that a known response came from the host // implementation. - expect(batteryLevel.contains('%') || batteryLevel.contains('No battery'), - isTrue); + expect(batteryLevel.contains('%') || batteryLevel.contains('No battery'), isTrue); }); }); } diff --git a/flutter/examples/platform_channel/windows/runner/runner.exe.manifest b/flutter/examples/platform_channel/windows/runner/runner.exe.manifest index a42ea7687cb67e55af955dc8874a072e087ce3ed..153653e8d67f81b901d28257a65908f3278e058d 100644 --- a/flutter/examples/platform_channel/windows/runner/runner.exe.manifest +++ b/flutter/examples/platform_channel/windows/runner/runner.exe.manifest @@ -9,12 +9,6 @@ - - - - - - diff --git a/flutter/examples/platform_channel/windows/runner/utils.cpp b/flutter/examples/platform_channel/windows/runner/utils.cpp index a05ed58ca9a52d311cdb78383eff2413889dd11f..d9ca4c32c9d2c063250bc064e9425b7d2ff0efa5 100644 --- a/flutter/examples/platform_channel/windows/runner/utils.cpp +++ b/flutter/examples/platform_channel/windows/runner/utils.cpp @@ -49,12 +49,12 @@ std::string Utf8FromUtf16(const wchar_t* utf16_string) { if (utf16_string == nullptr) { return std::string(); } - int target_length = ::WideCharToMultiByte( + unsigned int target_length = ::WideCharToMultiByte( CP_UTF8, WC_ERR_INVALID_CHARS, utf16_string, -1, nullptr, 0, nullptr, nullptr) -1; // remove the trailing null character std::string utf8_string; - if (target_length <= 0 || target_length > utf8_string.max_size()) { + if (target_length == 0 || target_length > utf8_string.max_size()) { return utf8_string; } utf8_string.resize(target_length); diff --git a/flutter/examples/platform_channel_swift/README.md b/flutter/examples/platform_channel_swift/README.md index da415d80ba0d3e4546c8c8eed410e19466ee3408..81e477afabd6c3a5105e7be0932939039c872e92 100644 --- a/flutter/examples/platform_channel_swift/README.md +++ b/flutter/examples/platform_channel_swift/README.md @@ -5,7 +5,7 @@ services on iOS using Swift. The equivalent version of this project in Objective C is found in examples/platform_channel. You can read more about -[accessing platform and third-party services in Flutter](https://flutter.dev/platform-channels/). +[accessing platform and third-party services in Flutter](https://flutter.dev/to/platform-channels/). ## iOS diff --git a/flutter/examples/platform_channel_swift/ios/Runner/AppDelegate.swift b/flutter/examples/platform_channel_swift/ios/Runner/AppDelegate.swift index f5eadb6930270ce535b086e2452d59c82f468d08..83b04716f91583714c9c5d7c8bea13453c13b742 100644 --- a/flutter/examples/platform_channel_swift/ios/Runner/AppDelegate.swift +++ b/flutter/examples/platform_channel_swift/ios/Runner/AppDelegate.swift @@ -19,7 +19,7 @@ enum MyFlutterErrorCode { static let unavailable = "UNAVAILABLE" } -@UIApplicationMain +@main @objc class AppDelegate: FlutterAppDelegate, FlutterStreamHandler { private var eventSink: FlutterEventSink? diff --git a/flutter/examples/platform_channel_swift/lib/main.dart b/flutter/examples/platform_channel_swift/lib/main.dart index ada6ab5b592368d6e1a8ae4d820514163c38ea81..febf360c2cbadc0f3ea2eedf6608b45d2277f5e8 100644 --- a/flutter/examples/platform_channel_swift/lib/main.dart +++ b/flutter/examples/platform_channel_swift/lib/main.dart @@ -15,10 +15,8 @@ class PlatformChannel extends StatefulWidget { } class _PlatformChannelState extends State { - static const MethodChannel methodChannel = - MethodChannel('samples.flutter.io/battery'); - static const EventChannel eventChannel = - EventChannel('samples.flutter.io/charging'); + static const MethodChannel methodChannel = MethodChannel('samples.flutter.io/battery'); + static const EventChannel eventChannel = EventChannel('samples.flutter.io/charging'); String _batteryLevel = 'Battery level: unknown.'; String _chargingStatus = 'Battery status: unknown.'; @@ -44,8 +42,7 @@ class _PlatformChannelState extends State { void _onEvent(Object? event) { setState(() { - _chargingStatus = - "Battery status: ${event == 'charging' ? '' : 'dis'}charging."; + _chargingStatus = "Battery status: ${event == 'charging' ? '' : 'dis'}charging."; }); } @@ -67,10 +64,7 @@ class _PlatformChannelState extends State { Text(_batteryLevel, key: const Key('Battery level label')), Padding( padding: const EdgeInsets.all(16.0), - child: ElevatedButton( - onPressed: _getBatteryLevel, - child: const Text('Refresh'), - ), + child: ElevatedButton(onPressed: _getBatteryLevel, child: const Text('Refresh')), ), ], ), diff --git a/flutter/examples/platform_channel_swift/pubspec.yaml b/flutter/examples/platform_channel_swift/pubspec.yaml index 01bc3ffac36cc7653f1bb13aac700d661b1dfcaa..6e74ee7660a9ce81dd9b356c39e67a7983c7ff97 100644 --- a/flutter/examples/platform_channel_swift/pubspec.yaml +++ b/flutter/examples/platform_channel_swift/pubspec.yaml @@ -1,16 +1,16 @@ name: platform_channel_swift environment: - sdk: '>=3.2.0-0 <4.0.0' + sdk: ^3.7.0-0 dependencies: flutter: sdk: flutter - characters: 1.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - collection: 1.18.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - material_color_utilities: 0.8.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - meta: 1.11.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + characters: 1.4.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + collection: 1.19.1 # 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.16.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" dev_dependencies: @@ -18,60 +18,61 @@ dev_dependencies: sdk: flutter flutter_driver: sdk: flutter - test: 1.24.9 + test: 1.25.15 - _fe_analyzer_shared: 65.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - analyzer: 6.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - args: 2.4.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - async: 2.11.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - boolean_selector: 2.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - clock: 1.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - convert: 3.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - coverage: 1.7.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - crypto: 3.0.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - fake_async: 1.3.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - file: 7.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - frontend_server_client: 3.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - glob: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - http_multi_server: 3.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - http_parser: 4.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - io: 1.0.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - js: 0.6.7 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - leak_tracker: 10.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - leak_tracker_flutter_testing: 2.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - leak_tracker_testing: 2.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - logging: 1.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - matcher: 0.12.16+1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - mime: 1.0.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + _fe_analyzer_shared: 80.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + analyzer: 7.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + args: 2.7.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + async: 2.13.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + boolean_selector: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + clock: 1.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + convert: 3.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + coverage: 1.11.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + crypto: 3.0.6 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + fake_async: 1.3.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + file: 7.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + frontend_server_client: 4.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + glob: 2.1.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + http_multi_server: 3.2.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + http_parser: 4.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + io: 1.0.5 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + js: 0.7.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + leak_tracker: 10.0.9 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + leak_tracker_flutter_testing: 3.0.9 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + leak_tracker_testing: 3.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + logging: 1.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + matcher: 0.12.17 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + mime: 2.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" node_preamble: 2.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - package_config: 2.1.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - path: 1.9.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + package_config: 2.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + path: 1.9.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" pool: 1.5.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - pub_semver: 2.1.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - shelf: 1.4.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + pub_semver: 2.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + shelf: 1.4.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" shelf_packages_handler: 3.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - shelf_static: 1.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - shelf_web_socket: 1.0.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - source_map_stack_trace: 2.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - source_maps: 0.10.12 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - source_span: 1.10.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - stack_trace: 1.11.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - stream_channel: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - string_scanner: 1.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + shelf_static: 1.1.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + shelf_web_socket: 2.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + source_map_stack_trace: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + source_maps: 0.10.13 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + source_span: 1.10.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + stack_trace: 1.12.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + stream_channel: 2.1.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + string_scanner: 1.4.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" sync_http: 0.3.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - term_glyph: 1.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - test_api: 0.6.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - test_core: 0.5.9 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - typed_data: 1.3.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - vm_service: 13.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - watcher: 1.1.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - web: 0.4.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - web_socket_channel: 2.4.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - webdriver: 3.0.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + term_glyph: 1.2.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + test_api: 0.7.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + test_core: 0.6.8 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + typed_data: 1.4.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + vm_service: 15.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + watcher: 1.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + web: 1.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + web_socket: 0.1.6 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + web_socket_channel: 3.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + webdriver: 3.1.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" webkit_inspection_protocol: 1.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" - yaml: 3.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + yaml: 3.1.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" flutter: uses-material-design: true -# PUBSPEC CHECKSUM: 6020 +# PUBSPEC CHECKSUM: 8aed diff --git a/flutter/examples/platform_channel_swift/test_driver/button_tap_test.dart b/flutter/examples/platform_channel_swift/test_driver/button_tap_test.dart index 53d4c997d1866101fa4f1637853fbb259a0bf4cf..8836399ad9035c51d018677cd5f183d44a8715ad 100644 --- a/flutter/examples/platform_channel_swift/test_driver/button_tap_test.dart +++ b/flutter/examples/platform_channel_swift/test_driver/button_tap_test.dart @@ -18,8 +18,7 @@ void main() { }); test('tap on the button, verify result', () async { - final SerializableFinder batteryLevelLabel = - find.byValueKey('Battery level label'); + final SerializableFinder batteryLevelLabel = find.byValueKey('Battery level label'); expect(batteryLevelLabel, isNotNull); final SerializableFinder button = find.text('Refresh'); diff --git a/flutter/examples/platform_view/README.md b/flutter/examples/platform_view/README.md index c1a95888e18f18c4fda19d33ca0ae92796649bc0..5cd2126fd5158c6c8c36186bf166dbd74f4ebaec 100644 --- a/flutter/examples/platform_view/README.md +++ b/flutter/examples/platform_view/README.md @@ -6,7 +6,7 @@ full-screen Flutter view along with passing data back and forth between the two. On iOS, we use a CocoaPods dependency to add a Material Design button, and so `pod install` needs to be invoked in the `ios/` folder before `flutter run`: -``` +```sh pushd ios/ ; pod install ; popd flutter run ``` diff --git a/flutter/examples/platform_view/android/app/build.gradle b/flutter/examples/platform_view/android/app/build.gradle index 228e73ecbb04bb1fb03b9276fbbd35eed645c028..b66e0713959a8960d5677c15fbd407f4b33924d0 100644 --- a/flutter/examples/platform_view/android/app/build.gradle +++ b/flutter/examples/platform_view/android/app/build.gradle @@ -2,6 +2,11 @@ // 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 "dev.flutter.flutter-gradle-plugin" +} + def localProperties = new Properties() def localPropertiesFile = rootProject.file('local.properties') if (localPropertiesFile.exists()) { @@ -10,11 +15,6 @@ if (localPropertiesFile.exists()) { } } -def flutterRoot = localProperties.getProperty('flutter.sdk') -if (flutterRoot == null) { - throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") -} - def flutterVersionCode = localProperties.getProperty('flutter.versionCode') if (flutterVersionCode == null) { flutterVersionCode = '1' @@ -25,13 +25,19 @@ if (flutterVersionName == null) { flutterVersionName = '1.0' } -apply plugin: 'com.android.application' -apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" - android { namespace "io.flutter.examples.platform_view" compileSdk flutter.compileSdkVersion + // Flutter's CI installs the NDK at a non-standard path. + // This non-standard structure is initially created by + // https://github.com/flutter/engine/blob/3.27.0/tools/android_sdk/create_cipd_packages.sh. + String systemNdkPath = System.getenv("ANDROID_NDK_PATH") + if (systemNdkPath != null) { + ndkVersion = flutter.ndkVersion + ndkPath = systemNdkPath + } + compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 diff --git a/flutter/examples/platform_view/android/app/src/main/AndroidManifest.xml b/flutter/examples/platform_view/android/app/src/main/AndroidManifest.xml index 4dd54b32013d19ed7b34619c9bb277ea60ba85f8..f36af92b4051461f1ef8bb3126717051a7627fec 100644 --- a/flutter/examples/platform_view/android/app/src/main/AndroidManifest.xml +++ b/flutter/examples/platform_view/android/app/src/main/AndroidManifest.xml @@ -37,7 +37,7 @@ found in the LICENSE file. --> android:value="2" /> diff --git a/flutter/examples/platform_view/android/build.gradle b/flutter/examples/platform_view/android/build.gradle index 2de20623576a82c3115eca8b1bdb56fd5b5051cb..bedac9d2d4db435dfecb639ddd968f06a9375609 100644 --- a/flutter/examples/platform_view/android/build.gradle +++ b/flutter/examples/platform_view/android/build.gradle @@ -6,23 +6,6 @@ // To update all the build.gradle files in the Flutter repo, // See dev/tools/bin/generate_gradle_lockfiles.dart. -buildscript { - ext.kotlin_version = '1.5.31' - repositories { - google() - mavenCentral() - } - - dependencies { - classpath 'com.android.tools.build:gradle:7.2.0' - classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" - } - - configurations.classpath { - resolutionStrategy.activateDependencyLocking() - } -} - allprojects { repositories { google() diff --git a/flutter/examples/platform_view/android/buildscript-gradle.lockfile b/flutter/examples/platform_view/android/buildscript-gradle.lockfile index efe13277310ee8fef3c9d7f6f8a2cbbe601d110f..545abc59e924a9127dd0d66b4c85bb9e855adb90 100644 --- a/flutter/examples/platform_view/android/buildscript-gradle.lockfile +++ b/flutter/examples/platform_view/android/buildscript-gradle.lockfile @@ -1,71 +1,68 @@ # 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:7.2.0=classpath -androidx.databinding:databinding-compiler-common:7.2.0=classpath -com.android.databinding:baseLibrary:7.2.0=classpath -com.android.tools.analytics-library:crash:30.2.0=classpath -com.android.tools.analytics-library:protos:30.2.0=classpath -com.android.tools.analytics-library:shared:30.2.0=classpath -com.android.tools.analytics-library:tracker:30.2.0=classpath -com.android.tools.build.jetifier:jetifier-core:1.0.0-beta09=classpath -com.android.tools.build.jetifier:jetifier-processor:1.0.0-beta09=classpath -com.android.tools.build:aapt2-proto:7.2.0-7984345=classpath -com.android.tools.build:aaptcompiler:7.2.0=classpath -com.android.tools.build:apksig:7.2.0=classpath -com.android.tools.build:apkzlib:7.2.0=classpath -com.android.tools.build:builder-model:7.2.0=classpath -com.android.tools.build:builder-test-api:7.2.0=classpath -com.android.tools.build:builder:7.2.0=classpath -com.android.tools.build:bundletool:1.8.2=classpath -com.android.tools.build:gradle-api:7.2.0=classpath -com.android.tools.build:gradle:7.2.0=classpath -com.android.tools.build:manifest-merger:30.2.0=classpath +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:30.2.0=classpath -com.android.tools.layoutlib:layoutlib-api:30.2.0=classpath -com.android.tools.lint:lint-model:30.2.0=classpath -com.android.tools.lint:lint-typedef-remover:30.2.0=classpath -com.android.tools.utp:android-device-provider-ddmlib-proto:30.2.0=classpath -com.android.tools.utp:android-device-provider-gradle-proto:30.2.0=classpath -com.android.tools.utp:android-test-plugin-host-additional-test-output-proto:30.2.0=classpath -com.android.tools.utp:android-test-plugin-host-coverage-proto:30.2.0=classpath -com.android.tools.utp:android-test-plugin-host-retention-proto:30.2.0=classpath -com.android.tools.utp:android-test-plugin-result-listener-gradle-proto:30.2.0=classpath -com.android.tools:annotations:30.2.0=classpath -com.android.tools:common:30.2.0=classpath -com.android.tools:dvlib:30.2.0=classpath -com.android.tools:repository:30.2.0=classpath -com.android.tools:sdk-common:30.2.0=classpath -com.android.tools:sdklib:30.2.0=classpath -com.android:signflinger:7.2.0=classpath -com.android:zipflinger:7.2.0=classpath -com.fasterxml.jackson.core:jackson-annotations:2.11.1=classpath -com.fasterxml.jackson.core:jackson-core:2.11.1=classpath -com.fasterxml.jackson.core:jackson-databind:2.11.1=classpath -com.fasterxml.jackson.dataformat:jackson-dataformat-xml:2.11.1=classpath -com.fasterxml.jackson.module:jackson-module-jaxb-annotations:2.11.1=classpath -com.fasterxml.jackson.module:jackson-module-kotlin:2.11.1=classpath -com.fasterxml.woodstox:woodstox-core:6.2.1=classpath -com.github.gundy:semver4j:0.16.4=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:1.12.0=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.8.6=classpath -com.google.crypto.tink:tink:1.3.0-rc2=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.3.4=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:30.1-jre=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:1.3=classpath +com.google.j2objc:j2objc-annotations:2.8=classpath com.google.jimfs:jimfs:1.1=classpath -com.google.protobuf:protobuf-java-util:3.10.0=classpath -com.google.protobuf:protobuf-java:3.10.0=classpath -com.google.testing.platform:core-proto:0.0.8-alpha07=classpath -com.googlecode.json-simple:json-simple: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 @@ -73,91 +70,89 @@ 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.4=classpath +commons-io:commons-io:2.13.0=classpath commons-logging:commons-logging:1.2=classpath -de.undercouch:gradle-download-task:4.1.1=classpath -io.grpc:grpc-api:1.21.1=classpath -io.grpc:grpc-context:1.21.1=classpath -io.grpc:grpc-core:1.21.1=classpath -io.grpc:grpc-netty:1.21.1=classpath -io.grpc:grpc-protobuf-lite:1.21.1=classpath -io.grpc:grpc-protobuf:1.21.1=classpath -io.grpc:grpc-stub:1.21.1=classpath -io.netty:netty-buffer:4.1.34.Final=classpath -io.netty:netty-codec-http2:4.1.34.Final=classpath -io.netty:netty-codec-http:4.1.34.Final=classpath -io.netty:netty-codec-socks:4.1.34.Final=classpath -io.netty:netty-codec:4.1.34.Final=classpath -io.netty:netty-common:4.1.34.Final=classpath -io.netty:netty-handler-proxy:4.1.34.Final=classpath -io.netty:netty-handler:4.1.34.Final=classpath -io.netty:netty-resolver:4.1.34.Final=classpath -io.netty:netty-transport:4.1.34.Final=classpath -io.opencensus:opencensus-api:0.21.0=classpath -io.opencensus:opencensus-contrib-grpc-metrics:0.21.0=classpath -it.unimi.dsi:fastutil:8.4.0=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.20=classpath -org.apache.httpcomponents:httpclient:4.5.9=classpath -org.apache.httpcomponents:httpcore:4.4.11=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.7.0=classpath -org.bouncycastle:bcpkix-jdk15on:1.56=classpath -org.bouncycastle:bcprov-jdk15on:1.56=classpath -org.checkerframework:checker-qual:3.5.0=classpath -org.codehaus.mojo:animal-sniffer-annotations:1.17=classpath -org.codehaus.woodstox:stax2-api:4.2.1=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.dokka:dokka-core:1.4.32=classpath -org.jetbrains.intellij.deps:trove4j:1.0.20181211=classpath -org.jetbrains.kotlin:kotlin-android-extensions:1.5.31=classpath -org.jetbrains.kotlin:kotlin-annotation-processing-gradle:1.5.31=classpath -org.jetbrains.kotlin:kotlin-build-common:1.5.31=classpath -org.jetbrains.kotlin:kotlin-compiler-embeddable:1.5.31=classpath -org.jetbrains.kotlin:kotlin-compiler-runner:1.5.31=classpath -org.jetbrains.kotlin:kotlin-daemon-client:1.5.31=classpath -org.jetbrains.kotlin:kotlin-daemon-embeddable:1.5.31=classpath -org.jetbrains.kotlin:kotlin-gradle-plugin-api:1.5.31=classpath -org.jetbrains.kotlin:kotlin-gradle-plugin-model:1.5.31=classpath -org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.31=classpath -org.jetbrains.kotlin:kotlin-klib-commonizer-api:1.5.31=classpath -org.jetbrains.kotlin:kotlin-native-utils:1.5.31=classpath -org.jetbrains.kotlin:kotlin-project-model:1.5.31=classpath -org.jetbrains.kotlin:kotlin-reflect:1.5.31=classpath -org.jetbrains.kotlin:kotlin-scripting-common:1.5.31=classpath -org.jetbrains.kotlin:kotlin-scripting-compiler-embeddable:1.5.31=classpath -org.jetbrains.kotlin:kotlin-scripting-compiler-impl-embeddable:1.5.31=classpath -org.jetbrains.kotlin:kotlin-scripting-jvm:1.5.31=classpath -org.jetbrains.kotlin:kotlin-stdlib-common:1.5.31=classpath -org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.5.31=classpath -org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.5.31=classpath -org.jetbrains.kotlin:kotlin-stdlib:1.5.31=classpath -org.jetbrains.kotlin:kotlin-tooling-metadata:1.5.31=classpath -org.jetbrains.kotlin:kotlin-util-io:1.5.31=classpath -org.jetbrains.kotlin:kotlin-util-klib:1.5.31=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-common:1.9.20=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.kotlinx:kotlinx-coroutines-core:1.5.0=classpath -org.jetbrains:annotations:13.0=classpath -org.jetbrains:markdown-jvm:0.2.1=classpath -org.jetbrains:markdown:0.2.1=classpath -org.json:json:20180813=classpath -org.jsoup:jsoup:1.13.1=classpath +org.jetbrains.kotlinx:kotlinx-serialization-core-jvm:1.4.0=classpath +org.jetbrains.kotlinx:kotlinx-serialization-core:1.4.0=classpath +org.jetbrains.kotlinx:kotlinx-serialization-json-jvm:1.4.0=classpath +org.jetbrains.kotlinx:kotlinx-serialization-json:1.4.0=classpath +org.jetbrains:annotations:23.0.0=classpath org.jvnet.staxex:stax-ex:1.8.1=classpath -org.ow2.asm:asm-analysis:9.1=classpath -org.ow2.asm:asm-commons:9.1=classpath -org.ow2.asm:asm-tree:9.1=classpath -org.ow2.asm:asm-util:9.1=classpath -org.ow2.asm:asm:9.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 -xerces:xercesImpl:2.12.0=classpath -xml-apis:xml-apis:1.4.01=classpath empty= diff --git a/flutter/examples/platform_view/android/gradle.properties b/flutter/examples/platform_view/android/gradle.properties index 598d13fee446372f156ecc38527b54c7cdcc8e3b..f018a61817f55e78bb92ce8df2dda423ec570a4a 100644 --- a/flutter/examples/platform_view/android/gradle.properties +++ b/flutter/examples/platform_view/android/gradle.properties @@ -1,3 +1,3 @@ -org.gradle.jvmargs=-Xmx4G +org.gradle.jvmargs=-Xmx8G -XX:MaxMetaspaceSize=4G -XX:ReservedCodeCacheSize=512m -XX:+HeapDumpOnOutOfMemoryError android.useAndroidX=true android.enableJetifier=true diff --git a/flutter/examples/platform_view/android/gradle/wrapper/gradle-wrapper.properties b/flutter/examples/platform_view/android/gradle/wrapper/gradle-wrapper.properties index e1ca574ef017c1bc00556b96ea372e2c07948771..afa1e8eb0a835ba6be2286d1b399c4e47b7a79a0 100644 --- a/flutter/examples/platform_view/android/gradle/wrapper/gradle-wrapper.properties +++ b/flutter/examples/platform_view/android/gradle/wrapper/gradle-wrapper.properties @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.3-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-all.zip diff --git a/flutter/examples/platform_view/android/project-app.lockfile b/flutter/examples/platform_view/android/project-app.lockfile index 607f89c82b3473c34b4fdedca4f5aeb69bd8d933..fc27bb8b189cb87002e0e9aafe9c4730bd6ee0f6 100644 --- a/flutter/examples/platform_view/android/project-app.lockfile +++ b/flutter/examples/platform_view/android/project-app.lockfile @@ -1,47 +1,57 @@ # 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,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.annotation:annotation-experimental:1.1.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.annotation:annotation:1.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.activity:activity:1.8.1=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.annotation:annotation-experimental:1.4.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.annotation:annotation-jvm:1.8.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.annotation:annotation:1.8.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath androidx.appcompat:appcompat-resources:1.1.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath androidx.appcompat:appcompat:1.1.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.arch.core:core-common:2.1.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.arch.core:core-runtime:2.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.arch.core:core-common:2.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.arch.core:core-runtime:2.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath androidx.asynclayoutinflater:asynclayoutinflater:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath androidx.cardview:cardview:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath androidx.collection:collection:1.1.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.concurrent:concurrent-futures:1.1.0=debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath androidx.coordinatorlayout:coordinatorlayout:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.core:core:1.6.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.core:core-ktx:1.13.1=debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.core:core-ktx:1.2.0=debugAndroidTestCompileClasspath +androidx.core:core:1.13.1=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath androidx.cursoradapter:cursoradapter:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath androidx.customview:customview:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath androidx.documentfile:documentfile:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath androidx.drawerlayout:drawerlayout:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.fragment:fragment:1.1.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.fragment:fragment:1.7.1=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath androidx.interpolator:interpolator:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath androidx.legacy:legacy-support-core-ui:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath androidx.legacy:legacy-support-core-utils:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.lifecycle:lifecycle-common-java8:2.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.lifecycle:lifecycle-common:2.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.lifecycle:lifecycle-livedata-core:2.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.lifecycle:lifecycle-livedata:2.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.lifecycle:lifecycle-runtime:2.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.lifecycle:lifecycle-viewmodel:2.1.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-common-java8:2.7.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-common:2.7.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-livedata-core-ktx:2.7.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-livedata-core:2.7.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-livedata:2.7.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-process:2.7.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-runtime:2.7.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-viewmodel-savedstate:2.7.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.lifecycle:lifecycle-viewmodel:2.7.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath androidx.loader:loader:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath androidx.localbroadcastmanager:localbroadcastmanager:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath androidx.print:print:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.profileinstaller:profileinstaller:1.3.1=debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath androidx.recyclerview:recyclerview:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.savedstate:savedstate:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.savedstate:savedstate:1.2.1=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath androidx.slidingpanelayout:slidingpanelayout:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.startup:startup-runtime:1.1.1=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath androidx.swiperefreshlayout:swiperefreshlayout:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.tracing:tracing:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.tracing:tracing:1.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath androidx.transition:transition:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath androidx.vectordrawable:vectordrawable-animated:1.1.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath androidx.vectordrawable:vectordrawable:1.1.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath androidx.versionedparcelable:versionedparcelable:1.1.1=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath androidx.viewpager:viewpager:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.window:window-java:1.0.0-beta04=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -androidx.window:window:1.0.0-beta04=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.window.extensions.core:core:1.0.0=debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath +androidx.window:window-java:1.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +androidx.window:window:1.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath com.android.tools.analytics-library:protos:27.1.3=lintClassPath com.android.tools.analytics-library:shared:27.1.3=lintClassPath com.android.tools.analytics-library:tracker:27.1.3=lintClassPath @@ -55,6 +65,8 @@ com.android.tools.build:builder:4.1.3=lintClassPath com.android.tools.build:gradle-api:4.1.3=lintClassPath com.android.tools.build:manifest-merger:27.1.3=lintClassPath com.android.tools.ddms:ddmlib:27.1.3=lintClassPath +com.android.tools.ddms:ddmlib:31.7.0=_internal-unified-test-platform-android-device-provider-ddmlib +com.android.tools.emulator:proto:31.7.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention com.android.tools.external.com-intellij:intellij-core:27.1.3=lintClassPath com.android.tools.external.com-intellij:kotlin-compiler:27.1.3=lintClassPath com.android.tools.external.org-jetbrains:uast:27.1.3=lintClassPath @@ -65,37 +77,101 @@ com.android.tools.lint:lint-gradle-api:27.1.3=lintClassPath com.android.tools.lint:lint-gradle:27.1.3=lintClassPath com.android.tools.lint:lint-model:27.1.3=lintClassPath com.android.tools.lint:lint:27.1.3=lintClassPath +com.android.tools.utp:android-device-provider-ddmlib-proto:31.7.0=_internal-unified-test-platform-android-device-provider-ddmlib +com.android.tools.utp:android-device-provider-ddmlib:31.7.0=_internal-unified-test-platform-android-device-provider-ddmlib +com.android.tools.utp:android-device-provider-gradle-proto:31.7.0=_internal-unified-test-platform-android-device-provider-gradle +com.android.tools.utp:android-device-provider-gradle:31.7.0=_internal-unified-test-platform-android-device-provider-gradle +com.android.tools.utp:android-device-provider-profile-proto:31.7.0=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle +com.android.tools.utp:android-device-provider-profile:31.7.0=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle +com.android.tools.utp:android-test-plugin-host-additional-test-output-proto:31.7.0=_internal-unified-test-platform-android-test-plugin-host-additional-test-output +com.android.tools.utp:android-test-plugin-host-additional-test-output:31.7.0=_internal-unified-test-platform-android-test-plugin-host-additional-test-output +com.android.tools.utp:android-test-plugin-host-apk-installer-proto:31.7.0=_internal-unified-test-platform-android-test-plugin-host-apk-installer +com.android.tools.utp:android-test-plugin-host-apk-installer:31.7.0=_internal-unified-test-platform-android-test-plugin-host-apk-installer +com.android.tools.utp:android-test-plugin-host-coverage-proto:31.7.0=_internal-unified-test-platform-android-test-plugin-host-coverage +com.android.tools.utp:android-test-plugin-host-coverage:31.7.0=_internal-unified-test-platform-android-test-plugin-host-coverage +com.android.tools.utp:android-test-plugin-host-device-info-proto:31.7.0=_internal-unified-test-platform-android-test-plugin-host-device-info +com.android.tools.utp:android-test-plugin-host-device-info:31.7.0=_internal-unified-test-platform-android-test-plugin-host-device-info +com.android.tools.utp:android-test-plugin-host-emulator-control-proto:31.7.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control +com.android.tools.utp:android-test-plugin-host-emulator-control:31.7.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control +com.android.tools.utp:android-test-plugin-host-logcat-proto:31.7.0=_internal-unified-test-platform-android-test-plugin-host-logcat +com.android.tools.utp:android-test-plugin-host-logcat:31.7.0=_internal-unified-test-platform-android-test-plugin-host-logcat +com.android.tools.utp:android-test-plugin-host-retention-proto:31.7.0=_internal-unified-test-platform-android-test-plugin-host-retention +com.android.tools.utp:android-test-plugin-host-retention:31.7.0=_internal-unified-test-platform-android-test-plugin-host-retention +com.android.tools.utp:android-test-plugin-result-listener-gradle-proto:31.7.0=_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.android.tools.utp:android-test-plugin-result-listener-gradle:31.7.0=_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.android.tools.utp:utp-common:31.7.0=_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention com.android.tools:annotations:27.1.3=lintClassPath +com.android.tools:annotations:31.7.0=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle com.android.tools:common:27.1.3=lintClassPath +com.android.tools:common:31.7.0=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle com.android.tools:dvlib:27.1.3=lintClassPath com.android.tools:repository:27.1.3=lintClassPath com.android.tools:sdk-common:27.1.3=lintClassPath com.android.tools:sdklib:27.1.3=lintClassPath com.android:signflinger:4.1.3=lintClassPath com.android:zipflinger:4.1.3=lintClassPath +com.getkeepsafe.relinker:relinker:1.4.5=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath com.google.android.material:material:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -com.google.code.findbugs:jsr305:3.0.2=lintClassPath +com.google.android:annotations:4.1.1.4=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.google.api.grpc:proto-google-common-protos:2.17.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.google.code.findbugs:jsr305:3.0.2=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle,lintClassPath +com.google.code.gson:gson:2.10.1=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle com.google.code.gson:gson:2.8.5=lintClassPath +com.google.crypto.tink:tink:1.7.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control +com.google.errorprone:error_prone_annotations:2.18.0=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle com.google.errorprone:error_prone_annotations:2.3.2=lintClassPath -com.google.guava:failureaccess:1.0.1=lintClassPath +com.google.guava:failureaccess:1.0.1=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle,lintClassPath com.google.guava:guava:28.1-jre=lintClassPath -com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava=lintClassPath +com.google.guava:guava:32.0.1-jre=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.google.guava:listenablefuture:1.0=debugRuntimeClasspath,debugUnitTestRuntimeClasspath,profileRuntimeClasspath,profileUnitTestRuntimeClasspath,releaseRuntimeClasspath,releaseUnitTestRuntimeClasspath +com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle,lintClassPath com.google.j2objc:j2objc-annotations:1.3=lintClassPath +com.google.j2objc:j2objc-annotations:2.8=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle com.google.jimfs:jimfs:1.1=lintClassPath com.google.protobuf:protobuf-java:3.10.0=lintClassPath +com.google.protobuf:protobuf-java:3.22.3=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.google.testing.platform:android-device-provider-local:0.0.9-alpha02=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.google.testing.platform:android-driver-instrumentation:0.0.9-alpha02=_internal-unified-test-platform-android-driver-instrumentation,_internal-unified-test-platform-android-test-plugin-host-emulator-control +com.google.testing.platform:android-test-plugin:0.0.9-alpha02=_internal-unified-test-platform-android-test-plugin +com.google.testing.platform:core-proto:0.0.9-alpha02=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +com.google.testing.platform:core:0.0.9-alpha02=_internal-unified-test-platform-core +com.google.testing.platform:launcher:0.0.9-alpha02=_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-launcher com.googlecode.json-simple:json-simple:1.1=lintClassPath com.squareup:javawriter:2.5.0=lintClassPath com.sun.activation:javax.activation:1.2.0=lintClassPath com.sun.istack:istack-commons-runtime:3.0.7=lintClassPath com.sun.xml.fastinfoset:FastInfoset:1.2.15=lintClassPath commons-codec:commons-codec:1.10=lintClassPath +commons-io:commons-io:2.13.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention commons-logging:commons-logging:1.2=lintClassPath +io.grpc:grpc-api:1.57.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.grpc:grpc-context:1.57.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.grpc:grpc-core:1.57.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.grpc:grpc-netty:1.57.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.grpc:grpc-protobuf-lite:1.57.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.grpc:grpc-protobuf:1.57.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.grpc:grpc-stub:1.57.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-buffer:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-codec-http2:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-codec-http:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-codec-socks:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-codec:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-common:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-handler-proxy:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-handler:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-resolver:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-transport-native-unix-common:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.netty:netty-transport:4.1.93.Final=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +io.perfmark:perfmark-api:0.26.0=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle it.unimi.dsi:fastutil:7.2.0=lintClassPath javax.activation:javax.activation-api:1.2.0=lintClassPath +javax.annotation:javax.annotation-api:1.3.2=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle javax.inject:javax.inject:1=lintClassPath javax.xml.bind:jaxb-api:2.3.1=lintClassPath +net.java.dev.jna:jna-platform:5.6.0=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +net.java.dev.jna:jna:5.6.0=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle net.sf.jopt-simple:jopt-simple:4.9=lintClassPath -net.sf.kxml:kxml2:2.3.0=lintClassPath +net.sf.kxml:kxml2:2.3.0=_internal-unified-test-platform-android-device-provider-ddmlib,lintClassPath org.apache.commons:commons-compress:1.12=lintClassPath org.apache.httpcomponents:httpclient:4.5.6=lintClassPath org.apache.httpcomponents:httpcore:4.4.10=lintClassPath @@ -103,8 +179,10 @@ org.apache.httpcomponents:httpmime:4.5.6=lintClassPath org.bouncycastle:bcpkix-jdk15on:1.56=lintClassPath org.bouncycastle:bcprov-jdk15on:1.56=lintClassPath org.checkerframework:checker-qual:2.8.1=lintClassPath +org.checkerframework:checker-qual:3.33.0=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle org.codehaus.groovy:groovy-all:2.4.15=lintClassPath org.codehaus.mojo:animal-sniffer-annotations:1.18=lintClassPath +org.codehaus.mojo:animal-sniffer-annotations:1.23=_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle org.glassfish.jaxb:jaxb-runtime:2.3.1=lintClassPath org.glassfish.jaxb:txw2:2.3.1=lintClassPath org.jacoco:org.jacoco.agent:0.8.7=androidJacocoAnt @@ -113,18 +191,27 @@ org.jacoco:org.jacoco.core:0.8.7=androidJacocoAnt org.jacoco:org.jacoco.report:0.8.7=androidJacocoAnt org.jetbrains.kotlin:kotlin-reflect:1.3.72=lintClassPath org.jetbrains.kotlin:kotlin-stdlib-common:1.3.72=lintClassPath -org.jetbrains.kotlin:kotlin-stdlib-common:1.5.31=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-common:1.8.22=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-common:1.9.20=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.3.72=lintClassPath -org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.5.30=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.8.20=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.9.20=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.72=lintClassPath -org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.5.30=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.8.20=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.9.20=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle org.jetbrains.kotlin:kotlin-stdlib:1.3.72=lintClassPath -org.jetbrains.kotlin:kotlin-stdlib:1.5.31=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.2=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.5.2=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath -org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib:1.8.22=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlin:kotlin-stdlib:1.9.20=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.1=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-bom:1.6.4=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +org.jetbrains.kotlinx:kotlinx-coroutines-bom:1.7.1=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.6.4=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.7.1=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4=_internal-unified-test-platform-android-device-provider-ddmlib,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle +org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.1=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath org.jetbrains.trove4j:trove4j:20160824=lintClassPath -org.jetbrains:annotations:13.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,lintClassPath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath +org.jetbrains:annotations:13.0=_internal-unified-test-platform-android-device-provider-gradle,_internal-unified-test-platform-android-test-plugin-host-additional-test-output,_internal-unified-test-platform-android-test-plugin-host-apk-installer,_internal-unified-test-platform-android-test-plugin-host-coverage,_internal-unified-test-platform-android-test-plugin-host-device-info,_internal-unified-test-platform-android-test-plugin-host-emulator-control,_internal-unified-test-platform-android-test-plugin-host-logcat,_internal-unified-test-platform-android-test-plugin-host-retention,_internal-unified-test-platform-android-test-plugin-result-listener-gradle,lintClassPath +org.jetbrains:annotations:23.0.0=_internal-unified-test-platform-android-device-provider-ddmlib,debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspath org.jvnet.staxex:stax-ex:1.8=lintClassPath org.ow2.asm:asm-analysis:7.0=lintClassPath org.ow2.asm:asm-analysis:9.1=androidJacocoAnt diff --git a/flutter/examples/platform_view/android/settings.gradle b/flutter/examples/platform_view/android/settings.gradle index 03ae72d135c01f849e6812b36575b62b14fee791..4a155b35ec304af4a4baaf5f5fcbe6d0ac296764 100644 --- a/flutter/examples/platform_view/android/settings.gradle +++ b/flutter/examples/platform_view/android/settings.gradle @@ -6,16 +6,36 @@ // To update all the settings.gradle files in the Flutter repo, // See dev/tools/bin/generate_gradle_lockfiles.dart. -include ':app' +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() -enableFeaturePreview('ONE_LOCKFILE_PER_PROJECT') + includeBuild("${settings.ext.flutterSdkPath}/packages/flutter_tools/gradle") -def localPropertiesFile = new File(rootProject.projectDir, "local.properties") -def properties = new Properties() + repositories { + google() + mavenCentral() + gradlePluginPortal() + } +} -assert localPropertiesFile.exists() -localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) } +buildscript { + dependencyLocking { + lockFile = file("${rootProject.projectDir}/buildscript-gradle.lockfile") + lockAllConfigurations() + } +} -def flutterSdkPath = properties.getProperty("flutter.sdk") -assert flutterSdkPath != null, "flutter.sdk not set in local.properties" -apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle" +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" diff --git a/flutter/examples/platform_view/ios/Runner.xcodeproj/project.pbxproj b/flutter/examples/platform_view/ios/Runner.xcodeproj/project.pbxproj index 083c9c730ac496e3e3fcc388cbfa63649dd8f795..53498b9b87a2afc7d987c6996288857a0a0586ff 100644 --- a/flutter/examples/platform_view/ios/Runner.xcodeproj/project.pbxproj +++ b/flutter/examples/platform_view/ios/Runner.xcodeproj/project.pbxproj @@ -10,6 +10,7 @@ 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; 2DAF064C1ED38C3E00716BEE /* PlatformViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 2DAF064B1ED38C3E00716BEE /* PlatformViewController.m */; }; 2DAF064E1ED4224F00716BEE /* ic_add.png in Resources */ = {isa = PBXBuildFile; fileRef = 2DAF064D1ED4224F00716BEE /* ic_add.png */; }; + 3B2B2F812B8D19B0000AFD7A /* PlatformViewControllerTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 3B2B2F712B8D184C000AFD7A /* PlatformViewControllerTests.m */; }; 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; 978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */; }; 97C146F31CF9000F007C117D /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 97C146F21CF9000F007C117D /* main.m */; }; @@ -18,6 +19,16 @@ 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; /* End PBXBuildFile section */ +/* Begin PBXContainerItemProxy section */ + 3B2B2F7B2B8D199B000AFD7A /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 97C146E61CF9000F007C117D /* Project object */; + proxyType = 1; + remoteGlobalIDString = 97C146ED1CF9000F007C117D; + remoteInfo = Runner; + }; +/* End PBXContainerItemProxy section */ + /* Begin PBXCopyFilesBuildPhase section */ 9705A1C41CF9048500538489 /* Embed Frameworks */ = { isa = PBXCopyFilesBuildPhase; @@ -37,6 +48,8 @@ 2DAF064A1ED38C2300716BEE /* PlatformViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = PlatformViewController.h; sourceTree = ""; }; 2DAF064B1ED38C3E00716BEE /* PlatformViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = PlatformViewController.m; sourceTree = ""; }; 2DAF064D1ED4224F00716BEE /* ic_add.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = ic_add.png; sourceTree = ""; }; + 3B2B2F712B8D184C000AFD7A /* PlatformViewControllerTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = PlatformViewControllerTests.m; sourceTree = ""; }; + 3B2B2F772B8D199B000AFD7A /* RunnerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RunnerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; 7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; @@ -52,6 +65,13 @@ /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ + 3B2B2F742B8D199B000AFD7A /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; 97C146EB1CF9000F007C117D /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; @@ -62,6 +82,14 @@ /* End PBXFrameworksBuildPhase section */ /* Begin PBXGroup section */ + 3B2B2F782B8D199B000AFD7A /* RunnerTests */ = { + isa = PBXGroup; + children = ( + 3B2B2F712B8D184C000AFD7A /* PlatformViewControllerTests.m */, + ); + path = RunnerTests; + sourceTree = ""; + }; 9740EEB11CF90186004384FC /* Flutter */ = { isa = PBXGroup; children = ( @@ -78,6 +106,7 @@ children = ( 9740EEB11CF90186004384FC /* Flutter */, 97C146F01CF9000F007C117D /* Runner */, + 3B2B2F782B8D199B000AFD7A /* RunnerTests */, 97C146EF1CF9000F007C117D /* Products */, ); sourceTree = ""; @@ -86,6 +115,7 @@ isa = PBXGroup; children = ( 97C146EE1CF9000F007C117D /* Runner.app */, + 3B2B2F772B8D199B000AFD7A /* RunnerTests.xctest */, ); name = Products; sourceTree = ""; @@ -120,6 +150,24 @@ /* End PBXGroup section */ /* Begin PBXNativeTarget section */ + 3B2B2F762B8D199B000AFD7A /* RunnerTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 3B2B2F7D2B8D199B000AFD7A /* Build configuration list for PBXNativeTarget "RunnerTests" */; + buildPhases = ( + 3B2B2F732B8D199B000AFD7A /* Sources */, + 3B2B2F742B8D199B000AFD7A /* Frameworks */, + 3B2B2F752B8D199B000AFD7A /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 3B2B2F7C2B8D199B000AFD7A /* PBXTargetDependency */, + ); + name = RunnerTests; + productName = RunnerTests; + productReference = 3B2B2F772B8D199B000AFD7A /* RunnerTests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; 97C146ED1CF9000F007C117D /* Runner */ = { isa = PBXNativeTarget; buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; @@ -149,6 +197,10 @@ LastUpgradeCheck = 1510; ORGANIZATIONNAME = "The Flutter Authors"; TargetAttributes = { + 3B2B2F762B8D199B000AFD7A = { + CreatedOnToolsVersion = 15.2; + TestTargetID = 97C146ED1CF9000F007C117D; + }; 97C146ED1CF9000F007C117D = { CreatedOnToolsVersion = 7.3.1; }; @@ -168,11 +220,19 @@ projectRoot = ""; targets = ( 97C146ED1CF9000F007C117D /* Runner */, + 3B2B2F762B8D199B000AFD7A /* RunnerTests */, ); }; /* End PBXProject section */ /* Begin PBXResourcesBuildPhase section */ + 3B2B2F752B8D199B000AFD7A /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; 97C146EC1CF9000F007C117D /* Resources */ = { isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; @@ -222,6 +282,14 @@ /* End PBXShellScriptBuildPhase section */ /* Begin PBXSourcesBuildPhase section */ + 3B2B2F732B8D199B000AFD7A /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 3B2B2F812B8D19B0000AFD7A /* PlatformViewControllerTests.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; 97C146EA1CF9000F007C117D /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; @@ -235,6 +303,14 @@ }; /* End PBXSourcesBuildPhase section */ +/* Begin PBXTargetDependency section */ + 3B2B2F7C2B8D199B000AFD7A /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 97C146ED1CF9000F007C117D /* Runner */; + targetProxy = 3B2B2F7B2B8D199B000AFD7A /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + /* Begin PBXVariantGroup section */ 97C146FA1CF9000F007C117D /* Main.storyboard */ = { isa = PBXVariantGroup; @@ -311,12 +387,103 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ENABLE_BITCODE = NO; INFOPLIST_FILE = Runner/Info.plist; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); PRODUCT_BUNDLE_IDENTIFIER = io.flutter.examples.fullPlatformView; PRODUCT_NAME = "$(TARGET_NAME)"; }; name = Profile; }; + 3B2B2F7E2B8D199B000AFD7A /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; + BUNDLE_LOADER = "$(TEST_HOST)"; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = TC6RX3E267; + ENABLE_USER_SCRIPT_SANDBOXING = YES; + GCC_C_LANGUAGE_STANDARD = gnu17; + GENERATE_INFOPLIST_FILE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 17.2; + LOCALIZATION_PREFERS_STRING_CATALOGS = YES; + MARKETING_VERSION = 1.0; + MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; + MTL_FAST_MATH = YES; + PRODUCT_BUNDLE_IDENTIFIER = "io.flutter.examples.fullPlatformView.runner-tests"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = NO; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner"; + }; + name = Debug; + }; + 3B2B2F7F2B8D199B000AFD7A /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; + BUNDLE_LOADER = "$(TEST_HOST)"; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = TC6RX3E267; + ENABLE_USER_SCRIPT_SANDBOXING = YES; + GCC_C_LANGUAGE_STANDARD = gnu17; + GENERATE_INFOPLIST_FILE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 17.2; + LOCALIZATION_PREFERS_STRING_CATALOGS = YES; + MARKETING_VERSION = 1.0; + MTL_FAST_MATH = YES; + PRODUCT_BUNDLE_IDENTIFIER = "io.flutter.examples.fullPlatformView.runner-tests"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = NO; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner"; + }; + name = Release; + }; + 3B2B2F802B8D199B000AFD7A /* Profile */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; + BUNDLE_LOADER = "$(TEST_HOST)"; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = TC6RX3E267; + ENABLE_USER_SCRIPT_SANDBOXING = YES; + GCC_C_LANGUAGE_STANDARD = gnu17; + GENERATE_INFOPLIST_FILE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 17.2; + LOCALIZATION_PREFERS_STRING_CATALOGS = YES; + MARKETING_VERSION = 1.0; + MTL_FAST_MATH = YES; + PRODUCT_BUNDLE_IDENTIFIER = "io.flutter.examples.fullPlatformView.runner-tests"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = NO; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner"; + }; + name = Profile; + }; 97C147031CF9000F007C117D /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { @@ -428,7 +595,10 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ENABLE_BITCODE = NO; INFOPLIST_FILE = Runner/Info.plist; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); PRODUCT_BUNDLE_IDENTIFIER = io.flutter.examples.fullPlatformView; PRODUCT_NAME = "$(TARGET_NAME)"; }; @@ -441,7 +611,10 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ENABLE_BITCODE = NO; INFOPLIST_FILE = Runner/Info.plist; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); PRODUCT_BUNDLE_IDENTIFIER = io.flutter.examples.fullPlatformView; PRODUCT_NAME = "$(TARGET_NAME)"; }; @@ -450,6 +623,16 @@ /* End XCBuildConfiguration section */ /* Begin XCConfigurationList section */ + 3B2B2F7D2B8D199B000AFD7A /* Build configuration list for PBXNativeTarget "RunnerTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 3B2B2F7E2B8D199B000AFD7A /* Debug */, + 3B2B2F7F2B8D199B000AFD7A /* Release */, + 3B2B2F802B8D199B000AFD7A /* Profile */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { isa = XCConfigurationList; buildConfigurations = ( diff --git a/flutter/examples/platform_view/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/flutter/examples/platform_view/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme index e67b2808af02f9ec16f2d72b7961aefdf844afa5..488dfea4966d744d399d7bac8d67daf4ade9d572 100644 --- a/flutter/examples/platform_view/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme +++ b/flutter/examples/platform_view/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme @@ -27,8 +27,6 @@ selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" shouldUseLaunchSchemeArgsEnv = "YES"> - - - - + + + + + + @@ -61,8 +71,6 @@ ReferencedContainer = "container:Runner.xcodeproj"> - - -