Add Android files
Bug: 141779475
Test: m checkbuild
Change-Id: I79a3e27562ad8bc8ecb844b933901200ba916c67
diff --git a/Android.bp b/Android.bp
new file mode 100644
index 0000000..155a764
--- /dev/null
+++ b/Android.bp
@@ -0,0 +1,35 @@
+package {
+ default_visibility: [":__subpackages__"],
+}
+
+java_library {
+ name: "kotlinx_atomicfu",
+ host_supported: true,
+ sdk_version: "core_current",
+ srcs: ["atomicfu/src/jvmMain/**/*.kt"],
+ exclude_srcs: ["atomicfu/src/jvmMain/kotlin/kotlinx/atomicfu/LockFreedomTestEnvironment.kt"],
+ common_srcs: ["atomicfu/src/commonMain/**/*.kt"],
+ kotlincflags: [
+ "-Xmulti-platform",
+ ],
+ visibility: ["//external/kotlinx.coroutines"],
+}
+
+java_binary_host {
+ name: "kotlinx_atomicfu_transformer",
+ srcs: [
+ "atomicfu-transformer/src/main/**/*.kt",
+ ],
+ exclude_srcs: [
+ "atomicfu-transformer/src/main/kotlin/kotlinx/atomicfu/transformer/AtomicFUTransformerJS.kt",
+ ],
+ static_libs: [
+ "kotlinx_metadata_jvm",
+ "asm-6.0",
+ "asm-commons-6.0",
+ "asm-tree-6.0",
+ "asm-util-6.0",
+ "slf4j-jdk14",
+ ],
+ main_class: "kotlinx.atomicfu.transformer.AtomicFUTransformerKT",
+}
diff --git a/LICENSE b/LICENSE
new file mode 120000
index 0000000..653f89e
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1 @@
+license/LICENSE.txt
\ No newline at end of file
diff --git a/METADATA b/METADATA
new file mode 100644
index 0000000..9c04ab8
--- /dev/null
+++ b/METADATA
@@ -0,0 +1,17 @@
+name: "kotlinx.atomicfu"
+description:
+ "The idiomatic way to use atomic operations in Kotlin."
+
+third_party {
+ url {
+ type: HOMEPAGE
+ value: "https://github.com/Kotlin/kotlinx.atomicfu"
+ }
+ url {
+ type: GIT
+ value: "https://github.com/Kotlin/kotlinx.atomicfu"
+ }
+ version: "0.13.1"
+ last_upgrade_date { year: 2019 month: 10 day: 1 }
+ license_type: NOTICE
+}
diff --git a/MODULE_LICENSE_APACHE2 b/MODULE_LICENSE_APACHE2
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/MODULE_LICENSE_APACHE2
diff --git a/NOTICE b/NOTICE
new file mode 120000
index 0000000..7a694c9
--- /dev/null
+++ b/NOTICE
@@ -0,0 +1 @@
+LICENSE
\ No newline at end of file
diff --git a/OWNERS b/OWNERS
new file mode 100644
index 0000000..a4e722f
--- /dev/null
+++ b/OWNERS
@@ -0,0 +1 @@
+ccross@android.com