-
Notifications
You must be signed in to change notification settings - Fork 67
[native_assets_cli] Expose flavor
#1359
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
Comments
And flavor can influence what assets are build?
Flavor is a single string argument? |
If "flavors" are a flutter specific concept then we may not want to make it part of the core build/link infrastructure. A great opportunity to start modularizing the build infrastructure!
|
I can see the argument of why we not only want to make the asset types extensible. 🤓
That modularity would only work for the build hook of the root package (a flutter app). Presumably the dependencies should be packages that work in Dart standalone. We could conceivably optionally depend in the Dart standalone packages if the |
It's not about root package. Any package that is flutter specific (e.g. flutter plugin package) may want to use flutter-specific features of the build system (e.g. bundle proguard rules, java code, rely on flutter-specific configuration - be it "flavor"s or gradle versions etc) Yes if a package wants to be independent of flutter, then it shouldn't require flutter configs / asset types to be available. |
Uh oh!
There was an error while loading. Please reload this page.
Flutter applications can have different flavors like: staging/prod, or free/premium: https://docs.flutter.dev/deployment/flavors
It also supports conditionally bundling assets based on the specified flavor. We should support the same by exposing the
flavor
in the hooks.@dcharkes
The text was updated successfully, but these errors were encountered: