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.
- package/Ariel.podspec +2 -2
- package/README.md +2 -2
- package/android/CMakeLists.txt +14 -15
- package/android/build.gradle +5 -9
- package/android/generated/{android/app/build/generated/source/codegen/java/com/facebook/fbreact/specs → java/com/ariel}/NativeArielSpec.java +1 -1
- package/android/proguard-rules.pro +4 -0
- package/cpp/generated/mermaid_wrapper.cpp +2368 -0
- package/cpp/generated/mermaid_wrapper.hpp +77 -0
- package/lib/module/index.web.js +6 -4
- package/lib/module/index.web.js.map +2 -1
- package/package.json +19 -7
- package/react-native.config.js +1 -1
- package/android/src/main/java/com/ariel/ArielModule.kt +0 -43
- package/android/src/main/java/com/ariel/ArielPackage.kt +0 -34
- package/lib/typescript/src/index.web.d.ts +0 -8
- package/lib/typescript/src/index.web.d.ts.map +0 -1
- /package/android/generated/{android/app/build/generated/source/codegen/jni → jni}/ArielSpec-generated.cpp +0 -0
- /package/android/generated/{android/app/build/generated/source/codegen/jni → jni}/ArielSpec.h +0 -0
- /package/android/generated/{android/app/build/generated/source/codegen/jni → jni}/CMakeLists.txt +0 -0
- /package/android/generated/{android/app/build/generated/source/codegen/jni → jni}/react/renderer/components/ArielSpec/ArielSpecJSI.h +0 -0
- /package/ios/generated/{build/generated/ios/ReactCodegen → ReactCodegen}/ArielSpec/ArielSpec-generated.mm +0 -0
- /package/ios/generated/{build/generated/ios/ReactCodegen → ReactCodegen}/ArielSpec/ArielSpec.h +0 -0
- /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/
|
|
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
|
|
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/
|
|
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/
|
|
345
|
+
MIT © 2026 [Rochanglien Infimate](https://github.com/rinfimate)
|
|
346
346
|
|
|
347
347
|
---
|
|
348
348
|
|
package/android/CMakeLists.txt
CHANGED
|
@@ -5,22 +5,23 @@ project(Ariel)
|
|
|
5
5
|
set (CMAKE_VERBOSE_MAKEFILE ON)
|
|
6
6
|
set (CMAKE_CXX_STANDARD 17)
|
|
7
7
|
|
|
8
|
-
# Resolve
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
)
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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
|
-
${
|
|
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
|
-
|
|
44
|
-
|
|
45
|
-
|
|
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
|
|
package/android/build.gradle
CHANGED
|
@@ -28,9 +28,7 @@ def isNewArchitectureEnabled() {
|
|
|
28
28
|
apply plugin: "com.android.library"
|
|
29
29
|
apply plugin: "kotlin-android"
|
|
30
30
|
|
|
31
|
-
|
|
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
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
codegenJavaPackageName = "com.ariel"
|
|
143
|
-
}
|
|
136
|
+
react {
|
|
137
|
+
jsRootDir = file("../src/")
|
|
138
|
+
libraryName = "Ariel"
|
|
139
|
+
codegenJavaPackageName = "com.ariel"
|
|
144
140
|
}
|