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 | ], |
Luca Stefani | 33ae401 | 2024-10-12 18:24:02 +0200 | [diff] [blame] | 16 | optimize: { |
| 17 | proguard_flags_files: ["rules/*"], |
| 18 | export_proguard_flags_files: true, |
| 19 | }, |
Vineel Sadineni | 8599318 | 2024-04-17 22:36:16 +0000 | [diff] [blame] | 20 | apex_available: [ |
| 21 | "//apex_available:platform", |
| 22 | "//apex_available:anyapex", |
| 23 | ], |
Clara Fok | dd98219 | 2024-03-08 17:00:12 -0800 | [diff] [blame] | 24 | } |
Colin Cross | 2d70167 | 2024-03-28 15:12:11 -0700 | [diff] [blame] | 25 | |
| 26 | java_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 Fok | 5b6a599 | 2024-04-22 16:06:56 -0700 | [diff] [blame] | 34 | "-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 Cross | 2d70167 | 2024-03-28 15:12:11 -0700 | [diff] [blame] | 39 | "-opt-in=kotlinx.serialization.ExperimentalSerializationApi", |
| 40 | "-opt-in=kotlinx.serialization.InternalSerializationApi", |
| 41 | ], |
Vineel Sadineni | 8599318 | 2024-04-17 22:36:16 +0000 | [diff] [blame] | 42 | static_libs: ["kotlinx_serialization_core"], |
| 43 | apex_available: [ |
| 44 | "//apex_available:platform", |
| 45 | "//apex_available:anyapex", |
| 46 | ], |
Colin Cross | 2d70167 | 2024-03-28 15:12:11 -0700 | [diff] [blame] | 47 | } |