[native_assets_cli] Fallback asset types supportedAssetTypes
#2154
Labels
Milestone
supportedAssetTypes
#2154
Hook authors might want to use a certain asset type if available, and another one if the first one is not available.
CodeAsset
, and if not availableWasmAsset
(Compilation of native code to WASM #156).JarAsset
, and if not available,CodeAsset
(for libraries that are available as Jars and native).For these it could be useful to have an
input.config.supportedAssetTypes
which signals with whichinput.config.buildAssetTypes
the hook will be invoked besides the current invocation.Edit: The SDKs could invoke the hooks for all asset types and based on asset-ids decide for one asset over another. However, the Dart code might make the
JarAsset
available under a different asset ID than theCodeAsset
. (Or aJarAsset
might not even have an asset ID.)The text was updated successfully, but these errors were encountered: