blob: ba373efecff5b142814aed4bf2b191b6c9394095 [file] [log] [blame]
Colin Cross905a53f2020-06-25 19:12:23 -07001java_library {
2 name: "kotlinx_coroutines",
3 host_supported: true,
4 // This should be "core_current", but that causes nullability issues
5 // for returned platform types that are explicitly marked @Nullable in
6 // SDK 29 and current.
7 sdk_version: "28",
8 srcs: ["kotlinx-coroutines-core/jvm/src/**/*.kt"],
9 common_srcs: ["kotlinx-coroutines-core/common/src/**/*.kt"],
10 exclude_srcs: [
11 "kotlinx-coroutines-core/jvm/src/debug/**/*.kt",
12 "kotlinx-coroutines-core/jvm/src/test_/TestCoroutineContext.kt",
13 ],
14 static_libs: [
15 "kotlinx_atomicfu",
16 ],
17 kotlincflags: [
18 "-Xmulti-platform",
19 "-Xuse-experimental=kotlin.ExperimentalMultiplatform",
20 "-Xuse-experimental=kotlin.Experimental",
21 "-Xuse-experimental=kotlin.experimental.ExperimentalTypeInference",
22 "-Xuse-experimental=kotlinx.coroutines.ExperimentalCoroutinesApi",
23 "-Xuse-experimental=kotlinx.coroutines.FlowPreview",
24 "-Xuse-experimental=kotlinx.coroutines.ObsoleteCoroutinesApi",
25 "-Xuse-experimental=kotlinx.coroutines.InternalCoroutinesApi",
26 ],
27}
Colin Cross9b946d02020-07-17 15:12:08 -070028
29java_library {
30 name: "kotlinx_coroutines_android",
31 sdk_version: "28",
32 srcs: ["ui/kotlinx-coroutines-android/src/**/*.kt"],
33 kotlincflags: [
34 "-Xuse-experimental=kotlinx.coroutines.InternalCoroutinesApi",
35 "-Xuse-experimental=kotlinx.coroutines.ExperimentalCoroutinesApi",
36 ],
37 libs: [
38 "kotlinx_coroutines",
39 "androidx.annotation_annotation",
40 ],
41}