-
Notifications
You must be signed in to change notification settings - Fork 589
/
Copy pathbuild.gradle
70 lines (56 loc) · 1.95 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
apply plugin: 'com.android.application'
apply plugin: 'org.jetbrains.kotlin.android'
apply plugin: 'org.jetbrains.kotlin.android.extensions'
android {
namespace 'com.polidea.rxandroidble2.samplekotlin'
compileSdkVersion 32
defaultConfig {
applicationId "com.polidea.rxandroidble.sample"
minSdkVersion 18
targetSdkVersion 32
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility = rootProject.ext.sourceCompatibilityVersion
targetCompatibility = rootProject.ext.targetCompatibilityVersion
}
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
test.java.srcDirs = [
'src/test/kotlin',
'../rxandroidble/src/test/java' // this produces a warning about duplicate content roots, but it is still required
]
}
}
configurations.all {
resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
}
dependencies {
// RxAndroidBle
implementation project(path: ':rxandroidble')
// Kotlin stdlib
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlinVersion"
// AndroidX
implementation rootProject.ext.libs.appcompat
implementation rootProject.ext.libs.material_design
implementation 'androidx.recyclerview:recyclerview:1.2.1'
implementation rootProject.ext.libs.annotations
// RxBinding
implementation rootProject.ext.libs.rxjava_binding
// RxJava
implementation rootProject.ext.libs.rxjava2
implementation rootProject.ext.libs.rxandroid
implementation 'io.reactivex.rxjava2:rxkotlin:2.4.0'
// Replaying share
implementation rootProject.ext.libs.rxjava_replayingshare
// Test
testImplementation project(':mockrxandroidble')
testImplementation rootProject.ext.libs.junit
}