Created
November 19, 2022 19:27
-
-
Save dllewellyn/89d1df900bde2ae54835d40dddac7638 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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