public class AndroidPackageableCollector extends Object
Constructor and Description |
---|
AndroidPackageableCollector(BuildTarget collectionRoot) |
AndroidPackageableCollector(BuildTarget collectionRoot,
com.google.common.collect.ImmutableSet<BuildTarget> buildTargetsToExcludeFromDex,
APKModuleGraph apkModuleGraph) |
AndroidPackageableCollector(BuildTarget collectionRoot,
com.google.common.collect.ImmutableSet<BuildTarget> buildTargetsToExcludeFromDex,
APKModuleGraph apkModuleGraph,
AndroidPackageableFilter androidPackageableFilter) |
AndroidPackageableCollector(BuildTarget collectionRoot,
com.google.common.collect.ImmutableSet<BuildTarget> buildTargetsToExcludeFromDex,
com.google.common.collect.ImmutableSet<BuildTarget> resourcesToExclude,
com.google.common.collect.ImmutableCollection<SourcePath> nativeLibsToExclude,
com.google.common.collect.ImmutableCollection<NativeLinkableGroup> nativeLinkablesToExcludeGroup,
com.google.common.collect.ImmutableCollection<SourcePath> nativeLibAssetsToExclude,
com.google.common.collect.ImmutableCollection<NativeLinkableGroup> nativeLinkableGroupAssetsToExclude,
APKModuleGraph apkModuleGraph,
AndroidPackageableFilter androidPackageableFilter) |
public AndroidPackageableCollector(BuildTarget collectionRoot)
public AndroidPackageableCollector(BuildTarget collectionRoot, com.google.common.collect.ImmutableSet<BuildTarget> buildTargetsToExcludeFromDex, APKModuleGraph apkModuleGraph)
public AndroidPackageableCollector(BuildTarget collectionRoot, com.google.common.collect.ImmutableSet<BuildTarget> buildTargetsToExcludeFromDex, APKModuleGraph apkModuleGraph, AndroidPackageableFilter androidPackageableFilter)
public AndroidPackageableCollector(BuildTarget collectionRoot, com.google.common.collect.ImmutableSet<BuildTarget> buildTargetsToExcludeFromDex, com.google.common.collect.ImmutableSet<BuildTarget> resourcesToExclude, com.google.common.collect.ImmutableCollection<SourcePath> nativeLibsToExclude, com.google.common.collect.ImmutableCollection<NativeLinkableGroup> nativeLinkablesToExcludeGroup, com.google.common.collect.ImmutableCollection<SourcePath> nativeLibAssetsToExclude, com.google.common.collect.ImmutableCollection<NativeLinkableGroup> nativeLinkableGroupAssetsToExclude, APKModuleGraph apkModuleGraph, AndroidPackageableFilter androidPackageableFilter)
resourcesToExclude
- Only relevant to AndroidInstrumentationApk
which needs to remove resources that
are already included in the
com.facebook.buck.android.AndroidInstrumentationApkDescription.AbstractAndroidInstrumentationApkDescriptionArg#apk.
The same goes for native libs and native linkables, and their asset counterparts.public void addPackageables(Iterable<AndroidPackageable> packageables, BuildRuleResolver ruleResolver)
public static Iterable<AndroidPackageable> getPackageableRules(Iterable<BuildRule> rules)
BuildRule
s of the given rules that are AndroidPackageable
. Helper
for implementations of AndroidPackageable that just want to return all of their packagable
dependencies.public AndroidPackageableCollector addStringWhitelistedResourceDirectory(BuildTarget owner, SourcePath resourceDir)
public AndroidPackageableCollector addResourceDirectory(BuildTarget owner, SourcePath resourceDir)
public AndroidPackageableCollector addNativeLibsDirectory(BuildTarget owner, SourcePath nativeLibDir)
public AndroidPackageableCollector addNativeLibsDirectoryForSystemLoader(BuildTarget owner, SourcePath nativeLibDir)
public AndroidPackageableCollector addNativeLinkable(NativeLinkableGroup nativeLinkableGroup)
public AndroidPackageableCollector addNativeLinkableAsset(NativeLinkableGroup nativeLinkableGroup)
public AndroidPackageableCollector addNativeLibAssetsDirectory(BuildTarget owner, SourcePath assetsDir)
public AndroidPackageableCollector addAssetsDirectory(BuildTarget owner, SourcePath assetsDirectory)
public AndroidPackageableCollector addProguardConfig(BuildTarget owner, SourcePath proguardConfig)
public AndroidPackageableCollector addClasspathEntry(HasJavaClassHashes hasJavaClassHashes, SourcePath classpathEntry)
public AndroidPackageableCollector addManifestPiece(BuildTarget owner, SourcePath manifest)
owner
- target that owns the manifest piecemanifest
- the sourcepath to the manifest piecepublic AndroidPackageableCollector addPathToThirdPartyJar(BuildTarget owner, SourcePath pathToThirdPartyJar)
public void addBuildConfig(BuildTarget owner, String javaPackage, BuildConfigFields constants)
public AndroidPackageableCollection build()