Update glide to 4.12.0

Refactor glide prebuilt dependencies to
1. include aar's from maven instead of jar's for glide, gifdecoder, disklrucache
2. include jar's for compiler and annotations
3. add glide annotation processor plugin

The binaries have been taken from https://search.maven.org

Test: m
Bug: 195008673
Change-Id: I54ec33b2e69209e1cdbd0cd7cca36843d62f926e
diff --git a/Android.bp b/Android.bp
index f8721c2..a298f52 100644
--- a/Android.bp
+++ b/Android.bp
@@ -29,12 +29,10 @@
     ],
 }
 
-java_import {
+android_library_import {
     name: "glide-prebuilt",
-    jars: [
-        "com/github/bumptech/glide/glide/4.8.0/glide-4.8.0.jar",
-        "com/github/bumptech/glide/disklrucache/4.8.0/disklrucache-4.8.0.jar",
-        "com/github/bumptech/glide/gifdecoder/4.8.0/gifdecoder-4.8.0.jar",
+    aars: [
+        "com/github/bumptech/glide/glide/4.12.0/glide-4.12.0.aar",
     ],
     jetifier: true,
     apex_available: [
@@ -45,3 +43,65 @@
     min_sdk_version: "14",
     notice: "LICENSE",
 }
+
+android_library_import {
+    name: "glide-disklrucache-prebuilt",
+    aars: [
+        "com/github/bumptech/glide/disklrucache/4.12.0/disklrucache-4.12.0.aar",
+    ],
+    jetifier: true,
+    apex_available: [
+        "com.android.mediaprovider",
+        "//apex_available:platform",
+    ],
+    sdk_version: "current",
+    min_sdk_version: "14",
+    notice: "LICENSE",
+}
+
+android_library_import {
+    name: "glide-gifdecoder-prebuilt",
+    aars: [
+        "com/github/bumptech/glide/gifdecoder/4.12.0/gifdecoder-4.12.0.aar",
+    ],
+    jetifier: true,
+    apex_available: [
+        "com.android.mediaprovider",
+        "//apex_available:platform",
+    ],
+    sdk_version: "current",
+    min_sdk_version: "14",
+    notice: "LICENSE",
+}
+
+java_import {
+    name: "glide-annotation-and-compiler-prebuilt",
+    jars: [
+        "com/github/bumptech/glide/compiler/4.12.0/compiler-4.12.0.jar",
+        "com/github/bumptech/glide/annotation/4.12.0/annotations-4.12.0.jar",
+    ],
+    jetifier: true,
+    apex_available: [
+        "com.android.mediaprovider",
+        "//apex_available:platform",
+    ],
+    sdk_version: "current",
+    min_sdk_version: "14",
+    notice: "LICENSE",
+}
+
+java_import_host {
+    name: "glide-annotation-and-compiler-prebuilt-host",
+    jars: [
+        "com/github/bumptech/glide/compiler/4.12.0/compiler-4.12.0.jar",
+        "com/github/bumptech/glide/annotation/4.12.0/annotations-4.12.0.jar",
+    ],
+    notice: "LICENSE",
+}
+
+java_plugin {
+    name: "glide-annotation-processor",
+    static_libs: ["glide-annotation-and-compiler-prebuilt-host"],
+    processor_class: "com.bumptech.glide.annotation.compiler.GlideAnnotationProcessor",
+    use_tools_jar: true,
+}
diff --git a/com/github/bumptech/glide/annotation/4.12.0/annotations-4.12.0.jar b/com/github/bumptech/glide/annotation/4.12.0/annotations-4.12.0.jar
new file mode 100644
index 0000000..4f82189
--- /dev/null
+++ b/com/github/bumptech/glide/annotation/4.12.0/annotations-4.12.0.jar
Binary files differ
diff --git a/com/github/bumptech/glide/compiler/4.12.0/compiler-4.12.0.jar b/com/github/bumptech/glide/compiler/4.12.0/compiler-4.12.0.jar
new file mode 100644
index 0000000..f26f3fd
--- /dev/null
+++ b/com/github/bumptech/glide/compiler/4.12.0/compiler-4.12.0.jar
Binary files differ
diff --git a/com/github/bumptech/glide/disklrucache/4.12.0/disklrucache-4.12.0.aar b/com/github/bumptech/glide/disklrucache/4.12.0/disklrucache-4.12.0.aar
new file mode 100644
index 0000000..f26adeb
--- /dev/null
+++ b/com/github/bumptech/glide/disklrucache/4.12.0/disklrucache-4.12.0.aar
Binary files differ
diff --git a/com/github/bumptech/glide/gifdecoder/4.12.0/gifdecoder-4.12.0.aar b/com/github/bumptech/glide/gifdecoder/4.12.0/gifdecoder-4.12.0.aar
new file mode 100644
index 0000000..ff4d9b3
--- /dev/null
+++ b/com/github/bumptech/glide/gifdecoder/4.12.0/gifdecoder-4.12.0.aar
Binary files differ
diff --git a/com/github/bumptech/glide/glide/4.12.0/glide-4.12.0.aar b/com/github/bumptech/glide/glide/4.12.0/glide-4.12.0.aar
new file mode 100644
index 0000000..00611d6
--- /dev/null
+++ b/com/github/bumptech/glide/glide/4.12.0/glide-4.12.0.aar
Binary files differ