You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public DownloadResultObject downloadParamToPath(String packageName, int versionCode, String saveFilePath)
Parameter
Type
Description
packageName
String
Your app package name
versionCode
String
Your app version code
savaFilePath
String
The path that param files will be saved
Parse the downloaded parameter xml file to HashMap
Parse the downloaded parameter xml file, convert the xml elements to HashMap<String,String>, this method will not keep the xml fields order. HashMap will have a better performance.
// api
public HashMap<String,String> parseDownloadParamXml(File file) throws ParseXMLException {...}
// usage
HashMap<String, String> resultMap = StoreSdk.getInstance().paramApi().parseDownloadParamXml(parameterFile);
Parameter
Type
Description
file
File
The downloaded xml file
Parse the downloaded parameter xml file to LinkedHashMap
Parse the downloaded parameter xml file, convert the xml elements to LinkedHashMap<String,String>, this method will keep the xml fields order. LinkedHashMap performance is slower than HashMap.
public LinkedHashMap<String,String> parseDownloadParamXmlWithOrder(File file) throws ParseXMLException {...}
Download param files with SHA256 check
Download the parameters to the directory you specified and perform SHA256 verification.
public DownloadResultObject downloadParamToPathWithSHA256Check(String packageName, int versionCode, String saveFilePath)
Parameter
Type
Description
packageName
String
Your app package name
versionCode
String
Your app version code
savaFilePath
String
The path that param files will be saved
public DownloadResultObject downloadLastSuccessWithSha256Check(String saveFilePath)
public DownloadResultObject downloadLastSuccessWithSha256Check(String saveFilePath, String paramTemplateName)