use of com.taobao.android.builder.tools.manifest.ManifestFileObject in project atlas by alibaba.
the class PreProcessManifestTask method preProcess.
@TaskAction
public void preProcess() throws IOException, DocumentException, InterruptedException {
getLogger().info("[MTLPlugin]Start PreProcess Lib manifest files,main manifestFile is:" + getMainManifestFile());
ExecutorServicesHelper executorServicesHelper = new ExecutorServicesHelper("preProcessDex", getLogger(), 0);
List<Runnable> runnables = new ArrayList<>();
ManifestFileObject mainManifestFileObject = ManifestFileUtils.getManifestFileObject(mainManifestFile);
mainManifestFileObject.init();
for (File file : getLibraryManifests()) {
runnables.add(new Runnable() {
@Override
public void run() {
try {
ManifestFileUtils.updatePreProcessManifestFile(file, mainManifestFileObject, true);
} catch (Throwable e) {
throw new GradleException("preprocess manifest", e);
}
}
});
}
executorServicesHelper.execute(runnables);
//ManifestFileUtils.preProcessManifests(getMainManifestFile(), getLibraryManifests(), true);
//BundleInfoUtils.setupAwbBundleInfos(appVariantOutputContext.getVariantContext());
//collectBundleInfo();
addAwbManifest2Merge();
}
Aggregations