-
Notifications
You must be signed in to change notification settings - Fork 35
/
build.gradle
66 lines (54 loc) · 1.83 KB
/
build.gradle
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
boolean isXposed = true
android {
compileSdkVersion 29
buildToolsVersion "30.0.0"
defaultConfig {
minSdkVersion 19
targetSdkVersion 29
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles 'consumer-rules.pro'
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
sourceSets {
main {
if (isXposed) {
java.srcDirs('src/main/java', 'src/main/xposedhook')
} else {
if (isUseAndHook) {
java.srcDirs('src/main/java', 'src/main/andhook')
}
if (isUseEpic) {
java.srcDirs('src/main/java', 'src/main/epic')
}
if (isUseSandhook) {
java.srcDirs('src/main/java', 'src/main/sandhook')
}
}
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'androidx.core:core-ktx:1.3.2'
implementation 'com.google.code.gson:gson:2.8.6'
implementation "com.squareup.okhttp3:okhttp:3.6.0"
// implementation project(path: ':stetho')
implementation 'com.facebook.stetho:stetho:1.5.1'
implementation 'com.blankj:utilcodex:1.29.0'
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.3.1'
if (isXposed) {
compileOnly 'de.robv.android.xposed:api:81'
}
}