Add Windows support to defaultTargetPlatform (#19176)
A significant amonut of code uses defaultTargetPlatform, so it's currently impossible to run most apps on Windows. This adds a mapping from Windows as a host to Android as a target, paralleling the macOS->iOS and Linux->Android mappings. This allows more use of Windows as a host platform (e.g., for testing, as in issue #17768).
This commit is contained in:
parent
66091f9696
commit
32941a8cc0
@ -34,7 +34,7 @@ TargetPlatform get defaultTargetPlatform {
|
||||
TargetPlatform result;
|
||||
if (Platform.isIOS || Platform.isMacOS) {
|
||||
result = TargetPlatform.iOS;
|
||||
} else if (Platform.isAndroid || Platform.isLinux) {
|
||||
} else if (Platform.isAndroid || Platform.isLinux || Platform.isWindows) {
|
||||
result = TargetPlatform.android;
|
||||
} else if (Platform.operatingSystem == 'fuchsia') {
|
||||
result = TargetPlatform.fuchsia;
|
||||
|
Loading…
x
Reference in New Issue
Block a user