aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeil Fuller <nfuller@google.com>2020-08-05 20:48:11 +0100
committerNeil Fuller <nfuller@google.com>2020-08-06 16:38:39 +0100
commit4f1e9bde7f7a14bfd12002ca75cf0ccdafe5fa54 (patch)
tree1e7ec3c13e69d4871ab1691943468ec90a75b523
parent0712d7d8f2e9c260fb53b8e151665e0008b1361a (diff)
downloadjackson-databind-4f1e9bde7f7a14bfd12002ca75cf0ccdafe5fa54.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 an OWNERS. Test: build Bug: 152747091 Change-Id: Ieb980ea6216ff12f1db7fcabb77e90472160fe77
-rw-r--r--Android.bp27
-rw-r--r--OWNERS3
-rw-r--r--android/src/com/fasterxml/jackson/databind/cfg/PackageVersion.java22
3 files changed, 52 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
new file mode 100644
index 000000000..3db25da1c
--- /dev/null
+++ b/Android.bp
@@ -0,0 +1,27 @@
+//
+// 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-databind",
+ srcs: [
+ "android/src/**/*.java",
+ "src/main/**/*.java",
+ ],
+ libs: [
+ "jackson-annotations",
+ "jackson-core",
+ ],
+}
diff --git a/OWNERS b/OWNERS
new file mode 100644
index 000000000..975f73c07
--- /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/databind/cfg/PackageVersion.java b/android/src/com/fasterxml/jackson/databind/cfg/PackageVersion.java
new file mode 100644
index 000000000..d4eb01087
--- /dev/null
+++ b/android/src/com/fasterxml/jackson/databind/cfg/PackageVersion.java
@@ -0,0 +1,22 @@
+package com.fasterxml.jackson.databind.cfg;
+
+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-databind");
+
+ @Override
+ public Version version() {
+ return VERSION;
+ }
+}