Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View mukeshsolanki's full-sized avatar
🎯
Focusing

Mukesh Solanki mukeshsolanki

🎯
Focusing
View GitHub Profile
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
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.verifyInstaller(Installer.GOOGLE_PLAY_STORE)?.let {
if (it) {
// App is installed from Google Play
} else {
// App is not installed from Google Play
}
}
guardDebugger({
//No debugger tools detected continue executing the code.
}, {
//Some debugger tools were detected.
})
@mukeshsolanki
mukeshsolanki / Hexadecimal Code.md
Last active March 30, 2021 06:46
Hexadecimal colour code for transparency

How to set transparency with hex value ?

For example, you want to set 40% alpha transparence to #000000 (black color), you need to add 66 like this #66000000.

All hex value from 100% to 0% alpha:

  • 100% — FF
  • 99% — FC
  • 98% — FA
  • 97% — F7
  • 96% — F5
  • 95% — F2
@mukeshsolanki
mukeshsolanki / .gitconfig
Last active April 17, 2024 03:47
My Git Config
[user]
name = Mukesh Solanki
email = me@mukeshsolanki.com
[alias]
co = checkout
cob = checkout -b
st = status
cm = commit -m
amend = commit --amend -m
pu = !git push origin `git branch --show-current`