react-native-ariel 0.1.0-dev.4 → 0.1.0-dev.40

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.
Files changed (23) hide show
  1. package/Ariel.podspec +2 -2
  2. package/README.md +2 -2
  3. package/android/CMakeLists.txt +14 -15
  4. package/android/build.gradle +5 -9
  5. package/android/generated/{android/app/build/generated/source/codegen/java/com/facebook/fbreact/specs → java/com/ariel}/NativeArielSpec.java +1 -1
  6. package/android/proguard-rules.pro +4 -0
  7. package/cpp/generated/mermaid_wrapper.cpp +2368 -0
  8. package/cpp/generated/mermaid_wrapper.hpp +77 -0
  9. package/lib/module/index.web.js +6 -4
  10. package/lib/module/index.web.js.map +2 -1
  11. package/package.json +19 -7
  12. package/react-native.config.js +1 -1
  13. package/android/src/main/java/com/ariel/ArielModule.kt +0 -43
  14. package/android/src/main/java/com/ariel/ArielPackage.kt +0 -34
  15. package/lib/typescript/src/index.web.d.ts +0 -8
  16. package/lib/typescript/src/index.web.d.ts.map +0 -1
  17. /package/android/generated/{android/app/build/generated/source/codegen/jni → jni}/ArielSpec-generated.cpp +0 -0
  18. /package/android/generated/{android/app/build/generated/source/codegen/jni → jni}/ArielSpec.h +0 -0
  19. /package/android/generated/{android/app/build/generated/source/codegen/jni → jni}/CMakeLists.txt +0 -0
  20. /package/android/generated/{android/app/build/generated/source/codegen/jni → jni}/react/renderer/components/ArielSpec/ArielSpecJSI.h +0 -0
  21. /package/ios/generated/{build/generated/ios/ReactCodegen → ReactCodegen}/ArielSpec/ArielSpec-generated.mm +0 -0
  22. /package/ios/generated/{build/generated/ios/ReactCodegen → ReactCodegen}/ArielSpec/ArielSpec.h +0 -0
  23. /package/ios/generated/{build/generated/ios/ReactCodegen → ReactCodegen}/ArielSpecJSI.h +0 -0
package/Ariel.podspec CHANGED
@@ -13,9 +13,9 @@ Pod::Spec.new do |s|
13
13
  s.authors = package["author"]
14
14
 
15
15
  s.platforms = { :ios => min_ios_version_supported }
16
- s.source = { :git => "https://github.com/rinfi/ariel.git", :tag => "#{s.version}" }
16
+ s.source = { :git => "https://github.com/rinfimate/ariel.git", :tag => "#{s.version}" }
17
17
 
18
- s.source_files = "ios/**/*.{h,m,mm,swift}", "ios/generated/**/*.{h,m,mm}", "cpp/**/*.{hpp,cpp,c,h}", "cpp/generated/**/*.{hpp,cpp,c,h}"
18
+ s.source_files = "ios/**/*.{h,m,mm,swift}", "ios\generated/**/*.{h,m,mm}", "cpp/**/*.{hpp,cpp,c,h}", "cpp\generated/**/*.{hpp,cpp,c,h}"
19
19
  s.vendored_frameworks = "ArielFramework.xcframework"
20
20
  s.dependency "uniffi-bindgen-react-native", "0.31.0-2"
21
21
 
package/README.md CHANGED
@@ -199,7 +199,7 @@ rustup target add wasm32-unknown-unknown
199
199
  ### Clone and install
200
200
 
201
201
  ```sh
202
- git clone https://github.com/rinfi/ariel.git
202
+ git clone https://github.com/rinfimate/ariel.git
203
203
  cd ariel
204
204
  yarn
205
205
  ```
@@ -342,7 +342,7 @@ iOS uses GitHub's free `macos-latest` runner (unlimited minutes on public repos)
342
342
 
343
343
  ## License
344
344
 
