infobip-mobile-messaging-react-native-plugin 6.3.2 → 6.3.5

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.
@@ -51,6 +51,13 @@ android {
51
51
  versionName "1.0"
52
52
  }
53
53
 
54
+ buildTypes {
55
+ release {
56
+ // Applying ProGuard rules for application classes that will be serialized/deserialized over Gson
57
+ consumerProguardFiles 'infobip-mm-proguard-rules.pro'
58
+ }
59
+ }
60
+
54
61
  lintOptions {
55
62
  abortOnError false
56
63
  }
@@ -113,4 +120,4 @@ dependencies {
113
120
  if (withCryptorMigration.toBoolean()) {
114
121
  implementation "com.infobip:infobip-mobile-messaging-android-cryptor-migration:$mmVersion@aar"
115
122
  }
116
- }
123
+ }
@@ -408,8 +408,12 @@ public class ReactNativeMobileMessagingModule extends ReactContextBaseJavaModule
408
408
 
409
409
  private void unregisterBroadcastReceiver() {
410
410
  if (!broadcastReceiverRegistered) return;
411
- reactContext.unregisterReceiver(commonLibraryBroadcastReceiver);
412
- LocalBroadcastManager.getInstance(reactContext).unregisterReceiver(messageStorageReceiver);
411
+ try {
412
+ reactContext.unregisterReceiver(commonLibraryBroadcastReceiver);
413
+ LocalBroadcastManager.getInstance(reactContext).unregisterReceiver(messageStorageReceiver);
414
+ } catch(IllegalArgumentException e) {
415
+ Log.d(Utils.TAG, "Can't unregister broadcast receivers");
416
+ }
413
417
  broadcastReceiverRegistered = false;
414
418
  }
415
419
 
@@ -19,8 +19,8 @@ Pod::Spec.new do |s|
19
19
  s.requires_arc = true
20
20
 
21
21
  s.dependency "React-Core"
22
- s.dependency "MobileMessaging/Core", "10.3.1"
23
- s.dependency "MobileMessaging/Geofencing", "10.3.1"
24
- s.dependency "MobileMessaging/InAppChat", "10.3.1"
22
+ s.dependency "MobileMessaging/Core", "10.3.4"
23
+ s.dependency "MobileMessaging/Geofencing", "10.3.4"
24
+ s.dependency "MobileMessaging/InAppChat", "10.3.4"
25
25
 
26
26
  end
package/ios/Cartfile CHANGED
@@ -1 +1 @@
1
- github "infobip/mobile-messaging-sdk-ios" "10.3.1"
1
+ github "infobip/mobile-messaging-sdk-ios" "10.3.4"
@@ -1 +1 @@
1
- github "infobip/mobile-messaging-sdk-ios" "10.3.1"
1
+ github "infobip/mobile-messaging-sdk-ios" "10.3.4"
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "infobip-mobile-messaging-react-native-plugin",
3
3
  "title": "Infobip Mobile Messaging React Native Plugin",
4
- "version": "6.3.2",
4
+ "version": "6.3.5",
5
5
  "description": "Infobip Mobile Messaging React Native Plugin",
6
6
  "main": "index.js",
7
7
  "scripts": {