securiti-consent-sdk 1.137.0-9rc → 1.137.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/NitroSecuritiConsentSdk.podspec +1 -1
- package/android/build.gradle +1 -1
- package/nitrogen/generated/.gitattributes +1 -1
- package/nitrogen/generated/android/NitroSecuritiConsentSdkOnLoad.cpp +3 -1
- package/nitrogen/generated/android/c++/JHybridConsentSDKSpec.cpp +2 -7
- package/nitrogen/generated/android/c++/JHybridConsentSDKSpec.hpp +0 -2
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/securiticonsentsdk/AppPermission.kt +0 -19
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/securiticonsentsdk/BannerConfig.kt +0 -65
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/securiticonsentsdk/CmpSDKOptions.kt +0 -23
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/securiticonsentsdk/CustomColors.kt +0 -17
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/securiticonsentsdk/Func_void_bool.kt +0 -1
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/securiticonsentsdk/PermissionConsent.kt +0 -7
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/securiticonsentsdk/PostConsentsRequest.kt +0 -25
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/securiticonsentsdk/Purpose.kt +0 -25
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/securiticonsentsdk/PurposeConsent.kt +0 -9
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/securiticonsentsdk/SDK.kt +0 -19
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/securiticonsentsdk/SettingsPrompt.kt +0 -11
- package/nitrogen/generated/ios/NitroSecuritiConsentSdk-Swift-Cxx-Bridge.cpp +13 -13
- package/nitrogen/generated/ios/NitroSecuritiConsentSdk-Swift-Cxx-Bridge.hpp +109 -172
- package/nitrogen/generated/ios/NitroSecuritiConsentSdk-Swift-Cxx-Umbrella.hpp +1 -2
- package/nitrogen/generated/ios/NitroSecuritiConsentSdkAutolinking.mm +1 -1
- package/nitrogen/generated/ios/NitroSecuritiConsentSdkAutolinking.swift +2 -2
- package/nitrogen/generated/ios/c++/HybridConsentSDKSpecSwift.hpp +2 -4
- package/nitrogen/generated/ios/swift/AppPermission.swift +6 -12
- package/nitrogen/generated/ios/swift/BannerConfig.swift +24 -47
- package/nitrogen/generated/ios/swift/CmpSDKOptions.swift +4 -8
- package/nitrogen/generated/ios/swift/CustomColors.swift +8 -16
- package/nitrogen/generated/ios/swift/Func_void_bool.swift +5 -6
- package/nitrogen/generated/ios/swift/Func_void_std__exception_ptr.swift +0 -1
- package/nitrogen/generated/ios/swift/Func_void_std__optional_BannerConfig_.swift +1 -3
- package/nitrogen/generated/ios/swift/Func_void_std__optional_SettingsPrompt_.swift +1 -3
- package/nitrogen/generated/ios/swift/Func_void_std__string.swift +0 -1
- package/nitrogen/generated/ios/swift/Func_void_std__vector_AppPermission_.swift +0 -1
- package/nitrogen/generated/ios/swift/Func_void_std__vector_Purpose_.swift +0 -1
- package/nitrogen/generated/ios/swift/Func_void_std__vector_SDK_.swift +0 -1
- package/nitrogen/generated/ios/swift/HybridConsentSDKSpec.swift +1 -2
- package/nitrogen/generated/ios/swift/HybridConsentSDKSpec_cxx.swift +6 -15
- package/nitrogen/generated/ios/swift/PostConsentsRequest.swift +2 -4
- package/nitrogen/generated/ios/swift/Purpose.swift +7 -14
- package/nitrogen/generated/ios/swift/SDK.swift +7 -14
- package/nitrogen/generated/ios/swift/SettingsPrompt.swift +5 -10
- package/nitrogen/generated/shared/c++/AppPermission.hpp +6 -4
- package/nitrogen/generated/shared/c++/BannerConfig.hpp +9 -7
- package/nitrogen/generated/shared/c++/CmpSDKOptions.hpp +6 -4
- package/nitrogen/generated/shared/c++/CustomColors.hpp +7 -5
- package/nitrogen/generated/shared/c++/HybridConsentSDKSpec.hpp +3 -3
- package/nitrogen/generated/shared/c++/PermissionConsent.hpp +6 -4
- package/nitrogen/generated/shared/c++/PostConsentsRequest.hpp +13 -11
- package/nitrogen/generated/shared/c++/Purpose.hpp +10 -8
- package/nitrogen/generated/shared/c++/PurposeConsent.hpp +6 -4
- package/nitrogen/generated/shared/c++/SDK.hpp +6 -4
- package/nitrogen/generated/shared/c++/SettingsPrompt.hpp +7 -5
- package/package.json +1 -1
|
@@ -58,9 +58,8 @@ namespace margelo::nitro::securiticonsentsdk { struct SettingsPrompt; }
|
|
|
58
58
|
|
|
59
59
|
// Common C++ types used in Swift
|
|
60
60
|
#include <NitroModules/ArrayBufferHolder.hpp>
|
|
61
|
-
#include <NitroModules/
|
|
61
|
+
#include <NitroModules/AnyMapHolder.hpp>
|
|
62
62
|
#include <NitroModules/RuntimeError.hpp>
|
|
63
|
-
#include <NitroModules/DateToChronoDate.hpp>
|
|
64
63
|
|
|
65
64
|
// Forward declarations of Swift defined types
|
|
66
65
|
// Forward declaration of `HybridConsentSDKSpec_cxx` to properly resolve imports.
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
HybridObjectRegistry::registerHybridObjectConstructor(
|
|
25
25
|
"ConsentSDK",
|
|
26
26
|
[]() -> std::shared_ptr<HybridObject> {
|
|
27
|
-
std::shared_ptr<HybridConsentSDKSpec> hybridObject = NitroSecuritiConsentSdk::NitroSecuritiConsentSdkAutolinking::createConsentSDK();
|
|
27
|
+
std::shared_ptr<margelo::nitro::securiticonsentsdk::HybridConsentSDKSpec> hybridObject = NitroSecuritiConsentSdk::NitroSecuritiConsentSdkAutolinking::createConsentSDK();
|
|
28
28
|
return hybridObject;
|
|
29
29
|
}
|
|
30
30
|
);
|
|
@@ -15,9 +15,9 @@ public final class NitroSecuritiConsentSdkAutolinking {
|
|
|
15
15
|
* This is generated by Nitrogen and will initialize the class specified
|
|
16
16
|
* in the `"autolinking"` property of `nitro.json` (in this case, `HybridConsentSDK`).
|
|
17
17
|
*/
|
|
18
|
-
public static func createConsentSDK() -> bridge.
|
|
18
|
+
public static func createConsentSDK() -> bridge.std__shared_ptr_margelo__nitro__securiticonsentsdk__HybridConsentSDKSpec_ {
|
|
19
19
|
let hybridObject = HybridConsentSDK()
|
|
20
|
-
return { () -> bridge.
|
|
20
|
+
return { () -> bridge.std__shared_ptr_margelo__nitro__securiticonsentsdk__HybridConsentSDKSpec_ in
|
|
21
21
|
let __cxxWrapped = hybridObject.getCxxWrapper()
|
|
22
22
|
return __cxxWrapped.getCxxPart()
|
|
23
23
|
}()
|
|
@@ -38,8 +38,8 @@ namespace margelo::nitro::securiticonsentsdk { struct PermissionConsent; }
|
|
|
38
38
|
#include <optional>
|
|
39
39
|
#include <functional>
|
|
40
40
|
#include <NitroModules/Promise.hpp>
|
|
41
|
-
#include "AppPermission.hpp"
|
|
42
41
|
#include <vector>
|
|
42
|
+
#include "AppPermission.hpp"
|
|
43
43
|
#include "Purpose.hpp"
|
|
44
44
|
#include "SDK.hpp"
|
|
45
45
|
#include "BannerConfig.hpp"
|
|
@@ -78,12 +78,10 @@ namespace margelo::nitro::securiticonsentsdk {
|
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
public:
|
|
81
|
+
// Get memory pressure
|
|
81
82
|
inline size_t getExternalMemorySize() noexcept override {
|
|
82
83
|
return _swiftPart.getMemorySize();
|
|
83
84
|
}
|
|
84
|
-
void dispose() noexcept override {
|
|
85
|
-
_swiftPart.dispose();
|
|
86
|
-
}
|
|
87
85
|
|
|
88
86
|
public:
|
|
89
87
|
// Properties
|
|
@@ -97,8 +97,7 @@ public extension AppPermission {
|
|
|
97
97
|
@inline(__always)
|
|
98
98
|
get {
|
|
99
99
|
return { () -> String? in
|
|
100
|
-
if
|
|
101
|
-
let __unwrapped = bridge.get_std__optional_std__string_(self.__name)
|
|
100
|
+
if let __unwrapped = self.__name.value {
|
|
102
101
|
return String(__unwrapped)
|
|
103
102
|
} else {
|
|
104
103
|
return nil
|
|
@@ -121,8 +120,7 @@ public extension AppPermission {
|
|
|
121
120
|
@inline(__always)
|
|
122
121
|
get {
|
|
123
122
|
return { () -> String? in
|
|
124
|
-
if
|
|
125
|
-
let __unwrapped = bridge.get_std__optional_std__string_(self.__permissionId)
|
|
123
|
+
if let __unwrapped = self.__permissionId.value {
|
|
126
124
|
return String(__unwrapped)
|
|
127
125
|
} else {
|
|
128
126
|
return nil
|
|
@@ -145,8 +143,7 @@ public extension AppPermission {
|
|
|
145
143
|
@inline(__always)
|
|
146
144
|
get {
|
|
147
145
|
return { () -> String? in
|
|
148
|
-
if
|
|
149
|
-
let __unwrapped = bridge.get_std__optional_std__string_(self.__description)
|
|
146
|
+
if let __unwrapped = self.__description.value {
|
|
150
147
|
return String(__unwrapped)
|
|
151
148
|
} else {
|
|
152
149
|
return nil
|
|
@@ -169,8 +166,7 @@ public extension AppPermission {
|
|
|
169
166
|
@inline(__always)
|
|
170
167
|
get {
|
|
171
168
|
return { () -> String? in
|
|
172
|
-
if
|
|
173
|
-
let __unwrapped = bridge.get_std__optional_std__string_(self.__group)
|
|
169
|
+
if let __unwrapped = self.__group.value {
|
|
174
170
|
return String(__unwrapped)
|
|
175
171
|
} else {
|
|
176
172
|
return nil
|
|
@@ -210,8 +206,7 @@ public extension AppPermission {
|
|
|
210
206
|
@inline(__always)
|
|
211
207
|
get {
|
|
212
208
|
return { () -> String? in
|
|
213
|
-
if
|
|
214
|
-
let __unwrapped = bridge.get_std__optional_std__string_(self.__consentStatus)
|
|
209
|
+
if let __unwrapped = self.__consentStatus.value {
|
|
215
210
|
return String(__unwrapped)
|
|
216
211
|
} else {
|
|
217
212
|
return nil
|
|
@@ -234,8 +229,7 @@ public extension AppPermission {
|
|
|
234
229
|
@inline(__always)
|
|
235
230
|
get {
|
|
236
231
|
return { () -> String? in
|
|
237
|
-
if
|
|
238
|
-
let __unwrapped = bridge.get_std__optional_std__string_(self.__nameMap)
|
|
232
|
+
if let __unwrapped = self.__nameMap.value {
|
|
239
233
|
return String(__unwrapped)
|
|
240
234
|
} else {
|
|
241
235
|
return nil
|
|
@@ -309,8 +309,7 @@ public extension BannerConfig {
|
|
|
309
309
|
@inline(__always)
|
|
310
310
|
get {
|
|
311
311
|
return { () -> String? in
|
|
312
|
-
if
|
|
313
|
-
let __unwrapped = bridge.get_std__optional_std__string_(self.__name)
|
|
312
|
+
if let __unwrapped = self.__name.value {
|
|
314
313
|
return String(__unwrapped)
|
|
315
314
|
} else {
|
|
316
315
|
return nil
|
|
@@ -333,8 +332,7 @@ public extension BannerConfig {
|
|
|
333
332
|
@inline(__always)
|
|
334
333
|
get {
|
|
335
334
|
return { () -> String? in
|
|
336
|
-
if
|
|
337
|
-
let __unwrapped = bridge.get_std__optional_std__string_(self.__dsrPortalLink)
|
|
335
|
+
if let __unwrapped = self.__dsrPortalLink.value {
|
|
338
336
|
return String(__unwrapped)
|
|
339
337
|
} else {
|
|
340
338
|
return nil
|
|
@@ -357,8 +355,7 @@ public extension BannerConfig {
|
|
|
357
355
|
@inline(__always)
|
|
358
356
|
get {
|
|
359
357
|
return { () -> String? in
|
|
360
|
-
if
|
|
361
|
-
let __unwrapped = bridge.get_std__optional_std__string_(self.__complianceType)
|
|
358
|
+
if let __unwrapped = self.__complianceType.value {
|
|
362
359
|
return String(__unwrapped)
|
|
363
360
|
} else {
|
|
364
361
|
return nil
|
|
@@ -381,8 +378,7 @@ public extension BannerConfig {
|
|
|
381
378
|
@inline(__always)
|
|
382
379
|
get {
|
|
383
380
|
return { () -> String? in
|
|
384
|
-
if
|
|
385
|
-
let __unwrapped = bridge.get_std__optional_std__string_(self.__bannerReappearanceTime)
|
|
381
|
+
if let __unwrapped = self.__bannerReappearanceTime.value {
|
|
386
382
|
return String(__unwrapped)
|
|
387
383
|
} else {
|
|
388
384
|
return nil
|
|
@@ -405,8 +401,7 @@ public extension BannerConfig {
|
|
|
405
401
|
@inline(__always)
|
|
406
402
|
get {
|
|
407
403
|
return { () -> String? in
|
|
408
|
-
if
|
|
409
|
-
let __unwrapped = bridge.get_std__optional_std__string_(self.__privacyNoticeLink)
|
|
404
|
+
if let __unwrapped = self.__privacyNoticeLink.value {
|
|
410
405
|
return String(__unwrapped)
|
|
411
406
|
} else {
|
|
412
407
|
return nil
|
|
@@ -429,8 +424,7 @@ public extension BannerConfig {
|
|
|
429
424
|
@inline(__always)
|
|
430
425
|
get {
|
|
431
426
|
return { () -> String? in
|
|
432
|
-
if
|
|
433
|
-
let __unwrapped = bridge.get_std__optional_std__string_(self.__accept)
|
|
427
|
+
if let __unwrapped = self.__accept.value {
|
|
434
428
|
return String(__unwrapped)
|
|
435
429
|
} else {
|
|
436
430
|
return nil
|
|
@@ -453,8 +447,7 @@ public extension BannerConfig {
|
|
|
453
447
|
@inline(__always)
|
|
454
448
|
get {
|
|
455
449
|
return { () -> String? in
|
|
456
|
-
if
|
|
457
|
-
let __unwrapped = bridge.get_std__optional_std__string_(self.__reject)
|
|
450
|
+
if let __unwrapped = self.__reject.value {
|
|
458
451
|
return String(__unwrapped)
|
|
459
452
|
} else {
|
|
460
453
|
return nil
|
|
@@ -477,8 +470,7 @@ public extension BannerConfig {
|
|
|
477
470
|
@inline(__always)
|
|
478
471
|
get {
|
|
479
472
|
return { () -> String? in
|
|
480
|
-
if
|
|
481
|
-
let __unwrapped = bridge.get_std__optional_std__string_(self.__bannerText)
|
|
473
|
+
if let __unwrapped = self.__bannerText.value {
|
|
482
474
|
return String(__unwrapped)
|
|
483
475
|
} else {
|
|
484
476
|
return nil
|
|
@@ -501,8 +493,7 @@ public extension BannerConfig {
|
|
|
501
493
|
@inline(__always)
|
|
502
494
|
get {
|
|
503
495
|
return { () -> String? in
|
|
504
|
-
if
|
|
505
|
-
let __unwrapped = bridge.get_std__optional_std__string_(self.__bannerHeading)
|
|
496
|
+
if let __unwrapped = self.__bannerHeading.value {
|
|
506
497
|
return String(__unwrapped)
|
|
507
498
|
} else {
|
|
508
499
|
return nil
|
|
@@ -525,8 +516,7 @@ public extension BannerConfig {
|
|
|
525
516
|
@inline(__always)
|
|
526
517
|
get {
|
|
527
518
|
return { () -> String? in
|
|
528
|
-
if
|
|
529
|
-
let __unwrapped = bridge.get_std__optional_std__string_(self.__sdkTabHeading)
|
|
519
|
+
if let __unwrapped = self.__sdkTabHeading.value {
|
|
530
520
|
return String(__unwrapped)
|
|
531
521
|
} else {
|
|
532
522
|
return nil
|
|
@@ -549,8 +539,7 @@ public extension BannerConfig {
|
|
|
549
539
|
@inline(__always)
|
|
550
540
|
get {
|
|
551
541
|
return { () -> String? in
|
|
552
|
-
if
|
|
553
|
-
let __unwrapped = bridge.get_std__optional_std__string_(self.__privacyNoticeText)
|
|
542
|
+
if let __unwrapped = self.__privacyNoticeText.value {
|
|
554
543
|
return String(__unwrapped)
|
|
555
544
|
} else {
|
|
556
545
|
return nil
|
|
@@ -573,8 +562,7 @@ public extension BannerConfig {
|
|
|
573
562
|
@inline(__always)
|
|
574
563
|
get {
|
|
575
564
|
return { () -> String? in
|
|
576
|
-
if
|
|
577
|
-
let __unwrapped = bridge.get_std__optional_std__string_(self.__preferenceCenterLink)
|
|
565
|
+
if let __unwrapped = self.__preferenceCenterLink.value {
|
|
578
566
|
return String(__unwrapped)
|
|
579
567
|
} else {
|
|
580
568
|
return nil
|
|
@@ -597,8 +585,7 @@ public extension BannerConfig {
|
|
|
597
585
|
@inline(__always)
|
|
598
586
|
get {
|
|
599
587
|
return { () -> String? in
|
|
600
|
-
if
|
|
601
|
-
let __unwrapped = bridge.get_std__optional_std__string_(self.__permissionsTabHeading)
|
|
588
|
+
if let __unwrapped = self.__permissionsTabHeading.value {
|
|
602
589
|
return String(__unwrapped)
|
|
603
590
|
} else {
|
|
604
591
|
return nil
|
|
@@ -621,8 +608,7 @@ public extension BannerConfig {
|
|
|
621
608
|
@inline(__always)
|
|
622
609
|
get {
|
|
623
610
|
return { () -> String? in
|
|
624
|
-
if
|
|
625
|
-
let __unwrapped = bridge.get_std__optional_std__string_(self.__permissionsTabGuidance)
|
|
611
|
+
if let __unwrapped = self.__permissionsTabGuidance.value {
|
|
626
612
|
return String(__unwrapped)
|
|
627
613
|
} else {
|
|
628
614
|
return nil
|
|
@@ -645,8 +631,7 @@ public extension BannerConfig {
|
|
|
645
631
|
@inline(__always)
|
|
646
632
|
get {
|
|
647
633
|
return { () -> String? in
|
|
648
|
-
if
|
|
649
|
-
let __unwrapped = bridge.get_std__optional_std__string_(self.__preferenceCenterHeading)
|
|
634
|
+
if let __unwrapped = self.__preferenceCenterHeading.value {
|
|
650
635
|
return String(__unwrapped)
|
|
651
636
|
} else {
|
|
652
637
|
return nil
|
|
@@ -669,8 +654,7 @@ public extension BannerConfig {
|
|
|
669
654
|
@inline(__always)
|
|
670
655
|
get {
|
|
671
656
|
return { () -> String? in
|
|
672
|
-
if
|
|
673
|
-
let __unwrapped = bridge.get_std__optional_std__string_(self.__preferenceCenterGuidance)
|
|
657
|
+
if let __unwrapped = self.__preferenceCenterGuidance.value {
|
|
674
658
|
return String(__unwrapped)
|
|
675
659
|
} else {
|
|
676
660
|
return nil
|
|
@@ -693,8 +677,7 @@ public extension BannerConfig {
|
|
|
693
677
|
@inline(__always)
|
|
694
678
|
get {
|
|
695
679
|
return { () -> String? in
|
|
696
|
-
if
|
|
697
|
-
let __unwrapped = bridge.get_std__optional_std__string_(self.__permissionsTabDescription)
|
|
680
|
+
if let __unwrapped = self.__permissionsTabDescription.value {
|
|
698
681
|
return String(__unwrapped)
|
|
699
682
|
} else {
|
|
700
683
|
return nil
|
|
@@ -717,8 +700,7 @@ public extension BannerConfig {
|
|
|
717
700
|
@inline(__always)
|
|
718
701
|
get {
|
|
719
702
|
return { () -> String? in
|
|
720
|
-
if
|
|
721
|
-
let __unwrapped = bridge.get_std__optional_std__string_(self.__preferenceCenterDescription)
|
|
703
|
+
if let __unwrapped = self.__preferenceCenterDescription.value {
|
|
722
704
|
return String(__unwrapped)
|
|
723
705
|
} else {
|
|
724
706
|
return nil
|
|
@@ -792,8 +774,7 @@ public extension BannerConfig {
|
|
|
792
774
|
@inline(__always)
|
|
793
775
|
get {
|
|
794
776
|
return { () -> String? in
|
|
795
|
-
if
|
|
796
|
-
let __unwrapped = bridge.get_std__optional_std__string_(self.__bannerPosition)
|
|
777
|
+
if let __unwrapped = self.__bannerPosition.value {
|
|
797
778
|
return String(__unwrapped)
|
|
798
779
|
} else {
|
|
799
780
|
return nil
|
|
@@ -816,8 +797,7 @@ public extension BannerConfig {
|
|
|
816
797
|
@inline(__always)
|
|
817
798
|
get {
|
|
818
799
|
return { () -> String? in
|
|
819
|
-
if
|
|
820
|
-
let __unwrapped = bridge.get_std__optional_std__string_(self.__buttonShape)
|
|
800
|
+
if let __unwrapped = self.__buttonShape.value {
|
|
821
801
|
return String(__unwrapped)
|
|
822
802
|
} else {
|
|
823
803
|
return nil
|
|
@@ -840,8 +820,7 @@ public extension BannerConfig {
|
|
|
840
820
|
@inline(__always)
|
|
841
821
|
get {
|
|
842
822
|
return { () -> String? in
|
|
843
|
-
if
|
|
844
|
-
let __unwrapped = bridge.get_std__optional_std__string_(self.__companyLogo)
|
|
823
|
+
if let __unwrapped = self.__companyLogo.value {
|
|
845
824
|
return String(__unwrapped)
|
|
846
825
|
} else {
|
|
847
826
|
return nil
|
|
@@ -864,8 +843,7 @@ public extension BannerConfig {
|
|
|
864
843
|
@inline(__always)
|
|
865
844
|
get {
|
|
866
845
|
return { () -> CustomColors? in
|
|
867
|
-
if
|
|
868
|
-
let __unwrapped = bridge.get_std__optional_CustomColors_(self.__customPaletteTheme)
|
|
846
|
+
if let __unwrapped = self.__customPaletteTheme.value {
|
|
869
847
|
return __unwrapped
|
|
870
848
|
} else {
|
|
871
849
|
return nil
|
|
@@ -905,13 +883,12 @@ public extension BannerConfig {
|
|
|
905
883
|
@inline(__always)
|
|
906
884
|
get {
|
|
907
885
|
return { () -> Dictionary<String, String>? in
|
|
908
|
-
if
|
|
909
|
-
let __unwrapped = bridge.get_std__optional_std__unordered_map_std__string__std__string__(self.__translations)
|
|
886
|
+
if let __unwrapped = self.__translations.value {
|
|
910
887
|
return { () -> Dictionary<String, String> in
|
|
911
888
|
var __dictionary = Dictionary<String, String>(minimumCapacity: __unwrapped.size())
|
|
912
889
|
let __keys = bridge.get_std__unordered_map_std__string__std__string__keys(__unwrapped)
|
|
913
890
|
for __key in __keys {
|
|
914
|
-
let __value =
|
|
891
|
+
let __value = __unwrapped[__key]!
|
|
915
892
|
__dictionary[String(__key)] = String(__value)
|
|
916
893
|
}
|
|
917
894
|
return __dictionary
|
|
@@ -127,8 +127,7 @@ public extension CmpSDKOptions {
|
|
|
127
127
|
@inline(__always)
|
|
128
128
|
get {
|
|
129
129
|
return { () -> String? in
|
|
130
|
-
if
|
|
131
|
-
let __unwrapped = bridge.get_std__optional_std__string_(self.__subjectId)
|
|
130
|
+
if let __unwrapped = self.__subjectId.value {
|
|
132
131
|
return String(__unwrapped)
|
|
133
132
|
} else {
|
|
134
133
|
return nil
|
|
@@ -151,8 +150,7 @@ public extension CmpSDKOptions {
|
|
|
151
150
|
@inline(__always)
|
|
152
151
|
get {
|
|
153
152
|
return { () -> String? in
|
|
154
|
-
if
|
|
155
|
-
let __unwrapped = bridge.get_std__optional_std__string_(self.__languageCode)
|
|
153
|
+
if let __unwrapped = self.__languageCode.value {
|
|
156
154
|
return String(__unwrapped)
|
|
157
155
|
} else {
|
|
158
156
|
return nil
|
|
@@ -175,8 +173,7 @@ public extension CmpSDKOptions {
|
|
|
175
173
|
@inline(__always)
|
|
176
174
|
get {
|
|
177
175
|
return { () -> String? in
|
|
178
|
-
if
|
|
179
|
-
let __unwrapped = bridge.get_std__optional_std__string_(self.__locationCode)
|
|
176
|
+
if let __unwrapped = self.__locationCode.value {
|
|
180
177
|
return String(__unwrapped)
|
|
181
178
|
} else {
|
|
182
179
|
return nil
|
|
@@ -199,8 +196,7 @@ public extension CmpSDKOptions {
|
|
|
199
196
|
@inline(__always)
|
|
200
197
|
get {
|
|
201
198
|
return { () -> String? in
|
|
202
|
-
if
|
|
203
|
-
let __unwrapped = bridge.get_std__optional_std__string_(self.__mode)
|
|
199
|
+
if let __unwrapped = self.__mode.value {
|
|
204
200
|
return String(__unwrapped)
|
|
205
201
|
} else {
|
|
206
202
|
return nil
|
|
@@ -74,8 +74,7 @@ public extension CustomColors {
|
|
|
74
74
|
@inline(__always)
|
|
75
75
|
get {
|
|
76
76
|
return { () -> String? in
|
|
77
|
-
if
|
|
78
|
-
let __unwrapped = bridge.get_std__optional_std__string_(self.__buttonBackground)
|
|
77
|
+
if let __unwrapped = self.__buttonBackground.value {
|
|
79
78
|
return String(__unwrapped)
|
|
80
79
|
} else {
|
|
81
80
|
return nil
|
|
@@ -98,8 +97,7 @@ public extension CustomColors {
|
|
|
98
97
|
@inline(__always)
|
|
99
98
|
get {
|
|
100
99
|
return { () -> String? in
|
|
101
|
-
if
|
|
102
|
-
let __unwrapped = bridge.get_std__optional_std__string_(self.__buttonText)
|
|
100
|
+
if let __unwrapped = self.__buttonText.value {
|
|
103
101
|
return String(__unwrapped)
|
|
104
102
|
} else {
|
|
105
103
|
return nil
|
|
@@ -122,8 +120,7 @@ public extension CustomColors {
|
|
|
122
120
|
@inline(__always)
|
|
123
121
|
get {
|
|
124
122
|
return { () -> String? in
|
|
125
|
-
if
|
|
126
|
-
let __unwrapped = bridge.get_std__optional_std__string_(self.__buttonBorder)
|
|
123
|
+
if let __unwrapped = self.__buttonBorder.value {
|
|
127
124
|
return String(__unwrapped)
|
|
128
125
|
} else {
|
|
129
126
|
return nil
|
|
@@ -146,8 +143,7 @@ public extension CustomColors {
|
|
|
146
143
|
@inline(__always)
|
|
147
144
|
get {
|
|
148
145
|
return { () -> String? in
|
|
149
|
-
if
|
|
150
|
-
let __unwrapped = bridge.get_std__optional_std__string_(self.__bannerBackground)
|
|
146
|
+
if let __unwrapped = self.__bannerBackground.value {
|
|
151
147
|
return String(__unwrapped)
|
|
152
148
|
} else {
|
|
153
149
|
return nil
|
|
@@ -170,8 +166,7 @@ public extension CustomColors {
|
|
|
170
166
|
@inline(__always)
|
|
171
167
|
get {
|
|
172
168
|
return { () -> String? in
|
|
173
|
-
if
|
|
174
|
-
let __unwrapped = bridge.get_std__optional_std__string_(self.__bannerText)
|
|
169
|
+
if let __unwrapped = self.__bannerText.value {
|
|
175
170
|
return String(__unwrapped)
|
|
176
171
|
} else {
|
|
177
172
|
return nil
|
|
@@ -194,8 +189,7 @@ public extension CustomColors {
|
|
|
194
189
|
@inline(__always)
|
|
195
190
|
get {
|
|
196
191
|
return { () -> String? in
|
|
197
|
-
if
|
|
198
|
-
let __unwrapped = bridge.get_std__optional_std__string_(self.__bannerLinks)
|
|
192
|
+
if let __unwrapped = self.__bannerLinks.value {
|
|
199
193
|
return String(__unwrapped)
|
|
200
194
|
} else {
|
|
201
195
|
return nil
|
|
@@ -218,8 +212,7 @@ public extension CustomColors {
|
|
|
218
212
|
@inline(__always)
|
|
219
213
|
get {
|
|
220
214
|
return { () -> String? in
|
|
221
|
-
if
|
|
222
|
-
let __unwrapped = bridge.get_std__optional_std__string_(self.__preferenceCenterFooterBackground)
|
|
215
|
+
if let __unwrapped = self.__preferenceCenterFooterBackground.value {
|
|
223
216
|
return String(__unwrapped)
|
|
224
217
|
} else {
|
|
225
218
|
return nil
|
|
@@ -242,8 +235,7 @@ public extension CustomColors {
|
|
|
242
235
|
@inline(__always)
|
|
243
236
|
get {
|
|
244
237
|
return { () -> String? in
|
|
245
|
-
if
|
|
246
|
-
let __unwrapped = bridge.get_std__optional_std__string_(self.__preferenceCenterFooterSelector)
|
|
238
|
+
if let __unwrapped = self.__preferenceCenterFooterSelector.value {
|
|
247
239
|
return String(__unwrapped)
|
|
248
240
|
} else {
|
|
249
241
|
return nil
|
|
@@ -7,23 +7,22 @@
|
|
|
7
7
|
|
|
8
8
|
import NitroModules
|
|
9
9
|
|
|
10
|
-
|
|
11
10
|
/**
|
|
12
|
-
* Wraps a Swift `(_
|
|
11
|
+
* Wraps a Swift `(_ value: Bool) -> Void` as a class.
|
|
13
12
|
* This class can be used from C++, e.g. to wrap the Swift closure as a `std::function`.
|
|
14
13
|
*/
|
|
15
14
|
public final class Func_void_bool {
|
|
16
15
|
public typealias bridge = margelo.nitro.securiticonsentsdk.bridge.swift
|
|
17
16
|
|
|
18
|
-
private let closure: (_
|
|
17
|
+
private let closure: (_ value: Bool) -> Void
|
|
19
18
|
|
|
20
|
-
public init(_ closure: @escaping (_
|
|
19
|
+
public init(_ closure: @escaping (_ value: Bool) -> Void) {
|
|
21
20
|
self.closure = closure
|
|
22
21
|
}
|
|
23
22
|
|
|
24
23
|
@inline(__always)
|
|
25
|
-
public func call(
|
|
26
|
-
self.closure(
|
|
24
|
+
public func call(value: Bool) -> Void {
|
|
25
|
+
self.closure(value)
|
|
27
26
|
}
|
|
28
27
|
|
|
29
28
|
/**
|
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
|
|
8
8
|
import NitroModules
|
|
9
9
|
|
|
10
|
-
|
|
11
10
|
/**
|
|
12
11
|
* Wraps a Swift `(_ value: BannerConfig?) -> Void` as a class.
|
|
13
12
|
* This class can be used from C++, e.g. to wrap the Swift closure as a `std::function`.
|
|
@@ -24,8 +23,7 @@ public final class Func_void_std__optional_BannerConfig_ {
|
|
|
24
23
|
@inline(__always)
|
|
25
24
|
public func call(value: bridge.std__optional_BannerConfig_) -> Void {
|
|
26
25
|
self.closure({ () -> BannerConfig? in
|
|
27
|
-
if
|
|
28
|
-
let __unwrapped = bridge.get_std__optional_BannerConfig_(value)
|
|
26
|
+
if let __unwrapped = value.value {
|
|
29
27
|
return __unwrapped
|
|
30
28
|
} else {
|
|
31
29
|
return nil
|
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
|
|
8
8
|
import NitroModules
|
|
9
9
|
|
|
10
|
-
|
|
11
10
|
/**
|
|
12
11
|
* Wraps a Swift `(_ value: SettingsPrompt?) -> Void` as a class.
|
|
13
12
|
* This class can be used from C++, e.g. to wrap the Swift closure as a `std::function`.
|
|
@@ -24,8 +23,7 @@ public final class Func_void_std__optional_SettingsPrompt_ {
|
|
|
24
23
|
@inline(__always)
|
|
25
24
|
public func call(value: bridge.std__optional_SettingsPrompt_) -> Void {
|
|
26
25
|
self.closure({ () -> SettingsPrompt? in
|
|
27
|
-
if
|
|
28
|
-
let __unwrapped = bridge.get_std__optional_SettingsPrompt_(value)
|
|
26
|
+
if let __unwrapped = value.value {
|
|
29
27
|
return __unwrapped
|
|
30
28
|
} else {
|
|
31
29
|
return nil
|
|
@@ -34,9 +34,8 @@ public protocol HybridConsentSDKSpec_protocol: HybridObject {
|
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
/// See ``HybridConsentSDKSpec``
|
|
37
|
-
|
|
37
|
+
public class HybridConsentSDKSpec_base {
|
|
38
38
|
private weak var cxxWrapper: HybridConsentSDKSpec_cxx? = nil
|
|
39
|
-
public init() { }
|
|
40
39
|
public func getCxxWrapper() -> HybridConsentSDKSpec_cxx {
|
|
41
40
|
#if DEBUG
|
|
42
41
|
guard self is HybridConsentSDKSpec else {
|
|
@@ -17,7 +17,7 @@ import NitroModules
|
|
|
17
17
|
* - Other HybridObjects need to be wrapped/unwrapped from the Swift TCxx wrapper
|
|
18
18
|
* - Throwing methods need to be wrapped with a Result<T, Error> type, as exceptions cannot be propagated to C++
|
|
19
19
|
*/
|
|
20
|
-
|
|
20
|
+
public class HybridConsentSDKSpec_cxx {
|
|
21
21
|
/**
|
|
22
22
|
* The Swift <> C++ bridge's namespace (`margelo::nitro::securiticonsentsdk::bridge::swift`)
|
|
23
23
|
* from `NitroSecuritiConsentSdk-Swift-Cxx-Bridge.hpp`.
|
|
@@ -33,7 +33,7 @@ open class HybridConsentSDKSpec_cxx {
|
|
|
33
33
|
/**
|
|
34
34
|
* Holds a weak pointer to the C++ class that wraps the Swift class.
|
|
35
35
|
*/
|
|
36
|
-
private var __cxxPart: bridge.
|
|
36
|
+
private var __cxxPart: bridge.std__weak_ptr_margelo__nitro__securiticonsentsdk__HybridConsentSDKSpec_
|
|
37
37
|
|
|
38
38
|
/**
|
|
39
39
|
* Create a new `HybridConsentSDKSpec_cxx` that wraps the given `HybridConsentSDKSpec`.
|
|
@@ -72,15 +72,15 @@ open class HybridConsentSDKSpec_cxx {
|
|
|
72
72
|
|
|
73
73
|
/**
|
|
74
74
|
* Gets (or creates) the C++ part of this Hybrid Object.
|
|
75
|
-
* The C++ part is a `std::shared_ptr<HybridConsentSDKSpec>`.
|
|
75
|
+
* The C++ part is a `std::shared_ptr<margelo::nitro::securiticonsentsdk::HybridConsentSDKSpec>`.
|
|
76
76
|
*/
|
|
77
|
-
public func getCxxPart() -> bridge.
|
|
77
|
+
public func getCxxPart() -> bridge.std__shared_ptr_margelo__nitro__securiticonsentsdk__HybridConsentSDKSpec_ {
|
|
78
78
|
let cachedCxxPart = self.__cxxPart.lock()
|
|
79
79
|
if cachedCxxPart.__convertToBool() {
|
|
80
80
|
return cachedCxxPart
|
|
81
81
|
} else {
|
|
82
|
-
let newCxxPart = bridge.
|
|
83
|
-
__cxxPart = bridge.
|
|
82
|
+
let newCxxPart = bridge.create_std__shared_ptr_margelo__nitro__securiticonsentsdk__HybridConsentSDKSpec_(self.toUnsafe())
|
|
83
|
+
__cxxPart = bridge.weakify_std__shared_ptr_margelo__nitro__securiticonsentsdk__HybridConsentSDKSpec_(newCxxPart)
|
|
84
84
|
return newCxxPart
|
|
85
85
|
}
|
|
86
86
|
}
|
|
@@ -96,15 +96,6 @@ open class HybridConsentSDKSpec_cxx {
|
|
|
96
96
|
return MemoryHelper.getSizeOf(self.__implementation) + self.__implementation.memorySize
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
-
/**
|
|
100
|
-
* Call dispose() on the Swift class.
|
|
101
|
-
* This _may_ be called manually from JS.
|
|
102
|
-
*/
|
|
103
|
-
@inline(__always)
|
|
104
|
-
public func dispose() {
|
|
105
|
-
self.__implementation.dispose()
|
|
106
|
-
}
|
|
107
|
-
|
|
108
99
|
// Properties
|
|
109
100
|
|
|
110
101
|
|
|
@@ -172,8 +172,7 @@ public extension PostConsentsRequest {
|
|
|
172
172
|
@inline(__always)
|
|
173
173
|
get {
|
|
174
174
|
return { () -> String? in
|
|
175
|
-
if
|
|
176
|
-
let __unwrapped = bridge.get_std__optional_std__string_(self.__sdkVersion)
|
|
175
|
+
if let __unwrapped = self.__sdkVersion.value {
|
|
177
176
|
return String(__unwrapped)
|
|
178
177
|
} else {
|
|
179
178
|
return nil
|
|
@@ -196,8 +195,7 @@ public extension PostConsentsRequest {
|
|
|
196
195
|
@inline(__always)
|
|
197
196
|
get {
|
|
198
197
|
return { () -> String? in
|
|
199
|
-
if
|
|
200
|
-
let __unwrapped = bridge.get_std__optional_std__string_(self.__platform)
|
|
198
|
+
if let __unwrapped = self.__platform.value {
|
|
201
199
|
return String(__unwrapped)
|
|
202
200
|
} else {
|
|
203
201
|
return nil
|