-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move BuildConfig.targetOS
to BuildConfig.codeConfig.targetOS
, remove it entirely or extend to cover web
#1738
Comments
This is not an option right?
That would be If users have data assets that are OS dependent, they might start misusing |
Again, the concept of "operating system" does not make sense in general, because for web builds there's no operating system. The more general concept of "target platform" is a superset, it gives the same information as OS but also allows expressing we compile for the web. So that would allow removing We could structure it slightly differently and have
In any case I believe for web builds it doesn't make sense to have I think we should reduce the top-level scope on |
👍 |
I would never introduce |
Currently the CLI protocol mandates
BuildConfig.targetOS
. Though making builds for the web platform wouldn't have any operating system. So we could either move this toBuildConfig.codeConfig.targetOS
or remove it entirely.We may decide that we introduce a
BuildConfig.targetPlatform
which is the platform we're going to run Dart code on - but this is different from an operating system concept ("web" is a target platform, but not an operating system)./cc @dcharkes
The text was updated successfully, but these errors were encountered: