Repository navigation
Expand file tree
/
Copy pathbuild.gradle
More file actions
43 lines (39 loc) · 1.5 KB
/
Copy pathbuild.gradle
File metadata and controls
43 lines (39 loc) · 1.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
apply plugin: 'com.android.application'
apply plugin: 'stringfog'
stringfog {
key 'Hello Application'
enable true
debug false
// 指定加解密的具体实现类,可以用默认实现的xor库或者aes-cbc库,也可以自己定制实现,记得配置dependencies
implementation 'com.github.megatronking.stringfog.xor.StringFogImpl'
// 指定需加密的代码包路径,可配置多个,未指定将默认全部加密
fogPackages = ["com.github.megatronking.stringfog"]
}
android {
compileSdkVersion 28
defaultConfig {
applicationId "com.github.megatronking.stringfog"
minSdkVersion 15
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
debug {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation project(':stringfog-sample-library')
testImplementation 'junit:junit:4.12'
// xor加解密库,stringfog中的implementation需依赖此库
implementation 'com.github.megatronking.stringfog:xor:1.0.0'
}