Copying glide snapshot from google3 @127383485

Bug: 30073698

Change-Id: I7afc263d3430c98d17f550f7f6a2dd5f345807c3
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..441c374
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,94 @@
+License for everything not in third_party and not otherwise marked:
+
+Copyright 2014 Google, Inc. All rights reserved.
+
+Redistribution and use in source and binary forms, with or without modification, are
+permitted provided that the following conditions are met:
+
+   1. Redistributions of source code must retain the above copyright notice, this list of
+         conditions and the following disclaimer.
+
+   2. Redistributions in binary form must reproduce the above copyright notice, this list
+         of conditions and the following disclaimer in the documentation and/or other materials
+         provided with the distribution.
+
+THIS SOFTWARE IS PROVIDED BY GOOGLE, INC. ``AS IS'' AND ANY EXPRESS OR IMPLIED
+WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GOOGLE, INC. OR
+CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
+ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+The views and conclusions contained in the software and documentation are those of the
+authors and should not be interpreted as representing official policies, either expressed
+or implied, of Google, Inc.
+---------------------------------------------------------------------------------------------
+License for third_party/disklrucache:
+
+Copyright 2012 Jake Wharton
+Copyright 2011 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.
+---------------------------------------------------------------------------------------------
+License for third_party/gif_decoder:
+
+Copyright (c) 2013 Xcellent Creations, Inc.
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+---------------------------------------------------------------------------------------------
+License for third_party/gif_encoder/AnimatedGifEncoder.java and
+third_party/gif_encoder/LZWEncoder.java:
+
+No copyright asserted on the source code of this class. May be used for any
+purpose, however, refer to the Unisys LZW patent for restrictions on use of
+the associated LZWEncoder class. Please forward any corrections to
+kweiner@fmsware.com.
+
+-----------------------------------------------------------------------------
+License for third_party/gif_encoder/NeuQuant.java
+
+Copyright (c) 1994 Anthony Dekker
+
+NEUQUANT Neural-Net quantization algorithm by Anthony Dekker, 1994. See
+"Kohonen neural networks for optimal colour quantization" in "Network:
+Computation in Neural Systems" Vol. 5 (1994) pp 351-367. for a discussion of
+the algorithm.
+
+Any party obtaining a copy of these files from the author, directly or
+indirectly, is granted, free of charge, a full and unrestricted irrevocable,
+world-wide, paid up, royalty-free, nonexclusive right and license to deal in
+this software and documentation files (the "Software"), including without
+limitation the rights to use, copy, modify, merge, publish, distribute,
+sublicense, and/or sell copies of the Software, and to permit persons who
+receive copies from any such party to do so, with the only requirement being
+that this copyright notice remain intact.
\ No newline at end of file
diff --git a/README.google b/README.google
new file mode 100644
index 0000000..90f79bb
--- /dev/null
+++ b/README.google
@@ -0,0 +1,9 @@
+URL: https://github.com/bumptech/glide
+License: BSD-2-Clause Apache-2.0
+License File: LICENSE
+
+Description:
+Image loading library for Android.
+
+Local Modifications:
+No Modifications
diff --git a/README.txt b/README.txt
new file mode 100644
index 0000000..a2d9c2b
--- /dev/null
+++ b/README.txt
@@ -0,0 +1 @@
+This maven repository was synced to google3 CL 127383485
diff --git a/com/github/bumptech/glide/disklrucache/1.0.0-SNAPSHOT/disklrucache-1.0.0-SNAPSHOT-sources.jar b/com/github/bumptech/glide/disklrucache/1.0.0-SNAPSHOT/disklrucache-1.0.0-SNAPSHOT-sources.jar
new file mode 100755
index 0000000..3e6730b
--- /dev/null
+++ b/com/github/bumptech/glide/disklrucache/1.0.0-SNAPSHOT/disklrucache-1.0.0-SNAPSHOT-sources.jar
Binary files differ
diff --git a/com/github/bumptech/glide/disklrucache/1.0.0-SNAPSHOT/disklrucache-1.0.0-SNAPSHOT.jar b/com/github/bumptech/glide/disklrucache/1.0.0-SNAPSHOT/disklrucache-1.0.0-SNAPSHOT.jar
new file mode 100755
index 0000000..07bbf67
--- /dev/null
+++ b/com/github/bumptech/glide/disklrucache/1.0.0-SNAPSHOT/disklrucache-1.0.0-SNAPSHOT.jar
Binary files differ
diff --git a/com/github/bumptech/glide/disklrucache/maven-metadata.xml b/com/github/bumptech/glide/disklrucache/maven-metadata.xml
new file mode 100644
index 0000000..1a53d7b
--- /dev/null
+++ b/com/github/bumptech/glide/disklrucache/maven-metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<metadata>
+    <groupId>com.github.bumptech.glide</groupId>
+    <artifactId>disklrucache</artifactId>
+    <versioning>
+        <versions>
+            <version>1.0.0-SNAPSHOT</version>
+        </versions>
+    </versioning>
+</metadata>
diff --git a/com/github/bumptech/glide/gifdecoder/1.0.0-SNAPSHOT/gifdecoder-1.0.0-SNAPSHOT-sources.jar b/com/github/bumptech/glide/gifdecoder/1.0.0-SNAPSHOT/gifdecoder-1.0.0-SNAPSHOT-sources.jar
new file mode 100755
index 0000000..72b9a6f
--- /dev/null
+++ b/com/github/bumptech/glide/gifdecoder/1.0.0-SNAPSHOT/gifdecoder-1.0.0-SNAPSHOT-sources.jar
Binary files differ
diff --git a/com/github/bumptech/glide/gifdecoder/1.0.0-SNAPSHOT/gifdecoder-1.0.0-SNAPSHOT.jar b/com/github/bumptech/glide/gifdecoder/1.0.0-SNAPSHOT/gifdecoder-1.0.0-SNAPSHOT.jar
new file mode 100755
index 0000000..8a7ce94
--- /dev/null
+++ b/com/github/bumptech/glide/gifdecoder/1.0.0-SNAPSHOT/gifdecoder-1.0.0-SNAPSHOT.jar
Binary files differ
diff --git a/com/github/bumptech/glide/gifdecoder/maven-metadata.xml b/com/github/bumptech/glide/gifdecoder/maven-metadata.xml
new file mode 100644
index 0000000..0ee4725
--- /dev/null
+++ b/com/github/bumptech/glide/gifdecoder/maven-metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<metadata>
+    <groupId>com.github.bumptech.glide</groupId>
+    <artifactId>gifdecoder</artifactId>
+    <versioning>
+        <versions>
+            <version>1.0.0-SNAPSHOT</version>
+        </versions>
+    </versioning>
+</metadata>
diff --git a/com/github/bumptech/glide/glide/4.0.0-SNAPSHOT/glide-4.0.0-SNAPSHOT-sources.jar b/com/github/bumptech/glide/glide/4.0.0-SNAPSHOT/glide-4.0.0-SNAPSHOT-sources.jar
new file mode 100755
index 0000000..da607f8
--- /dev/null
+++ b/com/github/bumptech/glide/glide/4.0.0-SNAPSHOT/glide-4.0.0-SNAPSHOT-sources.jar
Binary files differ
diff --git a/com/github/bumptech/glide/glide/4.0.0-SNAPSHOT/glide-4.0.0-SNAPSHOT.jar b/com/github/bumptech/glide/glide/4.0.0-SNAPSHOT/glide-4.0.0-SNAPSHOT.jar
new file mode 100755
index 0000000..a670485
--- /dev/null
+++ b/com/github/bumptech/glide/glide/4.0.0-SNAPSHOT/glide-4.0.0-SNAPSHOT.jar
Binary files differ
diff --git a/com/github/bumptech/glide/glide/4.0.0-SNAPSHOT/glide-4.0.0-SNAPSHOT.pom b/com/github/bumptech/glide/glide/4.0.0-SNAPSHOT/glide-4.0.0-SNAPSHOT.pom
new file mode 100644
index 0000000..e86ef24
--- /dev/null
+++ b/com/github/bumptech/glide/glide/4.0.0-SNAPSHOT/glide-4.0.0-SNAPSHOT.pom
@@ -0,0 +1,49 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>com.github.bumptech.glide</groupId>
+  <artifactId>glide</artifactId>
+  <version>4.0.0-SNAPSHOT</version>
+  <name>Glide</name>
+  <description>A fast and efficient image loading library for Android focused on smooth scrolling.</description>
+  <url>https://github.com/bumptech/glide</url>
+  <licenses>
+    <license>
+      <name>Simplified BSD License</name>
+      <url>http://www.opensource.org/licenses/bsd-license</url>
+      <distribution>repo</distribution>
+    </license>
+    <license>
+      <name>The Apache Software License, Version 2.0</name>
+      <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
+      <distribution>repo</distribution>
+    </license>
+  </licenses>
+  <developers>
+    <developer>
+      <id>sjudd</id>
+      <name>Sam Judd</name>
+      <email>judds@google.com</email>
+    </developer>
+  </developers>
+  <scm>
+    <connection>scm:git@github.com:bumptech/glide.git</connection>
+    <developerConnection>scm:git@github.com:bumptech/glide.git</developerConnection>
+    <url>https://github.com/bumptech/glide</url>
+  </scm>
+  <dependencies>
+    <dependency>
+      <groupId>com.github.bumptech.glide</groupId>
+      <artifactId>disklrucache</artifactId>
+      <version>1.0.0-SNAPSHOT</version>
+      <scope>compile</scope>
+    </dependency>
+    <dependency>
+      <groupId>com.github.bumptech.glide</groupId>
+      <artifactId>gifdecoder</artifactId>
+      <version>1.0.0-SNAPSHOT</version>
+      <scope>compile</scope>
+    </dependency>
+  </dependencies>
+</project>
diff --git a/com/github/bumptech/glide/glide/maven-metadata.xml b/com/github/bumptech/glide/glide/maven-metadata.xml
new file mode 100644
index 0000000..b05442b
--- /dev/null
+++ b/com/github/bumptech/glide/glide/maven-metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<metadata>
+  <groupId>com.github.bumptech.glide</groupId>
+  <artifactId>glide</artifactId>
+  <versioning>
+    <latest>4.0.0-SNAPSHOT</latest>
+    <release/>
+    <versions>
+      <version>4.0.0-SNAPSHOT</version>
+    </versions>
+  </versioning>
+</metadata>
diff --git a/update_repo.sh b/update_repo.sh
new file mode 100755
index 0000000..3dc5f74
--- /dev/null
+++ b/update_repo.sh
@@ -0,0 +1,38 @@
+#!/bin/bash
+
+# Populates glide maven repository with current snapshot from google3
+
+GLIDE_VERSION='4.0.0-SNAPSHOT'
+DISKLRUCACHE_VERSION='1.0.0-SNAPSHOT'
+GIFDECODER_VERSION='1.0.0-SNAPSHOT'
+
+TARGET_DIR=`pwd`
+
+p4 g4d -f sync_glide_google3_android
+pushd /google/src/cloud/$USER/sync_glide_google3_android/google3 >> /dev/null
+
+SYNCED_CL=`g4 sync | grep @ | sed s/.*@//`
+
+blaze build \
+   third_party/java_src/android_libs/glide/library/src/main:libglide.jar \
+   third_party/java_src/android_libs/glide/library/src/main:libglide-src.jar \
+   third_party/java_src/android_libs/glide/third_party/disklrucache:libdisklrucache.jar \
+   third_party/java_src/android_libs/glide/third_party/disklrucache:libdisklrucache-src.jar \
+   third_party/java_src/android_libs/glide/third_party/gif_decoder:libgif_decoder.jar \
+   third_party/java_src/android_libs/glide/third_party/gif_decoder:libgif_decoder-src.jar
+
+cp -f blaze-bin/third_party/java_src/android_libs/glide/library/src/main/libglide.jar \
+   $TARGET_DIR/com/github/bumptech/glide/glide/$GLIDE_VERSION/glide-$GLIDE_VERSION.jar
+cp -f blaze-bin/third_party/java_src/android_libs/glide/library/src/main/libglide-src.jar \
+   $TARGET_DIR/com/github/bumptech/glide/glide/$GLIDE_VERSION/glide-$GLIDE_VERSION-sources.jar
+cp -f blaze-bin/third_party/java_src/android_libs/glide/third_party/disklrucache/libdisklrucache.jar \
+   $TARGET_DIR/com/github/bumptech/glide/disklrucache/$DISKLRUCACHE_VERSION/disklrucache-$DISKLRUCACHE_VERSION.jar
+cp -f blaze-bin/third_party/java_src/android_libs/glide/third_party/disklrucache/libdisklrucache-src.jar \
+   $TARGET_DIR/com/github/bumptech/glide/disklrucache/$DISKLRUCACHE_VERSION/disklrucache-$DISKLRUCACHE_VERSION-sources.jar
+cp -f blaze-bin/third_party/java_src/android_libs/glide/third_party/gif_decoder/libgif_decoder.jar \
+   $TARGET_DIR/com/github/bumptech/glide/gifdecoder/$GIFDECODER_VERSION/gifdecoder-$GIFDECODER_VERSION.jar
+cp -f blaze-bin/third_party/java_src/android_libs/glide/third_party/gif_decoder/libgif_decoder-src.jar \
+   $TARGET_DIR/com/github/bumptech/glide/gifdecoder/$GIFDECODER_VERSION/gifdecoder-$GIFDECODER_VERSION-sources.jar
+
+echo "This maven repository was synced to google3 CL $SYNCED_CL" > $TARGET_DIR/README.txt
+popd