Add kotlinx_serialization_json
Add a kotlinx_serialization_json module based off kotlinx_serialization.
Bug: 330586494
Test: builds
Change-Id: I05e6f2f08ed218d385d85d79bd8c81e9835b4001
diff --git a/Android.bp b/Android.bp
index a4d6bda..cca69f0 100644
--- a/Android.bp
+++ b/Android.bp
@@ -10,3 +10,17 @@
"-opt-in=kotlinx.serialization.InternalSerializationApi",
],
}
+
+java_library {
+ name: "kotlinx_serialization_json",
+ host_supported: true,
+ sdk_version: "core_current",
+ srcs: ["formats/json/jvmMain/src/kotlinx/serialization/**/*.kt"],
+ common_srcs: ["formats/json/commonMain/src/kotlinx/serialization/**/*.kt"],
+ kotlincflags: [
+ "-Xmulti-platform",
+ "-opt-in=kotlinx.serialization.ExperimentalSerializationApi",
+ "-opt-in=kotlinx.serialization.InternalSerializationApi",
+ ],
+ static_libs: ["kotlinx_serialization"],
+}