blob: d6c6f8d959c26fdca082a6de4ba738dd345a38cb [file] [log] [blame]
Clara Fokdd982192024-03-08 17:00:12 -08001java_library {
Vineel Sadineni85993182024-04-17 22:36:16 +00002 name: "kotlinx_serialization_core",
Clara Fokdd982192024-03-08 17:00:12 -08003 host_supported: true,
4 sdk_version: "core_current",
Colin Cross55548f42024-03-28 15:06:12 -07005 srcs: ["core/jvmMain/src/kotlinx/serialization/**/*.kt"],
6 common_srcs: ["core/commonMain/src/kotlinx/serialization/**/*.kt"],
Clara Fokdd982192024-03-08 17:00:12 -08007 kotlincflags: [
8 "-Xmulti-platform",
Clara Fok5b6a5992024-04-22 16:06:56 -07009 "-Xexpect-actual-classes",
10 "-opt-in=kotlin.ExperimentalStdlibApi",
11 "-opt-in=kotlin.ExperimentalMultiplatform",
12 "-opt-in=kotlinx.serialization.internal.CoreFriendModuleApi",
Colin Cross55548f42024-03-28 15:06:12 -070013 "-opt-in=kotlinx.serialization.ExperimentalSerializationApi",
14 "-opt-in=kotlinx.serialization.InternalSerializationApi",
Clara Fokdd982192024-03-08 17:00:12 -080015 ],
Vineel Sadineni85993182024-04-17 22:36:16 +000016 apex_available: [
17 "//apex_available:platform",
18 "//apex_available:anyapex",
19 ],
Clara Fokdd982192024-03-08 17:00:12 -080020}
Colin Cross2d701672024-03-28 15:12:11 -070021
22java_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 Fok5b6a5992024-04-22 16:06:56 -070030 "-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 Cross2d701672024-03-28 15:12:11 -070035 "-opt-in=kotlinx.serialization.ExperimentalSerializationApi",
36 "-opt-in=kotlinx.serialization.InternalSerializationApi",
37 ],
Vineel Sadineni85993182024-04-17 22:36:16 +000038 static_libs: ["kotlinx_serialization_core"],
39 apex_available: [
40 "//apex_available:platform",
41 "//apex_available:anyapex",
42 ],
Colin Cross2d701672024-03-28 15:12:11 -070043}