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
android { | |
buildTypes { | |
release { | |
// Enables code shrinking, obfuscation, and optimization for only | |
// your project's release build type. | |
minifyEnabled true | |
// Enables resource shrinking, which is performed by the | |
// Android Gradle plugin. | |
shrinkResources true |
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
if (this.validateSignature("INSERT YOUR RELEASE SIGNATURE HERE") == Result.VALID) { | |
// Signature is valid continue using the app | |
} else { | |
// Signature is invalid likely a modded version of the app | |
} |
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
this.verifyInstaller(Installer.GOOGLE_PLAY_STORE)?.let { | |
if (it) { | |
// App is installed from Google Play | |
} else { | |
// App is not installed from Google Play | |
} | |
} |
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
guardDebugger({ | |
//No debugger tools detected continue executing the code. | |
}, { | |
//Some debugger tools were detected. | |
}) |