@infilect-sdk/infiviz-shots-react-sdk 1.2.15 → 1.2.17
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 +10 -0
- package/ios/InfivizShotSDK.xcframework/Info.plist +5 -5
- package/ios/InfivizShotSDK.xcframework/ios-arm64/InfivizShotSDK.framework/InfivizShotSDK +0 -0
- package/ios/InfivizShotSDK.xcframework/ios-arm64/InfivizShotSDK.framework/Modules/InfivizShotSDK.swiftmodule/arm64-apple-ios.abi.json +1531 -1661
- package/ios/InfivizShotSDK.xcframework/ios-arm64/InfivizShotSDK.framework/Modules/InfivizShotSDK.swiftmodule/arm64-apple-ios.swiftmodule +0 -0
- package/ios/InfivizShotSDK.xcframework/ios-arm64/InfivizShotSDK.framework/shotsSDK.storyboardc/xUL-ol-gRQ-view-6A8-mO-Rhi.nib +0 -0
- package/ios/InfivizShotSDK.xcframework/ios-arm64_x86_64-simulator/InfivizShotSDK.framework/InfivizShotSDK +0 -0
- package/ios/InfivizShotSDK.xcframework/ios-arm64_x86_64-simulator/InfivizShotSDK.framework/Modules/InfivizShotSDK.swiftmodule/arm64-apple-ios-simulator.abi.json +1531 -1661
- package/ios/InfivizShotSDK.xcframework/ios-arm64_x86_64-simulator/InfivizShotSDK.framework/Modules/InfivizShotSDK.swiftmodule/arm64-apple-ios-simulator.swiftmodule +0 -0
- package/ios/InfivizShotSDK.xcframework/ios-arm64_x86_64-simulator/InfivizShotSDK.framework/Modules/InfivizShotSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json +1531 -1661
- package/ios/InfivizShotSDK.xcframework/ios-arm64_x86_64-simulator/InfivizShotSDK.framework/Modules/InfivizShotSDK.swiftmodule/x86_64-apple-ios-simulator.swiftmodule +0 -0
- package/ios/InfivizShotsReactSdk.swift +4 -15
- package/package.json +155 -155
|
Binary file
|
|
@@ -446,13 +446,8 @@ class InfivizShotsReactSdk: RCTEventEmitter {
|
|
|
446
446
|
// 3️⃣ Call its existing `start(completion:)` which will handle validation,
|
|
447
447
|
activity.start { result in
|
|
448
448
|
switch result {
|
|
449
|
-
case .success(let
|
|
450
|
-
|
|
451
|
-
case .cameraStarted(let msg):
|
|
452
|
-
print(msg)
|
|
453
|
-
case .sessionCompleted(let sessionID):
|
|
454
|
-
resolve(sessionID)
|
|
455
|
-
}
|
|
449
|
+
case .success(let sessionID):
|
|
450
|
+
resolve(sessionID)
|
|
456
451
|
case .failure(let apiError):
|
|
457
452
|
reject("CAMERA_ERROR", apiError.localizedDescription, nil)
|
|
458
453
|
}
|
|
@@ -644,14 +639,8 @@ class InfivizShotsReactSdk: RCTEventEmitter {
|
|
|
644
639
|
// Call the updated `resumeCamera(sessionID:metaData:completion:)` API with metadata
|
|
645
640
|
controller.resumeCamera(sessionID: temporarySessionID as String, metaData: metadataDict) { result in
|
|
646
641
|
switch result {
|
|
647
|
-
case .success(let
|
|
648
|
-
|
|
649
|
-
switch successRes {
|
|
650
|
-
case .cameraStarted(let msg):
|
|
651
|
-
resolve(msg)
|
|
652
|
-
case .sessionCompleted(let sessionID):
|
|
653
|
-
print(sessionID)
|
|
654
|
-
}
|
|
642
|
+
case .success(let sessionID):
|
|
643
|
+
resolve(sessionID)
|
|
655
644
|
|
|
656
645
|
case .failure(let sdkError):
|
|
657
646
|
// reject the JS promise
|
package/package.json
CHANGED
|
@@ -1,155 +1,155 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@infilect-sdk/infiviz-shots-react-sdk",
|
|
3
|
-
"version": "1.2.
|
|
4
|
-
"description": "React Native package for native libraries",
|
|
5
|
-
"source": "./src/index.tsx",
|
|
6
|
-
"main": "./lib/module/index.js",
|
|
7
|
-
"exports": {
|
|
8
|
-
".": {
|
|
9
|
-
"types": "./lib/typescript/src/index.d.ts",
|
|
10
|
-
"default": "./lib/module/index.js"
|
|
11
|
-
},
|
|
12
|
-
"./package.json": "./package.json"
|
|
13
|
-
},
|
|
14
|
-
"files": [
|
|
15
|
-
"src",
|
|
16
|
-
"lib",
|
|
17
|
-
"android",
|
|
18
|
-
"ios",
|
|
19
|
-
"cpp",
|
|
20
|
-
"*.podspec",
|
|
21
|
-
"react-native.config.js",
|
|
22
|
-
"!ios/build",
|
|
23
|
-
"!android/build",
|
|
24
|
-
"!android/gradle",
|
|
25
|
-
"!android/gradlew",
|
|
26
|
-
"!android/gradlew.bat",
|
|
27
|
-
"!android/local.properties",
|
|
28
|
-
"!**/__tests__",
|
|
29
|
-
"!**/__fixtures__",
|
|
30
|
-
"!**/__mocks__",
|
|
31
|
-
"!**/.*"
|
|
32
|
-
],
|
|
33
|
-
"scripts": {
|
|
34
|
-
"build": "bob build",
|
|
35
|
-
"test": "jest",
|
|
36
|
-
"typecheck": "tsc",
|
|
37
|
-
"lint": "eslint \"**/*.{js,ts,tsx}\"",
|
|
38
|
-
"prepare": "bob build",
|
|
39
|
-
"release": "release-it"
|
|
40
|
-
},
|
|
41
|
-
"keywords": [
|
|
42
|
-
"react-native",
|
|
43
|
-
"ios",
|
|
44
|
-
"android"
|
|
45
|
-
],
|
|
46
|
-
"repository": {
|
|
47
|
-
"type": "git",
|
|
48
|
-
"url": "git+https://devanshu4@bitbucket.org/infilect-front-end-team/infiviz-shots-react-sdk.git.git"
|
|
49
|
-
},
|
|
50
|
-
"author": "devanshuvaidya <devanshu@infilect.com> (https://www.infilect.com/)",
|
|
51
|
-
"license": "MIT",
|
|
52
|
-
"bugs": {
|
|
53
|
-
"url": "https://devanshu4@bitbucket.org/infilect-front-end-team/infiviz-shots-react-sdk.git/issues"
|
|
54
|
-
},
|
|
55
|
-
"homepage": "https://devanshu4@bitbucket.org/infilect-front-end-team/infiviz-shots-react-sdk.git#readme",
|
|
56
|
-
"publishConfig": {
|
|
57
|
-
"registry": "https://registry.npmjs.org/",
|
|
58
|
-
"access": "public"
|
|
59
|
-
},
|
|
60
|
-
"devDependencies": {
|
|
61
|
-
"@commitlint/config-conventional": "^19.6.0",
|
|
62
|
-
"@eslint/compat": "^1.2.7",
|
|
63
|
-
"@eslint/eslintrc": "^3.3.0",
|
|
64
|
-
"@eslint/js": "^9.22.0",
|
|
65
|
-
"@evilmartians/lefthook": "^1.5.0",
|
|
66
|
-
"@react-native-community/cli": "18.0.0",
|
|
67
|
-
"@react-native/eslint-config": "^0.78.0",
|
|
68
|
-
"@react-native/typescript-config": "^0.79.2",
|
|
69
|
-
"@release-it/conventional-changelog": "^9.0.2",
|
|
70
|
-
"@types/jest": "^29.5.5",
|
|
71
|
-
"@types/react": "^19.0.0",
|
|
72
|
-
"@yarnpkg/plugin-npm": "^3.1.1",
|
|
73
|
-
"commitlint": "^19.6.1",
|
|
74
|
-
"del-cli": "^5.1.0",
|
|
75
|
-
"eslint": "^9.22.0",
|
|
76
|
-
"eslint-config-prettier": "^10.1.1",
|
|
77
|
-
"eslint-plugin-prettier": "^5.2.3",
|
|
78
|
-
"jest": "^29.7.0",
|
|
79
|
-
"prettier": "^3.0.3",
|
|
80
|
-
"react": "19.0.0",
|
|
81
|
-
"react-native": "0.79.1",
|
|
82
|
-
"react-native-builder-bob": "^0.40.6",
|
|
83
|
-
"release-it": "^17.10.0",
|
|
84
|
-
"turbo": "^1.10.7",
|
|
85
|
-
"typescript": "^5.2.2"
|
|
86
|
-
},
|
|
87
|
-
"peerDependencies": {
|
|
88
|
-
"react": "*",
|
|
89
|
-
"react-native": "*",
|
|
90
|
-
"react-native-safe-area-context": ">=4.0.0",
|
|
91
|
-
"react-native-screens": "^3.20.0"
|
|
92
|
-
},
|
|
93
|
-
"workspaces": [
|
|
94
|
-
"."
|
|
95
|
-
],
|
|
96
|
-
"packageManager": "yarn@3.6.1",
|
|
97
|
-
"jest": {
|
|
98
|
-
"preset": "react-native",
|
|
99
|
-
"modulePathIgnorePatterns": [
|
|
100
|
-
"<rootDir>/example/node_modules",
|
|
101
|
-
"<rootDir>/lib/"
|
|
102
|
-
]
|
|
103
|
-
},
|
|
104
|
-
"commitlint": {
|
|
105
|
-
"extends": [
|
|
106
|
-
"@commitlint/config-conventional"
|
|
107
|
-
]
|
|
108
|
-
},
|
|
109
|
-
"release-it": {
|
|
110
|
-
"git": {
|
|
111
|
-
"commitMessage": "chore: release ${version}",
|
|
112
|
-
"tagName": "v${version}"
|
|
113
|
-
},
|
|
114
|
-
"npm": {
|
|
115
|
-
"publish": true
|
|
116
|
-
},
|
|
117
|
-
"github": {
|
|
118
|
-
"release": true
|
|
119
|
-
},
|
|
120
|
-
"plugins": {
|
|
121
|
-
"@release-it/conventional-changelog": {
|
|
122
|
-
"preset": {
|
|
123
|
-
"name": "angular"
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
},
|
|
128
|
-
"prettier": {
|
|
129
|
-
"quoteProps": "consistent",
|
|
130
|
-
"singleQuote": true,
|
|
131
|
-
"tabWidth": 2,
|
|
132
|
-
"trailingComma": "es5",
|
|
133
|
-
"useTabs": false
|
|
134
|
-
},
|
|
135
|
-
"react-native-builder-bob": {
|
|
136
|
-
"source": "src",
|
|
137
|
-
"output": "lib",
|
|
138
|
-
"targets": [
|
|
139
|
-
[
|
|
140
|
-
"module",
|
|
141
|
-
{
|
|
142
|
-
"esm": true
|
|
143
|
-
}
|
|
144
|
-
],
|
|
145
|
-
[
|
|
146
|
-
"typescript",
|
|
147
|
-
{
|
|
148
|
-
"project": "tsconfig.build.json"
|
|
149
|
-
}
|
|
150
|
-
]
|
|
151
|
-
]
|
|
152
|
-
},
|
|
153
|
-
"dependencies": {
|
|
154
|
-
}
|
|
155
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@infilect-sdk/infiviz-shots-react-sdk",
|
|
3
|
+
"version": "1.2.17",
|
|
4
|
+
"description": "React Native package for native libraries",
|
|
5
|
+
"source": "./src/index.tsx",
|
|
6
|
+
"main": "./lib/module/index.js",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"types": "./lib/typescript/src/index.d.ts",
|
|
10
|
+
"default": "./lib/module/index.js"
|
|
11
|
+
},
|
|
12
|
+
"./package.json": "./package.json"
|
|
13
|
+
},
|
|
14
|
+
"files": [
|
|
15
|
+
"src",
|
|
16
|
+
"lib",
|
|
17
|
+
"android",
|
|
18
|
+
"ios",
|
|
19
|
+
"cpp",
|
|
20
|
+
"*.podspec",
|
|
21
|
+
"react-native.config.js",
|
|
22
|
+
"!ios/build",
|
|
23
|
+
"!android/build",
|
|
24
|
+
"!android/gradle",
|
|
25
|
+
"!android/gradlew",
|
|
26
|
+
"!android/gradlew.bat",
|
|
27
|
+
"!android/local.properties",
|
|
28
|
+
"!**/__tests__",
|
|
29
|
+
"!**/__fixtures__",
|
|
30
|
+
"!**/__mocks__",
|
|
31
|
+
"!**/.*"
|
|
32
|
+
],
|
|
33
|
+
"scripts": {
|
|
34
|
+
"build": "bob build",
|
|
35
|
+
"test": "jest",
|
|
36
|
+
"typecheck": "tsc",
|
|
37
|
+
"lint": "eslint \"**/*.{js,ts,tsx}\"",
|
|
38
|
+
"prepare": "bob build",
|
|
39
|
+
"release": "release-it"
|
|
40
|
+
},
|
|
41
|
+
"keywords": [
|
|
42
|
+
"react-native",
|
|
43
|
+
"ios",
|
|
44
|
+
"android"
|
|
45
|
+
],
|
|
46
|
+
"repository": {
|
|
47
|
+
"type": "git",
|
|
48
|
+
"url": "git+https://devanshu4@bitbucket.org/infilect-front-end-team/infiviz-shots-react-sdk.git.git"
|
|
49
|
+
},
|
|
50
|
+
"author": "devanshuvaidya <devanshu@infilect.com> (https://www.infilect.com/)",
|
|
51
|
+
"license": "MIT",
|
|
52
|
+
"bugs": {
|
|
53
|
+
"url": "https://devanshu4@bitbucket.org/infilect-front-end-team/infiviz-shots-react-sdk.git/issues"
|
|
54
|
+
},
|
|
55
|
+
"homepage": "https://devanshu4@bitbucket.org/infilect-front-end-team/infiviz-shots-react-sdk.git#readme",
|
|
56
|
+
"publishConfig": {
|
|
57
|
+
"registry": "https://registry.npmjs.org/",
|
|
58
|
+
"access": "public"
|
|
59
|
+
},
|
|
60
|
+
"devDependencies": {
|
|
61
|
+
"@commitlint/config-conventional": "^19.6.0",
|
|
62
|
+
"@eslint/compat": "^1.2.7",
|
|
63
|
+
"@eslint/eslintrc": "^3.3.0",
|
|
64
|
+
"@eslint/js": "^9.22.0",
|
|
65
|
+
"@evilmartians/lefthook": "^1.5.0",
|
|
66
|
+
"@react-native-community/cli": "18.0.0",
|
|
67
|
+
"@react-native/eslint-config": "^0.78.0",
|
|
68
|
+
"@react-native/typescript-config": "^0.79.2",
|
|
69
|
+
"@release-it/conventional-changelog": "^9.0.2",
|
|
70
|
+
"@types/jest": "^29.5.5",
|
|
71
|
+
"@types/react": "^19.0.0",
|
|
72
|
+
"@yarnpkg/plugin-npm": "^3.1.1",
|
|
73
|
+
"commitlint": "^19.6.1",
|
|
74
|
+
"del-cli": "^5.1.0",
|
|
75
|
+
"eslint": "^9.22.0",
|
|
76
|
+
"eslint-config-prettier": "^10.1.1",
|
|
77
|
+
"eslint-plugin-prettier": "^5.2.3",
|
|
78
|
+
"jest": "^29.7.0",
|
|
79
|
+
"prettier": "^3.0.3",
|
|
80
|
+
"react": "19.0.0",
|
|
81
|
+
"react-native": "0.79.1",
|
|
82
|
+
"react-native-builder-bob": "^0.40.6",
|
|
83
|
+
"release-it": "^17.10.0",
|
|
84
|
+
"turbo": "^1.10.7",
|
|
85
|
+
"typescript": "^5.2.2"
|
|
86
|
+
},
|
|
87
|
+
"peerDependencies": {
|
|
88
|
+
"react": "*",
|
|
89
|
+
"react-native": "*",
|
|
90
|
+
"react-native-safe-area-context": ">=4.0.0",
|
|
91
|
+
"react-native-screens": "^3.20.0"
|
|
92
|
+
},
|
|
93
|
+
"workspaces": [
|
|
94
|
+
"."
|
|
95
|
+
],
|
|
96
|
+
"packageManager": "yarn@3.6.1",
|
|
97
|
+
"jest": {
|
|
98
|
+
"preset": "react-native",
|
|
99
|
+
"modulePathIgnorePatterns": [
|
|
100
|
+
"<rootDir>/example/node_modules",
|
|
101
|
+
"<rootDir>/lib/"
|
|
102
|
+
]
|
|
103
|
+
},
|
|
104
|
+
"commitlint": {
|
|
105
|
+
"extends": [
|
|
106
|
+
"@commitlint/config-conventional"
|
|
107
|
+
]
|
|
108
|
+
},
|
|
109
|
+
"release-it": {
|
|
110
|
+
"git": {
|
|
111
|
+
"commitMessage": "chore: release ${version}",
|
|
112
|
+
"tagName": "v${version}"
|
|
113
|
+
},
|
|
114
|
+
"npm": {
|
|
115
|
+
"publish": true
|
|
116
|
+
},
|
|
117
|
+
"github": {
|
|
118
|
+
"release": true
|
|
119
|
+
},
|
|
120
|
+
"plugins": {
|
|
121
|
+
"@release-it/conventional-changelog": {
|
|
122
|
+
"preset": {
|
|
123
|
+
"name": "angular"
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
"prettier": {
|
|
129
|
+
"quoteProps": "consistent",
|
|
130
|
+
"singleQuote": true,
|
|
131
|
+
"tabWidth": 2,
|
|
132
|
+
"trailingComma": "es5",
|
|
133
|
+
"useTabs": false
|
|
134
|
+
},
|
|
135
|
+
"react-native-builder-bob": {
|
|
136
|
+
"source": "src",
|
|
137
|
+
"output": "lib",
|
|
138
|
+
"targets": [
|
|
139
|
+
[
|
|
140
|
+
"module",
|
|
141
|
+
{
|
|
142
|
+
"esm": true
|
|
143
|
+
}
|
|
144
|
+
],
|
|
145
|
+
[
|
|
146
|
+
"typescript",
|
|
147
|
+
{
|
|
148
|
+
"project": "tsconfig.build.json"
|
|
149
|
+
}
|
|
150
|
+
]
|
|
151
|
+
]
|
|
152
|
+
},
|
|
153
|
+
"dependencies": {
|
|
154
|
+
}
|
|
155
|
+
}
|