Colin Cross | 905a53f | 2020-06-25 19:12:23 -0700 | [diff] [blame] | 1 | java_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 Cross | 9b946d0 | 2020-07-17 15:12:08 -0700 | [diff] [blame] | 28 | |
| 29 | java_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 | } |