-
Notifications
You must be signed in to change notification settings - Fork 352
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
使用最新版Android Studio和gradle 8.7在Kotlin DSL如何添加classpath? #164
Comments
buildscript {
repositories {
mavenCentral() // 添加 Maven Central 仓库
}
dependencies {
classpath("com.github.megatronking.stringfog:gradle-plugin:5.2.0") // StringFog 插件依赖
classpath("com.github.megatronking.stringfog:xor:5.0.0") // StringFog 默认的 XOR 加解密算法库依赖
}
} 上面直接粘到project的build.gradle.kts,下面的在app的build.gradle.kts plugins {
id("stringfog")
}
apply(plugin = "stringfog")
configure<StringFogExtension> {
// 必要:加解密库的实现类路径,需和上面配置的加解密算法库一致。
implementation = "com.github.megatronking.stringfog.xor.StringFogImpl"
// 可选:加密开关,默认开启。
enable = true
// 可选:指定需加密的代码包路径,可配置多个,未指定将默认全部加密。
// fogPackages = arrayOf("com.xxx.xxx")
kg = com.github.megatronking.stringfog.plugin.kg.RandomKeyGenerator()
// base64或者bytes
mode = com.github.megatronking.stringfog.plugin.StringFogMode.bytes
}
////还有这个
implementation("com.github.megatronking.stringfog:xor:5.0.0") // 引入 XOR 加密库 |
see #161 |
好的 |
@pangli 加上 id("stringfog") 编译通不过 |
你是不是没写对,我这边是正常的 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The text was updated successfully, but these errors were encountered: