@reactvision/react-viro 2.43.5 → 2.43.6

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.
@@ -1 +1 @@
1
- export const VIRO_VERSION = "2.43.5";
1
+ export const VIRO_VERSION = "2.43.6";
@@ -1 +1 @@
1
- export declare const VIRO_VERSION = "2.43.5";
1
+ export declare const VIRO_VERSION = "2.43.6";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VIRO_VERSION = void 0;
4
- exports.VIRO_VERSION = "2.43.5";
4
+ exports.VIRO_VERSION = "2.43.6";
@@ -31,11 +31,17 @@ const withBranchAndroid = (config) => {
31
31
  throw new Error("MainApplication.kt or MainApplication.java file not found.");
32
32
  }
33
33
  fs_1.default.readFile(mainApplicationPath, "utf-8", (err, data) => {
34
+ const packageName = config?.android?.package;
34
35
  if (isJava) {
35
- data = (0, insertLinesHelper_1.insertLinesHelper)("import com.viromedia.bridge.ReactViroPackage;", `package ${config?.android?.package};`, data);
36
+ data = (0, insertLinesHelper_1.insertLinesHelper)("import com.viromedia.bridge.ReactViroPackage;", `package ${packageName};`, data);
36
37
  }
37
38
  else {
38
- data = (0, insertLinesHelper_1.insertLinesHelper)("import com.viromedia.bridge.ReactViroPackage", `package ${config?.android?.package}`, data);
39
+ // Handle Backticks in package names for Kotlin
40
+ const packageMatch = data.match(/package\s+[\w.`]+/);
41
+ if (!packageMatch) {
42
+ throw new Error("Package declaration not found in MainApplication.kt");
43
+ }
44
+ data = (0, insertLinesHelper_1.insertLinesHelper)("import com.viromedia.bridge.ReactViroPackage", packageMatch[0], data);
39
45
  }
40
46
  const viroPlugin = config?.plugins?.find((plugin) => Array.isArray(plugin) && plugin[0] === "@reactvision/react-viro");
41
47
  if (Array.isArray(viroPlugin)) {
@@ -8,6 +8,6 @@ Pod::Spec.new do |s|
8
8
  s.license = {:type => 'Copyright', :text => "Copyright 2025 ReactVision" }
9
9
  s.author = 'ReactVision'
10
10
  s.requires_arc = true
11
- s.platform = :ios, '17.6'
11
+ s.platform = :ios, '13.0'
12
12
  s.dependency 'React'
13
13
  end
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "main": "dist/index.js",
4
4
  "module": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
- "version": "2.43.5",
6
+ "version": "2.43.6",
7
7
  "license": "MIT",
8
8
  "publishConfig": {
9
9
  "registry": "https://registry.npmjs.org/"