release: update for flutter 3.13.0 (#203)

Signed-off-by: Hidenori Matsubayashi <[email protected]>
This commit is contained in:
Hidenori Matsubayashi
2023-08-17 00:20:27 +00:00
committed by GitHub
parent a957327203
commit 4d747457cd
11 changed files with 73 additions and 26 deletions
+1 -1
View File
@@ -149,6 +149,6 @@ class BuildPackageCommand extends BuildSubCommand
String _getCurrentHostPlatformArchName() {
final HostPlatform hostPlatform = getCurrentHostPlatform();
return getNameForHostPlatformArch(hostPlatform);
return hostPlatform.platformName;
}
}
+1 -1
View File
@@ -29,6 +29,6 @@ class ELinuxRunCommand extends RunCommand
String _getCurrentHostPlatformArchName() {
final HostPlatform hostPlatform = getCurrentHostPlatform();
return getNameForHostPlatformArch(hostPlatform);
return hostPlatform.platformName;
}
}
+3 -3
View File
@@ -64,7 +64,7 @@ abstract class ELinuxAssetBundle extends Target {
throw MissingDefineException(kBuildMode, name);
}
final BuildMode buildMode =
getBuildModeForName(environment.defines[kBuildMode]!);
BuildMode.fromCliName(environment.defines[kBuildMode]!);
final Directory outputDirectory = environment.outputDir
.childDirectory('flutter_assets')
..createSync(recursive: true);
@@ -275,7 +275,7 @@ class NativeBundle {
// libflutter_elinux_*.so in profile mode is under the debug mode's directory.
final Directory embedderDir = _getEngineArtifactsDirectory(
buildInfo!.targetArch,
buildMode.isRelease ? buildMode : BuildMode.fromName('debug'));
buildMode.isRelease ? buildMode : BuildMode.fromCliName('debug'));
final File embedder =
embedderDir.childFile(buildInfo!.targetBackendType == 'gbm'
? 'libflutter_elinux_gbm.so'
@@ -433,7 +433,7 @@ class NativeBundle {
String _getCurrentHostPlatformArchName() {
final HostPlatform hostPlatform = getCurrentHostPlatform();
return getNameForHostPlatformArch(hostPlatform);
return hostPlatform.platformName;
}
/// Converts [targetArch] to an arch name that corresponds to the `BUILD_ARCH`
+2 -2
View File
@@ -76,7 +76,7 @@ class ELinuxBuilder {
final Directory outputDir =
project.directory.childDirectory('build').childDirectory('elinux');
final BuildInfo buildInfo = eLinuxBuildInfo.buildInfo;
final String buildModeName = getNameForBuildMode(buildInfo.mode);
final String buildModeName = buildInfo.mode.cliName;
// Used by AotElfBase to generate an AOT snapshot.
final String targetPlatformName = getNameForTargetPlatform(
_getTargetPlatformForArch(eLinuxBuildInfo.targetArch));
@@ -214,5 +214,5 @@ String _getTargetPlatformPlatformName(TargetPlatform targetPlatform) {
String _getCurrentHostPlatformArchName() {
final HostPlatform hostPlatform = getCurrentHostPlatform();
return getNameForHostPlatformArch(hostPlatform);
return hostPlatform.platformName;
}
+1 -1
View File
@@ -187,7 +187,7 @@ class ELinuxDeviceDiscovery extends PollingDeviceDiscovery {
String _getCurrentHostPlatformArchName() {
final HostPlatform hostPlatform = getCurrentHostPlatform();
return getNameForHostPlatformArch(hostPlatform);
return hostPlatform.platformName;
}
@override
+2 -2
View File
@@ -98,7 +98,7 @@ class BuildableELinuxApp extends ELinuxApp {
return globals.fs.path.join(
'build/elinux/',
targetArch,
getNameForBuildMode(buildMode),
buildMode.cliName,
'bundle',
binaryName,
);
@@ -109,7 +109,7 @@ class BuildableELinuxApp extends ELinuxApp {
return globals.fs.path.join(
'build/elinux/',
targetArch,
getNameForBuildMode(buildMode),
buildMode.cliName,
'bundle',
);
}
-2
View File
@@ -18,7 +18,6 @@ import 'package:flutter_tools/src/commands/config.dart';
import 'package:flutter_tools/src/commands/devices.dart';
import 'package:flutter_tools/src/commands/doctor.dart';
import 'package:flutter_tools/src/commands/emulators.dart';
import 'package:flutter_tools/src/commands/format.dart';
import 'package:flutter_tools/src/commands/generate_localizations.dart';
import 'package:flutter_tools/src/commands/install.dart';
import 'package:flutter_tools/src/commands/logs.dart';
@@ -86,7 +85,6 @@ Future<void> main(List<String> args) async {
DevicesCommand(verboseHelp: verboseHelp),
DoctorCommand(verbose: verbose),
EmulatorsCommand(),
FormatCommand(),
GenerateLocalizationsCommand(
fileSystem: globals.fs,
logger: globals.logger,