Closed
Description
The Dart API can be revved independently of the protocol, bumping this out of v1.0.
Make package:native_assets_cli
only consume an API that shows getters for native code (and not any getters for Java or other asset types). This can be achieved by
- nesting
NativeBuildConfig
insideBuildConfig
which doesn't work well with the shared fields such asoutputDirectory
, or BuildConfig implements NativeBuildConfig
where only a subset of the getters is visible, or- an extension type
NativeBuildConfig
onBuildConfig
.
Make package:native_toolchain_c
add assets to a NativeBuildOutput
that doesn't have methdods/setters related to Java assets or data assets. This can be achieved by
BuildOutput implements NativeBuildOutput
andNativeBuildOutput.addAsset
takesNativeCodeAsset
instead ofAsset
.- an extension type.
We could even have assetId be optional for some asset types (jars) in the API.
Question: Don't we ever have builders that would like to add more than one asset type? They would need to take the full BuildOutput
.
Related:
Sister issue for the JSON protocol:
Metadata
Metadata
Assignees
Type
Projects
Status
Done