345
- MIT © 2026 [Rochanglien Infimate](https://github.com/rinfi)
345
+ MIT © 2026 [Rochanglien Infimate](https://github.com/rinfimate)
346
346
 
347
347
  ---
348
348
 
@@ -5,22 +5,23 @@ project(Ariel)
5
5
  set (CMAKE_VERBOSE_MAKEFILE ON)
6
6
  set (CMAKE_CXX_STANDARD 17)
7
7
 
8
- # Resolve the path to the uniffi-bindgen-react-native package
9
- execute_process(
10
- COMMAND node -p "require.resolve('uniffi-bindgen-react-native/package.json')"
11
- OUTPUT_VARIABLE UNIFFI_BINDGEN_PATH
12
- OUTPUT_STRIP_TRAILING_WHITESPACE
13
- )
14
- # Get the directory; get_filename_component and cmake_path will normalize
15
- # paths with Windows path separators.
16
- get_filename_component(UNIFFI_BINDGEN_PATH "${UNIFFI_BINDGEN_PATH}" DIRECTORY)
8
+ # Resolve uniffi-bindgen-react-native includes.
9
+ # When building the library locally: ../node_modules/ (workspace root)
10
+ # When installed as npm dependency: ../../ (npm hoists to consumer's node_modules)
11
+ set(_UNIFFI_LOCAL "${CMAKE_CURRENT_LIST_DIR}/../node_modules/uniffi-bindgen-react-native/cpp/includes")
12
+ set(_UNIFFI_HOISTED "${CMAKE_CURRENT_LIST_DIR}/../../uniffi-bindgen-react-native/cpp/includes")
13
+ if(EXISTS "${_UNIFFI_LOCAL}")
14
+ cmake_path(SET UNIFFI_INCLUDES "${_UNIFFI_LOCAL}" NORMALIZE)
15
+ else()
16
+ cmake_path(SET UNIFFI_INCLUDES "${_UNIFFI_HOISTED}" NORMALIZE)
17
+ endif()
17
18
 
18
19
  # Specifies a path to native header files.
19
20
  include_directories(
20
21
  ../cpp
21
22
  ../cpp/generated
22
23
 
23
- ${UNIFFI_BINDGEN_PATH}/cpp/includes
24
+ ${UNIFFI_INCLUDES}
24
25
  )
25
26
 
26
27
  add_library(react-native-ariel SHARED
@@ -40,11 +41,9 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror")
40
41
  # Set linker flags for 16KB page size alignment (required for Android 15+)
41
42
  set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,-z,max-page-size=16384")
42
43
 
43
- cmake_path(
44
- SET MY_RUST_LIB
45
- ${CMAKE_SOURCE_DIR}/src/main/jniLibs/${ANDROID_ABI}/libmermaid_wrapper.a
46
- NORMALIZE
47
- )
44
+ # CMAKE_CURRENT_LIST_DIR always resolves to the directory of this file (android/)
45
+ # regardless of how it is included (direct build or add_subdirectory).
46
+ file(TO_CMAKE_PATH "${CMAKE_CURRENT_LIST_DIR}/src/main/jniLibs/${ANDROID_ABI}/libmermaid_wrapper.a" MY_RUST_LIB)
48
47
  add_library(my_rust_lib STATIC IMPORTED)
49
48
  set_target_properties(my_rust_lib PROPERTIES IMPORTED_LOCATION ${MY_RUST_LIB})
50
49
 
@@ -28,9 +28,7 @@ def isNewArchitectureEnabled() {
28
28
  apply plugin: "com.android.library"
29
29
  apply plugin: "kotlin-android"
30
30
 
31
- if (isNewArchitectureEnabled()) {
32
- apply plugin: "com.facebook.react"
33
- }
31
+ apply plugin: "com.facebook.react"
34
32
 
35
33
  def getExtOrDefault(name) {
36
34
  return rootProject.ext.has(name) ? rootProject.ext.get(name) : project.properties["Ariel_" + name]
@@ -135,10 +133,8 @@ dependencies {
135
133
  implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
136
134
  }
137
135
 
138
- if (isNewArchitectureEnabled()) {
139
- react {
140
- jsRootDir = file("../src/")
141
- libraryName = "Ariel"
142
- codegenJavaPackageName = "com.ariel"
143
- }
136
+ react {
137
+ jsRootDir = file("../src/")
138
+ libraryName = "Ariel"
139
+ codegenJavaPackageName = "com.ariel"
144
140
  }
@@ -10,7 +10,7 @@
10
10
  * @nolint
11
11
  */
12
12
 
13
- package com.facebook.fbreact.specs;
13
+ package com.ariel;
14
14
 
15
15
  import com.facebook.proguard.annotations.DoNotStrip;
16
16
  import com.facebook.react.bridge.ReactApplicationContext;
@@ -0,0 +1,4 @@
1
+ # Generated by uniffi-bindgen-react-native
2
+ -dontwarn java.awt.*
3
+ -keep class com.sun.jna.* { *; }
4
+ -keepclassmembers class * extends com.sun.jna.* { public *; }