@velocitycareerlabs/vcl-react-native 1.2.0 → 1.2.3

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.
@@ -131,5 +131,5 @@ dependencies {
131
131
 
132
132
  // VCL:
133
133
  implementation "com.nimbusds:nimbus-jose-jwt:9.25.6"
134
- implementation "io.velocitycareerlabs:vcl:1.2.0"
134
+ implementation "io.velocitycareerlabs:vcl:1.2.3"
135
135
  }
@@ -366,8 +366,8 @@ object Converter {
366
366
  }
367
367
 
368
368
  fun mapToPushDelegate(pushDelegateMap: ReadableMap?): VCLPushDelegate? {
369
- val pushUrl = pushDelegateMap?.getStringOpt("pushUrl")
370
- val pushToken = pushDelegateMap?.getStringOpt("pushToken")
369
+ val pushUrl = pushDelegateMap?.getStringOpt(VCLPushDelegate.KeyPushUrl)
370
+ val pushToken = pushDelegateMap?.getStringOpt(VCLPushDelegate.KeyPushToken)
371
371
  return if (pushUrl != null && pushToken != null)
372
372
  VCLPushDelegate(
373
373
  pushUrl = pushUrl,
@@ -5,6 +5,12 @@
5
5
  * SPDX-License-Identifier: Apache-2.0
6
6
  */
7
7
  export interface VCLPushDelegate {
8
- pushToken: string;
8
+ /**
9
+ * the url of the endpoint that will send pushes to the device
10
+ */
9
11
  pushUrl: string;
12
+ /**
13
+ * the token to use for identifying the group of devices this device belongs to
14
+ */
15
+ pushToken: string;
10
16
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@velocitycareerlabs/vcl-react-native",
3
- "version": "1.2.0",
3
+ "version": "1.2.3",
4
4
  "description": "Velocity Career Labs React Native SDK",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -6,6 +6,12 @@
6
6
  */
7
7
 
8
8
  export interface VCLPushDelegate {
9
- pushToken: string;
9
+ /**
10
+ * the url of the endpoint that will send pushes to the device
11
+ */
10
12
  pushUrl: string;
13
+ /**
14
+ * the token to use for identifying the group of devices this device belongs to
15
+ */
16
+ pushToken: string;
11
17
  }
@@ -18,5 +18,5 @@ Pod::Spec.new do |s|
18
18
  s.swift_version = "5.0"
19
19
 
20
20
  s.dependency "React"
21
- s.dependency "VCL", "1.2.0"
21
+ s.dependency "VCL", "1.2.3"
22
22
  end