react-native-netmera 1.6.4 → 1.7.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/README.md CHANGED
@@ -336,7 +336,18 @@ const updateUser = () => {
336
336
  user.surname = <surname>;
337
337
  user.msisdn = <msisdn>;
338
338
  user.gender = <gender>;
339
+
340
+ // User update async
341
+ Netmera.updateUser(user)
342
+
343
+ // User update sync
339
344
  Netmera.updateUser(user)
345
+ .then(() => {
346
+ console.log('User updated successfully!');
347
+ })
348
+ .catch(error => {
349
+ console.log(error.code, error.message);
350
+ });
340
351
  }
341
352
  ```
342
353
 
@@ -4,7 +4,7 @@ android {
4
4
  compileSdk 33
5
5
 
6
6
  defaultConfig {
7
- minSdkVersion 16
7
+ minSdkVersion 21
8
8
  targetSdkVersion 33
9
9
  versionCode 1
10
10
  versionName "1.0"
@@ -15,8 +15,8 @@ android {
15
15
  }
16
16
 
17
17
  dependencies {
18
- implementation 'com.netmera:nmcore:3.11.5'
19
- implementation 'com.netmera:nmfcm:3.11.0'
18
+ implementation 'com.netmera:nmcore:3.12.0'
19
+ implementation 'com.netmera:nmfcm:3.12.0'
20
20
  implementation 'com.netmera:nmhms:3.11.0'
21
21
  implementation 'com.facebook.react:react-native:+'
22
22
  }
@@ -23,7 +23,7 @@ public class RNNetmera {
23
23
  static void setNetmeraHeaders() {
24
24
  ContentValues headerValues = new ContentValues();
25
25
  headerValues.put("X-netmera-framework", "react");
26
- headerValues.put("X-netmera-frameworkV", "1.6.4");
26
+ headerValues.put("X-netmera-frameworkV", "1.7.0");
27
27
  Netmera.setNetmeraHeaders(headerValues);
28
28
  }
29
29
 
package/ios/RNNetmera.m CHANGED
@@ -55,7 +55,7 @@ NSString *const ERROR_MESSAGE_UPDATE_USER = @"Error occurred while updating user
55
55
 
56
56
  + (void)setNetmeraHeaders {
57
57
  [Netmera setFramework:@"react"];
58
- [Netmera setFrameworkVersion:@"1.6.4"];
58
+ [Netmera setFrameworkVersion:@"1.7.0"];
59
59
  }
60
60
 
61
61
  + (void)setPushDelegate:(NSObject<NetmeraPushDelegate> *)delegate {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-netmera",
3
- "version": "1.6.4",
3
+ "version": "1.7.0",
4
4
  "description": "Netmera React Native SDK",
5
5
  "main": "index.ts",
6
6
  "author": "netmera",