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 AdbShellCommandsgetAdbShellCommandForAPILevel(int deviceAPILevel) Retrieve the correctAdbShellCommandsfor the given API-Level of the device where the commands should run.static SdkToolsCommandsgetCommandsForSdk(AndroidSdk androidSdk) Retrieve the correctSdkCommandsfor the given Android SDK.static SdkToolsCommandsgetCommandsForSdk(String sdkToolsVersion) Retrieve the correctSdkCommandsfor the given SDK Tools major version.
-
Method Details
-
getAdbShellCommandForAPILevel
Retrieve the correctAdbShellCommandsfor 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
AdbShellCommandsinterface to retrieve the correctadb shellcommands for the given API-level
-
getCommandsForSdk
Retrieve the correctSdkCommandsfor 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
SdkToolsCommandsinterface to retrieve the correct tools commands for the given SDK
-
getCommandsForSdk
Retrieve the correctSdkCommandsfor the given SDK Tools major version.- Parameters:
sdkToolsVersion- SDK Tools version, to retrieve the correct commands- Returns:
- an object of an class implementing the
SdkToolsCommandsinterface to retrieve the correct tools commands for the given SDK version
-