You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.
--- +++ @@ -17,7 +17,7 @@
Then add a Gradle dependency on the Volley integration library:
```groovy
-compile "com.github.bumptech.glide:volley-integration:4.5.0"+compile "com.github.bumptech.glide:volley-integration:4.4.0"
```
Adding a Gradle dependency on the Volley integration library will cause Glide to start automatically using Volley to load images for all http and https urls.
--- +++ @@ -21,7 +21,7 @@
To use the RecyclerView integration library, add a dependency on it in your ``build.gradle`` file:
```groovy
-compile ("com.github.bumptech.glide:recyclerview-integration:4.5.0") {+compile ("com.github.bumptech.glide:recyclerview-integration:4.4.0") {
// Excludes the support library because it's already included by Glide.
transitive = false
}
--- +++ @@ -33,8 +33,8 @@
Including Glide's annotation processor requires dependencies on Glide's annotations and the annotation processor:
```groovy
-compile 'com.github.bumptech.glide:annotations:4.5.0'-annotationProcessor 'com.github.bumptech.glide:compiler:4.5.0'+compile 'com.github.bumptech.glide:annotations:4.4.0'+annotationProcessor 'com.github.bumptech.glide:compiler:4.4.0'
```
Finally, you should keep AppGlideModule implementations in your ``proguard.cfg``:
@@ -65,7 +65,7 @@
Using the [``@GlideModule``][5] annotation requires a dependency on Glide's annotations:
```groovy
-compile 'com.github.bumptech.glide:annotations:4.5.0'+compile 'com.github.bumptech.glide:annotations:4.4.0'
```
##### Avoid AppGlideModule in libraries
--- +++ @@ -17,7 +17,7 @@
Then add a Gradle dependency on the OkHttp integration library:
```groovy
-compile "com.github.bumptech.glide:okhttp3-integration:4.5.0"+compile "com.github.bumptech.glide:okhttp3-integration:4.4.0"
```
Adding a Gradle dependency on the OkHttp integration library will cause Glide to start automatically using OkHttp to load all images from http and https urls.
--- +++ @@ -45,13 +45,13 @@
```groovy
implementation com.squareup.okhttp3:okhttp:3.9.1
-implementation com.github.bumptech.glide:okhttp-integration:4.5.0+implementation com.github.bumptech.glide:okhttp-integration:4.4.0
```
For more control, you can also exclude the OkHttp from the transitive dependencies of the ``okhttp-integration`` library:
```groovy
-implementation (com.github.bumptech.glide:okhttp-integration:4.5.0) {+implementation (com.github.bumptech.glide:okhttp-integration:4.4.0) {
exclude group: com.squareup.okhttp3, module: okhttp
}
```
@@ -59,7 +59,7 @@
Or you could simply exclude all transitive dependencies of the ``okhttp-integration`` library:
```groovy
-implementation (com.github.bumptech.glide:okhttp-integration:4.5.0) {+implementation (com.github.bumptech.glide:okhttp-integration:4.4.0) {
transitive = false
}
```
--- +++ @@ -19,8 +19,8 @@
If you need or would prefer to use a different version of the support library you should exclude `"com.android.support"` from your Glide dependency in your `build.gradle` file. For example, if you'd like to use v26 of the support library:
```groovy
-dependencies {- implementation ("com.github.bumptech.glide:glide:4.5.0") {+depdendencies {+ implementation ("com.github.bumptech.glide:glide:4.4.0") {
exclude group: "com.android.support"
}
implementation "com.android.support:support-fragment:26.1.0"
@@ -57,37 +57,9 @@
}
dependencies {
- compile 'com.github.bumptech.glide:glide:4.5.0'- annotationProcessor 'com.github.bumptech.glide:compiler:4.5.0'-}-```--**Note:** Avoid using `@aar` in your dependencies whenever possible. If you must do so, add `transitive = true` to ensure that all necessary classes are included in your APK:--```groovy-dependencies {- implementation ("com.github.bumptech.glide:glide:4.5.0@aar") {- transitive = true- }-}-```--`@aar` is Gradle's ["Artifact only"][9] notation that excludes dependencies by default. --Excluding Glide's dependencies by using `@aar` without `transitive = true `will result in runtime exceptions like:--```-java.lang.NoClassDefFoundError: com.bumptech.glide.load.resource.gif.GifBitmapProvider- at com.bumptech.glide.load.resource.gif.ByteBufferGifDecoder.<init>(ByteBufferGifDecoder.java:68)- at com.bumptech.glide.load.resource.gif.ByteBufferGifDecoder.<init>(ByteBufferGifDecoder.java:54)- at com.bumptech.glide.Glide.<init>(Glide.java:327)- at com.bumptech.glide.GlideBuilder.build(GlideBuilder.java:445)- at com.bumptech.glide.Glide.initializeGlide(Glide.java:257)- at com.bumptech.glide.Glide.initializeGlide(Glide.java:212)- at com.bumptech.glide.Glide.checkAndInitializeGlide(Glide.java:176)- at com.bumptech.glide.Glide.get(Glide.java:160)- at com.bumptech.glide.Glide.getRetriever(Glide.java:612)- at com.bumptech.glide.Glide.with(Glide.java:684)+ compile 'com.github.bumptech.glide:glide:4.4.0'+ annotationProcessor 'com.github.bumptech.glide:compiler:4.4.0'+}
```
#### Maven
@@ -98,7 +70,7 @@
<dependency>
<groupId>com.github.bumptech.glide</groupId>
<artifactId>glide</artifactId>
- <version>4.5.0</version>+ <version>4.4.0</version>
<type>aar</type>
</dependency>
<dependency>
@@ -109,7 +81,7 @@
<dependency>
<groupId>com.github.bumptech.glide</groupId>
<artifactId>compiler</artifactId>
- <version>4.5.0</version>+ <version>4.4.0</version>
<optional>true</optional>
</dependency>
```
@@ -204,12 +176,9 @@
-keep public class * implements com.bumptech.glide.module.GlideModule
-keep public class * extends com.bumptech.glide.module.AppGlideModule
-keep public enum com.bumptech.glide.load.resource.bitmap.ImageHeaderParser$** {
- **[] $VALUES;- public *;-}--# for DexGuard only--keepresourcexmlelements manifest/application/meta-data@value=GlideModule+ **[] $VALUES;+ public *;+}
```
#### Jack
@@ -226,7 +195,7 @@
```groovy
dependencies {
- kapt 'com.github.bumptech.glide:compiler:4.5.0'+ kapt 'com.github.bumptech.glide:compiler:4.4.0'
}
```
Note that you must also include the ``kotlin-kapt`` plugin in your ``build.gradle`` file:
@@ -245,4 +214,3 @@
[6]: {{ site.baseurl }}/doc/generatedapi.html#kotlin
[7]: {{ site.baseurl }}/javadocs/431/com/bumptech/glide/load/engine/cache/ExternalPreferredCacheDiskCacheFactory.html
[8]: https://github.com/bumptech/glide/issues/2730
-[9]: https://docs.gradle.org/current/userguide/dependency_management.html#ssub:artifact_dependencies
--- +++ @@ -400,7 +400,7 @@
Don't forget to add a dependency on Glide's annotation processor to your build.gradle file as well:
```groovy
-annotationProcessor 'com.github.bumptech.glide:compiler:4.5.0'+annotationProcessor 'com.github.bumptech.glide:compiler:4.4.0'
```
Next we want to get at Glide's [``Registry``][23], so we'll implement the [``registerComponents``][24] method in our ``AppGlideModule``:
The text was updated successfully, but these errors were encountered:
概述
此 Issue 由 Sync Robot 自动创建,详情请参见 #6 。
本次扫描结果: 新增:0 , 修改: 9, 删除: 0。
文件变化列表
文件具体变更信息如下(仅展示UPDATED):
The text was updated successfully, but these errors were encountered: