Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Mukesh Solanki mukeshsolanki

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

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
View .gitconfig
[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`