Clara Fok | dd98219 | 2024-03-08 17:00:12 -0800 | [diff] [blame] | 1 | java_library { |
Vineel Sadineni | 8599318 | 2024-04-17 22:36:16 +0000 | [diff] [blame] | 2 | name: "kotlinx_serialization_core", |
Clara Fok | dd98219 | 2024-03-08 17:00:12 -0800 | [diff] [blame] | 3 | host_supported: true, |
| 4 | sdk_version: "core_current", |
Colin Cross | 55548f4 | 2024-03-28 15:06:12 -0700 | [diff] [blame] | 5 | srcs: ["core/jvmMain/src/kotlinx/serialization/**/*.kt"], |
| 6 | common_srcs: ["core/commonMain/src/kotlinx/serialization/**/*.kt"], |
Clara Fok | dd98219 | 2024-03-08 17:00:12 -0800 | [diff] [blame] | 7 | kotlincflags: [ |
| 8 | "-Xmulti-platform", |
Clara Fok | 5b6a599 | 2024-04-22 16:06:56 -0700 | [diff] [blame] | 9 | "-Xexpect-actual-classes", |
| 10 | "-opt-in=kotlin.ExperimentalStdlibApi", |
| 11 | "-opt-in=kotlin.ExperimentalMultiplatform", |
| 12 | "-opt-in=kotlinx.serialization.internal.CoreFriendModuleApi", |
Colin Cross | 55548f4 | 2024-03-28 15:06:12 -0700 | [diff] [blame] | 13 | "-opt-in=kotlinx.serialization.ExperimentalSerializationApi", |
| 14 | "-opt-in=kotlinx.serialization.InternalSerializationApi", |
Clara Fok | dd98219 | 2024-03-08 17:00:12 -0800 | [diff] [blame] | 15 | ], |
Vineel Sadineni | 8599318 | 2024-04-17 22:36:16 +0000 | [diff] [blame] | 16 | apex_available: [ |
| 17 | "//apex_available:platform", |
| 18 | "//apex_available:anyapex", |
| 19 | ], |
Clara Fok | dd98219 | 2024-03-08 17:00:12 -0800 | [diff] [blame] | 20 | } |
Colin Cross | 2d70167 | 2024-03-28 15:12:11 -0700 | [diff] [blame] | 21 | |
| 22 | java_library { |
| 23 | name: "kotlinx_serialization_json", |
| 24 | host_supported: true, |
| 25 | sdk_version: "core_current", |
| 26 | srcs: ["formats/json/jvmMain/src/kotlinx/serialization/**/*.kt"], |
| 27 | common_srcs: ["formats/json/commonMain/src/kotlinx/serialization/**/*.kt"], |
| 28 | kotlincflags: [ |
| 29 | "-Xmulti-platform", |
Clara Fok | 5b6a599 | 2024-04-22 16:06:56 -0700 | [diff] [blame] | 30 | "-Xexpect-actual-classes", |
| 31 | "-opt-in=kotlin.ExperimentalStdlibApi", |
| 32 | "-opt-in=kotlin.ExperimentalMultiplatform", |
| 33 | "-opt-in=kotlinx.serialization.internal.CoreFriendModuleApi", |
| 34 | "-opt-in=kotlinx.serialization.json.internal.JsonFriendModuleApi", |
Colin Cross | 2d70167 | 2024-03-28 15:12:11 -0700 | [diff] [blame] | 35 | "-opt-in=kotlinx.serialization.ExperimentalSerializationApi", |
| 36 | "-opt-in=kotlinx.serialization.InternalSerializationApi", |
| 37 | ], |
Vineel Sadineni | 8599318 | 2024-04-17 22:36:16 +0000 | [diff] [blame] | 38 | static_libs: ["kotlinx_serialization_core"], |
| 39 | apex_available: [ |
| 40 | "//apex_available:platform", |
| 41 | "//apex_available:anyapex", |
| 42 | ], |
Colin Cross | 2d70167 | 2024-03-28 15:12:11 -0700 | [diff] [blame] | 43 | } |