Class SdkCliCommandFactory
java.lang.Object
hudson.plugins.android_emulator.sdk.cli.SdkCliCommandFactory
This helper class is used to retrieve the correct implementation
of the
adb shell
and the Android SDK tools commands for
the given device API level respective for the SDK version.-
Method Summary
Modifier and TypeMethodDescriptionstatic AdbShellCommands
getAdbShellCommandForAPILevel
(int deviceAPILevel) Retrieve the correctAdbShellCommands
for the given API-Level of the device where the commands should run.static SdkToolsCommands
getCommandsForSdk
(AndroidSdk androidSdk) Retrieve the correctSdkCommands
for the given Android SDK.static SdkToolsCommands
getCommandsForSdk
(String sdkToolsVersion) Retrieve the correctSdkCommands
for the given SDK Tools major version.
-
Method Details
-
getAdbShellCommandForAPILevel
Retrieve the correctAdbShellCommands
for the given API-Level of the device where the commands should run.- Parameters:
deviceAPILevel
- Android API-Level for the target device- Returns:
- an object of an class implementing the
AdbShellCommands
interface to retrieve the correctadb shell
commands for the given API-level
-
getCommandsForSdk
Retrieve the correctSdkCommands
for the given Android SDK.- Parameters:
androidSdk
- SDK tools to extract the current version and retrieve the correct commands- Returns:
- an object of an class implementing the
SdkToolsCommands
interface to retrieve the correct tools commands for the given SDK
-
getCommandsForSdk
Retrieve the correctSdkCommands
for the given SDK Tools major version.- Parameters:
sdkToolsVersion
- SDK Tools version, to retrieve the correct commands- Returns:
- an object of an class implementing the
SdkToolsCommands
interface to retrieve the correct tools commands for the given SDK version
-