Search in sources :

Example 1 with SuffixManager

use of com.android.tools.build.bundletool.model.SuffixManager in project bundletool by google.

the class SystemApksGenerator method writeSplitIdInManifestHavingSameModule.

private static Stream<ModuleSplit> writeSplitIdInManifestHavingSameModule(ImmutableList<ModuleSplit> splits) {
    checkState(splits.stream().map(ModuleSplit::getModuleName).distinct().count() == 1);
    SuffixManager suffixManager = new SuffixManager();
    return splits.stream().map(split -> split.writeSplitIdInManifest(suffixManager.createSuffix(split)));
}
Also used : SuffixManager(com.android.tools.build.bundletool.model.SuffixManager) ModuleSplit(com.android.tools.build.bundletool.model.ModuleSplit)

Aggregations

ModuleSplit (com.android.tools.build.bundletool.model.ModuleSplit)1 SuffixManager (com.android.tools.build.bundletool.model.SuffixManager)1