react-native-ariel 0.1.0-dev.37 → 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.
@@ -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;
@@ -15,16 +15,4 @@ 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
- };
30
18
  //# sourceMappingURL=index.web.js.map
@@ -1,2 +1 @@
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
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "react-native-ariel",
3
- "version": "0.1.0-dev.37",
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",
7
7
  "types": "./lib/typescript/src/index.d.ts",
8
8
  "exports": {
9
9
  ".": {
10
- "browser": "./src/index.web.tsx",
10
+ "browser": "./src/index.web.ts",
11
11
  "source": "./src/index.tsx",
12
12
  "types": "./lib/typescript/src/index.d.ts",
13
13
  "default": "./lib/module/index.js"
@@ -135,7 +135,7 @@
135
135
  "android": {
136
136
  "javaPackageName": "com.ariel"
137
137
  },
138
- "includesGeneratedCode": false
138
+ "includesGeneratedCode": true
139
139
  },
140
140
  "jest": {
141
141
  "preset": "@react-native/jest-preset",
@@ -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
  },