use of com.android.tools.build.bundletool.model.SourceStamp in project bundletool by google.
the class SplitApksGenerator method generateSplitApks.
private ImmutableList<ModuleSplit> generateSplitApks(ImmutableList<BundleModule> modules, ApkGenerationConfiguration apkGenerationConfiguration, VariantTargeting variantTargeting) {
ImmutableSet<String> allModuleNames = modules.stream().map(module -> module.getName().getName()).collect(toImmutableSet());
ImmutableList.Builder<ModuleSplit> splits = ImmutableList.builder();
for (BundleModule module : modules) {
ModuleSplitter moduleSplitter = ModuleSplitter.create(module, bundletoolVersion, appBundle, apkGenerationConfiguration, variantTargeting, allModuleNames, stampSource.map(SourceStamp::getSource), StampType.STAMP_TYPE_DISTRIBUTION_APK);
splits.addAll(moduleSplitter.splitModule());
}
return splits.build();
}
Aggregations