-
-
Notifications
You must be signed in to change notification settings - Fork 160
/
Copy pathbuild.gradle.kts
38 lines (34 loc) · 1.01 KB
/
build.gradle.kts
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
/*
* Copyright 2019-2021 Louis Cognault Ayeva Derman. Use of this source code is governed by the Apache 2.0 license.
*/
plugins {
id("com.android.library")
kotlin("multiplatform")
publish
}
android {
setDefaults()
namespace = "splitties.lifecycle.coroutines"
}
kotlin {
androidTarget()
configure(targets) { configureMavenPublication() }
sourceSets {
commonMain.dependencies {
implementation(splitties("coroutines"))
api(splitties("experimental"))
}
androidMain.dependencies {
implementation(splitties("mainhandler"))
implementation(splitties("mainthread"))
api(KotlinX.coroutines.android)
api(AndroidX.lifecycle.common)
api(AndroidX.lifecycle.runtime.ktx)
}
getByName("androidUnitTest").dependencies {
implementation(splitties("experimental"))
implementation(KotlinX.coroutines.test)
implementation(Kotlin.test.junit)
}
}
}