react-native-risk-sdk 1.4.38 → 1.5.0

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "react-native-risk-sdk",
3
3
  "title": "React Native Risk Sdk",
4
- "version": "1.4.38",
4
+ "version": "1.5.0",
5
5
  "description": "A Wrapper around the Risk Android SDK",
6
6
  "main": "index.js",
7
7
  "scripts": {
@@ -2,9 +2,20 @@ require "json"
2
2
 
3
3
  package = JSON.parse(File.read(File.join(__dir__, "package.json")))
4
4
 
5
+ # Method to load and parse the .env file
6
+ env_vars = {}
7
+ File.readlines('../../ios/.xcode.env').each do |line|
8
+ next if line.start_with?('#') || line.strip.empty?
9
+ key, value = line.strip.split('=', 2)
10
+ env_vars[key] = value
11
+ end
12
+
13
+ # Load the environment variables from the xcode.env file
14
+ dc_version = env_vars['DC_SDK_VERSION']
15
+
5
16
  Pod::Spec.new do |s|
6
17
  s.name = "react-native-risk-sdk"
7
- s.version = '0.4.0'
18
+ s.version = '0.4.2'
8
19
  s.summary = 'Wrapper around DeviceConnect IOS SDK'
9
20
  s.homepage = 'https://cocoapods.org/pods/RiskManager'
10
21
  s.license = package["license"]
@@ -16,7 +27,7 @@ Pod::Spec.new do |s|
16
27
  s.requires_arc = true
17
28
 
18
29
  s.dependency "React"
19
- s.dependency 'RiskManager', '0.2.7'
30
+ s.dependency 'RiskManager', dc_version
20
31
 
21
32
  end
22
33