在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):klaxit/hidden-secrets-gradle-plugin开源软件地址(OpenSource Url):https://github.com/klaxit/hidden-secrets-gradle-plugin开源编程语言(OpenSource Language):Kotlin 71.6%开源软件介绍(OpenSource Introduction):Gradle plugin to deeply hide secrets on AndroidThis plugin allows any Android developer to deeply hide secrets in its project. It is an OSS equivalent of what DexGuard can offer to prevent credentials harvesting. It uses a combination of obfuscation techniques to do so :
This plugin is used in production at Klaxit - Covoiturage quotidien. Our engineering team at Klaxit will provide its best effort to maintain this project. CompatibilityThis gradle plugin can be used with any Android project in Java or Kotlin. 1 - Install the pluginUsing the plugins DSLIn your Module level plugins {
id "com.klaxit.hiddensecrets" version "X.Y.Z"
}
Using legacy plugin applicationAdd these lines at the beginning of your Module level buildscript {
repositories {
google()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "com.klaxit.hiddensecrets:HiddenSecretsPlugin:X.Y.Z"
}
}
apply plugin: 'com.klaxit.hiddensecrets' For more details about the installation check the plugin's page on gradle.org. 2 - Hide secret key in your projectObfuscate and hide your key in your project : ./gradlew hideSecret -Pkey=yourKeyToObfuscate [-PkeyName=YourSecretKeyName] [-Ppackage=com.your.package] The parameter 3 - Get your secret key in your appEnable C++ files compilation by adding this lines in the Module level android {
...
// Enable NDK build
externalNativeBuild {
cmake {
path "src/main/cpp/CMakeLists.txt"
}
}
} |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论