@@ -10,7 +10,6 @@ import 'package:collection/collection.dart';
10
10
import 'package:pub_semver/pub_semver.dart' ;
11
11
12
12
import '../model/hook.dart' ;
13
- import '../model/resource_identifiers.dart' ;
14
13
import '../utils/map.dart' ;
15
14
import 'architecture.dart' ;
16
15
import 'asset.dart' ;
@@ -20,28 +19,18 @@ import 'hook_config.dart';
20
19
import 'ios_sdk.dart' ;
21
20
import 'link_mode_preference.dart' ;
22
21
import 'os.dart' ;
23
- import 'resource.dart' ;
24
22
25
23
part '../model/link_config.dart' ;
26
24
27
25
/// The configuration for a link hook (`hook/link.dart` ) invocation.
28
26
///
29
27
/// It consists of a subset of the fields from the [BuildConfig] already passed
30
- /// to the build hook, the [assets] from the build step, and the
31
- /// [treeshakingInformation] generated during the kernel compilation.
28
+ /// to the build hook and the [assets] from the build step.
32
29
abstract class LinkConfig implements HookConfig {
33
30
/// The list of assets to be linked. These are the assets generated by a
34
31
/// `build.dart` script destined for this packages `link.dart` .
35
32
Iterable <Asset > get assets;
36
33
37
- /// A collection of methods annotated with `@ResourceIdentifier` , which are
38
- /// called in the tree-shaken Dart code. This information can be used to
39
- /// dispose unused [assets] .
40
- ///
41
- /// This is `null` in JIT mode, where no resources are collected, or in a dry
42
- /// run.
43
- Iterable <Resource >? get treeshakingInformation;
44
-
45
34
/// Generate the [LinkConfig] from the input arguments to the linking script.
46
35
factory LinkConfig .fromArguments (List <String > arguments) =>
47
36
LinkConfigImpl .fromArguments (arguments);
@@ -58,14 +47,12 @@ abstract class LinkConfig implements HookConfig {
58
47
List <String >? supportedAssetTypes,
59
48
int ? targetAndroidNdkApi,
60
49
required Iterable <Asset > assets,
61
- Uri ? resourceIdentifierUri,
62
50
required LinkModePreference linkModePreference,
63
51
bool ? dryRun,
64
52
Version ? version,
65
53
}) =>
66
54
LinkConfigImpl (
67
55
assets: assets.cast (),
68
- resourceIdentifierUri: resourceIdentifierUri,
69
56
outputDirectory: outputDirectory,
70
57
packageName: packageName,
71
58
packageRoot: packageRoot,
@@ -88,13 +75,11 @@ abstract class LinkConfig implements HookConfig {
88
75
required OS targetOS,
89
76
List <String >? supportedAssetTypes,
90
77
required Iterable <Asset > assets,
91
- Uri ? resourceIdentifierUri,
92
78
required LinkModePreference linkModePreference,
93
79
Version ? version,
94
80
}) =>
95
81
LinkConfigImpl .dryRun (
96
82
assets: assets.cast (),
97
- resourceIdentifierUri: resourceIdentifierUri,
98
83
outputDirectory: outputDirectory,
99
84
packageName: packageName,
100
85
packageRoot: packageRoot,
0 commit comments