use of com.tencent.tinker.build.patch.Configuration in project tinker by Tencent.
the class CliMain method loadConfigFromXml.
private void loadConfigFromXml(File configFile, File outputFile, File oldApkFile, File newApkFile) {
if (configFile == null) {
configFile = new File(mRunningLocation + File.separator + TypedValue.FILE_CONFIG);
if (!configFile.exists()) {
System.err.printf("the config file %s does not exit\n", configFile.getAbsolutePath());
printUsage(System.err);
System.exit(ERRNO_USAGE);
}
}
try {
config = new Configuration(configFile, outputFile, oldApkFile, newApkFile);
} catch (IOException | ParserConfigurationException | SAXException e) {
e.printStackTrace();
goToError();
} catch (TinkerPatchException e) {
e.printStackTrace();
goToError();
}
}
Aggregations