flutter / flutter/devtools

Deeplink tools should have build parameters

未关闭
#9,219 3 条评论 2 个 reaction 已指派 0 人 在 GitHub 查看
bug P2 screen: deep links
主要语言
Dart
星标
1.7k
派生
404
平均合并
6 天 17 小时
30 天内合并 PR
18

描述

My app will not compile like a barebones app. I have many flavours and `main` files.

When I try to use the deeplink tool I get the following error:

Image

As you can see, the deeplink tool is looking for a `main.dart` file, but I don't have one. I have `main_production.dart`, `main_staging.dart`, and etc.

If it's trying to compile, it will also need to setup a `--flavor` flag and for many apps out there, also `dart-define`.

If this tool needs to build an app, then it should allow for extra build parameters, to accommodate all possible scenarios provided by the `flutter build` tool.

贡献指南

打开贡献指南

调研方向

首先跟踪 deeplink 工具的构建调用,并将其接受的选项与 Flutter 构建工具进行比较。使用多个 main 文件、一个 flavor 和 dart-define 值重现该失败;完成的标准是该工具接受所需的构建参数,并且不再假定使用 main.dart。

由索引模型根据 Issue 内容生成。

评估

技术栈
dart, flutter
领域
build-system, tooling
Issue 类型
功能
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
38/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。