react-native-ariel 0.1.0-dev.38 → 0.1.0-dev.39
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 +5 -9
- package/android/generated/{android/app/build/generated/source/codegen/java/com/facebook/fbreact/specs → java/com/ariel}/NativeArielSpec.java +1 -1
- package/lib/module/index.web.js +0 -10
- package/lib/module/index.web.js.map +1 -1
- package/package.json +2 -2
- package/react-native.config.js +1 -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/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
|
}
|
package/lib/module/index.web.js
CHANGED
|
@@ -3,10 +3,6 @@
|
|
|
3
3
|
// Generated by uniffi-bindgen-react-native
|
|
4
4
|
// Export the generated bindings to the app.
|
|
5
5
|
export * from "./generated/web/mermaid_wrapper.js";
|
|
6
|
-
|
|
7
|
-
// Now import the bindings so we can:
|
|
8
|
-
// - intialize them
|
|
9
|
-
// - export them as namespaced objects as the default export.
|
|
10
6
|
import * as mermaid_wrapper from "./generated/web/mermaid_wrapper.js";
|
|
11
7
|
import initAsync from './generated/web/wasm-bindgen/react_native_ariel.js';
|
|
12
8
|
import wasmPath from './generated/web/wasm-bindgen/react_native_ariel_bg.wasm';
|
|
@@ -14,14 +10,8 @@ export async function uniffiInitAsync() {
|
|
|
14
10
|
await initAsync({
|
|
15
11
|
module_or_path: wasmPath
|
|
16
12
|
});
|
|
17
|
-
|
|
18
|
-
// Initialize the generated bindings: mostly checksums, but also callbacks.
|
|
19
|
-
// - the boolean flag ensures this loads exactly once, even if the JS code
|
|
20
|
-
// is reloaded (e.g. during development with metro).
|
|
21
13
|
mermaid_wrapper.default.initialize();
|
|
22
14
|
}
|
|
23
|
-
|
|
24
|
-
// Export the crates as individually namespaced objects.
|
|
25
15
|
export default {
|
|
26
16
|
mermaid_wrapper
|
|
27
17
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["mermaid_wrapper","initAsync","wasmPath","uniffiInitAsync","module_or_path","default","initialize"],"sourceRoot":"../../src","sources":["index.web.
|
|
1
|
+
{"version":3,"names":["mermaid_wrapper","initAsync","wasmPath","uniffiInitAsync","module_or_path","default","initialize"],"sourceRoot":"../../src","sources":["index.web.tsx"],"mappings":";;AAAA;AACA;AACA,cAAc,oCAAiC;AAE/C,OAAO,KAAKA,eAAe,MAAM,oCAAiC;AAElE,OAAOC,SAAS,MAAM,oDAAoD;AAC1E,OAAOC,QAAQ,MAAM,yDAAyD;AAE9E,OAAO,eAAeC,eAAeA,CAAA,EAAG;EACtC,MAAMF,SAAS,CAAC;IAAEG,cAAc,EAAEF;EAAS,CAAC,CAAC;EAC7CF,eAAe,CAACK,OAAO,CAACC,UAAU,CAAC,CAAC;AACtC;AAEA,eAAe;EACbN;AACF,CAAC","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-ariel",
|
|
3
|
-
"version": "0.1.0-dev.
|
|
3
|
+
"version": "0.1.0-dev.39",
|
|
4
4
|
"description": "Mermaid diagrams for React Native and React Native Web. No DOM. No WebView. Pure Rust.",
|
|
5
5
|
"main": "./lib/module/index.js",
|
|
6
6
|
"source": "./src/index.tsx",
|
|
@@ -135,7 +135,7 @@
|
|
|
135
135
|
"android": {
|
|
136
136
|
"javaPackageName": "com.ariel"
|
|
137
137
|
},
|
|
138
|
-
"includesGeneratedCode":
|
|
138
|
+
"includesGeneratedCode": true
|
|
139
139
|
},
|
|
140
140
|
"jest": {
|
|
141
141
|
"preset": "@react-native/jest-preset",
|
package/react-native.config.js
CHANGED
|
@@ -7,7 +7,7 @@ module.exports = {
|
|
|
7
7
|
android: {
|
|
8
8
|
cmakeListsPath: 'generated/jni/CMakeLists.txt',
|
|
9
9
|
cxxModuleCMakeListsModuleName: 'react-native-ariel',
|
|
10
|
-
cxxModuleCMakeListsPath: 'CMakeLists.txt',
|
|
10
|
+
cxxModuleCMakeListsPath: 'android/generated/jni/CMakeLists.txt',
|
|
11
11
|
cxxModuleHeaderName: 'ArielImpl',
|
|
12
12
|
},
|
|
13
13
|
},
|
|
File without changes
|
/package/android/generated/{android/app/build/generated/source/codegen/jni → jni}/ArielSpec.h
RENAMED
|
File without changes
|
/package/android/generated/{android/app/build/generated/source/codegen/jni → jni}/CMakeLists.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/ios/generated/{build/generated/ios/ReactCodegen → ReactCodegen}/ArielSpec/ArielSpec.h
RENAMED
|
File without changes
|
|
File without changes
|