@infilectorg/infiviz-shots-react-sdk 1.1.2 → 1.1.4

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.
Files changed (21) hide show
  1. package/android/src/main/java/com/infilect/infivizshotsreactsdk/InfivizShotsReactSdkModule.kt +23 -2
  2. package/ios/InfivizShotSDK.xcframework/Info.plist +5 -5
  3. package/ios/InfivizShotSDK.xcframework/ios-arm64/InfivizShotSDK.framework/Assets.car +0 -0
  4. package/ios/InfivizShotSDK.xcframework/ios-arm64/InfivizShotSDK.framework/InfivizShotSDK +0 -0
  5. package/ios/InfivizShotSDK.xcframework/ios-arm64/InfivizShotSDK.framework/Modules/InfivizShotSDK.swiftmodule/arm64-apple-ios.abi.json +44 -44
  6. package/ios/InfivizShotSDK.xcframework/ios-arm64/InfivizShotSDK.framework/Modules/InfivizShotSDK.swiftmodule/arm64-apple-ios.swiftmodule +0 -0
  7. package/ios/InfivizShotSDK.xcframework/ios-arm64/InfivizShotSDK.framework/shotsSDK.storyboardc/xUL-ol-gRQ-view-6A8-mO-Rhi.nib +0 -0
  8. package/ios/InfivizShotSDK.xcframework/ios-arm64_x86_64-simulator/InfivizShotSDK.framework/InfivizShotSDK +0 -0
  9. package/ios/InfivizShotSDK.xcframework/ios-arm64_x86_64-simulator/InfivizShotSDK.framework/Modules/InfivizShotSDK.swiftmodule/arm64-apple-ios-simulator.abi.json +44 -44
  10. package/ios/InfivizShotSDK.xcframework/ios-arm64_x86_64-simulator/InfivizShotSDK.framework/Modules/InfivizShotSDK.swiftmodule/arm64-apple-ios-simulator.swiftmodule +0 -0
  11. package/ios/InfivizShotSDK.xcframework/ios-arm64_x86_64-simulator/InfivizShotSDK.framework/Modules/InfivizShotSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json +44 -44
  12. package/ios/InfivizShotSDK.xcframework/ios-arm64_x86_64-simulator/InfivizShotSDK.framework/Modules/InfivizShotSDK.swiftmodule/x86_64-apple-ios-simulator.swiftmodule +0 -0
  13. package/ios/InfivizShotSDK.xcframework/ios-arm64_x86_64-simulator/InfivizShotSDK.framework/shotsSDK.storyboardc/xUL-ol-gRQ-view-6A8-mO-Rhi.nib +0 -0
  14. package/ios/InfivizShotsReactSdk.m +2 -1
  15. package/ios/InfivizShotsReactSdk.swift +78 -40
  16. package/lib/module/NativeInfivizShotsReactSdk.js.map +1 -1
  17. package/lib/module/index.js +4 -4
  18. package/lib/module/index.js.map +1 -1
  19. package/package.json +1 -1
  20. package/src/NativeInfivizShotsReactSdk.tsx +2 -1
  21. package/src/index.tsx +4 -4
