securiti-consent-sdk 1.136.0-3rc → 1.136.0-5rc

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.
@@ -17,7 +17,6 @@
17
17
 
18
18
  #include "JHybridConsentSDKSpec.hpp"
19
19
  #include "JFunc_void_bool.hpp"
20
- #include <NitroModules/JNISharedPtr.hpp>
21
20
  #include <NitroModules/DefaultConstructableObject.hpp>
22
21
 
23
22
  namespace margelo::nitro::securiticonsentsdk {
@@ -39,7 +38,7 @@ int initialize(JavaVM* vm) {
39
38
  static DefaultConstructableObject<JHybridConsentSDKSpec::javaobject> object("com/margelo/nitro/securiticonsentsdk/HybridConsentSDK");
40
39
  auto instance = object.create();
41
40
  auto globalRef = jni::make_global(instance);
42
- return JNISharedPtr::make_shared_from_jni<JHybridConsentSDKSpec>(globalRef);
41
+ return globalRef->cthis()->shared();
43
42
  }
44
43
  );
45
44
  });
@@ -357,6 +357,9 @@ namespace margelo::nitro::securiticonsentsdk::bridge::swift {
357
357
  }
358
358
  return keys;
359
359
  }
360
+ inline std::string get_std__unordered_map_std__string__std__string__value(const std__unordered_map_std__string__std__string_& map, const std::string& key) {
361
+ return map.at(key);
362
+ }
360
363
  inline void emplace_std__unordered_map_std__string__std__string_(std__unordered_map_std__string__std__string_& map, const std::string& key, const std::string& value) {
361
364
  map.emplace(key, value);
362
365
  }
@@ -888,7 +888,7 @@ public extension BannerConfig {
888
888
  var __dictionary = Dictionary<String, String>(minimumCapacity: __unwrapped.size())
889
889
  let __keys = bridge.get_std__unordered_map_std__string__std__string__keys(__unwrapped)
890
890
  for __key in __keys {
891
- let __value = __unwrapped[__key]!
891
+ let __value = bridge.get_std__unordered_map_std__string__std__string__value(__unwrapped, __key)
892
892
  __dictionary[String(__key)] = String(__value)
893
893
  }
894
894
  return __dictionary
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "securiti-consent-sdk",
3
- "version": "1.136.0-3rc",
3
+ "version": "1.136.0-5rc",
4
4
  "description": "A React Native Library for managing user consent preferences and compliance with privacy regulations. Integrates with Securiti's Consent Management Platform.",
5
5
  "main": "lib/index",
6
6
  "module": "lib/index",