Add an Android build file / PackageVersion.java
Add an Android build file and a stand-in PackageVersion.java needed to
build. Also add OWNERS.
Test: build
Bug: 152747091
Change-Id: Ib46e1de1e124ea055a2377acd83fee7cb60c4c43
diff --git a/Android.bp b/Android.bp
new file mode 100644
index 0000000..319403c
--- /dev/null
+++ b/Android.bp
@@ -0,0 +1,23 @@
+//
+// Copyright (C) 2020 The Android Open Source Project
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+java_library_host {
+ name: "jackson-core",
+ srcs: [
+ "android/src/**/*.java",
+ "src/main/**/*.java",
+ ],
+}
diff --git a/OWNERS b/OWNERS
new file mode 100644
index 0000000..975f73c
--- /dev/null
+++ b/OWNERS
@@ -0,0 +1,3 @@
+# Bug component: 847766
+nfuller@google.com
+include platform/libcore:/OWNERS
diff --git a/android/src/com/fasterxml/jackson/core/json/PackageVersion.java b/android/src/com/fasterxml/jackson/core/json/PackageVersion.java
new file mode 100644
index 0000000..709b670
--- /dev/null
+++ b/android/src/com/fasterxml/jackson/core/json/PackageVersion.java
@@ -0,0 +1,22 @@
+package com.fasterxml.jackson.core.json;
+
+import com.fasterxml.jackson.core.Version;
+import com.fasterxml.jackson.core.Versioned;
+import com.fasterxml.jackson.core.util.VersionUtil;
+
+/**
+ * An Android copy of a class that is auto-generated by mvn when using the upstream build system.
+ *
+ * Automatically generated from PackageVersion.java.in during
+ * packageVersion-generate execution of maven-replacer-plugin in
+ * pom.xml.
+ */
+public final class PackageVersion implements Versioned {
+ public final static Version VERSION = VersionUtil.parseVersion(
+ "2.12-ANDROID", "com.fasterxml.jackson.core", "jackson-core");
+
+ @Override
+ public Version version() {
+ return VERSION;
+ }
+}