File tree 1 file changed +10
-9
lines changed
pkgs/native_assets_cli/lib/src/api 1 file changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -45,17 +45,18 @@ abstract final class BuildConfig implements HookConfig {
45
45
46
46
/// Whether link hooks will be run after the build hooks.
47
47
///
48
- /// If [linkingEnabled] is true, [BuildOutput.addAsset] can be called with
49
- /// the `linkInPackage` parameter. If [linkingEnabled] is false, no assets
50
- /// should be added with the `linkInPackage` parameter set.
51
- ///
52
- /// Link hooks are only run for release builds initiated by the following
53
- /// commands:
54
- /// - `flutter build` (release mode)
48
+ /// If [linkingEnabled] is true, [BuildOutput.addAsset] may be called with the
49
+ /// `linkInPackage` parameter so that assets can be linked in a link hook.
50
+ /// Linking is enabled in Flutter release builds and Dart AOT configurations.
51
+ /// These configurations are optimized for app size.
52
+ /// - `flutter build`
55
53
/// - `flutter run --release`
56
- /// - `dart build` (release mode)
54
+ /// - `dart build`
57
55
///
58
- /// Link hooks are not run for the following commands:
56
+ /// If [linkingEnabled] is false, no assets should be added with the
57
+ /// `linkInPackage` parameter set. All assets must be ready for bundling.
58
+ /// Linking is disabled in Flutter debug builds and Dart JIT configurations.
59
+ /// These configurations are optimized for development speed.
59
60
/// - `dart run`
60
61
/// - `flutter run` (debug mode)
61
62
bool get linkingEnabled;
You can’t perform that action at this time.
0 commit comments