@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.
- package/android/build.gradle +1 -1
- package/android/src/main/java/io/velocitycareerlabs/reactnative/utlis/Converter.kt +2 -2
- package/lib/typescript/api/entities/VCLPushDelegate.d.ts +7 -1
- package/package.json +1 -1
- package/src/api/entities/VCLPushDelegate.ts +7 -1
- package/vcl-react-native.podspec +1 -1
package/android/build.gradle
CHANGED
|
@@ -366,8 +366,8 @@ object Converter {
|
|
|
366
366
|
}
|
|
367
367
|
|
|
368
368
|
fun mapToPushDelegate(pushDelegateMap: ReadableMap?): VCLPushDelegate? {
|
|
369
|
-
val pushUrl = pushDelegateMap?.getStringOpt(
|
|
370
|
-
val pushToken = pushDelegateMap?.getStringOpt(
|
|
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
|
-
|
|
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
|
@@ -6,6 +6,12 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
export interface VCLPushDelegate {
|
|
9
|
-
|
|
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
|
}
|
package/vcl-react-native.podspec
CHANGED