use of com.android.tools.build.bundletool.model.ModuleEntry in project bundletool by google.
the class SystemApksGeneratorTest method uncompressedDexFiles_disabled.
@Test
public void uncompressedDexFiles_disabled() throws Exception {
BundleModule baseModule = new BundleModuleBuilder("base").addFile("dex/classes.dex").setManifest(androidManifestForFeature("com.test.app")).build();
ApkOptimizations apkOptimizations = splitOptimizations().toBuilder().setUncompressDexFiles(false).build();
ImmutableList<ModuleSplit> shards = systemApksGenerator.generateSystemApks(/* modules= */
ImmutableList.of(baseModule), /* modulesToFuse= */
ImmutableSet.of(BASE_MODULE_NAME), apkOptimizations);
assertThat(shards).hasSize(1);
ModuleSplit fatApk = shards.get(0);
assertThat(fatApk.findEntry("dex/classes.dex").map(ModuleEntry::getForceUncompressed)).hasValue(false);
}
Aggregations