rules_dart
rules_dart copied to clipboard
Add Flutter build rules
Users should be able to build Flutter apps using Bazel. The Flutter tool doesn't yet have a stable API but if we get to that point, it would be reasonable to want to support that here, though we'd want to limit this to stable channel releases to have any hope of keeping up with flutter_tools changes.
| Target platform | Host platforms |
|---|---|
| iOS | macOS |
| Android | Linux, macOS, Windows* |
| Linux | Linux |
| macOS | macOS |
| Windows | Windows* |
*Building on Windows hosts is not yet supported, but if support is ever added to these rules, we could add support for Flutter as well.
There are a couple options for how to proceed -- do this entirely using flutter_tools, or do the Flutter-specific building using the tool, and take a dependency on existing iOS and Android build rules for the iOS and Android apps.
Related context:
- https://groups.google.com/d/msg/bazel-discuss/SnXvMgAUGzI/WAN7R0S2BwAJ
- https://github.com/bazelbuild/bazel/issues/10207
- flutter/flutter#19680
- flutter/flutter#14125
Hey @cbracken - thanks for the ping. We'll TAL!