@apollohg/react-native-prose-editor 0.5.12 → 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.
- package/android/build.gradle +4 -1
- package/android/consumer-rules.pro +14 -0
- package/ios/EditorCore.xcframework/ios-arm64/libeditor_core.a +0 -0
- package/ios/EditorCore.xcframework/ios-arm64_x86_64-simulator/libeditor_core.a +0 -0
- package/package.json +2 -1
- package/rust/android/arm64-v8a/libeditor_core.so +0 -0
- package/rust/android/armeabi-v7a/libeditor_core.so +0 -0
- package/rust/android/x86_64/libeditor_core.so +0 -0
package/android/build.gradle
CHANGED
|
@@ -27,6 +27,7 @@ android {
|
|
|
27
27
|
versionCode 1
|
|
28
28
|
versionName packageJson.version
|
|
29
29
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
30
|
+
consumerProguardFiles "consumer-rules.pro"
|
|
30
31
|
}
|
|
31
32
|
|
|
32
33
|
// Include prebuilt Rust .so files from the package's rust/android/ directory
|
|
@@ -56,7 +57,9 @@ android {
|
|
|
56
57
|
dependencies {
|
|
57
58
|
implementation "androidx.appcompat:appcompat:1.7.0"
|
|
58
59
|
implementation "com.google.android.material:material:1.12.0"
|
|
59
|
-
|
|
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"
|
|
60
63
|
|
|
61
64
|
testImplementation "junit:junit:4.13.2"
|
|
62
65
|
testImplementation "org.robolectric:robolectric:4.14.1"
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# JNA includes desktop AWT helpers that are not available on Android. The editor
|
|
2
|
+
# bindings do not call those APIs, but R8 still validates the references.
|
|
3
|
+
-dontwarn java.awt.**
|
|
4
|
+
|
|
5
|
+
# UniFFI uses JNA reflection/proxies to bind Kotlin method and structure field
|
|
6
|
+
# names to the Rust library. Keep these names stable in consuming release builds.
|
|
7
|
+
-keep class com.sun.jna.** { *; }
|
|
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 { *; }
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apollohg/react-native-prose-editor",
|
|
3
|
-
"version": "0.5.
|
|
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",
|
|
@@ -75,6 +75,7 @@
|
|
|
75
75
|
"LICENSE",
|
|
76
76
|
"dist",
|
|
77
77
|
"android/build.gradle",
|
|
78
|
+
"android/consumer-rules.pro",
|
|
78
79
|
"android/src/main",
|
|
79
80
|
"ios/*.swift",
|
|
80
81
|
"ios/*.h",
|
|
Binary file
|
|
Binary file
|
|
Binary file
|