rules_dart icon indicating copy to clipboard operation
rules_dart copied to clipboard

Add Flutter build rules

Open cbracken opened this issue 5 years ago • 2 comments

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.

cbracken avatar Oct 24 '20 23:10 cbracken

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

cbracken avatar Oct 24 '20 23:10 cbracken

Hey @cbracken - thanks for the ping. We'll TAL!

zachgrayio avatar Oct 26 '20 17:10 zachgrayio