Updated on 2026-08-14

This commit is contained in:
Tangem 2023-02-10 15:29:38 +03:00
parent 0e1d6547d1
commit 79d823b94f
32 changed files with 156 additions and 110 deletions

View file

@ -17,10 +17,6 @@ fun Context.rewriteFile(content: String, fileName: String) {
}
}
fun Context.readAssetAsString(fileName: String): String {
return this.assets.open("$fileName.json").bufferedReader().readText()
}
fun Context.isPermissionGranted(permission: String): Boolean {
return ContextCompat.checkSelfPermission(this, permission) == PackageManager.PERMISSION_GRANTED
}