public class AndroidSdk extends Object
Constructor and Description |
---|
AndroidSdk(File sdkPath,
String apiLevel) |
AndroidSdk(File sdkPath,
String apiLevel,
String buildToolsVersion) |
Modifier and Type | Method and Description |
---|---|
void |
assertThatBuildToolsVersionIsAtLeast(String version,
String feature) |
String |
getAaptPath()
Get the aapt tool path.
|
String |
getAdbPath()
Get the android debug tool path (adb).
|
String |
getAidlPath()
Get the aild tool path
|
File |
getAndroidJar()
Resolves the android.jar from this SDK.
|
String |
getAndroidPath()
Get the android tool path.
|
String |
getApkBuilderPath()
Get the apkbuilder path.
|
String |
getBuildToolsLibDirectoryPath()
Get the path for build-tools lib directory
|
String |
getD8JarPath() |
String |
getDxJarPath()
Get the path for dx.jar
|
String |
getLintPath()
Get the android lint path.
|
String |
getMainDexClassesRulesPath()
Get the path for mainDexClasses.rules
|
String |
getMonkeyRunnerPath()
Get the android monkey runner path.
|
String |
getPathForFrameworkAidl()
Returns the complete path for
framework.aidl , based on this SDK. |
File |
getPlatform()
This method returns the previously specified version.
|
String |
getProguardJarPath()
Get the path for proguard.jar
|
int |
getSdkMajorVersion()
Returns the version of the SDK Tools.
|
File |
getSdkPath()
Resolves the path for this SDK.
|
String |
getShrinkedAndroidJarPath()
Get the path for shrinkedAndroid.jar
|
File |
getToolsPath()
Get the path to the tools directory.
|
String |
getZipalignPath()
Get the android zipalign path.
|
public String getAaptPath()
public String getAidlPath()
public String getDxJarPath()
public String getD8JarPath()
public String getProguardJarPath()
public String getShrinkedAndroidJarPath()
public String getBuildToolsLibDirectoryPath()
public String getMainDexClassesRulesPath()
public void assertThatBuildToolsVersionIsAtLeast(String version, String feature) throws InvalidSdkException, NumberFormatException
public String getAdbPath()
public String getZipalignPath()
public String getLintPath()
public String getMonkeyRunnerPath()
public String getApkBuilderPath()
public String getAndroidPath()
public File getToolsPath()
public String getPathForFrameworkAidl()
framework.aidl
, based on this SDK.String
, including the filename.public File getAndroidJar() throws org.apache.maven.plugin.MojoExecutionException
File
pointing to the android.jar file.org.apache.maven.plugin.MojoExecutionException
- if the file can not be resolved.public File getSdkPath() throws org.apache.maven.plugin.MojoExecutionException
File
pointing to the SDk Directory.org.apache.maven.plugin.MojoExecutionException
- if the file can not be resolved.public File getPlatform()
public int getSdkMajorVersion()
Copyright © 2008–2019 simpligility technologies inc.. All rights reserved.