forked from dariuszseweryn/RxAndroidBle
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
70 lines (57 loc) · 2 KB
/
build.gradle
File metadata and controls
70 lines (57 loc) · 2 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
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
apply plugin: 'com.android.library'
apply plugin: 'groovyx.android'
apply plugin: 'com.vanniktech.maven.publish'
apply from: rootProject.file('gradle/gradle-mvn-config.gradle')
android {
namespace 'com.polidea.rxandroidble2'
compileSdkVersion 32
defaultConfig {
minSdkVersion 18
targetSdkVersion 32
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
consumerProguardFiles 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility rootProject.ext.targetCompatibilityVersion
targetCompatibility rootProject.ext.targetCompatibilityVersion
}
testOptions {
unitTests.returnDefaultValues = true
unitTests.all {
testLogging {
events "passed", "skipped", "failed", "standardOut", "standardError"
outputs.upToDateWhen { false }
showStandardStreams = true
}
}
}
lint {
abortOnError false
}
preBuild.dependsOn 'checkstyle'
}
androidGroovy {
skipJavaC = true
}
afterEvaluate { project ->
// add explicit dependencies to compile groovy when testing
testDebugUnitTest.dependsOn 'compileDebugUnitTestGroovyWithGroovyc'
testReleaseUnitTest.dependsOn 'compileReleaseUnitTestGroovyWithGroovyc'
}
dependencies {
api rootProject.ext.libs.rxjava2
api rootProject.ext.libs.annotations
implementation rootProject.ext.libs.rxrelay2
implementation project(path: ':dagger-library-shadow', transitive: false, configuration: 'shadow')
annotationProcessor project(path: ':dagger-compiler-shadow', transitive: false, configuration: 'shadow')
compileOnly files(tasks.getByPath(':dagger-library-shadow:shadowJar').archiveFile)
// Test dependencies
testImplementation rootProject.ext.libs.junit
testImplementation rootProject.ext.libs.groovy
testImplementation rootProject.ext.libs.spock
}