Class AndroidSdk
- java.lang.Object
-
- hudson.plugins.android_emulator.sdk.AndroidSdk
-
- All Implemented Interfaces:
Serializable
public class AndroidSdk extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AndroidSdk(String root, String home)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
forceClassicEmulatorEngine()
String
getSdkHome()
String
getSdkRoot()
int
getSdkToolsMajorVersion()
String
getSdkToolsVersion()
boolean
hasCommandLineTools()
boolean
hasKnownHome()
boolean
hasKnownRoot()
boolean
isAndroidCmdDeprecated()
boolean
supportsComponentInstallation()
boolean
supportsEmulatorEngineFlag()
boolean
supportsEmulatorV2()
boolean
supportsEmulatorV2Full()
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.boolean
supportsSystemImageInstallation()
boolean
supportsSystemImageNewFormat()
boolean
useLegacySdkStructure()
-
-
-
Constructor Detail
-
AndroidSdk
public AndroidSdk(String root, String home) throws IOException
- Throws:
IOException
-
-
Method Detail
-
hasKnownRoot
public boolean hasKnownRoot()
-
getSdkRoot
public String getSdkRoot()
-
hasKnownHome
public boolean hasKnownHome()
-
getSdkHome
public String getSdkHome()
-
getSdkToolsVersion
public String 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()
-
-