@reactvision/react-viro 2.43.3 → 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/README.md +18 -13
- package/android/react_viro/react_viro-release.aar +0 -0
- package/android/viro_renderer/viro_renderer-release.aar +0 -0
- package/components/AR/ViroARPlaneSelector.tsx +1 -1
- package/components/AR/ViroARSceneNavigator.tsx +16 -17
- package/components/Material/ViroMaterials.ts +2 -1
- package/components/Utilities/ViroVersion.ts +1 -1
- package/components/ViroVRSceneNavigator.tsx +1 -1
- package/dist/components/AR/ViroARPlaneSelector.d.ts +1 -1
- package/dist/components/AR/ViroARSceneNavigator.d.ts +9 -9
- package/dist/components/AR/ViroARSceneNavigator.js +11 -11
- 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/components/ViroVRSceneNavigator.d.ts +1 -1
- package/dist/dynamic-index.d.ts +11 -0
- package/dist/dynamic-index.js +28 -0
- package/dist/plugins/withViro.d.ts +3 -0
- package/dist/plugins/withViro.js +19 -0
- package/dist/plugins/withViroAndroid.js +33 -69
- package/dist/plugins/withViroIos.js +20 -2
- package/ios/ViroReact.podspec +49 -11
- package/ios/dist/ViroRenderer/ViroKit.framework/Headers/VROBodyMesher.h +1 -0
- package/ios/dist/ViroRenderer/ViroKit.framework/Headers/VROVideoTextureCache.h +1 -0
- package/ios/dist/ViroRenderer/ViroKit.framework/Info.plist +0 -0
- package/ios/dist/ViroRenderer/ViroKit.framework/ViroKit +0 -0
- package/ios/dist/ViroRenderer/ViroKit.framework/bodymesh.mlmodelc/metadata.json +14 -11
- package/ios/dist/ViroRenderer/ViroKit.framework/hourglass_2_1.mlmodelc/metadata.json +12 -9
- package/ios/dist/ViroRenderer/ViroKit.framework/hourglass_2_1_ds_t.mlmodelc/metadata.json +12 -9
- package/ios/dist/ViroRenderer/ViroKit.framework/hourglass_2_1_t.mlmodelc/metadata.json +12 -9
- package/ios/dist/ViroRenderer/ViroKit.podspec +4 -4
- package/ios/dist/ViroRenderer/armv7_arm64/ViroKit.framework/Headers/VROBodyMesher.h +1 -0
- package/ios/dist/ViroRenderer/armv7_arm64/ViroKit.framework/Headers/VROVideoTextureCache.h +1 -0
- package/ios/dist/ViroRenderer/armv7_arm64/ViroKit.framework/Info.plist +0 -0
- package/ios/dist/ViroRenderer/armv7_arm64/ViroKit.framework/ViroKit +0 -0
- package/ios/dist/ViroRenderer/armv7_arm64/ViroKit.framework/bodymesh.mlmodelc/metadata.json +14 -11
- package/ios/dist/ViroRenderer/armv7_arm64/ViroKit.framework/hourglass_2_1.mlmodelc/metadata.json +12 -9
- package/ios/dist/ViroRenderer/armv7_arm64/ViroKit.framework/hourglass_2_1_ds_t.mlmodelc/metadata.json +12 -9
- package/ios/dist/ViroRenderer/armv7_arm64/ViroKit.framework/hourglass_2_1_t.mlmodelc/metadata.json +12 -9
- package/ios/dist/armv7_arm64/libViroReact.a +0 -0
- package/ios/dist/lib/libViroReact.a +0 -0
- package/package.json +15 -9
- package/scripts/copy-types.js +46 -0
- package/dist/components/Telemetry/ViroTelemetry.d.ts +0 -16
- package/dist/components/Telemetry/ViroTelemetry.js +0 -87
- package/dist/components/Telemetry/index.d.ts +0 -16
- package/dist/components/Telemetry/index.js +0 -97
|
Binary file
|
|
Binary file
|
|
@@ -20,6 +20,9 @@
|
|
|
20
20
|
"specificationVersion" : 1,
|
|
21
21
|
"computePrecision" : "Float16",
|
|
22
22
|
"isUpdatable" : "0",
|
|
23
|
+
"stateSchema" : [
|
|
24
|
+
|
|
25
|
+
],
|
|
23
26
|
"availability" : {
|
|
24
27
|
"macOS" : "10.13",
|
|
25
28
|
"tvOS" : "11.0",
|
|
@@ -28,23 +31,12 @@
|
|
|
28
31
|
"iOS" : "11.0",
|
|
29
32
|
"macCatalyst" : "11.0"
|
|
30
33
|
},
|
|
31
|
-
"neuralNetworkLayerTypeHistogram" : {
|
|
32
|
-
"PaddingReflection" : 1,
|
|
33
|
-
"ActivationLinear" : 68,
|
|
34
|
-
"ActivationSigmoidHard" : 34,
|
|
35
|
-
"Add" : 10,
|
|
36
|
-
"ActivationTanh" : 1,
|
|
37
|
-
"BatchNorm" : 51,
|
|
38
|
-
"Convolution" : 62,
|
|
39
|
-
"UpsampleNearestNeighbor" : 5
|
|
40
|
-
},
|
|
41
34
|
"modelType" : {
|
|
42
35
|
"name" : "MLModelType_neuralNetwork"
|
|
43
36
|
},
|
|
44
37
|
"userDefinedMetadata" : {
|
|
45
38
|
|
|
46
39
|
},
|
|
47
|
-
"generatedClassName" : "bodymesh",
|
|
48
40
|
"inputSchema" : [
|
|
49
41
|
{
|
|
50
42
|
"height" : "224",
|
|
@@ -59,6 +51,17 @@
|
|
|
59
51
|
"name" : "image"
|
|
60
52
|
}
|
|
61
53
|
],
|
|
54
|
+
"generatedClassName" : "bodymesh",
|
|
55
|
+
"neuralNetworkLayerTypeHistogram" : {
|
|
56
|
+
"PaddingReflection" : 1,
|
|
57
|
+
"ActivationLinear" : 68,
|
|
58
|
+
"ActivationSigmoidHard" : 34,
|
|
59
|
+
"Add" : 10,
|
|
60
|
+
"UpsampleINVALID" : 5,
|
|
61
|
+
"BatchNorm" : 51,
|
|
62
|
+
"Convolution" : 62,
|
|
63
|
+
"ActivationTanh" : 1
|
|
64
|
+
},
|
|
62
65
|
"method" : "predict"
|
|
63
66
|
}
|
|
64
67
|
]
|
|
@@ -20,6 +20,9 @@
|
|
|
20
20
|
"specificationVersion" : 1,
|
|
21
21
|
"computePrecision" : "Float16",
|
|
22
22
|
"isUpdatable" : "0",
|
|
23
|
+
"stateSchema" : [
|
|
24
|
+
|
|
25
|
+
],
|
|
23
26
|
"availability" : {
|
|
24
27
|
"macOS" : "10.13",
|
|
25
28
|
"tvOS" : "11.0",
|
|
@@ -28,21 +31,12 @@
|
|
|
28
31
|
"iOS" : "11.0",
|
|
29
32
|
"macCatalyst" : "11.0"
|
|
30
33
|
},
|
|
31
|
-
"neuralNetworkLayerTypeHistogram" : {
|
|
32
|
-
"UpsampleNearestNeighbor" : 8,
|
|
33
|
-
"PoolingMax" : 9,
|
|
34
|
-
"Convolution" : 71,
|
|
35
|
-
"BatchNorm" : 68,
|
|
36
|
-
"ActivationReLU" : 67,
|
|
37
|
-
"Add" : 31
|
|
38
|
-
},
|
|
39
34
|
"modelType" : {
|
|
40
35
|
"name" : "MLModelType_neuralNetwork"
|
|
41
36
|
},
|
|
42
37
|
"userDefinedMetadata" : {
|
|
43
38
|
|
|
44
39
|
},
|
|
45
|
-
"generatedClassName" : "hourglass_2_1",
|
|
46
40
|
"inputSchema" : [
|
|
47
41
|
{
|
|
48
42
|
"height" : "256",
|
|
@@ -57,6 +51,15 @@
|
|
|
57
51
|
"name" : "image"
|
|
58
52
|
}
|
|
59
53
|
],
|
|
54
|
+
"generatedClassName" : "hourglass_2_1",
|
|
55
|
+
"neuralNetworkLayerTypeHistogram" : {
|
|
56
|
+
"UpsampleINVALID" : 8,
|
|
57
|
+
"Convolution" : 71,
|
|
58
|
+
"PoolingINVALID" : 9,
|
|
59
|
+
"BatchNorm" : 68,
|
|
60
|
+
"ActivationReLU" : 67,
|
|
61
|
+
"Add" : 31
|
|
62
|
+
},
|
|
60
63
|
"method" : "predict"
|
|
61
64
|
}
|
|
62
65
|
]
|
|
@@ -20,6 +20,9 @@
|
|
|
20
20
|
"specificationVersion" : 1,
|
|
21
21
|
"computePrecision" : "Float16",
|
|
22
22
|
"isUpdatable" : "0",
|
|
23
|
+
"stateSchema" : [
|
|
24
|
+
|
|
25
|
+
],
|
|
23
26
|
"availability" : {
|
|
24
27
|
"macOS" : "10.13",
|
|
25
28
|
"tvOS" : "11.0",
|
|
@@ -28,21 +31,12 @@
|
|
|
28
31
|
"iOS" : "11.0",
|
|
29
32
|
"macCatalyst" : "11.0"
|
|
30
33
|
},
|
|
31
|
-
"neuralNetworkLayerTypeHistogram" : {
|
|
32
|
-
"UpsampleNearestNeighbor" : 8,
|
|
33
|
-
"PoolingMax" : 9,
|
|
34
|
-
"Convolution" : 71,
|
|
35
|
-
"BatchNorm" : 68,
|
|
36
|
-
"ActivationReLU" : 67,
|
|
37
|
-
"Add" : 31
|
|
38
|
-
},
|
|
39
34
|
"modelType" : {
|
|
40
35
|
"name" : "MLModelType_neuralNetwork"
|
|
41
36
|
},
|
|
42
37
|
"userDefinedMetadata" : {
|
|
43
38
|
|
|
44
39
|
},
|
|
45
|
-
"generatedClassName" : "hourglass_2_1_ds_t",
|
|
46
40
|
"inputSchema" : [
|
|
47
41
|
{
|
|
48
42
|
"height" : "256",
|
|
@@ -57,6 +51,15 @@
|
|
|
57
51
|
"name" : "image"
|
|
58
52
|
}
|
|
59
53
|
],
|
|
54
|
+
"generatedClassName" : "hourglass_2_1_ds_t",
|
|
55
|
+
"neuralNetworkLayerTypeHistogram" : {
|
|
56
|
+
"UpsampleINVALID" : 8,
|
|
57
|
+
"Convolution" : 71,
|
|
58
|
+
"PoolingINVALID" : 9,
|
|
59
|
+
"BatchNorm" : 68,
|
|
60
|
+
"ActivationReLU" : 67,
|
|
61
|
+
"Add" : 31
|
|
62
|
+
},
|
|
60
63
|
"method" : "predict"
|
|
61
64
|
}
|
|
62
65
|
]
|
|
@@ -20,6 +20,9 @@
|
|
|
20
20
|
"specificationVersion" : 1,
|
|
21
21
|
"computePrecision" : "Float16",
|
|
22
22
|
"isUpdatable" : "0",
|
|
23
|
+
"stateSchema" : [
|
|
24
|
+
|
|
25
|
+
],
|
|
23
26
|
"availability" : {
|
|
24
27
|
"macOS" : "10.13",
|
|
25
28
|
"tvOS" : "11.0",
|
|
@@ -28,21 +31,12 @@
|
|
|
28
31
|
"iOS" : "11.0",
|
|
29
32
|
"macCatalyst" : "11.0"
|
|
30
33
|
},
|
|
31
|
-
"neuralNetworkLayerTypeHistogram" : {
|
|
32
|
-
"UpsampleNearestNeighbor" : 8,
|
|
33
|
-
"PoolingMax" : 9,
|
|
34
|
-
"Convolution" : 71,
|
|
35
|
-
"BatchNorm" : 68,
|
|
36
|
-
"ActivationReLU" : 67,
|
|
37
|
-
"Add" : 31
|
|
38
|
-
},
|
|
39
34
|
"modelType" : {
|
|
40
35
|
"name" : "MLModelType_neuralNetwork"
|
|
41
36
|
},
|
|
42
37
|
"userDefinedMetadata" : {
|
|
43
38
|
|
|
44
39
|
},
|
|
45
|
-
"generatedClassName" : "hourglass_2_1_t",
|
|
46
40
|
"inputSchema" : [
|
|
47
41
|
{
|
|
48
42
|
"height" : "256",
|
|
@@ -57,6 +51,15 @@
|
|
|
57
51
|
"name" : "image"
|
|
58
52
|
}
|
|
59
53
|
],
|
|
54
|
+
"generatedClassName" : "hourglass_2_1_t",
|
|
55
|
+
"neuralNetworkLayerTypeHistogram" : {
|
|
56
|
+
"UpsampleINVALID" : 8,
|
|
57
|
+
"Convolution" : 71,
|
|
58
|
+
"PoolingINVALID" : 9,
|
|
59
|
+
"BatchNorm" : 68,
|
|
60
|
+
"ActivationReLU" : 67,
|
|
61
|
+
"Add" : 31
|
|
62
|
+
},
|
|
60
63
|
"method" : "predict"
|
|
61
64
|
}
|
|
62
65
|
]
|
|
@@ -4,10 +4,10 @@ Pod::Spec.new do |s|
|
|
|
4
4
|
s.summary = 'Framework containing the ViroRenderer'
|
|
5
5
|
s.source = { :path => '.' } # source is required, but path will be defined in user's Podfile (this value will be ignored).
|
|
6
6
|
s.vendored_frameworks = 'ViroKit.framework'
|
|
7
|
-
s.homepage = '
|
|
8
|
-
s.license = {:type => 'Copyright', :text => "Copyright
|
|
9
|
-
s.author = '
|
|
7
|
+
s.homepage = 'https://reactvision.xyz'
|
|
8
|
+
s.license = {:type => 'Copyright', :text => "Copyright 2025 ReactVision" }
|
|
9
|
+
s.author = 'ReactVision'
|
|
10
10
|
s.requires_arc = true
|
|
11
|
-
s.platform = :ios, '
|
|
11
|
+
s.platform = :ios, '17.6'
|
|
12
12
|
s.dependency 'React'
|
|
13
13
|
end
|
|
Binary file
|
|
Binary file
|
|
@@ -20,6 +20,9 @@
|
|
|
20
20
|
"specificationVersion" : 1,
|
|
21
21
|
"computePrecision" : "Float16",
|
|
22
22
|
"isUpdatable" : "0",
|
|
23
|
+
"stateSchema" : [
|
|
24
|
+
|
|
25
|
+
],
|
|
23
26
|
"availability" : {
|
|
24
27
|
"macOS" : "10.13",
|
|
25
28
|
"tvOS" : "11.0",
|
|
@@ -28,23 +31,12 @@
|
|
|
28
31
|
"iOS" : "11.0",
|
|
29
32
|
"macCatalyst" : "11.0"
|
|
30
33
|
},
|
|
31
|
-
"neuralNetworkLayerTypeHistogram" : {
|
|
32
|
-
"PaddingReflection" : 1,
|
|
33
|
-
"ActivationLinear" : 68,
|
|
34
|
-
"ActivationSigmoidHard" : 34,
|
|
35
|
-
"Add" : 10,
|
|
36
|
-
"ActivationTanh" : 1,
|
|
37
|
-
"BatchNorm" : 51,
|
|
38
|
-
"Convolution" : 62,
|
|
39
|
-
"UpsampleNearestNeighbor" : 5
|
|
40
|
-
},
|
|
41
34
|
"modelType" : {
|
|
42
35
|
"name" : "MLModelType_neuralNetwork"
|
|
43
36
|
},
|
|
44
37
|
"userDefinedMetadata" : {
|
|
45
38
|
|
|
46
39
|
},
|
|
47
|
-
"generatedClassName" : "bodymesh",
|
|
48
40
|
"inputSchema" : [
|
|
49
41
|
{
|
|
50
42
|
"height" : "224",
|
|
@@ -59,6 +51,17 @@
|
|
|
59
51
|
"name" : "image"
|
|
60
52
|
}
|
|
61
53
|
],
|
|
54
|
+
"generatedClassName" : "bodymesh",
|
|
55
|
+
"neuralNetworkLayerTypeHistogram" : {
|
|
56
|
+
"PaddingReflection" : 1,
|
|
57
|
+
"ActivationLinear" : 68,
|
|
58
|
+
"ActivationSigmoidHard" : 34,
|
|
59
|
+
"Add" : 10,
|
|
60
|
+
"UpsampleINVALID" : 5,
|
|
61
|
+
"BatchNorm" : 51,
|
|
62
|
+
"Convolution" : 62,
|
|
63
|
+
"ActivationTanh" : 1
|
|
64
|
+
},
|
|
62
65
|
"method" : "predict"
|
|
63
66
|
}
|
|
64
67
|
]
|
package/ios/dist/ViroRenderer/armv7_arm64/ViroKit.framework/hourglass_2_1.mlmodelc/metadata.json
CHANGED
|
@@ -20,6 +20,9 @@
|
|
|
20
20
|
"specificationVersion" : 1,
|
|
21
21
|
"computePrecision" : "Float16",
|
|
22
22
|
"isUpdatable" : "0",
|
|
23
|
+
"stateSchema" : [
|
|
24
|
+
|
|
25
|
+
],
|
|
23
26
|
"availability" : {
|
|
24
27
|
"macOS" : "10.13",
|
|
25
28
|
"tvOS" : "11.0",
|
|
@@ -28,21 +31,12 @@
|
|
|
28
31
|
"iOS" : "11.0",
|
|
29
32
|
"macCatalyst" : "11.0"
|
|
30
33
|
},
|
|
31
|
-
"neuralNetworkLayerTypeHistogram" : {
|
|
32
|
-
"UpsampleNearestNeighbor" : 8,
|
|
33
|
-
"PoolingMax" : 9,
|
|
34
|
-
"Convolution" : 71,
|
|
35
|
-
"BatchNorm" : 68,
|
|
36
|
-
"ActivationReLU" : 67,
|
|
37
|
-
"Add" : 31
|
|
38
|
-
},
|
|
39
34
|
"modelType" : {
|
|
40
35
|
"name" : "MLModelType_neuralNetwork"
|
|
41
36
|
},
|
|
42
37
|
"userDefinedMetadata" : {
|
|
43
38
|
|
|
44
39
|
},
|
|
45
|
-
"generatedClassName" : "hourglass_2_1",
|
|
46
40
|
"inputSchema" : [
|
|
47
41
|
{
|
|
48
42
|
"height" : "256",
|
|
@@ -57,6 +51,15 @@
|
|
|
57
51
|
"name" : "image"
|
|
58
52
|
}
|
|
59
53
|
],
|
|
54
|
+
"generatedClassName" : "hourglass_2_1",
|
|
55
|
+
"neuralNetworkLayerTypeHistogram" : {
|
|
56
|
+
"UpsampleINVALID" : 8,
|
|
57
|
+
"Convolution" : 71,
|
|
58
|
+
"PoolingINVALID" : 9,
|
|
59
|
+
"BatchNorm" : 68,
|
|
60
|
+
"ActivationReLU" : 67,
|
|
61
|
+
"Add" : 31
|
|
62
|
+
},
|
|
60
63
|
"method" : "predict"
|
|
61
64
|
}
|
|
62
65
|
]
|
|
@@ -20,6 +20,9 @@
|
|
|
20
20
|
"specificationVersion" : 1,
|
|
21
21
|
"computePrecision" : "Float16",
|
|
22
22
|
"isUpdatable" : "0",
|
|
23
|
+
"stateSchema" : [
|
|
24
|
+
|
|
25
|
+
],
|
|
23
26
|
"availability" : {
|
|
24
27
|
"macOS" : "10.13",
|
|
25
28
|
"tvOS" : "11.0",
|
|
@@ -28,21 +31,12 @@
|
|
|
28
31
|
"iOS" : "11.0",
|
|
29
32
|
"macCatalyst" : "11.0"
|
|
30
33
|
},
|
|
31
|
-
"neuralNetworkLayerTypeHistogram" : {
|
|
32
|
-
"UpsampleNearestNeighbor" : 8,
|
|
33
|
-
"PoolingMax" : 9,
|
|
34
|
-
"Convolution" : 71,
|
|
35
|
-
"BatchNorm" : 68,
|
|
36
|
-
"ActivationReLU" : 67,
|
|
37
|
-
"Add" : 31
|
|
38
|
-
},
|
|
39
34
|
"modelType" : {
|
|
40
35
|
"name" : "MLModelType_neuralNetwork"
|
|
41
36
|
},
|
|
42
37
|
"userDefinedMetadata" : {
|
|
43
38
|
|
|
44
39
|
},
|
|
45
|
-
"generatedClassName" : "hourglass_2_1_ds_t",
|
|
46
40
|
"inputSchema" : [
|
|
47
41
|
{
|
|
48
42
|
"height" : "256",
|
|
@@ -57,6 +51,15 @@
|
|
|
57
51
|
"name" : "image"
|
|
58
52
|
}
|
|
59
53
|
],
|
|
54
|
+
"generatedClassName" : "hourglass_2_1_ds_t",
|
|
55
|
+
"neuralNetworkLayerTypeHistogram" : {
|
|
56
|
+
"UpsampleINVALID" : 8,
|
|
57
|
+
"Convolution" : 71,
|
|
58
|
+
"PoolingINVALID" : 9,
|
|
59
|
+
"BatchNorm" : 68,
|
|
60
|
+
"ActivationReLU" : 67,
|
|
61
|
+
"Add" : 31
|
|
62
|
+
},
|
|
60
63
|
"method" : "predict"
|
|
61
64
|
}
|
|
62
65
|
]
|
package/ios/dist/ViroRenderer/armv7_arm64/ViroKit.framework/hourglass_2_1_t.mlmodelc/metadata.json
CHANGED
|
@@ -20,6 +20,9 @@
|
|
|
20
20
|
"specificationVersion" : 1,
|
|
21
21
|
"computePrecision" : "Float16",
|
|
22
22
|
"isUpdatable" : "0",
|
|
23
|
+
"stateSchema" : [
|
|
24
|
+
|
|
25
|
+
],
|
|
23
26
|
"availability" : {
|
|
24
27
|
"macOS" : "10.13",
|
|
25
28
|
"tvOS" : "11.0",
|
|
@@ -28,21 +31,12 @@
|
|
|
28
31
|
"iOS" : "11.0",
|
|
29
32
|
"macCatalyst" : "11.0"
|
|
30
33
|
},
|
|
31
|
-
"neuralNetworkLayerTypeHistogram" : {
|
|
32
|
-
"UpsampleNearestNeighbor" : 8,
|
|
33
|
-
"PoolingMax" : 9,
|
|
34
|
-
"Convolution" : 71,
|
|
35
|
-
"BatchNorm" : 68,
|
|
36
|
-
"ActivationReLU" : 67,
|
|
37
|
-
"Add" : 31
|
|
38
|
-
},
|
|
39
34
|
"modelType" : {
|
|
40
35
|
"name" : "MLModelType_neuralNetwork"
|
|
41
36
|
},
|
|
42
37
|
"userDefinedMetadata" : {
|
|
43
38
|
|
|
44
39
|
},
|
|
45
|
-
"generatedClassName" : "hourglass_2_1_t",
|
|
46
40
|
"inputSchema" : [
|
|
47
41
|
{
|
|
48
42
|
"height" : "256",
|
|
@@ -57,6 +51,15 @@
|
|
|
57
51
|
"name" : "image"
|
|
58
52
|
}
|
|
59
53
|
],
|
|
54
|
+
"generatedClassName" : "hourglass_2_1_t",
|
|
55
|
+
"neuralNetworkLayerTypeHistogram" : {
|
|
56
|
+
"UpsampleINVALID" : 8,
|
|
57
|
+
"Convolution" : 71,
|
|
58
|
+
"PoolingINVALID" : 9,
|
|
59
|
+
"BatchNorm" : 68,
|
|
60
|
+
"ActivationReLU" : 67,
|
|
61
|
+
"Add" : 31
|
|
62
|
+
},
|
|
60
63
|
"method" : "predict"
|
|
61
64
|
}
|
|
62
65
|
]
|
|
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/"
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"type": "git",
|
|
13
13
|
"url": "git+ssh://git@github.com/ReactVision/viro.git"
|
|
14
14
|
},
|
|
15
|
-
"description": "Maintained version of react-viro",
|
|
15
|
+
"description": "Maintained version of react-viro - New Architecture (Fabric) required",
|
|
16
16
|
"scripts": {
|
|
17
17
|
"start": "echo 'I dont think you meant to run npm start here.'",
|
|
18
18
|
"test": "jest",
|
|
@@ -23,11 +23,15 @@
|
|
|
23
23
|
"copy-files": "cp -r ./components/Resources/ ./dist/components/Resources/",
|
|
24
24
|
"clean": "rm -rf ./dist/ *.tgz node_modules/",
|
|
25
25
|
"release": "release-it",
|
|
26
|
-
"after:release": "./prepare_release.sh"
|
|
26
|
+
"after:release": "./prepare_release.sh",
|
|
27
|
+
"prepare": "npm run build"
|
|
27
28
|
},
|
|
28
29
|
"peerDependencies": {
|
|
29
|
-
"expo": "~
|
|
30
|
-
"react-native": "0.
|
|
30
|
+
"expo": "~54.0.10",
|
|
31
|
+
"react-native": "~0.81.4"
|
|
32
|
+
},
|
|
33
|
+
"engines": {
|
|
34
|
+
"react-native": "~0.81.4"
|
|
31
35
|
},
|
|
32
36
|
"peerDependenciesMeta": {
|
|
33
37
|
"expo": {
|
|
@@ -40,6 +44,8 @@
|
|
|
40
44
|
"index.ts",
|
|
41
45
|
"components",
|
|
42
46
|
"dist",
|
|
47
|
+
"scripts",
|
|
48
|
+
"examples",
|
|
43
49
|
"app.plugin.js",
|
|
44
50
|
"android/react_viro",
|
|
45
51
|
"android/viro_renderer",
|
|
@@ -52,7 +58,7 @@
|
|
|
52
58
|
],
|
|
53
59
|
"dependencies": {
|
|
54
60
|
"@expo/config-plugins": "^9.0.14",
|
|
55
|
-
"react": "
|
|
61
|
+
"react": "~19.1.0",
|
|
56
62
|
"react-native-gradle-plugin": "^0.71.19"
|
|
57
63
|
},
|
|
58
64
|
"devDependencies": {
|
|
@@ -69,12 +75,12 @@
|
|
|
69
75
|
"@react-native/typescript-config": "^0.77.0",
|
|
70
76
|
"@types/babel__core": "^7.20.5",
|
|
71
77
|
"@types/node": "^22.13.1",
|
|
72
|
-
"@types/react": "
|
|
78
|
+
"@types/react": "~19.0.10",
|
|
73
79
|
"@types/react-native": "^0.73.0",
|
|
74
80
|
"babel-jest": "^29.7.0",
|
|
75
|
-
"expo": "
|
|
81
|
+
"expo": "~54.0.10",
|
|
76
82
|
"jest": "^29.7.0",
|
|
77
|
-
"react-native": "0.
|
|
83
|
+
"react-native": "~0.81.4",
|
|
78
84
|
"release-it": "^17.1.1",
|
|
79
85
|
"ts-node": "^10.9.2",
|
|
80
86
|
"typescript": "^5.3.0"
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Script to copy index.d.ts to dynamic-index.d.ts and add global declarations
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
const fs = require("fs");
|
|
6
|
+
const path = require("path");
|
|
7
|
+
|
|
8
|
+
// Paths
|
|
9
|
+
const indexDtsPath = path.join(__dirname, "../dist/index.d.ts");
|
|
10
|
+
const dynamicIndexDtsPath = path.join(__dirname, "../dist/dynamic-index.d.ts");
|
|
11
|
+
|
|
12
|
+
// Read the index.d.ts file
|
|
13
|
+
let indexDtsContent = fs.readFileSync(indexDtsPath, "utf8");
|
|
14
|
+
|
|
15
|
+
// Create the dynamic-index.d.ts content
|
|
16
|
+
const dynamicIndexDtsContent = `/**
|
|
17
|
+
* Type definitions for Viro React Native with dynamic architecture detection
|
|
18
|
+
*
|
|
19
|
+
* This file provides type definitions for the dynamic architecture detection.
|
|
20
|
+
* At runtime, either the legacy or Fabric implementation will be used,
|
|
21
|
+
* but for TypeScript purposes, we use the legacy implementation's types.
|
|
22
|
+
*/
|
|
23
|
+
|
|
24
|
+
// Add type declarations for global variables used in New Architecture detection
|
|
25
|
+
declare global {
|
|
26
|
+
var nativeFabricUIManager: any;
|
|
27
|
+
var __turboModuleProxy: any;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
// Export all types from the legacy implementation
|
|
31
|
+
${indexDtsContent}
|
|
32
|
+
`;
|
|
33
|
+
|
|
34
|
+
// Write the dynamic-index.d.ts file
|
|
35
|
+
fs.writeFileSync(dynamicIndexDtsPath, dynamicIndexDtsContent);
|
|
36
|
+
|
|
37
|
+
// Also write to the source file for reference
|
|
38
|
+
const dynamicIndexSourceDtsPath = path.join(
|
|
39
|
+
__dirname,
|
|
40
|
+
"../dynamic-index-source.d.ts"
|
|
41
|
+
);
|
|
42
|
+
fs.writeFileSync(dynamicIndexSourceDtsPath, dynamicIndexDtsContent);
|
|
43
|
+
|
|
44
|
+
console.log(
|
|
45
|
+
"Successfully copied types from index.d.ts to dynamic-index.d.ts and dynamic-index-source.d.ts"
|
|
46
|
+
);
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export declare class ViroTelemetry {
|
|
2
|
-
private static _isDisabled;
|
|
3
|
-
private static _isDebugging;
|
|
4
|
-
private static _telemetryUrl;
|
|
5
|
-
private static _timeout;
|
|
6
|
-
/**
|
|
7
|
-
* Allow a user to start debugging the telemetry to see what is sent.
|
|
8
|
-
*/
|
|
9
|
-
static setDebugging(): void;
|
|
10
|
-
/**
|
|
11
|
-
* Allow a user to opt out of telemetry.
|
|
12
|
-
*/
|
|
13
|
-
static optOutTelemetry(): void;
|
|
14
|
-
static recordTelemetry(eventName: string, payload?: any): void;
|
|
15
|
-
private static getAnonymousMeta;
|
|
16
|
-
}
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ViroTelemetry = void 0;
|
|
4
|
-
const ViroVersion_1 = require("../Utilities/ViroVersion");
|
|
5
|
-
const react_native_1 = require("react-native");
|
|
6
|
-
class ViroTelemetry {
|
|
7
|
-
static _isDisabled = false;
|
|
8
|
-
static _isDebugging = false;
|
|
9
|
-
static _telemetryUrl = "https://telemetry.reactvision.org";
|
|
10
|
-
static _timeout = 8000;
|
|
11
|
-
/**
|
|
12
|
-
* Allow a user to start debugging the telemetry to see what is sent.
|
|
13
|
-
*/
|
|
14
|
-
static setDebugging() {
|
|
15
|
-
this._isDebugging = true;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Allow a user to opt out of telemetry.
|
|
19
|
-
*/
|
|
20
|
-
static optOutTelemetry() {
|
|
21
|
-
this._isDisabled = true;
|
|
22
|
-
}
|
|
23
|
-
static recordTelemetry(eventName, payload = {}) {
|
|
24
|
-
// Skip recording telemetry if the feature is disabled
|
|
25
|
-
if (this._isDisabled)
|
|
26
|
-
return;
|
|
27
|
-
// Do not send the telemetry data if debugging. Users may use this feature
|
|
28
|
-
// to preview what data would be sent.
|
|
29
|
-
if (this._isDebugging) {
|
|
30
|
-
console.log(`[telemetry] ` + JSON.stringify({ eventName, payload }, null, 2));
|
|
31
|
-
return;
|
|
32
|
-
}
|
|
33
|
-
const controller = new AbortController();
|
|
34
|
-
const timeoutId = setTimeout(() => controller.abort(), this._timeout);
|
|
35
|
-
payload = { ...payload, ...this.getAnonymousMeta() };
|
|
36
|
-
fetch(`${this._telemetryUrl}/api/v1/record`, {
|
|
37
|
-
method: "PUT",
|
|
38
|
-
body: JSON.stringify({ eventName, payload }),
|
|
39
|
-
headers: { "content-type": "application/json" },
|
|
40
|
-
signal: controller.signal,
|
|
41
|
-
})
|
|
42
|
-
.catch((e) => console.error(e))
|
|
43
|
-
.finally(() => clearTimeout(timeoutId));
|
|
44
|
-
}
|
|
45
|
-
static getAnonymousMeta() {
|
|
46
|
-
try {
|
|
47
|
-
const traits = {
|
|
48
|
-
// expo
|
|
49
|
-
isExpo:
|
|
50
|
-
// @ts-ignore
|
|
51
|
-
Boolean(window?.expo) || false,
|
|
52
|
-
sdkVersion:
|
|
53
|
-
// @ts-ignore
|
|
54
|
-
window?.expo?.modules?.ExponentConstants?.sdkVersion || undefined,
|
|
55
|
-
androidPackage:
|
|
56
|
-
// @ts-ignore
|
|
57
|
-
window?.expo?.modules?.ExponentConstants?.android?.package ||
|
|
58
|
-
undefined,
|
|
59
|
-
iosBundleIdentifier:
|
|
60
|
-
// @ts-ignore
|
|
61
|
-
window?.expo?.modules?.ExponentConstants?.ios?.bundleIdentifier ||
|
|
62
|
-
undefined,
|
|
63
|
-
expoDebugMode:
|
|
64
|
-
// @ts-ignore
|
|
65
|
-
window?.expo?.modules?.ExponentConstants?.debugMode || undefined,
|
|
66
|
-
isDevice:
|
|
67
|
-
// @ts-ignore
|
|
68
|
-
window?.expo?.modules?.ExponentConstants?.isDevice || undefined,
|
|
69
|
-
// library version
|
|
70
|
-
viroVersion: ViroVersion_1.VIRO_VERSION,
|
|
71
|
-
platform: react_native_1.Platform.OS,
|
|
72
|
-
deviceOsVersion: react_native_1.Platform.Version,
|
|
73
|
-
reactNativeVersion: react_native_1.Platform.constants.reactNativeVersion.major +
|
|
74
|
-
"." +
|
|
75
|
-
react_native_1.Platform.constants.reactNativeVersion.minor +
|
|
76
|
-
"." +
|
|
77
|
-
react_native_1.Platform.constants.reactNativeVersion.patch,
|
|
78
|
-
};
|
|
79
|
-
return traits;
|
|
80
|
-
}
|
|
81
|
-
catch (e) {
|
|
82
|
-
console.error(e);
|
|
83
|
-
}
|
|
84
|
-
return {};
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
exports.ViroTelemetry = ViroTelemetry;
|