Created
November 20, 2022 08:36
-
-
Save dllewellyn/49776ad9c52fa8441c792fe9ef3a0890 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
val isSafe = safeToRun( | |
{ banAvdEmulatorCheck() }, | |
{ banGenymotionEmulatorCheck() }, | |
{ banBluestacksEmulatorCheck() }, | |
{ isDebuggableCheck() }, | |
{ rootDetectionCheck() } | |
) | |
if (!isSafe) { | |
throw RuntimeException("Device is not safe to run") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment