public abstract class ApplePlatform extends Object implements Comparable<ApplePlatform>, AddsToRuleKey
Modifier and Type | Class and Description |
---|---|
static class |
ApplePlatform.Builder |
Modifier and Type | Field and Description |
---|---|
static com.google.common.collect.ImmutableList<Flavor> |
ALL_PLATFORM_FLAVORS |
static com.google.common.collect.ImmutableList<ApplePlatform> |
ALL_PLATFORMS |
static ApplePlatform |
APPLETVOS |
static ApplePlatform |
APPLETVSIMULATOR |
static ApplePlatform |
DRIVERKIT |
static ApplePlatform |
IPHONEOS |
static ApplePlatform |
IPHONESIMULATOR |
static ApplePlatform |
MACOSX |
static ApplePlatform |
WATCHOS |
static ApplePlatform |
WATCHSIMULATOR |
Constructor and Description |
---|
ApplePlatform() |
public static final ApplePlatform IPHONEOS
public static final ApplePlatform IPHONESIMULATOR
public static final ApplePlatform WATCHOS
public static final ApplePlatform WATCHSIMULATOR
public static final ApplePlatform APPLETVOS
public static final ApplePlatform APPLETVSIMULATOR
public static final ApplePlatform MACOSX
public static final ApplePlatform DRIVERKIT
public static final com.google.common.collect.ImmutableList<ApplePlatform> ALL_PLATFORMS
public static final com.google.common.collect.ImmutableList<Flavor> ALL_PLATFORM_FLAVORS
public abstract String getName()
macosx
.public abstract Optional<String> getSwiftName()
ios
. If absent, use getName()
instead.public abstract Optional<String> getProvisioningProfileName()
iOS
.
Not all platforms use provisioning profiles; these will return absent.
@Value.Default public com.google.common.collect.ImmutableList<String> getArchitectures()
@Value.Default public String getMinVersionFlagPrefix()
@Value.Default public boolean getAppIncludesFrameworks()
public ApplePlatformType getType()
public boolean getIsSimulator()
public static boolean needsCodeSign(String name)
public static boolean adHocCodeSignIsSufficient(String name)
public static boolean needsInstallHelper(String name)
public static boolean needsEntitlementsInBinary(String name)
public static boolean isSimulator(String name)
public static ApplePlatform of(String name)
public static boolean isPlatformFlavor(Flavor flavor)
public static ApplePlatform fromFlavor(Flavor flavor)
public int compareTo(ApplePlatform other)
compareTo
in interface Comparable<ApplePlatform>
public final String getPlatformName()
public static ApplePlatform.Builder builder()