scandit-react-native-datacapture-core 6.21.1 → 6.22.0-beta.1

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.
@@ -39,11 +39,11 @@ class RNTSDCDataCaptureViewManager: RCTViewManager, DeserializationLifeCycleObse
39
39
  }
40
40
 
41
41
  if dcView.superview != nil && dcView.superview == container {
42
- // if attached to the same container do nothing. Removing and adding
43
- // it again might trigger something in the DataCaptureView that we don't
44
- // want. (overlay re-drawn, black screen, etc.)
45
- return
46
- }
42
+ // if attached to the same container do nothing. Removing and adding
43
+ // it again might trigger something in the DataCaptureView that we don't
44
+ // want. (overlay re-drawn, black screen, etc.)
45
+ return
46
+ }
47
47
 
48
48
  if dcView.superview != nil {
49
49
  dcView.removeFromSuperview()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "scandit-react-native-datacapture-core",
3
- "version": "6.21.1",
3
+ "version": "6.22.0-beta.1",
4
4
  "description": "Scandit Data Capture SDK for React Native",
5
5
  "homepage": "https://github.com/Scandit/scandit-react-native-datacapture-core",
6
6
  "main": "dist/index.js",
@@ -29,7 +29,7 @@
29
29
  },
30
30
  "devDependencies": {
31
31
  "@types/react-native": ">=0.60.0-rc.0 <1.0.x",
32
- "tslint": "^6.1.2",
32
+ "tslint": "6.1.2",
33
33
  "typescript": "4.9.5",
34
34
  "rollup": "3.21.6",
35
35
  "@rollup/plugin-node-resolve": "15.0.2",
@@ -37,6 +37,6 @@
37
37
  "@rollup/plugin-commonjs": "24.1.0"
38
38
  },
39
39
  "dependencies": {
40
- "scandit-datacapture-frameworks-core": "6.21.1"
40
+ "scandit-datacapture-frameworks-core": "6.22.0-beta.1"
41
41
  }
42
42
  }
@@ -1,10 +1,11 @@
1
1
  require "json"
2
2
 
3
3
  package = JSON.parse(File.read(File.join(__dir__, "package.json")))
4
+ version = package["version"]
4
5
 
5
6
  Pod::Spec.new do |s|
6
7
  s.name = package["name"]
7
- s.version = package["version"]
8
+ s.version = version
8
9
  s.summary = package["description"]
9
10
  s.homepage = package["homepage"]
10
11
  s.license = package["license"]
@@ -17,6 +18,6 @@ Pod::Spec.new do |s|
17
18
  s.module_name = "ScanditDataCaptureCore"
18
19
  s.header_dir = "ScanditDataCaptureCore"
19
20
 
20
- s.dependency "scandit-datacapture-frameworks-core", '= 6.21.1'
21
+ s.dependency "scandit-datacapture-frameworks-core", '= 6.22.0-beta.1'
21
22
  s.dependency "React"
22
23
  end
@@ -1,7 +1,7 @@
1
1
  def podspec_path_for_pod(pod_name, current_path)
2
2
  # the current_path will be always the folder of the Podfile where this function is executed
3
3
  archive_dir = File.expand_path(File.join('..', '..', '..'))
4
- if File.exists?(File.join(archive_dir, 'frameworks'))
4
+ if File.exist?(File.join(archive_dir, 'frameworks'))
5
5
  File.join(archive_dir, 'frameworks', 'shared', 'ios', pod_name)
6
6
  else
7
7
  File.join(current_path.split('data-capture-sdk')[0], 'data-capture-sdk', 'frameworks', 'shared', 'ios', pod_name)