Updated on 2026-08-14
This commit is contained in:
parent
0e1d6547d1
commit
79d823b94f
32 changed files with 156 additions and 110 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue