react-native-ariel 0.1.0-dev.39 → 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/android/CMakeLists.txt
CHANGED
|
@@ -5,12 +5,16 @@ project(Ariel)
|
|
|
5
5
|
set (CMAKE_VERBOSE_MAKEFILE ON)
|
|
6
6
|
set (CMAKE_CXX_STANDARD 17)
|
|
7
7
|
|
|
8
|
-
# Resolve uniffi-bindgen-react-native
|
|
9
|
-
#
|
|
10
|
-
|
|
11
|
-
"${CMAKE_CURRENT_LIST_DIR}/../node_modules/uniffi-bindgen-react-native/cpp/includes"
|
|
12
|
-
|
|
13
|
-
)
|
|
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()
|
|
14
18
|
|
|
15
19
|
# Specifies a path to native header files.
|
|
16
20
|
include_directories(
|
package/lib/module/index.web.js
CHANGED
|
@@ -15,4 +15,16 @@ export async function uniffiInitAsync() {
|
|
|
15
15
|
export default {
|
|
16
16
|
mermaid_wrapper
|
|
17
17
|
};
|
|
18
|
+
//# sourceMappingURL=index.web.js.map});
|
|
19
|
+
|
|
20
|
+
// Initialize the generated bindings: mostly checksums, but also callbacks.
|
|
21
|
+
// - the boolean flag ensures this loads exactly once, even if the JS code
|
|
22
|
+
// is reloaded (e.g. during development with metro).
|
|
23
|
+
mermaid_wrapper.default.initialize();
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
// Export the crates as individually namespaced objects.
|
|
27
|
+
export default {
|
|
28
|
+
mermaid_wrapper
|
|
29
|
+
};
|
|
18
30
|
//# sourceMappingURL=index.web.js.map
|
|
@@ -1 +1,2 @@
|
|
|
1
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":[]}
|
|
2
|
+
Ae;EACbN;AACF,CAAC","ignoreList":[]}
|
package/package.json
CHANGED
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: 'android/
|
|
10
|
+
cxxModuleCMakeListsPath: 'android/CMakeLists.txt',
|
|
11
11
|
cxxModuleHeaderName: 'ArielImpl',
|
|
12
12
|
},
|
|
13
13
|
},
|