Skip to content

Instantly share code, notes, and snippets.

@dllewellyn
Created November 19, 2022 19:27
Show Gist options
  • Save dllewellyn/89d1df900bde2ae54835d40dddac7638 to your computer and use it in GitHub Desktop.
Save dllewellyn/89d1df900bde2ae54835d40dddac7638 to your computer and use it in GitHub Desktop.
inline fun Context.verifyDevice(): Boolean {
val checks = safeToRun(
{ banDebugCheck() },
{ blacklistedAppCheck("com.abc") },
{ safeToRunCombinedCheck(
listOf { minOsVersionCheck(31) },
listOf { minOsVersionCheck(30) }
)
},
{ verifySignatureCheck("ABASDASD", "BBBBBBB") },
)
return checks()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment