/** * Returns the list of {@link Supplier} for this variant. Some variant can produce more * than one file when dealing with pure splits. * @return the complete list of tasks producing an APK for this variant. */ public List<FileSupplier> getSplitOutputFileSuppliers() { ImmutableList.Builder<FileSupplier> tasks = ImmutableList.builder(); if (splitZipAlign != null || packageSplitResourcesTask != null) { tasks.addAll(splitZipAlign == null ? packageSplitResourcesTask.getOutputFileSuppliers() : splitZipAlign.getOutputFileSuppliers()); } // ABI splits zip are aligned together with the other densities in the splitZipAlign task // so only add the ABI splits from the package task if there was no splitZipAlign task. if (packageSplitAbiTask != null && splitZipAlign == null) { tasks.addAll(packageSplitAbiTask.getOutputFileSuppliers()); } return tasks.build(); }
/** * Returns the list of {@link Supplier} for this variant. Some variant can produce more * than one file when dealing with pure splits. * @return the complete list of tasks producing an APK for this variant. */ public List<FileSupplier> getSplitOutputFileSuppliers() { ImmutableList.Builder<FileSupplier> tasks = ImmutableList.builder(); if (splitZipAlign != null || packageSplitResourcesTask != null) { tasks.addAll(splitZipAlign == null ? packageSplitResourcesTask.getOutputFileSuppliers() : splitZipAlign.getOutputFileSuppliers()); } // ABI splits zip are aligned together with the other densities in the splitZipAlign task // so only add the ABI splits from the package task if there was no splitZipAlign task. if (packageSplitAbiTask != null && splitZipAlign == null) { tasks.addAll(packageSplitAbiTask.getOutputFileSuppliers()); } return tasks.build(); }