@sentiance-react-native/core 6.5.0 → 6.6.0-rc1

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.
@@ -1,10 +1,11 @@
1
1
  require 'json'
2
2
  package = JSON.parse(File.read(File.join(__dir__, './package.json')))
3
- sentiance_sdk_version = package['sdkVersions']['ios']['sentiance']
3
+ sentiance_sdk_package_version = package['sdkVersions']['ios']['sentiance']
4
+ sentiance_sdk_env_var_version = ENV["SENTIANCE_RN_IOS_SDK_VERSION"]
4
5
 
5
6
  Pod::Spec.new do |s|
6
7
  s.name = "RNSentianceCore"
7
- s.version = "6.5.0"
8
+ s.version = "6.6.0-rc1"
8
9
  s.summary = "RNSentianceCore"
9
10
  s.description = <<-DESC
10
11
  RNSentianceCore
@@ -20,5 +21,9 @@ Pod::Spec.new do |s|
20
21
  s.xcconfig = { 'FRAMEWORK_SEARCH_PATHS' => '${PODS_ROOT}/SENTSDK' }
21
22
 
22
23
  s.dependency "React"
23
- s.dependency "SENTSDK", sentiance_sdk_version
24
+
25
+ if sentiance_sdk_env_var_version.nil?
26
+ s.dependency "SENTSDK", sentiance_sdk_package_version
27
+ else
28
+ s.dependency "SENTSDK", sentiance_sdk_env_var_version
24
29
  end
@@ -13,5 +13,8 @@ apply from: "$coreProj.projectDir/package-json-reader.gradle"
13
13
 
14
14
  def packageJson = PackageJson.of(coreProj)
15
15
  ext.getSentianceSdkVersion = {
16
- return packageJson['sdkVersions']['android']['sentiance']
16
+ def envVarVersion = System.getenv("SENTIANCE_RN_ANDROID_SDK_VERSION")
17
+ def packageVersion = packageJson['sdkVersions']['android']['sentiance']
18
+
19
+ return envVarVersion ?: packageVersion
17
20
  }
@@ -232,7 +232,7 @@
232
232
  if (waypoint.isSpeedSet) {
233
233
  dict[@"speedInMps"] = @(waypoint.speedInMps);
234
234
  }
235
- if (waypoint.isSpeedLimitSet) {
235
+ if (waypoint.isSpeedLimitInfoSet) {
236
236
  dict[@"speedLimitInMps"] = @(waypoint.speedLimitInMps);
237
237
  }
238
238
  dict[@"hasUnlimitedSpeedLimit"] = @(waypoint.isSpeedLimitUnlimited);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentiance-react-native/core",
3
- "version": "6.5.0",
3
+ "version": "6.6.0-rc1",
4
4
  "description": "React Native Sentiance core library",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
@@ -29,10 +29,10 @@
29
29
  "targetSdk": 31,
30
30
  "compileSdk": 31,
31
31
  "buildTools": "30.0.3",
32
- "sentiance": "6.5.+"
32
+ "sentiance": "6.6.0-rc2"
33
33
  },
34
34
  "ios": {
35
- "sentiance": "~> 6.5.0"
35
+ "sentiance": "6.6.0-rc1"
36
36
  }
37
37
  }
38
38
  }