File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -153,7 +153,6 @@ final class BuildConfigImpl extends HookConfigImpl implements BuildConfig {
153
153
@override
154
154
Map <String , Object > toJson () => {
155
155
...hookToJson (),
156
- LinkModePreferenceImpl .configKey: linkModePreference.toString (),
157
156
if (! dryRun) ...{
158
157
if (_dependencyMetadata != null && _dependencyMetadata.isNotEmpty)
159
158
dependencyMetadataConfigKey: _dependencyMetadata.map (
@@ -171,9 +170,6 @@ final class BuildConfigImpl extends HookConfigImpl implements BuildConfig {
171
170
if (other is ! BuildConfigImpl ) {
172
171
return false ;
173
172
}
174
- if (other.linkModePreference != linkModePreference) {
175
- return false ;
176
- }
177
173
if (! dryRun &&
178
174
! const DeepCollectionEquality ()
179
175
.equals (other._dependencyMetadata, _dependencyMetadata)) {
Original file line number Diff line number Diff line change @@ -156,6 +156,7 @@ abstract class HookConfigImpl implements HookConfig {
156
156
if (cCompilerJson.isNotEmpty)
157
157
CCompilerConfigImpl .configKey: cCompilerJson,
158
158
},
159
+ LinkModePreferenceImpl .configKey: linkModePreference.toString (),
159
160
}.sortOnKey ();
160
161
}
161
162
@@ -380,6 +381,7 @@ can _only_ depend on OS.''');
380
381
if (other.packageRoot != packageRoot) return false ;
381
382
if (other.dryRun != dryRun) return false ;
382
383
if (other.targetOS != targetOS) return false ;
384
+ if (other.linkModePreference != linkModePreference) return false ;
383
385
if (! const DeepCollectionEquality ()
384
386
.equals (other.supportedAssetTypes, supportedAssetTypes)) return false ;
385
387
if (! dryRun) {
Original file line number Diff line number Diff line change @@ -247,6 +247,7 @@ void main() async {
247
247
'target_ios_sdk' : 'iphoneos' ,
248
248
'target_os' : 'ios' ,
249
249
'version' : '${HookConfigImpl .latestVersion }' ,
250
+ 'link_mode_preference' : 'prefer-static' ,
250
251
};
251
252
expect (jsonObject, equals (expectedJson));
252
253
@@ -293,6 +294,7 @@ void main() async {
293
294
'target_android_ndk_api' : 30 ,
294
295
'build_mode' : BuildModeImpl .release.name,
295
296
'assets' : 'astring' ,
297
+ 'link_mode_preference' : LinkModePreferenceImpl .preferStatic.name,
296
298
}),
297
299
throwsA (predicate (
298
300
(e) =>
@@ -312,6 +314,7 @@ void main() async {
312
314
'target_architecture' : 'arm64' ,
313
315
'target_os' : 'android' ,
314
316
'build_mode' : BuildModeImpl .release.name,
317
+ 'link_mode_preference' : LinkModePreferenceImpl .preferStatic.name,
315
318
}),
316
319
throwsA (predicate (
317
320
(e) =>
You can’t perform that action at this time.
0 commit comments