Loading src/main/java/ecorp/easy/installer/helpers/DeviceHelper.java +12 −1 Original line number Diff line number Diff line Loading @@ -62,8 +62,19 @@ public class DeviceHelper { } /** * Get data relatives to sources to download from config file * @param adbDevice * @return * @throws IOException * @throws ParseException * @throws ClassCastException * * todo: definitively need more tests */ public static HashMap<String, String> getSourcesToDownload(String adbDevice) throws IOException,ParseException, ClassCastException{ return ConfigParser.parseSourcesToDownload(loadYaml(adbDevice+"_fs.yml")); return ConfigParser.parseSourcesToDownload( (HashMap) loadYaml(adbDevice+"_fs.yml").get("sources") ); } Loading Loading
src/main/java/ecorp/easy/installer/helpers/DeviceHelper.java +12 −1 Original line number Diff line number Diff line Loading @@ -62,8 +62,19 @@ public class DeviceHelper { } /** * Get data relatives to sources to download from config file * @param adbDevice * @return * @throws IOException * @throws ParseException * @throws ClassCastException * * todo: definitively need more tests */ public static HashMap<String, String> getSourcesToDownload(String adbDevice) throws IOException,ParseException, ClassCastException{ return ConfigParser.parseSourcesToDownload(loadYaml(adbDevice+"_fs.yml")); return ConfigParser.parseSourcesToDownload( (HashMap) loadYaml(adbDevice+"_fs.yml").get("sources") ); } Loading