blob: 51b863578a728d180f4e18056046e143ddead43f [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 ],
Luca Stefani33ae4012024-10-12 18:24:02 +020016 optimize: {
17 proguard_flags_files: ["rules/*"],
18 export_proguard_flags_files: true,
19 },
Vineel Sadineni85993182024-04-17 22:36:16 +000020 apex_available: [
21 "//apex_available:platform",
22 "//apex_available:anyapex",
23 ],
Clara Fokdd982192024-03-08 17:00:12 -080024}
Colin Cross2d701672024-03-28 15:12:11 -070025
26java_library {
27 name: "kotlinx_serialization_json",
28 host_supported: true,
29 sdk_version: "core_current",
30 srcs: ["formats/json/jvmMain/src/kotlinx/serialization/**/*.kt"],
31 common_srcs: ["formats/json/commonMain/src/kotlinx/serialization/**/*.kt"],
32 kotlincflags: [
33 "-Xmulti-platform",
Clara Fok5b6a5992024-04-22 16:06:56 -070034 "-Xexpect-actual-classes",
35 "-opt-in=kotlin.ExperimentalStdlibApi",
36 "-opt-in=kotlin.ExperimentalMultiplatform",
37 "-opt-in=kotlinx.serialization.internal.CoreFriendModuleApi",
38 "-opt-in=kotlinx.serialization.json.internal.JsonFriendModuleApi",
Colin Cross2d701672024-03-28 15:12:11 -070039 "-opt-in=kotlinx.serialization.ExperimentalSerializationApi",
40 "-opt-in=kotlinx.serialization.InternalSerializationApi",
41 ],
Vineel Sadineni85993182024-04-17 22:36:16 +000042 static_libs: ["kotlinx_serialization_core"],
43 apex_available: [
44 "//apex_available:platform",
45 "//apex_available:anyapex",
46 ],
Colin Cross2d701672024-03-28 15:12:11 -070047}