aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeil Fuller <nfuller@google.com>2020-08-05 20:24:27 +0100
committerNeil Fuller <nfuller@google.com>2020-08-06 16:35:38 +0100
commit0858ba265921822ee31ccd9e062d777e5ce3c15e (patch)
tree073e61a485caedbcc1840e08d20e32d756fb666d
parentd94b7d89ef60b7b7e4921bf8258fe1642803c425 (diff)
downloadjackson-core-0858ba265921822ee31ccd9e062d777e5ce3c15e.tar.gz
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
-rw-r--r--Android.bp23
-rw-r--r--OWNERS3
-rw-r--r--android/src/com/fasterxml/jackson/core/json/PackageVersion.java22
3 files changed, 48 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
new file mode 100644
index 00000000..319403c3
--- /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 00000000..975f73c0
--- /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 00000000..709b6702
--- /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;
+ }
+}