/
build.gradle
37 lines (31 loc) · 1.02 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
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
dependencies {
api project(':shark-android')
api project(':leakcanary-object-watcher-android')
api project(':leakcanary-object-watcher-android-androidx')
api project(':leakcanary-object-watcher-android-support-fragments')
implementation deps.kotlin.stdlib
testImplementation deps.junit
testImplementation deps.mockito
testImplementation deps.mockito_kotlin
}
def gitSha() {
return 'git rev-parse --short HEAD'.execute().text.trim()
}
android {
resourcePrefix 'leak_canary_'
compileSdkVersion versions.compileSdk
defaultConfig {
minSdkVersion versions.minSdk
buildConfigField "String", "LIBRARY_VERSION", "\"${rootProject.ext.VERSION_NAME}\""
buildConfigField "String", "GIT_SHA", "\"${gitSha()}\""
consumerProguardFiles 'consumer-proguard-rules.pro'
}
lintOptions {
disable 'GoogleAppIndexingWarning'
error 'ObsoleteSdkInt'
check 'Interoperability'
}
}
apply from: rootProject.file('gradle/gradle-mvn-push.gradle')