public ImmutableList<ModuleSplit> generateApexSplits(ImmutableList<BundleModule> modules) { BundleSharder bundleSharder = new BundleSharder(tempDir, bundleVersion, generate64BitShards); ImmutableList<ModuleSplit> shardedApexApks = bundleSharder.shardApexBundle(getOnlyElement(modules)); return setVariantTargetingAndSplitType(shardedApexApks, splitType); }
.build(); ImmutableList<ModuleSplit> shards = bundleSharder.shardApexBundle(apexModule);