@NonNull public File getMergeAssetsOutputDir() { return getVariantConfiguration().getType() == VariantType.LIBRARY ? new File( globalScope.getIntermediatesDir(), TaskManager.DIR_BUNDLES + "/" + getVariantConfiguration().getDirName() + "/assets") : new File( globalScope.getIntermediatesDir(), "/assets/" + getVariantConfiguration().getDirName()); }
@NonNull public File getProguardOutputFile() { return (variantData instanceof LibraryVariantData) ? new File( globalScope.getIntermediatesDir(), TaskManager.DIR_BUNDLES + "/" + getVariantConfiguration().getDirName() + "/classes.jar") : new File( globalScope.getIntermediatesDir(), "/classes-proguard/" + getVariantConfiguration().getDirName() + "/classes.jar"); }
@NonNull public File getSymbolLocation() { return new File( globalScope.getIntermediatesDir() + "/symbols/" + variantData.getVariantConfiguration().getDirName()); }
@NonNull public File getBuildConfigSourceOutputDir() { return new File( globalScope.getBuildDir() + "/" + FD_GENERATED + "/source/buildConfig/" + variantData.getVariantConfiguration().getDirName()); }
@NonNull public Set<File> getJniFolders() { assert getNdkSoFolder() != null; VariantConfiguration config = getVariantConfiguration(); ApkVariantData apkVariantData = (ApkVariantData) variantData; // for now only the project's compilation output. Set<File> set = Sets.newHashSet(); set.addAll(getNdkSoFolder()); set.add(getRenderscriptLibOutputDir()); set.addAll(config.getLibraryJniFolders()); set.addAll(config.getJniLibsList()); if (config.getMergedFlavor().getRenderscriptSupportModeEnabled() != null && config.getMergedFlavor().getRenderscriptSupportModeEnabled()) { File rsLibs = globalScope.getAndroidBuilder().getSupportNativeLibFolder(); if (rsLibs != null && rsLibs.isDirectory()) { set.add(rsLibs); } } return set; }
/** * Returns the location of an intermediate directory that can be used by the Jack toolchain to * store states necessary to support incremental compilation. * * @return a variant specific directory. */ @NonNull public File getJackIncrementalDir() { return new File( globalScope.getIntermediatesDir(), "incremental/jack/" + getVariantConfiguration().getDirName()); }
@NonNull public File getJackTempDir() { return new File( globalScope.getIntermediatesDir(), "tmp/jack/" + getVariantConfiguration().getDirName()); }
@NonNull public File getSourceFoldersJavaResDestinationDir() { return new File( globalScope.getIntermediatesDir(), "sourceFolderJavaResources/" + getVariantConfiguration().getDirName()); }
@NonNull public File getAidlSourceOutputDir() { return new File( globalScope.getGeneratedDir(), "source/aidl/" + getVariantConfiguration().getDirName()); }
@NonNull public File getProcessAndroidResourcesProguardOutputFile() { return new File( globalScope.getIntermediatesDir(), "/proguard-rules/" + getVariantConfiguration().getDirName() + "/aapt_rules.txt"); }
@NonNull public File getJarMergingOutputFile() { return new File( globalScope.getIntermediatesDir(), "multi-dex/" + getVariantConfiguration().getDirName() + "/allclasses.jar"); }
@NonNull public File getDefaultMergeResourcesOutputDir() { return new File( globalScope.getIntermediatesDir(), "/res/merged/" + getVariantConfiguration().getDirName()); }
@NonNull public File getJackClassesZip() { return new File( globalScope.getIntermediatesDir(), "packaged/" + getVariantConfiguration().getDirName() + "/classes.zip"); }
@NonNull public File getRenderscriptLibOutputDir() { return new File( globalScope.getGeneratedDir(), "rs/" + variantData.getVariantConfiguration().getDirName() + "/lib"); }
@NonNull public File getPreDexOutputDir() { return new File( globalScope.getIntermediatesDir(), "/pre-dexed/" + getVariantConfiguration().getDirName()); }
@NonNull public File getRenderscriptSourceOutputDir() { return new File( globalScope.getGeneratedDir(), "source/rs/" + variantData.getVariantConfiguration().getDirName()); }
@NonNull public File getMainDexListFile() { return new File( globalScope.getIntermediatesDir(), "multi-dex/" + getVariantConfiguration().getDirName() + "/maindexlist.txt"); }
@NonNull public File getManifestKeepListFile() { return new File( globalScope.getIntermediatesDir(), "multi-dex/" + getVariantConfiguration().getDirName() + "/manifest_keep.txt"); }
@NonNull public File getJillRuntimeLibrariesDir() { return new File( globalScope.getIntermediatesDir(), "jill/" + getVariantConfiguration().getDirName() + "/runtime"); }
@NonNull public File getJavaOutputDir() { return new File( globalScope.getIntermediatesDir(), "/classes/" + variantData.getVariantConfiguration().getDirName()); }
@NonNull public File getJackDestinationDir() { return new File( globalScope.getIntermediatesDir(), "dex/" + getVariantConfiguration().getDirName()); }
@NonNull public File getJavaDependencyCache() { return new File( globalScope.getIntermediatesDir(), "/dependency-cache/" + variantData.getVariantConfiguration().getDirName()); }
@NonNull public File getProguardOutputFolder() { return new File( globalScope.getBuildDir(), "/" + FD_OUTPUTS + "/mapping/" + getVariantConfiguration().getDirName()); }
@NonNull public File getRenderscriptResOutputDir() { return new File( globalScope.getGeneratedDir(), "res/rs/" + getVariantConfiguration().getDirName()); }
public File getMappingFile() { return new File( globalScope.getOutputsDir(), "/mapping/" + getVariantConfiguration().getDirName() + "/mapping.txt"); }
@NonNull public File getProguardComponentsJarFile() { return new File( globalScope.getIntermediatesDir(), "multi-dex/" + getVariantConfiguration().getDirName() + "/componentClasses.jar"); }