ProtectPlugin {
encryptStrings.set(true) // Encrypt string literals
obfuscateControlFlow.set(true) // Obfuscate conditional jumps
addDeadCode.set(true) // Insert harmless dead code before returns
obfuscateNames.set(true) // Rename private fields and methods to random short names
obfuscateBuildConfig.set(true) // Apply transformations to BuildConfig classes (e.g., encrypt string constants)
obfuscateResources.set(true) // Enable resource file name obfuscation
minStringLength.set(3) // Minimum length for strings to encrypt (avoids short keys/IDs)
encryptionKey.set(42) // Encryption key for string encryption (change to a random int for production)
excludePackages.addAll([])
verbose.set(true) // Set to true for detailed processing logs during build
}