@@ -201,12 +201,33 @@ class InfivizShotsReactSdkModule(private val reactContext: ReactApplicationConte
201
201
  fun retakeImage(
202
202
  temporarySessionId: String,
203
203
  imageURI: String,
204
+ metaData: ReadableMap,
204
205
  promise: Promise
205
206
  ) {
207
+ // Convert ReadableMap to Map<String, Any> for metadata
208
+ val metadataMap: Map<String, Any> = metaData.let { map ->
209
+ val result = mutableMapOf<String, Any>()
210
+ val iterator = map.entryIterator
211
+ while (iterator.hasNextKey()) {
212
+ val key = iterator.nextKey()
213
+ val value = map.getDynamic(key)
214
+ when {
215
+ value.isNull -> result[key] = null
216
+ value.isBoolean -> result[key] = value.asBoolean()
217
+ value.isNumber -> result[key] = value.asDouble()
218
+ value.isString -> result[key] = value.asString()
219
+ else -> result[key] = value.toString()
220
+ }
221
+ }
222
+ result
223
+ }
224
+
206
225
  InfiVizShotsSDK.retakeImage(
207
226
  currentActivity!!,
208
227
  temporarySessionId,
209
- imageURI, object : SDKCallback<String> {
228
+ imageURI,
229
+ metadataMap,
230
+ object : SDKCallback<String> {
210
231
  override fun onSuccess(response: String) {
211
232
  promise.resolve(response)
212
233
  }
@@ -220,8 +241,8 @@ class InfivizShotsReactSdkModule(private val reactContext: ReactApplicationConte
220
241
 
221
242
  @ReactMethod
222
243
  fun deletePhoto(
223
- temporarySessionId: String,
224
244
  imageURI: String,
245
+ temporarySessionId: String,
225
246
  promise: Promise
226
247
  ) {
227
248
  InfiVizShotsSDK.deleteImage(
@@ -8,32 +8,32 @@
8
8
  <key>BinaryPath</key>
9
9
  <string>InfivizShotSDK.framework/InfivizShotSDK</string>
10
10
  <key>LibraryIdentifier</key>
11
- <string>ios-arm64</string>
11
+ <string>ios-arm64_x86_64-simulator</string>
12
12
  <key>LibraryPath</key>
13
13
  <string>InfivizShotSDK.framework</string>
14
14
  <key>SupportedArchitectures</key>
15
15
  <array>
16
16
  <string>arm64</string>
17
+ <string>x86_64</string>
17
18
  </array>
18
19
  <key>SupportedPlatform</key>
19
20
  <string>ios</string>
21
+ <key>SupportedPlatformVariant</key>
22
+ <string>simulator</string>
20
23
  </dict>
21
24
  <dict>
22
25
  <key>BinaryPath</key>
23
26
  <string>InfivizShotSDK.framework/InfivizShotSDK</string>
24
27
  <key>LibraryIdentifier</key>
25
- <string>ios-arm64_x86_64-simulator</string>
28
+ <string>ios-arm64</string>
26
29
  <key>LibraryPath</key>
27
30
  <string>InfivizShotSDK.framework</string>
28
31
  <key>SupportedArchitectures</key>
29
32
  <array>
30
33
  <string>arm64</string>
31
- <string>x86_64</string>
32
34
  </array>
33
35
  <key>SupportedPlatform</key>
34
36
  <string>ios</string>
35
- <key>SupportedPlatformVariant</key>
36
- <string>simulator</string>
37
37
  </dict>
38
38
  </array>
39
39
  <key>CFBundlePackageType</key>
@@ -79437,286 +79437,286 @@
79437
79437
  "filePath": "\/Users\/manish\/Documents\/Workspace\/infiviz-shots-common-ios\/Utilities\/AppCommon\/AppCommon.swift",
79438
79438
  "kind": "BooleanLiteral",
79439
79439
  "offset": 671,
79440
- "length": 5,
79441
- "value": "false"
79440
+ "length": 4,
79441
+ "value": "true"
79442
79442
  },
79443
79443
  {
79444
79444
  "filePath": "\/Users\/manish\/Documents\/Workspace\/infiviz-shots-common-ios\/Utilities\/AppCommon\/AppCommon.swift",
79445
79445
  "kind": "BooleanLiteral",
79446
- "offset": 727,
79446
+ "offset": 726,
79447
79447
  "length": 5,
79448
79448
  "value": "false"
79449
79449
  },
79450
79450
  {
79451
79451
  "filePath": "\/Users\/manish\/Documents\/Workspace\/infiviz-shots-common-ios\/Utilities\/AppCommon\/AppCommon.swift",
79452
79452
  "kind": "StringLiteral",
79453
- "offset": 781,
79453
+ "offset": 780,
79454
79454
  "length": 18,
79455
79455
  "value": "\"ccf5dae641cb66a4\""
79456
79456
  },
79457
79457
  {
79458
79458
  "filePath": "\/Users\/manish\/Documents\/Workspace\/infiviz-shots-common-ios\/Utilities\/AppCommon\/AppCommon.swift",
79459
79459
  "kind": "StringLiteral",
79460
- "offset": 828,
79460
+ "offset": 827,
79461
79461
  "length": 13,
79462
79462
  "value": "\"dd MMM,yyyy\""
79463
79463
  },
79464
79464
  {
79465
79465
  "filePath": "\/Users\/manish\/Documents\/Workspace\/infiviz-shots-common-ios\/Utilities\/AppCommon\/AppCommon.swift",
79466
79466
  "kind": "Dictionary",
79467
- "offset": 906,
79467
+ "offset": 905,
79468
79468
  "length": 3,
79469
79469
  "value": "[]"
79470
79470
  },
79471
79471
  {
79472
79472
  "filePath": "\/Users\/manish\/Documents\/Workspace\/infiviz-shots-common-ios\/Utilities\/AppCommon\/AppCommon.swift",
79473
79473
  "kind": "FloatLiteral",
79474
- "offset": 954,
79474
+ "offset": 953,
79475
79475
  "length": 3,
79476
79476
  "value": "0.0"
79477
79477
  },
79478
79478
  {
79479
79479
  "filePath": "\/Users\/manish\/Documents\/Workspace\/infiviz-shots-common-ios\/Utilities\/AppCommon\/AppCommon.swift",
79480
79480
  "kind": "FloatLiteral",
79481
- "offset": 1011,
79481
+ "offset": 1010,
79482
79482
  "length": 3,
79483
79483
  "value": "0.0"
79484
79484
  },
79485
79485
  {
79486
79486
  "filePath": "\/Users\/manish\/Documents\/Workspace\/infiviz-shots-common-ios\/Utilities\/AppCommon\/AppCommon.swift",
79487
79487
  "kind": "FloatLiteral",
79488
- "offset": 3422,
79488
+ "offset": 3421,
79489
79489
  "length": 3,
79490
79490
  "value": "1.0"
79491
79491
  },
79492
79492
  {
79493
79493
  "filePath": "\/Users\/manish\/Documents\/Workspace\/infiviz-shots-common-ios\/Utilities\/AppCommon\/AppCommon.swift",
79494
79494
  "kind": "FloatLiteral",
79495
- "offset": 4740,
79495
+ "offset": 4739,
79496
79496
  "length": 3,
79497
79497
  "value": "1.0"
79498
79498
  },
79499
79499
  {
79500
79500
  "filePath": "\/Users\/manish\/Documents\/Workspace\/infiviz-shots-common-ios\/Utilities\/AppCommon\/AppCommon.swift",
79501
79501
  "kind": "StringLiteral",
79502
- "offset": 16999,
79502
+ "offset": 16998,
79503
79503
  "length": 20,
79504
79504
  "value": "\"Internet Connected\""
79505
79505
  },
79506
79506
  {
79507
79507
  "filePath": "\/Users\/manish\/Documents\/Workspace\/infiviz-shots-common-ios\/Utilities\/AppCommon\/AppCommon.swift",
79508
79508
  "kind": "StringLiteral",
79509
- "offset": 17050,
79509
+ "offset": 17049,
79510
79510
  "length": 26,
79511
79511
  "value": "\"Slow Internet Connection\""
79512
79512
  },
79513
79513
  {
79514
79514
  "filePath": "\/Users\/manish\/Documents\/Workspace\/infiviz-shots-common-ios\/Utilities\/AppCommon\/AppCommon.swift",
79515
79515
  "kind": "StringLiteral",
79516
- "offset": 17107,
79516
+ "offset": 17106,
79517
79517
  "length": 26,
79518
79518
  "value": "\"Poor Internet Connection\""
79519
79519
  },
79520
79520
  {
79521
79521
  "filePath": "\/Users\/manish\/Documents\/Workspace\/infiviz-shots-common-ios\/Utilities\/AppCommon\/AppCommon.swift",
79522
79522
  "kind": "StringLiteral",
79523
- "offset": 17162,
79523
+ "offset": 17161,
79524
79524
  "length": 24,
79525
79525
  "value": "\"No Internet Connection\""
79526
79526
  },
79527
79527
  {
79528
79528
  "filePath": "\/Users\/manish\/Documents\/Workspace\/infiviz-shots-common-ios\/Utilities\/AppCommon\/AppCommon.swift",
79529
79529
  "kind": "StringLiteral",
79530
- "offset": 17220,
79530
+ "offset": 17219,
79531
79531
  "length": 64,
79532
79532
  "value": "\"The upload operation may take significantly longer than usual.\""
79533
79533
  },
79534
79534
  {
79535
79535
  "filePath": "\/Users\/manish\/Documents\/Workspace\/infiviz-shots-common-ios\/Utilities\/AppCommon\/AppCommon.swift",
79536
79536
  "kind": "StringLiteral",
79537
- "offset": 17351,
79537
+ "offset": 17350,
79538
79538
  "length": 69,
79539
79539
  "value": "\"Please click on the notification to trigger auto upload of sessions\""
79540
79540
  },
79541
79541
  {
79542
79542
  "filePath": "\/Users\/manish\/Documents\/Workspace\/infiviz-shots-common-ios\/Utilities\/AppCommon\/AppCommon.swift",
79543
79543
  "kind": "StringLiteral",
79544
- "offset": 19145,
79544
+ "offset": 19144,
79545
79545
  "length": 10,
79546
79546
  "value": "\"fcmToken\""
79547
79547
  },
79548
79548
  {
79549
79549
  "filePath": "\/Users\/manish\/Documents\/Workspace\/infiviz-shots-common-ios\/Utilities\/AppCommon\/AppCommon.swift",
79550
79550
  "kind": "StringLiteral",
79551
- "offset": 22215,
79551
+ "offset": 22214,
79552
79552
  "length": 26,
79553
79553
  "value": "\"didPerformShelvingAction\""
79554
79554
  },
79555
79555
  {
79556
79556
  "filePath": "\/Users\/manish\/Documents\/Workspace\/infiviz-shots-common-ios\/Utilities\/AppCommon\/AppCommon.swift",
79557
79557
  "kind": "StringLiteral",
79558
- "offset": 22271,
79558
+ "offset": 22270,
79559
79559
  "length": 13,
79560
79560
  "value": "\"syncStopped\""
79561
79561
  },
79562
79562
  {
79563
79563
  "filePath": "\/Users\/manish\/Documents\/Workspace\/infiviz-shots-common-ios\/Utilities\/AppCommon\/AppCommon.swift",
79564
79564
  "kind": "StringLiteral",
79565
- "offset": 22314,
79565
+ "offset": 22313,
79566
79566
  "length": 13,
79567
79567
  "value": "\"syncStarted\""
79568
79568
  },
79569
79569
  {
79570
79570
  "filePath": "\/Users\/manish\/Documents\/Workspace\/infiviz-shots-common-ios\/Utilities\/AppCommon\/AppCommon.swift",
79571
79571
  "kind": "StringLiteral",
79572
- "offset": 22368,
79572
+ "offset": 22367,
79573
79573
  "length": 24,
79574
79574
  "value": "\"syncImageStatusUpdated\""
79575
79575
  },
79576
79576
  {
79577
79577
  "filePath": "\/Users\/manish\/Documents\/Workspace\/infiviz-shots-common-ios\/Utilities\/AppCommon\/AppCommon.swift",
79578
79578
  "kind": "StringLiteral",
79579
- "offset": 22429,
79579
+ "offset": 22428,
79580
79580
  "length": 20,
79581
79581
  "value": "\"notificationdenied\""
79582
79582
  },
79583
79583
  {
79584
79584
  "filePath": "\/Users\/manish\/Documents\/Workspace\/infiviz-shots-common-ios\/Utilities\/AppCommon\/AppCommon.swift",
79585
79585
  "kind": "StringLiteral",
79586
- "offset": 22488,
79586
+ "offset": 22487,
79587
79587
  "length": 22,
79588
79588
  "value": "\"notificationaccepted\""
79589
79589
  },
79590
79590
  {
79591
79591
  "filePath": "\/Users\/manish\/Documents\/Workspace\/infiviz-shots-common-ios\/Utilities\/AppCommon\/AppCommon.swift",
79592
79592
  "kind": "StringLiteral",
79593
- "offset": 22551,
79593
+ "offset": 22550,
79594
79594
  "length": 12,
79595
79595
  "value": "\"daychanged\""
79596
79596
  },
79597
79597
  {
79598
79598
  "filePath": "\/Users\/manish\/Documents\/Workspace\/infiviz-shots-common-ios\/Utilities\/AppCommon\/AppCommon.swift",
79599
79599
  "kind": "StringLiteral",
79600
- "offset": 22602,
79600
+ "offset": 22601,
79601
79601
  "length": 22,
79602
79602
  "value": "\"updatedSyncSessionID\""
79603
79603
  },
79604
79604
  {
79605
79605
  "filePath": "\/Users\/manish\/Documents\/Workspace\/infiviz-shots-common-ios\/Utilities\/AppCommon\/AppCommon.swift",
79606
79606
  "kind": "StringLiteral",
79607
- "offset": 22659,
79607
+ "offset": 22658,
79608
79608
  "length": 19,
79609
79609
  "value": "\"processingSession\""
79610
79610
  },
79611
79611
  {
79612
79612
  "filePath": "\/Users\/manish\/Documents\/Workspace\/infiviz-shots-common-ios\/Utilities\/AppCommon\/AppCommon.swift",
79613
79613
  "kind": "StringLiteral",
79614
- "offset": 22724,
79614
+ "offset": 22723,
79615
79615
  "length": 29,
79616
79616
  "value": "\"realtimeSessionNotification\""
79617
79617
  },
79618
79618
  {
79619
79619
  "filePath": "\/Users\/manish\/Documents\/Workspace\/infiviz-shots-common-ios\/Utilities\/AppCommon\/AppCommon.swift",
79620
79620
  "kind": "StringLiteral",
79621
- "offset": 22784,
79621
+ "offset": 22783,
79622
79622
  "length": 14,
79623
79623
  "value": "\"updateStores\""
79624
79624
  },
79625
79625
  {
79626
79626
  "filePath": "\/Users\/manish\/Documents\/Workspace\/infiviz-shots-common-ios\/Utilities\/AppCommon\/AppCommon.swift",
79627
79627
  "kind": "StringLiteral",
79628
- "offset": 22830,
79628
+ "offset": 22829,
79629
79629
  "length": 15,
79630
79630
  "value": "\"downloadModel\""
79631
79631
  },
79632
79632
  {
79633
79633
  "filePath": "\/Users\/manish\/Documents\/Workspace\/infiviz-shots-common-ios\/Utilities\/AppCommon\/AppCommon.swift",
79634
79634
  "kind": "StringLiteral",
79635
- "offset": 22875,
79635
+ "offset": 22874,
79636
79636
  "length": 44,
79637
79637
  "value": "\"Real-time Results received. Click to View!\""
79638
79638
  },
79639
79639
  {
79640
79640
  "filePath": "\/Users\/manish\/Documents\/Workspace\/infiviz-shots-common-ios\/Utilities\/AppCommon\/AppCommon.swift",
79641
79641
  "kind": "StringLiteral",
79642
- "offset": 22953,
79642
+ "offset": 22952,
79643
79643
  "length": 17,
79644
79644
  "value": "\"updateTimeSpent\""
79645
79645
  },
79646
79646
  {
79647
79647
  "filePath": "\/Users\/manish\/Documents\/Workspace\/infiviz-shots-common-ios\/Utilities\/AppCommon\/AppCommon.swift",
79648
79648
  "kind": "StringLiteral",
79649
- "offset": 23008,
79649
+ "offset": 23007,
79650
79650
  "length": 21,
79651
79651
  "value": "\"reloadTableOnSubmit\""
79652
79652
  },
79653
79653
  {
79654
79654
  "filePath": "\/Users\/manish\/Documents\/Workspace\/infiviz-shots-common-ios\/Utilities\/AppCommon\/AppCommon.swift",
79655
79655
  "kind": "StringLiteral",
79656
- "offset": 23061,
79656
+ "offset": 23060,
79657
79657
  "length": 15,
79658
79658
  "value": "\"addDemoImages\""
79659
79659
  },
79660
79660
  {
79661
79661
  "filePath": "\/Users\/manish\/Documents\/Workspace\/infiviz-shots-common-ios\/Utilities\/AppCommon\/AppCommon.swift",
79662
79662
  "kind": "StringLiteral",
79663
- "offset": 23113,
79663
+ "offset": 23112,
79664
79664
  "length": 20,
79665
79665
  "value": "\"langSupportRemoved\""
79666
79666
  },
79667
79667
  {
79668
79668
  "filePath": "\/Users\/manish\/Documents\/Workspace\/infiviz-shots-common-ios\/Utilities\/AppCommon\/AppCommon.swift",
79669
79669
  "kind": "StringLiteral",
79670
- "offset": 23161,
79670
+ "offset": 23160,
79671
79671
  "length": 11,
79672
79672
  "value": "\"refreshUI\""
79673
79673
  },
79674
79674
  {
79675
79675
  "filePath": "\/Users\/manish\/Documents\/Workspace\/infiviz-shots-common-ios\/Utilities\/AppCommon\/AppCommon.swift",
79676
79676
  "kind": "StringLiteral",
79677
- "offset": 23286,
79677
+ "offset": 23285,
79678
79678
  "length": 9,
79679
79679
  "value": "\"actions\""
79680
79680
  },
79681
79681
  {
79682
79682
  "filePath": "\/Users\/manish\/Documents\/Workspace\/infiviz-shots-common-ios\/Utilities\/AppCommon\/AppCommon.swift",
79683
79683
  "kind": "StringLiteral",
79684
- "offset": 23354,
79684
+ "offset": 23353,
79685
79685
  "length": 23,
79686
79686
  "value": "\"ActionsGeneratedEvent\""
79687
79687
  },
79688
79688
  {
79689
79689
  "filePath": "\/Users\/manish\/Documents\/Workspace\/infiviz-shots-common-ios\/Utilities\/AppCommon\/AppCommon.swift",
79690
79690
  "kind": "StringLiteral",
79691
- "offset": 23441,
79691
+ "offset": 23440,
79692
79692
  "length": 28,
79693
79693
  "value": "\"SessionRealTimeResultEvent\""
79694
79694
  },
79695
79695
  {
79696
79696
  "filePath": "\/Users\/manish\/Documents\/Workspace\/infiviz-shots-common-ios\/Utilities\/AppCommon\/AppCommon.swift",
79697
79697
  "kind": "StringLiteral",
79698
- "offset": 23626,
79698
+ "offset": 23625,
79699
79699
  "length": 18,
79700
79700
  "value": "\"authorizationKey\""
79701
79701
  },
79702
79702
  {
79703
79703
  "filePath": "\/Users\/manish\/Documents\/Workspace\/infiviz-shots-common-ios\/Utilities\/AppCommon\/AppCommon.swift",
79704
79704
  "kind": "StringLiteral",
79705
- "offset": 23673,
79705
+ "offset": 23672,
79706
79706
  "length": 12,
79707
79707
  "value": "\"photoWidth\""
79708
79708
  },
79709
79709
  {
79710
79710
  "filePath": "\/Users\/manish\/Documents\/Workspace\/infiviz-shots-common-ios\/Utilities\/AppCommon\/AppCommon.swift",
79711
79711
  "kind": "StringLiteral",
79712
- "offset": 23715,
79712
+ "offset": 23714,
79713
79713
  "length": 13,
79714
79714
  "value": "\"photoHeight\""
79715
79715
  },
79716
79716
  {
79717
79717
  "filePath": "\/Users\/manish\/Documents\/Workspace\/infiviz-shots-common-ios\/Utilities\/AppCommon\/AppCommon.swift",
79718
79718
  "kind": "StringLiteral",
79719
- "offset": 23820,
79719
+ "offset": 23819,
79720
79720
  "length": 20,
79721
79721
  "value": "\"shots_app_workflow\""
79722
79722
  },
@@ -82768,14 +82768,14 @@
82768
82768
  {
82769
82769
  "filePath": "\/Users\/manish\/Documents\/Workspace\/infiviz-shots-common-ios\/Module\/Camera\/MainInteractor\/InfilectSDKCameraActivityForResult.swift",
82770
82770
  "kind": "BooleanLiteral",
82771
- "offset": 13373,
82771
+ "offset": 13082,
82772
82772
  "length": 5,
82773
82773
  "value": "false"
82774
82774
  },
82775
82775
  {
82776
82776
  "filePath": "\/Users\/manish\/Documents\/Workspace\/infiviz-shots-common-ios\/Module\/Camera\/MainInteractor\/InfilectSDKCameraActivityForResult.swift",
82777
82777
  "kind": "BooleanLiteral",
82778
- "offset": 13450,
82778
+ "offset": 13159,
82779
82779
  "length": 5,
82780
82780
  "value": "false"
82781
82781
  },