stuartmorgan 394dd8d792 [pigeon] Fix Object arguments in Swift and C++ (#3020)
Fixes a warning in generated Swift output when an argument is of type Object. This is blocking flutter/plugins#6914 since we check our macOS and iOS plugin code for warnings in CI.

Rather than add a Dart generator unit test for this one specific case, I tightened the Swift compilation settings for our test plugin to treat warnings as errors (per flutter/flutter#59116 (comment)) to catch the entire class of errors, and added echo* variants for Object to make sure this one then showed up.

Incidental fixes:

I had to make a similar fix to the Dart generator for a similar warning with casting to Object?, which we'd never noticed because we weren't analyzing any generated code that returning Object or Object? before.
I had to make a change to the C++ generator so that generation would succeed, because it turned out we had no handling at all of Object in the C++ generator, causing it to throw. I'm not sure this is the output I'll keep for C++ (thus the TODO), but it's the simple fix to make it work at all.
Fixes flutter/flutter#117994
Part of flutter/flutter#59116
2023-01-05 17:27:55 -05:00
2022-11-23 01:05:06 +00:00
2017-08-01 14:58:30 -07:00

Flutter Packages

Build Status Release Status OpenSSF Scorecard

This repo is a companion repo to the main flutter repo. It contains the source code for Flutter's first-party packages (i.e., packages developed by the core Flutter team). Check the packages directory to see all packages.

These packages are also available on pub.

Issues

Please file any issues, bugs, or feature requests in the main flutter repo.

Contributing

If you wish to contribute a new package to the Flutter ecosystem, please see the documentation for developing packages. You can store your package source code in any GitHub repository (the present repo is only intended for packages developed by the core Flutter team). Once your package is ready you can publish to the pub repository.

If you wish to contribute a change to any of the existing packages in this repo, please review our contribution guide, and send a pull request.

Packages

These are the available packages in this repository.

Plugin Pub Issues Pull requests
animations pub package GitHub issues by-label GitHub pull requests by-label
cross_file pub package GitHub issues by-label GitHub pull requests by-label
css_colors pub package GitHub issues by-label GitHub pull requests by-label
cupertino_icons pub package GitHub issues by-label GitHub pull requests by-label
extension_google_sign_in_as_googleapis_auth pub package GitHub issues by-label GitHub pull requests by-label
flutter_adaptive_scaffold pub package GitHub issues by-label GitHub pull requests by-label
flutter_image pub package GitHub issues by-label GitHub pull requests by-label
flutter_lints pub package GitHub issues by-label GitHub pull requests by-label
flutter_markdown pub package GitHub issues by-label GitHub pull requests by-label
flutter_template_images pub package GitHub issues by-label GitHub pull requests by-label
go_router pub package GitHub issues by-label GitHub pull requests by-label
go_router_builder pub package GitHub issues by-label GitHub pull requests by-label
metrics_center pub package GitHub issues by-label GitHub pull requests by-label
multicast_dns pub package GitHub issues by-label GitHub pull requests by-label
palette_generator pub package GitHub issues by-label GitHub pull requests by-label
pigeon pub package GitHub issues by-label GitHub pull requests by-label
pointer_interceptor pub package GitHub issues by-label GitHub pull requests by-label
rfw pub package GitHub issues by-label GitHub pull requests by-label
standard_message_codec pub package GitHub issues by-label GitHub pull requests by-label
web_benchmarks pub package GitHub issues by-label GitHub pull requests by-label
xdg_directories pub package GitHub issues by-label GitHub pull requests by-label
Description
A collection of useful packages maintained by the Flutter team
Readme BSD-3-Clause 436 MiB
Languages
Dart 61.3%
Java 10.1%
C++ 9.8%
Swift 5.9%
Objective-C 5.3%
Other 7.4%