@apollohg/react-native-prose-editor 0.5.13 → 0.5.14

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.
@@ -57,7 +57,9 @@ android {
57
57
  dependencies {
58
58
  implementation "androidx.appcompat:appcompat:1.7.0"
59
59
  implementation "com.google.android.material:material:1.12.0"
60
- implementation "net.java.dev.jna:jna:5.18.1@aar"
60
+ // UniFFI loads the Rust bridge through JNA at runtime. Expose JNA to
61
+ // consuming apps so release shrinkers see the dependency on the app graph.
62
+ api "net.java.dev.jna:jna:5.18.1@aar"
61
63
 
62
64
  testImplementation "junit:junit:4.13.2"
63
65
  testImplementation "org.robolectric:robolectric:4.14.1"
@@ -6,3 +6,9 @@
6
6
  # names to the Rust library. Keep these names stable in consuming release builds.
7
7
  -keep class com.sun.jna.** { *; }
8
8
  -keep class uniffi.editor_core.** { *; }
9
+ -keepattributes Signature,InnerClasses,EnclosingMethod,*Annotation*
10
+
11
+ # JNA inspects Library interfaces and Structure fields reflectively. These
12
+ # member rules make that contract explicit for ProGuard/R8 consumers.
13
+ -keepclassmembers class * implements com.sun.jna.Library { *; }
14
+ -keepclassmembers class * extends com.sun.jna.Structure { *; }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apollohg/react-native-prose-editor",
3
- "version": "0.5.13",
3
+ "version": "0.5.14",
4
4
  "description": "Native rich text editor with Rust core for React Native",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://github.com/apollohg/react-native-prose-editor",