-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle
64 lines (57 loc) · 1.93 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
plugins {
id 'com.android.library'
id 'org.jetbrains.kotlin.android'
}
android {
namespace 'io.karte.android'
compileSdkVersion 31
defaultConfig {
minSdkVersion 16
//noinspection OldTargetApi
targetSdkVersion 31
buildConfigField "String", "LIB_VERSION", "\"$version\""
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles 'proguard-rules.pro'
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
testOptions {
unitTests {
includeAndroidResources = true
all {
systemProperty 'robolectric.sqliteMode', 'NATIVE'
}
}
}
kotlinOptions.allWarningsAsErrors = true
lint {
lintConfig file('../lint.xml')
warningsAsErrors true
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
//noinspection GradleDependency
compileOnly 'androidx.core:core-ktx:1.2.0'
compileOnly 'androidx.ads:ads-identifier:1.0.0-alpha04'
compileOnly 'com.google.android.gms:play-services-ads-identifier:17.0.0'
testImplementation 'junit:junit:4.13.2'
testImplementation 'androidx.test:core:1.3.0'
testImplementation "com.google.truth:truth:1.0.1"
testImplementation "io.mockk:mockk:1.10.0"
testRuntimeOnly "net.bytebuddy:byte-buddy:1.10.21"
testImplementation "org.robolectric:robolectric:4.8"
testImplementation 'com.squareup.okhttp3:mockwebserver:4.8.0'
testImplementation 'com.google.android.gms:play-services-ads-identifier:17.0.0'
testImplementation project(':test_lib')
}
afterEvaluate {
if (rootProject.hasProperty("afterConfigurate")) {
rootProject."afterConfigurate"(project)
}
}