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.
@@ -70,6 +70,7 @@ repositories {
70
70
  mavenCentral()
71
71
  }
72
72
 
73
+ // When changing the default, revisit the Glide rules in consumer-rules.pro.
73
74
  def glideVersion = safeExtGet('glideVersion', '4.12.0')
74
75
 
75
76
  dependencies {
@@ -7,11 +7,37 @@
7
7
  -keep public class com.dylanvann.fastimage.* {*;}
8
8
  -keep public class com.dylanvann.fastimage.** {*;}
9
9
 
10
- # Glide's modules (FastImage's, and the one Glide generates from them) and
11
- # its image header types.
12
- -keep public class * implements com.bumptech.glide.module.GlideModule
13
- -keep public class * extends com.bumptech.glide.module.AppGlideModule
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
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-fast-image",
3
- "version": "8.18.1",
3
+ "version": "8.18.2",
4
4
  "description": "🚩 FastImage, performant React Native image component.",
5
5
  "keywords": [
6
6
  "cache",