Search in sources :

Example 1 with AbiNativeLibrariesSplitter

use of com.android.tools.build.bundletool.splitters.AbiNativeLibrariesSplitter in project bundletool by google.

the class ModuleSplitterForShards method createNativeLibrariesSplittingPipeline.

private static SplittingPipeline createNativeLibrariesSplittingPipeline(ImmutableSet<OptimizationDimension> shardingDimensions) {
    ImmutableList.Builder<ModuleSplitSplitter> nativeSplitters = ImmutableList.builder();
    if (shardingDimensions.contains(OptimizationDimension.ABI)) {
        nativeSplitters.add(new AbiNativeLibrariesSplitter());
    }
    nativeSplitters.add(new SanitizerNativeLibrariesSplitter());
    return new SplittingPipeline(nativeSplitters.build());
}
Also used : ImmutableList(com.google.common.collect.ImmutableList) ImmutableList.toImmutableList(com.google.common.collect.ImmutableList.toImmutableList) SanitizerNativeLibrariesSplitter(com.android.tools.build.bundletool.splitters.SanitizerNativeLibrariesSplitter) SplittingPipeline(com.android.tools.build.bundletool.splitters.SplittingPipeline) ModuleSplitSplitter(com.android.tools.build.bundletool.splitters.ModuleSplitSplitter) AbiNativeLibrariesSplitter(com.android.tools.build.bundletool.splitters.AbiNativeLibrariesSplitter)

Aggregations

AbiNativeLibrariesSplitter (com.android.tools.build.bundletool.splitters.AbiNativeLibrariesSplitter)1 ModuleSplitSplitter (com.android.tools.build.bundletool.splitters.ModuleSplitSplitter)1 SanitizerNativeLibrariesSplitter (com.android.tools.build.bundletool.splitters.SanitizerNativeLibrariesSplitter)1 SplittingPipeline (com.android.tools.build.bundletool.splitters.SplittingPipeline)1 ImmutableList (com.google.common.collect.ImmutableList)1 ImmutableList.toImmutableList (com.google.common.collect.ImmutableList.toImmutableList)1