File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed
code_assets/lib/src/code_assets
data_assets/lib/src/data_assets Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,8 @@ import 'syntax.g.dart';
16
16
/// to code assets (only available if code assets are supported).
17
17
extension HookConfigCodeConfig on HookConfig {
18
18
/// Code asset specific configuration.
19
+ ///
20
+ /// Only available if [buildCodeAssets] is true.
19
21
CodeConfig get code => CodeConfig ._fromJson (json, path);
20
22
21
23
/// Whether the hook invoker (e.g. the Dart or Flutter SDK) expects this
@@ -29,6 +31,8 @@ extension HookConfigCodeConfig on HookConfig {
29
31
extension LinkInputCodeAssets on LinkInputAssets {
30
32
/// The [CodeAsset] s in this [LinkInputAssets.encodedAssets] .
31
33
///
34
+ /// Only available if [HookConfigCodeConfig.buildCodeAssets] is true.
35
+ ///
32
36
/// NOTE: If the linker implementation depends on the contents of the files
33
37
/// the code assets refer (e.g. looks at static archives and links them) then
34
38
/// the linker script has to add those files as dependencies via
@@ -148,6 +152,8 @@ final class MacOSCodeConfig {
148
152
/// Extension on [BuildOutputBuilder] to add [CodeAsset] s.
149
153
extension BuildOutputAssetsBuilderCode on BuildOutputAssetsBuilder {
150
154
/// Provides access to emitting code assets.
155
+ ///
156
+ /// Should only be used if [HookConfigCodeConfig.buildCodeAssets] is true.
151
157
BuildOutputCodeAssetBuilder get code => BuildOutputCodeAssetBuilder ._(this );
152
158
}
153
159
Original file line number Diff line number Diff line change @@ -23,9 +23,12 @@ extension BuildOutputBuilderAddDataAssetsDirectories on BuildOutputBuilder {
23
23
///
24
24
/// When recursive is set to true, the method will also add all subdirectories
25
25
/// and their files as dependencies.
26
+ ///
27
+ /// Should only be used if [HookConfigDataConfig.buildDataAssets] in [input]
28
+ /// is true.
26
29
Future <void > addDataAssetDirectories (
27
30
List <String > paths, {
28
- required BuildInput input,
31
+ required HookInput input,
29
32
bool recursive = false ,
30
33
AssetRouting routing = const ToAppBundle (),
31
34
}) async {
@@ -104,6 +107,8 @@ extension LinkInputDataAssets on LinkInputAssets {
104
107
/// Extension on [BuildOutputBuilder] to add [DataAsset] s.
105
108
extension BuildOutputAssetsBuilderData on BuildOutputAssetsBuilder {
106
109
/// Provides access to emitting data assets.
110
+ ///
111
+ /// Should only be used if [HookConfigDataConfig.buildDataAssets] is true.
107
112
BuildOutputDataAssetsBuilder get data => BuildOutputDataAssetsBuilder ._(this );
108
113
}
109
114
You can’t perform that action at this time.
0 commit comments