mirror of
https://github.com/CherretGit/zaprett-app.git
synced 2026-01-02 00:49:39 +05:00
add icon and module info card
This commit is contained in:
@@ -329,3 +329,15 @@ fun disableStrategy(path: String, sharedPreferences: SharedPreferences) {
|
||||
sharedPreferences.edit { remove("active_strategy") }
|
||||
}
|
||||
}
|
||||
|
||||
fun getModuleVersion(callback: (String) -> Unit) {
|
||||
Shell.cmd("zaprett module-ver").submit { result ->
|
||||
if (result.out.isNotEmpty()) callback(result.out.first()) else "undefined"
|
||||
}
|
||||
}
|
||||
|
||||
fun getBinVersion(callback: (String) -> Unit) {
|
||||
Shell.cmd("zaprett bin-ver").submit { result ->
|
||||
if (result.out.isNotEmpty()) callback(result.out.first()) else "undefined"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user