Skip to content

Commit

Permalink
Add Watch and TV to list of platforms.
Browse files Browse the repository at this point in the history
--
MOS_MIGRATED_REVID=115577068
  • Loading branch information
Dave MacLachlan authored and philwo committed Feb 26, 2016
1 parent 63e8d63 commit e75e18c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public static String sdkFrameworkDir(Platform targetPlatform,
relativePath = DEVELOPER_FRAMEWORK_PATH;
}
break;
case MACOSX:
case MACOS_X:
relativePath = DEVELOPER_FRAMEWORK_PATH;
break;
default:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@
public enum Platform {
IOS_DEVICE("iPhoneOS"),
IOS_SIMULATOR("iPhoneSimulator"),
MACOSX("MacOSX");
MACOS_X("MacOSX"),
TVOS_DEVICE("AppleTVOS"),
TVOS_SIMULATOR("AppleTVSimulator"),
WATCHOS_DEVICE("WatchOS"),
WATCHOS_SIMULATOR("WatchSimulator");

private static final Set<String> IOS_SIMULATOR_ARCHS = ImmutableSet.of("i386", "x86_64");
private static final Set<String> IOS_DEVICE_ARCHS =
Expand Down Expand Up @@ -89,7 +93,7 @@ private static Platform forTargetCpuNullable(String targetCpu) {
} else if (IOS_DEVICE_TARGET_CPUS.contains(targetCpu)) {
return IOS_DEVICE;
} else if (MACOSX_TARGET_CPUS.contains(targetCpu)) {
return MACOSX;
return MACOS_X;
} else {
return null;
}
Expand Down

0 comments on commit e75e18c

Please sign in to comment.