-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
Labels
r: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versionteam-toolOwned by Flutter Tool teamOwned by Flutter Tool teamtoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.
Description
When I tried to roll this dependency, it failed to compile the tool with:
flutter/packages/flutter_tools/lib/src/native_assets.dart:135:27: Error: The argument type 'LinkModePreference/*1*/' can't be assigned to the parameter type 'LinkModePreference/*2*/'.
- 'LinkModePreference/*1*/' is from 'package:native_assets_cli/src/api/link_mode_preference.dart' ('/home/chrome-bot/.pub-cache/hosted/pub.dev/native_assets_cli-0.4.1/lib/src/api/link_mode_preference.dart').
- 'LinkModePreference/*2*/' is from 'package:native_assets_cli/src/model/link_mode_preference.dart' ('/home/chrome-bot/.pub-cache/hosted/pub.dev/native_assets_cli-0.4.1/lib/src/model/link_mode_preference.dart').
linkModePreference: linkModePreference,
^
flutter/packages/flutter_tools/lib/src/native_assets.dart:136:17: Error: The argument type 'OS/*1*/' can't be assigned to the parameter type 'OS/*2*/'.
- 'OS/*1*/' is from 'package:native_assets_cli/src/api/target.dart' ('/home/chrome-bot/.pub-cache/hosted/pub.dev/native_assets_cli-0.4.1/lib/src/api/target.dart').
- 'OS/*2*/' is from 'package:native_assets_cli/src/model/target.dart' ('/home/chrome-bot/.pub-cache/hosted/pub.dev/native_assets_cli-0.4.1/lib/src/model/target.dart').
targetOs: targetOS,
^
flutter/packages/flutter_tools/lib/src/native_assets.dart:158:18: Error: The argument type 'BuildMode/*1*/' can't be assigned to the parameter type 'BuildMode/*2*/'.
- 'BuildMode/*1*/' is from 'package:native_assets_cli/src/api/build_mode.dart' ('/home/chrome-bot/.pub-cache/hosted/pub.dev/native_assets_cli-0.4.1/lib/src/api/build_mode.dart').
- 'BuildMode/*2*/' is from 'package:native_assets_cli/src/model/build_mode.dart' ('/home/chrome-bot/.pub-cache/hosted/pub.dev/native_assets_cli-0.4.1/lib/src/model/build_mode.dart').
buildMode: buildMode,
^
flutter/packages/flutter_tools/lib/src/native_assets.dart:159:24: Error: The argument type 'CCompilerConfig/*1*/?' can't be assigned to the parameter type 'CCompilerConfig/*2*/?'.
- 'CCompilerConfig/*1*/' is from 'package:native_assets_cli/src/api/build_config.dart' ('/home/chrome-bot/.pub-cache/hosted/pub.dev/native_assets_cli-0.4.1/lib/src/api/build_config.dart').
- 'CCompilerConfig/*2*/' is from 'package:native_assets_cli/src/model/build_config.dart' ('/home/chrome-bot/.pub-cache/hosted/pub.dev/native_assets_cli-0.4.1/lib/src/model/build_config.dart').
cCompilerConfig: cCompilerConfig,
^
flutter/packages/flutter_tools/lib/src/native_assets.dart:161:27: Error: The argument type 'LinkModePreference/*1*/' can't be assigned to the parameter type 'LinkModePreference/*2*/'.
- 'LinkModePreference/*1*/' is from 'package:native_assets_cli/src/api/link_mode_preference.dart' ('/home/chrome-bot/.pub-cache/hosted/pub.dev/native_assets_cli-0.4.1/lib/src/api/link_mode_preference.dart').
- 'LinkModePreference/*2*/' is from 'package:native_assets_cli/src/model/link_mode_preference.dart' ('/home/chrome-bot/.pub-cache/hosted/pub.dev/native_assets_cli-0.4.1/lib/src/model/link_mode_preference.dart').
linkModePreference: linkModePreference,
^
flutter/packages/flutter_tools/lib/src/native_assets.dart:162:15: Error: The argument type 'Target/*1*/' can't be assigned to the parameter type 'Target/*2*/'.
- 'Target/*1*/' is from 'package:native_assets_cli/src/api/target.dart' ('/home/chrome-bot/.pub-cache/hosted/pub.dev/native_assets_cli-0.4.1/lib/src/api/target.dart').
- 'Target/*2*/' is from 'package:native_assets_cli/src/model/target.dart' ('/home/chrome-bot/.pub-cache/hosted/pub.dev/native_assets_cli-0.4.1/lib/src/model/target.dart').
target: target,
^
flutter/packages/flutter_tools/lib/src/native_assets.dart:164:21: Error: The argument type 'IOSSdk/*1*/?' can't be assigned to the parameter type 'IOSSdk/*2*/?'.
- 'IOSSdk/*1*/' is from 'package:native_assets_cli/src/api/ios_sdk.dart' ('/home/chrome-bot/.pub-cache/hosted/pub.dev/native_assets_cli-0.4.1/lib/src/api/ios_sdk.dart').
- 'IOSSdk/*2*/' is from 'package:native_assets_cli/src/model/ios_sdk.dart' ('/home/chrome-bot/.pub-cache/hosted/pub.dev/native_assets_cli-0.4.1/lib/src/model/ios_sdk.dart').
targetIOSSdk: targetIOSSdk,
^
flutter/packages/flutter_tools/lib/src/native_assets.dart:200:50: Error: The method 'toNativeAssetsFile' isn't defined for the class 'Iterable<Asset>'.
- 'Iterable' is from 'dart:core'.
- 'Asset' is from 'package:native_assets_cli/src/api/asset.dart' ('/home/chrome-bot/.pub-cache/hosted/pub.dev/native_assets_cli-0.4.1/lib/src/api/asset.dart').
Try correcting the name to the name of an existing method, or defining a method named 'toNativeAssetsFile'.
final String nativeAssetsDartContents = assets.toNativeAssetsFile();
^^^^^^^^^^^^^^^^^^
flutter/packages/flutter_tools/lib/src/native_assets.dart:295:53: Error: The method 'whereLinkMode' isn't defined for the class 'List<Asset>'.
- 'List' is from 'dart:core'.
- 'Asset' is from 'package:native_assets_cli/src/api/asset.dart' ('/home/chrome-bot/.pub-cache/hosted/pub.dev/native_assets_cli-0.4.1/lib/src/api/asset.dart').
Try correcting the name to the name of an existing method, or defining a method named 'whereLinkMode'.
final Iterable<Asset> staticAssets = nativeAssets.whereLinkMode(LinkMode.static);
^^^^^^^^^^^^^
flutter/packages/flutter_tools/lib/src/native_assets.dart:638:20: Error: The method 'copyWith' isn't defined for the class 'Asset'.
- 'Asset' is from 'package:native_assets_cli/src/api/asset.dart' ('/home/chrome-bot/.pub-cache/hosted/pub.dev/native_assets_cli-0.4.1/lib/src/api/asset.dart').
Try correcting the name to the name of an existing method, or defining a method named 'copyWith'.
return asset.copyWith(path: AssetAbsolutePath(uri));
^^^^^^^^
Metadata
Metadata
Assignees
Labels
r: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versionteam-toolOwned by Flutter Tool teamOwned by Flutter Tool teamtoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.