Class AndroidSdk
java.lang.Object
hudson.plugins.android_emulator.sdk.AndroidSdk
- All Implemented Interfaces:
Serializable
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
Determines if the AndroidSdk supports creation of snapshots to enable persistence, currently in Android Emulator v2.0 the usage of snapshots leads to an error on creation of the virtual device.boolean
boolean
boolean
-
Constructor Details
-
AndroidSdk
- Throws:
IOException
-
-
Method Details
-
hasKnownRoot
public boolean hasKnownRoot() -
getSdkRoot
-
hasKnownHome
public boolean hasKnownHome() -
getSdkHome
-
getSdkToolsVersion
-
getSdkToolsMajorVersion
public int getSdkToolsMajorVersion()- Returns:
- The major version number of the SDK tools being used, or
0
if unknown.
-
supportsSnapshots
public boolean supportsSnapshots()Determines if the AndroidSdk supports creation of snapshots to enable persistence, currently in Android Emulator v2.0 the usage of snapshots leads to an error on creation of the virtual device. So this option is currently disabled.- Returns:
true
if this SDK supports snapshots in AVD creation
-
supportsComponentInstallation
public boolean supportsComponentInstallation() -
supportsSystemImageInstallation
public boolean supportsSystemImageInstallation() -
supportsSystemImageNewFormat
public boolean supportsSystemImageNewFormat() -
supportsEmulatorV2
public boolean supportsEmulatorV2()- Returns:
true
if this SDK ships the Android Emulator 2.0.
-
supportsEmulatorV2Full
public boolean supportsEmulatorV2Full()- Returns:
true
if this SDK ships the Android Emulator 2.0 which supports all needed command line options used by the plugin.
-
supportsEmulatorEngineFlag
public boolean supportsEmulatorEngineFlag()- Returns:
true
if this SDK has an emulator that supports the "-engine" flag.
-
forceClassicEmulatorEngine
public boolean forceClassicEmulatorEngine()- Returns:
true
if this SDK has an emulator that supports the "-engine" flag (uses the Android Emulator 2.0) but the version does not support the needed CLI arguments (-ports, -prop, report-console).
-
hasCommandLineTools
public boolean hasCommandLineTools() -
isAndroidCmdDeprecated
public boolean isAndroidCmdDeprecated() -
useLegacySdkStructure
public boolean useLegacySdkStructure()
-