react-native-fast-image 8.18.1 → 8.18.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/android/build.gradle +1 -0
- package/android/consumer-rules.pro +30 -4
- package/package.json +1 -1
package/android/build.gradle
CHANGED
|
@@ -7,11 +7,37 @@
|
|
|
7
7
|
-keep public class com.dylanvann.fastimage.* {*;}
|
|
8
8
|
-keep public class com.dylanvann.fastimage.** {*;}
|
|
9
9
|
|
|
10
|
-
# Glide
|
|
11
|
-
#
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
# The Glide rules below cover what Glide's own rules (its library's
|
|
11
|
+
# proguard-rules.txt) didn't at the version FastImage uses by default
|
|
12
|
+
# (glideVersion in build.gradle, 4.12.0) and older ones apps may pick. When
|
|
13
|
+
# updating Glide, revisit which are still needed: whether Glide's rules now
|
|
14
|
+
# keep modules' constructors, and whether its integrations still register
|
|
15
|
+
# old-style modules in their manifests (the OkHttp integration's
|
|
16
|
+
# OkHttpGlideModule still did in 5.0.9).
|
|
17
|
+
|
|
18
|
+
# Glide's modules and their constructors: FastImage's, the one Glide
|
|
19
|
+
# generates from them, and old-style modules Glide finds in the app's manifest
|
|
20
|
+
# and creates by reflection (e.g. its OkHttp integration's OkHttpGlideModule,
|
|
21
|
+
# which FastImage uses). R8's full mode (the default from the Android Gradle
|
|
22
|
+
# plugin 8.0) removes a constructor a rule doesn't name, and Glide then
|
|
23
|
+
# crashes when it starts ("Unable to instantiate GlideModule implementation").
|
|
24
|
+
-keep public class * implements com.bumptech.glide.module.GlideModule {
|
|
25
|
+
<init>();
|
|
26
|
+
}
|
|
27
|
+
-keep public class * extends com.bumptech.glide.module.AppGlideModule {
|
|
28
|
+
<init>(...);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
# Glide's image header types.
|
|
14
32
|
-keep public enum com.bumptech.glide.load.ImageHeaderParser$** {
|
|
15
33
|
**[] $VALUES;
|
|
16
34
|
public *;
|
|
17
35
|
}
|
|
36
|
+
|
|
37
|
+
# React Native's event dispatcher, which FastImage looks up by name
|
|
38
|
+
# (FastImageEvents), so it still compiles against React Native 0.60-0.62,
|
|
39
|
+
# which don't have it. R8 would rename it, and on the New Architecture every
|
|
40
|
+
# event (onLoad, onError, ...) would then be dropped.
|
|
41
|
+
-keep class com.facebook.react.uimanager.UIManagerHelper {
|
|
42
|
+
public static *** getEventDispatcherForReactTag(com.facebook.react.bridge.ReactContext, int);
|
|
43
|
+
}
|