Also upload preferences

This commit is contained in:
TebbeUbben 2020-05-20 22:11:31 +02:00
parent 9651f3d22e
commit 09b81093dc

View file

@ -394,6 +394,12 @@ object OpenHumansUploader : PluginBase(
applicationInfo.put("hasGitInfo", hasGitInfo) applicationInfo.put("hasGitInfo", hasGitInfo)
applicationInfo.put("customRemote", customRemote) applicationInfo.put("customRemote", customRemote)
applicationInfo.put("applicationId", appId.toString()) applicationInfo.put("applicationId", appId.toString())
zos.writeFile("ApplicationInfo.json", applicationInfo.toString().toByteArray())
tags.add("ApplicationInfo")
val preferences = JSONObject(SP.sharedPreferences.all.filterKeys { it.isAllowedKey() })
zos.writeFile("Preferences.json", preferences.toString().toByteArray())
tags.add("Preferences")
val deviceInfo = JSONObject() val deviceInfo = JSONObject()
deviceInfo.put("brand", Build.BRAND) deviceInfo.put("brand", Build.BRAND)