Class AndroidTarget
- java.lang.Object
-
- com.uber.okbuck.core.model.base.Target
-
- com.uber.okbuck.core.model.jvm.JvmTarget
-
- com.uber.okbuck.core.model.android.AndroidTarget
-
- Direct Known Subclasses:
AndroidLibTarget
public abstract class AndroidTarget extends JvmTarget
An Android target
-
-
Field Summary
-
Fields inherited from class com.uber.okbuck.core.model.jvm.JvmTarget
isKotlin, JAVA_COMPILER_EXTRA_ARGUMENTS, KOTLIN_COMPILER_EXTRA_ARGUMENTS, KOTLIN_COMPILER_PLUGINS, MAIN
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAndroidTarget(org.gradle.api.Project project, java.lang.String name)protectedAndroidTarget(org.gradle.api.Project project, java.lang.String name, boolean isTest)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.util.Set<java.lang.String>getAidl()com.android.build.gradle.BaseExtensiongetAndroidExtension()java.lang.StringgetApplicationIdWithSuffix()ScopegetApt()Apt Scope Used to get the annotation processor deps of the target.java.util.List<Scope>getAptScopes()Apt Scopesjava.util.Set<java.lang.String>getAssetDirs()protected abstract com.android.build.gradle.api.BaseVariantgetBaseVariant()java.util.List<java.lang.String>getBuildConfigFields()booleangetDebuggable()booleangetGenerateR2()booleangetIsTest()java.util.Set<java.io.File>getJavaResources(com.android.build.gradle.api.BaseVariant variant)java.util.Set<java.lang.String>getJniLibs()protected java.util.List<java.lang.String>getKotlinCompilerOptions()protected java.util.List<java.lang.String>getKotlinCompilerPlugins()booleangetLintEnabled()com.android.builder.model.LintOptionsgetLintOptions()ScopegetMain()java.lang.StringgetMainManifest()java.lang.StringgetMinSdk()java.lang.StringgetPackage()java.lang.StringgetProjectResDir()<T> TgetProp(java.util.Map<java.lang.String,T> map, T defaultValue)ScopegetProvided()Provided Scopejava.util.Set<java.lang.String>getResDirs()java.lang.StringgetResPackage()booleangetRobolectricEnabled()RuleTypegetRuleType()java.util.List<java.lang.String>getSecondaryManifests()java.lang.StringgetSourceCompatibility()java.util.Set<java.io.File>getSources(com.android.build.gradle.api.BaseVariant variant)java.lang.StringgetTargetCompatibility()java.lang.StringgetTargetSdk()ScopegetTest()ScopegetTestApt()Test Apt Scopejava.util.List<Scope>getTestAptScopes()Test Apt ScopesTestOptionsgetTestOptions()The test optionsScopegetTestProvided()Test Provided ScopeRuleTypegetTestRuleType()java.lang.IntegergetVersionCode()java.lang.StringgetVersionName()booleanisKotlin()-
Methods inherited from class com.uber.okbuck.core.model.jvm.JvmTarget
getApiExternalDeps, getApiTargetDeps, getApPlugins, getAptScopeForConfiguration, getAptScopeForConfiguration, getExcludes, getExternalAarDeps, getExternalAptDeps, getExternalDeps, getExternalExportedAarDeps, getExternalExportedDeps, getExternalProvidedDeps, getIntegrationTest, getIntegrationTestApPlugins, getIntegrationTestApt, getIntegrationTestAptScopes, getIntegrationTestOptions, getIntegrationTestProvided, getKotlinFriendPaths, getLint, getMainClass, getMavenCoords, getTargetAptDeps, getTargetDeps, getTargetExportedDeps, getTargetProvidedDeps, getTestApPlugins, hasApplication, javaVersion
-
Methods inherited from class com.uber.okbuck.core.model.base.Target
getAvailable, getExtraOpts, getIdentifier, getName, getOkbuck, getPath, getProject, getRootProject
-
-
-
-
Method Detail
-
getBaseVariant
protected abstract com.android.build.gradle.api.BaseVariant getBaseVariant()
-
getAptScopes
public java.util.List<Scope> getAptScopes()
Description copied from class:JvmTargetApt Scopes- Overrides:
getAptScopesin classJvmTarget
-
getTestAptScopes
public java.util.List<Scope> getTestAptScopes()
Description copied from class:JvmTargetTest Apt Scopes- Overrides:
getTestAptScopesin classJvmTarget
-
getApt
public Scope getApt()
Description copied from class:JvmTargetApt Scope Used to get the annotation processor deps of the target.
-
getTestApt
public Scope getTestApt()
Description copied from class:JvmTargetTest Apt Scope- Overrides:
getTestAptin classJvmTarget
-
getProvided
public Scope getProvided()
Description copied from class:JvmTargetProvided Scope- Overrides:
getProvidedin classJvmTarget
-
getTestProvided
public Scope getTestProvided()
Description copied from class:JvmTargetTest Provided Scope- Overrides:
getTestProvidedin classJvmTarget
-
getLintOptions
public com.android.builder.model.LintOptions getLintOptions()
- Overrides:
getLintOptionsin classJvmTarget
-
getRobolectricEnabled
public boolean getRobolectricEnabled()
-
getLintEnabled
public boolean getLintEnabled()
-
getSourceCompatibility
public java.lang.String getSourceCompatibility()
- Overrides:
getSourceCompatibilityin classJvmTarget
-
getTargetCompatibility
public java.lang.String getTargetCompatibility()
- Overrides:
getTargetCompatibilityin classJvmTarget
-
getTestOptions
public TestOptions getTestOptions()
Description copied from class:JvmTargetThe test options- Overrides:
getTestOptionsin classJvmTarget- Returns:
- The test options
-
getBuildConfigFields
public java.util.List<java.lang.String> getBuildConfigFields()
-
getResDirs
public java.util.Set<java.lang.String> getResDirs()
-
getProjectResDir
@Nullable public java.lang.String getProjectResDir()
-
getAssetDirs
public java.util.Set<java.lang.String> getAssetDirs()
-
getAidl
public java.util.Set<java.lang.String> getAidl()
-
getJniLibs
public java.util.Set<java.lang.String> getJniLibs()
-
getMainManifest
@Nullable public java.lang.String getMainManifest()
-
getSecondaryManifests
@Nullable public java.util.List<java.lang.String> getSecondaryManifests()
-
getKotlinCompilerPlugins
protected java.util.List<java.lang.String> getKotlinCompilerPlugins()
- Overrides:
getKotlinCompilerPluginsin classJvmTarget
-
getKotlinCompilerOptions
protected java.util.List<java.lang.String> getKotlinCompilerOptions()
- Overrides:
getKotlinCompilerOptionsin classJvmTarget
-
getRuleType
public RuleType getRuleType()
-
getTestRuleType
public RuleType getTestRuleType()
-
isKotlin
public boolean isKotlin()
-
getAndroidExtension
public com.android.build.gradle.BaseExtension getAndroidExtension()
-
getSources
public java.util.Set<java.io.File> getSources(com.android.build.gradle.api.BaseVariant variant)
-
getJavaResources
public java.util.Set<java.io.File> getJavaResources(com.android.build.gradle.api.BaseVariant variant)
-
getApplicationIdWithSuffix
public java.lang.String getApplicationIdWithSuffix()
-
getPackage
public java.lang.String getPackage()
-
getResPackage
public java.lang.String getResPackage()
-
getMinSdk
public final java.lang.String getMinSdk()
-
getTargetSdk
public final java.lang.String getTargetSdk()
-
getVersionName
public final java.lang.String getVersionName()
-
getVersionCode
public final java.lang.Integer getVersionCode()
-
getDebuggable
public final boolean getDebuggable()
-
getGenerateR2
public final boolean getGenerateR2()
-
getIsTest
public boolean getIsTest()
-
-