@reactvision/react-viro 2.43.4 → 2.43.5
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/react_viro/react_viro-release.aar +0 -0
- package/components/Material/ViroMaterials.ts +2 -1
- package/components/Utilities/ViroVersion.ts +1 -1
- package/dist/components/Material/ViroMaterials.js +5 -4
- package/dist/components/Utilities/ViroVersion.d.ts +1 -1
- package/dist/components/Utilities/ViroVersion.js +1 -1
- package/dist/plugins/withViroAndroid.js +1 -1
- package/ios/dist/ViroRenderer/ViroKit.framework/Headers/ViroKit.h +0 -11
- package/ios/dist/ViroRenderer/ViroKit.framework/Info.plist +0 -0
- package/ios/dist/ViroRenderer/ViroKit.framework/ViroKit +0 -0
- package/ios/dist/ViroRenderer/armv7_arm64/ViroKit.framework/Headers/ViroKit.h +0 -11
- package/ios/dist/ViroRenderer/armv7_arm64/ViroKit.framework/Info.plist +0 -0
- package/ios/dist/ViroRenderer/armv7_arm64/ViroKit.framework/ViroKit +0 -0
- package/package.json +7 -7
|
Binary file
|
|
@@ -18,7 +18,8 @@ import {
|
|
|
18
18
|
} from "react-native";
|
|
19
19
|
// @ts-ignore
|
|
20
20
|
import assetRegistry from "react-native/Libraries/Image/AssetRegistry";
|
|
21
|
-
|
|
21
|
+
// @ts-ignore
|
|
22
|
+
import resolveAssetSource from "react-native/Libraries/Image/resolveAssetSource";
|
|
22
23
|
import { ViroSource } from "../Types/ViroUtils";
|
|
23
24
|
|
|
24
25
|
var MaterialManager = NativeModules.VRTMaterialManager;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VIRO_VERSION = "2.43.
|
|
1
|
+
export const VIRO_VERSION = "2.43.5";
|
|
@@ -18,7 +18,8 @@ exports.ViroMaterials = void 0;
|
|
|
18
18
|
const react_native_1 = require("react-native");
|
|
19
19
|
// @ts-ignore
|
|
20
20
|
const AssetRegistry_1 = __importDefault(require("react-native/Libraries/Image/AssetRegistry"));
|
|
21
|
-
|
|
21
|
+
// @ts-ignore
|
|
22
|
+
const resolveAssetSource_1 = __importDefault(require("react-native/Libraries/Image/resolveAssetSource"));
|
|
22
23
|
var MaterialManager = react_native_1.NativeModules.VRTMaterialManager;
|
|
23
24
|
class ViroMaterials {
|
|
24
25
|
static createMaterials(materials) {
|
|
@@ -33,13 +34,13 @@ class ViroMaterials {
|
|
|
33
34
|
if (prop === "ReflectiveTexture" || prop === "reflectiveTexture") {
|
|
34
35
|
var reflectiveShape = {};
|
|
35
36
|
for (var cubeMapTexture in material[prop]) {
|
|
36
|
-
var cubeMapSource =
|
|
37
|
+
var cubeMapSource = (0, resolveAssetSource_1.default)(material[prop][cubeMapTexture]);
|
|
37
38
|
reflectiveShape[cubeMapTexture] = cubeMapSource;
|
|
38
39
|
}
|
|
39
40
|
resultMaterial[prop] = reflectiveShape;
|
|
40
41
|
}
|
|
41
42
|
else if (material[prop].hasOwnProperty("source")) {
|
|
42
|
-
var source =
|
|
43
|
+
var source = (0, resolveAssetSource_1.default)(material[prop]["source"]);
|
|
43
44
|
resultMaterial[prop] = material[prop];
|
|
44
45
|
resultMaterial[prop]["source"] = source;
|
|
45
46
|
}
|
|
@@ -51,7 +52,7 @@ class ViroMaterials {
|
|
|
51
52
|
assetType = asset.type;
|
|
52
53
|
}
|
|
53
54
|
}
|
|
54
|
-
var source =
|
|
55
|
+
var source = (0, resolveAssetSource_1.default)(material[prop]);
|
|
55
56
|
source["type"] = assetType;
|
|
56
57
|
resultMaterial[prop] = source;
|
|
57
58
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VIRO_VERSION = "2.43.
|
|
1
|
+
export declare const VIRO_VERSION = "2.43.5";
|
|
@@ -57,7 +57,7 @@ const withBranchAndroid = (config) => {
|
|
|
57
57
|
// Use proper Kotlin syntax for newer formats
|
|
58
58
|
target =
|
|
59
59
|
target +
|
|
60
|
-
`
|
|
60
|
+
` add(ReactViroPackage(ReactViroPackage.ViroPlatform.${viroConfig}))\n`;
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
63
|
if (isJava) {
|
|
@@ -212,17 +212,6 @@ FOUNDATION_EXPORT const unsigned char ViroKitVersionString[];
|
|
|
212
212
|
#import <ViroKit/VROARObjectTarget.h>
|
|
213
213
|
#import <ViroKit/VROARObjectTargetiOS.h>
|
|
214
214
|
|
|
215
|
-
// Advanced AR Features (New)
|
|
216
|
-
#import <ViroKit/VROARGeospatialAnchor.h>
|
|
217
|
-
#import <ViroKit/VROARLocationAnchoriOS.h>
|
|
218
|
-
#import <ViroKit/VROARSceneSemantics.h>
|
|
219
|
-
#import <ViroKit/VROARSceneUnderstandingiOS.h>
|
|
220
|
-
#import <ViroKit/VROARAugmentedFace.h>
|
|
221
|
-
#import <ViroKit/VROARFaceTrackingiOS.h>
|
|
222
|
-
#import <ViroKit/VROARCloudAnchor.h>
|
|
223
|
-
#import <ViroKit/VROARMemoryManager.h>
|
|
224
|
-
#import <ViroKit/VROARPerformanceOptimizer.h>
|
|
225
|
-
|
|
226
215
|
// Test
|
|
227
216
|
#import <ViroKit/VRORendererTest.h>
|
|
228
217
|
#import <ViroKit/VRORendererTestHarness.h>
|
|
Binary file
|
|
Binary file
|
|
@@ -212,17 +212,6 @@ FOUNDATION_EXPORT const unsigned char ViroKitVersionString[];
|
|
|
212
212
|
#import <ViroKit/VROARObjectTarget.h>
|
|
213
213
|
#import <ViroKit/VROARObjectTargetiOS.h>
|
|
214
214
|
|
|
215
|
-
// Advanced AR Features (New)
|
|
216
|
-
#import <ViroKit/VROARGeospatialAnchor.h>
|
|
217
|
-
#import <ViroKit/VROARLocationAnchoriOS.h>
|
|
218
|
-
#import <ViroKit/VROARSceneSemantics.h>
|
|
219
|
-
#import <ViroKit/VROARSceneUnderstandingiOS.h>
|
|
220
|
-
#import <ViroKit/VROARAugmentedFace.h>
|
|
221
|
-
#import <ViroKit/VROARFaceTrackingiOS.h>
|
|
222
|
-
#import <ViroKit/VROARCloudAnchor.h>
|
|
223
|
-
#import <ViroKit/VROARMemoryManager.h>
|
|
224
|
-
#import <ViroKit/VROARPerformanceOptimizer.h>
|
|
225
|
-
|
|
226
215
|
// Test
|
|
227
216
|
#import <ViroKit/VRORendererTest.h>
|
|
228
217
|
#import <ViroKit/VRORendererTestHarness.h>
|
|
Binary file
|
|
Binary file
|
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.
|
|
6
|
+
"version": "2.43.5",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"publishConfig": {
|
|
9
9
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -27,11 +27,11 @@
|
|
|
27
27
|
"prepare": "npm run build"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
|
-
"expo": "~
|
|
31
|
-
"react-native": "0.
|
|
30
|
+
"expo": "~54.0.10",
|
|
31
|
+
"react-native": "~0.81.4"
|
|
32
32
|
},
|
|
33
33
|
"engines": {
|
|
34
|
-
"react-native": "0.
|
|
34
|
+
"react-native": "~0.81.4"
|
|
35
35
|
},
|
|
36
36
|
"peerDependenciesMeta": {
|
|
37
37
|
"expo": {
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
],
|
|
59
59
|
"dependencies": {
|
|
60
60
|
"@expo/config-plugins": "^9.0.14",
|
|
61
|
-
"react": "19.
|
|
61
|
+
"react": "~19.1.0",
|
|
62
62
|
"react-native-gradle-plugin": "^0.71.19"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
@@ -78,9 +78,9 @@
|
|
|
78
78
|
"@types/react": "~19.0.10",
|
|
79
79
|
"@types/react-native": "^0.73.0",
|
|
80
80
|
"babel-jest": "^29.7.0",
|
|
81
|
-
"expo": "~
|
|
81
|
+
"expo": "~54.0.10",
|
|
82
82
|
"jest": "^29.7.0",
|
|
83
|
-
"react-native": "0.
|
|
83
|
+
"react-native": "~0.81.4",
|
|
84
84
|
"release-it": "^17.1.1",
|
|
85
85
|
"ts-node": "^10.9.2",
|
|
86
86
|
"typescript": "^5.3.0"
|