-
-
Notifications
You must be signed in to change notification settings - Fork 328
/
build.gradle
111 lines (91 loc) 路 3.86 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'
apply plugin: 'com.google.devtools.ksp'
android {
compileSdk rootProject.compileSdkVersion
namespace "com.chuckerteam.chucker"
compileOptions {
kotlinOptions.freeCompilerArgs += [
'-module-name', "com.github.ChuckerTeam.Chucker.library",
"-Xexplicit-api=strict"
]
}
defaultConfig {
minSdk rootProject.minSdkVersion
consumerProguardFiles 'proguard-rules.pro'
resValue("string", "chucker_version", "$VERSION_NAME")
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}
kotlin {
jvmToolchain(11)
}
buildFeatures {
viewBinding true
buildConfig = false
}
lintOptions {
warningsAsErrors true
abortOnError true
// We don't want to impose RTL on consuming applications.
disable 'RtlEnabled'
// Don't fail build if some dependencies outdated
disable 'GradleDependency'
}
testOptions {
unitTests {
includeAndroidResources = true
all {
useJUnitPlatform()
}
}
}
resourcePrefix 'chucker_'
publishing {
singleVariant('release') {
withSourcesJar()
withJavadocJar()
}
}
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion"
implementation "com.google.android.material:material:$materialComponentsVersion"
implementation "androidx.constraintlayout:constraintlayout:$constraintLayoutVersion"
implementation "androidx.palette:palette-ktx:$paletteKtxVersion"
implementation "androidx.activity:activity-ktx:$activityVersion"
implementation "androidx.fragment:fragment-ktx:$fragmentVersion"
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycleVersion"
implementation "androidx.lifecycle:lifecycle-livedata-ktx:$lifecycleVersion"
implementation "androidx.room:room-ktx:$roomVersion"
implementation "androidx.room:room-runtime:$roomVersion"
ksp "androidx.room:room-compiler:$roomVersion"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:$coroutineVersion"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-test:$coroutineVersion"
implementation "com.google.code.gson:gson:$gsonVersion"
implementation "org.brotli:dec:$brotliVersion"
api platform("com.squareup.okhttp3:okhttp-bom:$okhttpVersion")
api "com.squareup.okhttp3:okhttp"
testImplementation "com.squareup.okhttp3:mockwebserver"
testImplementation "org.junit.jupiter:junit-jupiter-api:$junitVersion"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$junitVersion"
testImplementation "junit:junit:$junit4Version"
testRuntimeOnly "org.junit.vintage:junit-vintage-engine:$junitVersion"
testImplementation "org.junit.jupiter:junit-jupiter-params:$junitVersion"
testImplementation "io.mockk:mockk:$mockkVersion"
testImplementation "androidx.test:core:$androidxTestCoreVersion"
testImplementation "androidx.arch.core:core-testing:$androidXCoreVersion"
testImplementation "com.google.truth:truth:$truthVersion"
testImplementation "org.robolectric:robolectric:$robolectricVersion"
androidTestImplementation "junit:junit:$junit4Version"
androidTestImplementation "androidx.test:runner:$androidXTestRunner"
androidTestImplementation "androidx.test:rules:$androidXTestRules"
androidTestImplementation "com.google.truth:truth:$truthVersion"
androidTestImplementation "androidx.test.ext:junit:$androidXTestExt"
}
apply from: rootProject.file('gradle/gradle-mvn-push.gradle')
apply from: rootProject.file('gradle/kotlin-static-analysis.gradle')