mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
Merge pull request #2821 from chinmaygarde/master
Dont differentiate between ios_arm and ios_x64 in flutter_tools
This commit is contained in:
commit
931d4be5ba
@ -110,8 +110,7 @@ class ApplicationPackageStore {
|
|||||||
switch (platform) {
|
switch (platform) {
|
||||||
case TargetPlatform.android_arm:
|
case TargetPlatform.android_arm:
|
||||||
return android;
|
return android;
|
||||||
case TargetPlatform.ios_arm:
|
case TargetPlatform.ios:
|
||||||
case TargetPlatform.ios_x64:
|
|
||||||
return iOS;
|
return iOS;
|
||||||
case TargetPlatform.darwin_x64:
|
case TargetPlatform.darwin_x64:
|
||||||
case TargetPlatform.linux_x64:
|
case TargetPlatform.linux_x64:
|
||||||
@ -130,8 +129,7 @@ class ApplicationPackageStore {
|
|||||||
android = new AndroidApk.fromBuildConfiguration(config);
|
android = new AndroidApk.fromBuildConfiguration(config);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case TargetPlatform.ios_arm:
|
case TargetPlatform.ios:
|
||||||
case TargetPlatform.ios_x64:
|
|
||||||
iOS ??= new IOSApp.fromBuildConfiguration(config);
|
iOS ??= new IOSApp.fromBuildConfiguration(config);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -25,10 +25,8 @@ String getNameForTargetPlatform(TargetPlatform platform) {
|
|||||||
switch (platform) {
|
switch (platform) {
|
||||||
case TargetPlatform.android_arm:
|
case TargetPlatform.android_arm:
|
||||||
return 'android-arm';
|
return 'android-arm';
|
||||||
case TargetPlatform.ios_arm:
|
case TargetPlatform.ios:
|
||||||
return 'ios-arm';
|
return 'ios';
|
||||||
case TargetPlatform.ios_x64:
|
|
||||||
return 'ios-x64';
|
|
||||||
case TargetPlatform.darwin_x64:
|
case TargetPlatform.darwin_x64:
|
||||||
return 'darwin-x64';
|
return 'darwin-x64';
|
||||||
case TargetPlatform.linux_x64:
|
case TargetPlatform.linux_x64:
|
||||||
|
@ -21,8 +21,7 @@ enum HostPlatform {
|
|||||||
|
|
||||||
enum TargetPlatform {
|
enum TargetPlatform {
|
||||||
android_arm,
|
android_arm,
|
||||||
ios_arm,
|
ios,
|
||||||
ios_x64,
|
|
||||||
darwin_x64,
|
darwin_x64,
|
||||||
linux_x64
|
linux_x64
|
||||||
}
|
}
|
||||||
|
@ -137,8 +137,7 @@ String _getMissingPackageHintForPlatform(TargetPlatform platform) {
|
|||||||
switch (platform) {
|
switch (platform) {
|
||||||
case TargetPlatform.android_arm:
|
case TargetPlatform.android_arm:
|
||||||
return 'Is your project missing an android/AndroidManifest.xml?';
|
return 'Is your project missing an android/AndroidManifest.xml?';
|
||||||
case TargetPlatform.ios_arm:
|
case TargetPlatform.ios:
|
||||||
case TargetPlatform.ios_x64:
|
|
||||||
return 'Is your project missing an ios/Info.plist?';
|
return 'Is your project missing an ios/Info.plist?';
|
||||||
default:
|
default:
|
||||||
return null;
|
return null;
|
||||||
|
@ -229,7 +229,7 @@ class IOSDevice extends Device {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
TargetPlatform get platform => TargetPlatform.ios_arm;
|
TargetPlatform get platform => TargetPlatform.ios;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
DeviceLogReader get logReader {
|
DeviceLogReader get logReader {
|
||||||
|
@ -573,7 +573,7 @@ class IOSSimulator extends Device {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
TargetPlatform get platform => TargetPlatform.ios_x64;
|
TargetPlatform get platform => TargetPlatform.ios;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
DeviceLogReader get logReader {
|
DeviceLogReader get logReader {
|
||||||
|
@ -286,12 +286,7 @@ class FlutterCommandRunner extends CommandRunner {
|
|||||||
if (hostPlatform == HostPlatform.mac) {
|
if (hostPlatform == HostPlatform.mac) {
|
||||||
configs.add(new BuildConfiguration.prebuilt(
|
configs.add(new BuildConfiguration.prebuilt(
|
||||||
hostPlatform: HostPlatform.mac,
|
hostPlatform: HostPlatform.mac,
|
||||||
targetPlatform: TargetPlatform.ios_arm
|
targetPlatform: TargetPlatform.ios
|
||||||
));
|
|
||||||
|
|
||||||
configs.add(new BuildConfiguration.prebuilt(
|
|
||||||
hostPlatform: HostPlatform.mac,
|
|
||||||
targetPlatform: TargetPlatform.ios_x64
|
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@ -323,7 +318,7 @@ class FlutterCommandRunner extends CommandRunner {
|
|||||||
configs.add(new BuildConfiguration.local(
|
configs.add(new BuildConfiguration.local(
|
||||||
type: BuildType.debug,
|
type: BuildType.debug,
|
||||||
hostPlatform: hostPlatform,
|
hostPlatform: hostPlatform,
|
||||||
targetPlatform: TargetPlatform.ios_arm,
|
targetPlatform: TargetPlatform.ios,
|
||||||
enginePath: enginePath,
|
enginePath: enginePath,
|
||||||
buildPath: globalResults['ios-debug-build-path']
|
buildPath: globalResults['ios-debug-build-path']
|
||||||
));
|
));
|
||||||
@ -331,7 +326,7 @@ class FlutterCommandRunner extends CommandRunner {
|
|||||||
configs.add(new BuildConfiguration.local(
|
configs.add(new BuildConfiguration.local(
|
||||||
type: BuildType.debug,
|
type: BuildType.debug,
|
||||||
hostPlatform: hostPlatform,
|
hostPlatform: hostPlatform,
|
||||||
targetPlatform: TargetPlatform.ios_x64,
|
targetPlatform: TargetPlatform.ios,
|
||||||
enginePath: enginePath,
|
enginePath: enginePath,
|
||||||
buildPath: globalResults['ios-sim-debug-build-path']
|
buildPath: globalResults['ios-sim-debug-build-path']
|
||||||
));
|
));
|
||||||
@ -360,7 +355,7 @@ class FlutterCommandRunner extends CommandRunner {
|
|||||||
configs.add(new BuildConfiguration.local(
|
configs.add(new BuildConfiguration.local(
|
||||||
type: BuildType.release,
|
type: BuildType.release,
|
||||||
hostPlatform: hostPlatform,
|
hostPlatform: hostPlatform,
|
||||||
targetPlatform: TargetPlatform.ios_arm,
|
targetPlatform: TargetPlatform.ios,
|
||||||
enginePath: enginePath,
|
enginePath: enginePath,
|
||||||
buildPath: globalResults['ios-release-build-path']
|
buildPath: globalResults['ios-release-build-path']
|
||||||
));
|
));
|
||||||
@ -368,7 +363,7 @@ class FlutterCommandRunner extends CommandRunner {
|
|||||||
configs.add(new BuildConfiguration.local(
|
configs.add(new BuildConfiguration.local(
|
||||||
type: BuildType.release,
|
type: BuildType.release,
|
||||||
hostPlatform: hostPlatform,
|
hostPlatform: hostPlatform,
|
||||||
targetPlatform: TargetPlatform.ios_x64,
|
targetPlatform: TargetPlatform.ios,
|
||||||
enginePath: enginePath,
|
enginePath: enginePath,
|
||||||
buildPath: globalResults['ios-sim-release-build-path']
|
buildPath: globalResults['ios-sim-release-build-path']
|
||||||
));
|
));
|
||||||
|
@ -45,7 +45,7 @@ class MockAndroidDevice extends Mock implements AndroidDevice {
|
|||||||
|
|
||||||
class MockIOSDevice extends Mock implements IOSDevice {
|
class MockIOSDevice extends Mock implements IOSDevice {
|
||||||
@override
|
@override
|
||||||
TargetPlatform get platform => TargetPlatform.ios_arm;
|
TargetPlatform get platform => TargetPlatform.ios;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
bool isSupported() => true;
|
bool isSupported() => true;
|
||||||
@ -53,7 +53,7 @@ class MockIOSDevice extends Mock implements IOSDevice {
|
|||||||
|
|
||||||
class MockIOSSimulator extends Mock implements IOSSimulator {
|
class MockIOSSimulator extends Mock implements IOSSimulator {
|
||||||
@override
|
@override
|
||||||
TargetPlatform get platform => TargetPlatform.ios_x64;
|
TargetPlatform get platform => TargetPlatform.ios;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
bool isSupported() => true;
|
bool isSupported() => true;
|
||||||
|
Loading…
Reference in New Issue
Block a user