securiti-consent-sdk 1.135.0 → 1.136.0-11rc
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/ios/HybridConsentSDK.swift +1 -0
- package/nitrogen/generated/android/NitroSecuritiConsentSdkOnLoad.cpp +1 -2
- package/nitrogen/generated/android/c++/JHybridConsentSDKSpec.hpp +1 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/securiticonsentsdk/AppPermission.kt +18 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/securiticonsentsdk/BannerConfig.kt +64 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/securiticonsentsdk/CmpSDKOptions.kt +22 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/securiticonsentsdk/CustomColors.kt +16 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/securiticonsentsdk/PermissionConsent.kt +6 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/securiticonsentsdk/PostConsentsRequest.kt +24 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/securiticonsentsdk/Purpose.kt +24 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/securiticonsentsdk/PurposeConsent.kt +8 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/securiticonsentsdk/SDK.kt +18 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/securiticonsentsdk/SettingsPrompt.kt +10 -0
- package/nitrogen/generated/ios/NitroSecuritiConsentSdk-Swift-Cxx-Bridge.cpp +11 -11
- package/nitrogen/generated/ios/NitroSecuritiConsentSdk-Swift-Cxx-Bridge.hpp +148 -85
- package/nitrogen/generated/ios/NitroSecuritiConsentSdkAutolinking.mm +1 -1
- package/nitrogen/generated/ios/NitroSecuritiConsentSdkAutolinking.swift +2 -2
- package/nitrogen/generated/ios/swift/AppPermission.swift +12 -6
- package/nitrogen/generated/ios/swift/BannerConfig.swift +47 -24
- package/nitrogen/generated/ios/swift/CmpSDKOptions.swift +8 -4
- package/nitrogen/generated/ios/swift/CustomColors.swift +16 -8
- package/nitrogen/generated/ios/swift/Func_void_bool.swift +5 -5
- package/nitrogen/generated/ios/swift/Func_void_std__optional_BannerConfig_.swift +2 -1
- package/nitrogen/generated/ios/swift/Func_void_std__optional_SettingsPrompt_.swift +2 -1
- package/nitrogen/generated/ios/swift/HybridConsentSDKSpec_cxx.swift +5 -5
- package/nitrogen/generated/ios/swift/PostConsentsRequest.swift +4 -2
- package/nitrogen/generated/ios/swift/Purpose.swift +14 -7
- package/nitrogen/generated/ios/swift/SDK.swift +14 -7
- package/nitrogen/generated/ios/swift/SettingsPrompt.swift +10 -5
- package/nitrogen/generated/shared/c++/AppPermission.hpp +4 -6
- package/nitrogen/generated/shared/c++/BannerConfig.hpp +7 -9
- package/nitrogen/generated/shared/c++/CmpSDKOptions.hpp +4 -6
- package/nitrogen/generated/shared/c++/CustomColors.hpp +4 -6
- package/nitrogen/generated/shared/c++/PermissionConsent.hpp +4 -6
- package/nitrogen/generated/shared/c++/PostConsentsRequest.hpp +10 -12
- package/nitrogen/generated/shared/c++/Purpose.hpp +7 -9
- package/nitrogen/generated/shared/c++/PurposeConsent.hpp +4 -6
- package/nitrogen/generated/shared/c++/SDK.hpp +4 -6
- package/nitrogen/generated/shared/c++/SettingsPrompt.hpp +4 -6
- package/package.json +1 -1
|
@@ -46,6 +46,7 @@ public class HybridConsentSDK : HybridConsentSDKSpec {
|
|
|
46
46
|
testingMode: options.testingMode,
|
|
47
47
|
logLevel: logLevel,
|
|
48
48
|
consentsCheckInterval: Int(options.consentsCheckInterval),
|
|
49
|
+
subjectId: options.subjectId,
|
|
49
50
|
languageCode: options.languageCode,
|
|
50
51
|
locationCode: options.locationCode
|
|
51
52
|
))
|
|
@@ -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
|
|
41
|
+
return globalRef->cthis()->shared();
|
|
43
42
|
}
|
|
44
43
|
);
|
|
45
44
|
});
|
|
@@ -29,6 +29,7 @@ namespace margelo::nitro::securiticonsentsdk {
|
|
|
29
29
|
// C++ constructor (called from Java via `initHybrid()`)
|
|
30
30
|
explicit JHybridConsentSDKSpec(jni::alias_ref<jhybridobject> jThis) :
|
|
31
31
|
HybridObject(HybridConsentSDKSpec::TAG),
|
|
32
|
+
HybridBase(jThis),
|
|
32
33
|
_javaPart(jni::make_global(jThis)) {}
|
|
33
34
|
|
|
34
35
|
public:
|
package/nitrogen/generated/android/kotlin/com/margelo/nitro/securiticonsentsdk/AppPermission.kt
CHANGED
|
@@ -21,14 +21,32 @@ data class AppPermission
|
|
|
21
21
|
@DoNotStrip
|
|
22
22
|
@Keep
|
|
23
23
|
constructor(
|
|
24
|
+
@DoNotStrip
|
|
25
|
+
@Keep
|
|
24
26
|
val id: Double?,
|
|
27
|
+
@DoNotStrip
|
|
28
|
+
@Keep
|
|
25
29
|
val name: String?,
|
|
30
|
+
@DoNotStrip
|
|
31
|
+
@Keep
|
|
26
32
|
val permissionId: String?,
|
|
33
|
+
@DoNotStrip
|
|
34
|
+
@Keep
|
|
27
35
|
val description: String?,
|
|
36
|
+
@DoNotStrip
|
|
37
|
+
@Keep
|
|
28
38
|
val group: String?,
|
|
39
|
+
@DoNotStrip
|
|
40
|
+
@Keep
|
|
29
41
|
val groupId: Double?,
|
|
42
|
+
@DoNotStrip
|
|
43
|
+
@Keep
|
|
30
44
|
val consentStatus: String?,
|
|
45
|
+
@DoNotStrip
|
|
46
|
+
@Keep
|
|
31
47
|
val nameMap: String?,
|
|
48
|
+
@DoNotStrip
|
|
49
|
+
@Keep
|
|
32
50
|
val isSettingsPromptEnabled: Boolean?
|
|
33
51
|
) {
|
|
34
52
|
/* main constructor */
|
package/nitrogen/generated/android/kotlin/com/margelo/nitro/securiticonsentsdk/BannerConfig.kt
CHANGED
|
@@ -21,37 +21,101 @@ data class BannerConfig
|
|
|
21
21
|
@DoNotStrip
|
|
22
22
|
@Keep
|
|
23
23
|
constructor(
|
|
24
|
+
@DoNotStrip
|
|
25
|
+
@Keep
|
|
24
26
|
val hideCloseButton: Boolean?,
|
|
27
|
+
@DoNotStrip
|
|
28
|
+
@Keep
|
|
25
29
|
val hideAcceptButton: Boolean?,
|
|
30
|
+
@DoNotStrip
|
|
31
|
+
@Keep
|
|
26
32
|
val embedDSRPortalLink: Boolean?,
|
|
33
|
+
@DoNotStrip
|
|
34
|
+
@Keep
|
|
27
35
|
val recordConsentUponAppStart: Boolean?,
|
|
36
|
+
@DoNotStrip
|
|
37
|
+
@Keep
|
|
28
38
|
val hideToggleForEssentialCategories: Boolean?,
|
|
39
|
+
@DoNotStrip
|
|
40
|
+
@Keep
|
|
29
41
|
val name: String?,
|
|
42
|
+
@DoNotStrip
|
|
43
|
+
@Keep
|
|
30
44
|
val dsrPortalLink: String?,
|
|
45
|
+
@DoNotStrip
|
|
46
|
+
@Keep
|
|
31
47
|
val complianceType: String?,
|
|
48
|
+
@DoNotStrip
|
|
49
|
+
@Keep
|
|
32
50
|
val bannerReappearanceTime: String?,
|
|
51
|
+
@DoNotStrip
|
|
52
|
+
@Keep
|
|
33
53
|
val privacyNoticeLink: String?,
|
|
54
|
+
@DoNotStrip
|
|
55
|
+
@Keep
|
|
34
56
|
val accept: String?,
|
|
57
|
+
@DoNotStrip
|
|
58
|
+
@Keep
|
|
35
59
|
val reject: String?,
|
|
60
|
+
@DoNotStrip
|
|
61
|
+
@Keep
|
|
36
62
|
val bannerText: String?,
|
|
63
|
+
@DoNotStrip
|
|
64
|
+
@Keep
|
|
37
65
|
val bannerHeading: String?,
|
|
66
|
+
@DoNotStrip
|
|
67
|
+
@Keep
|
|
38
68
|
val sdkTabHeading: String?,
|
|
69
|
+
@DoNotStrip
|
|
70
|
+
@Keep
|
|
39
71
|
val privacyNoticeText: String?,
|
|
72
|
+
@DoNotStrip
|
|
73
|
+
@Keep
|
|
40
74
|
val preferenceCenterLink: String?,
|
|
75
|
+
@DoNotStrip
|
|
76
|
+
@Keep
|
|
41
77
|
val permissionsTabHeading: String?,
|
|
78
|
+
@DoNotStrip
|
|
79
|
+
@Keep
|
|
42
80
|
val permissionsTabGuidance: String?,
|
|
81
|
+
@DoNotStrip
|
|
82
|
+
@Keep
|
|
43
83
|
val preferenceCenterHeading: String?,
|
|
84
|
+
@DoNotStrip
|
|
85
|
+
@Keep
|
|
44
86
|
val preferenceCenterGuidance: String?,
|
|
87
|
+
@DoNotStrip
|
|
88
|
+
@Keep
|
|
45
89
|
val permissionsTabDescription: String?,
|
|
90
|
+
@DoNotStrip
|
|
91
|
+
@Keep
|
|
46
92
|
val preferenceCenterDescription: String?,
|
|
93
|
+
@DoNotStrip
|
|
94
|
+
@Keep
|
|
47
95
|
val showPoweredBySecuritiLogo: Boolean?,
|
|
96
|
+
@DoNotStrip
|
|
97
|
+
@Keep
|
|
48
98
|
val showDescriptionTextWithPrefCenterToggle: Boolean?,
|
|
99
|
+
@DoNotStrip
|
|
100
|
+
@Keep
|
|
49
101
|
val paletteTheme: Double?,
|
|
102
|
+
@DoNotStrip
|
|
103
|
+
@Keep
|
|
50
104
|
val bannerPosition: String?,
|
|
105
|
+
@DoNotStrip
|
|
106
|
+
@Keep
|
|
51
107
|
val buttonShape: String?,
|
|
108
|
+
@DoNotStrip
|
|
109
|
+
@Keep
|
|
52
110
|
val companyLogo: String?,
|
|
111
|
+
@DoNotStrip
|
|
112
|
+
@Keep
|
|
53
113
|
val customPaletteTheme: CustomColors?,
|
|
114
|
+
@DoNotStrip
|
|
115
|
+
@Keep
|
|
54
116
|
val shouldShowSettingsPrompt: Boolean?,
|
|
117
|
+
@DoNotStrip
|
|
118
|
+
@Keep
|
|
55
119
|
val translations: Map<String, String>?
|
|
56
120
|
) {
|
|
57
121
|
/* main constructor */
|
package/nitrogen/generated/android/kotlin/com/margelo/nitro/securiticonsentsdk/CmpSDKOptions.kt
CHANGED
|
@@ -21,16 +21,38 @@ data class CmpSDKOptions
|
|
|
21
21
|
@DoNotStrip
|
|
22
22
|
@Keep
|
|
23
23
|
constructor(
|
|
24
|
+
@DoNotStrip
|
|
25
|
+
@Keep
|
|
24
26
|
val appURL: String,
|
|
27
|
+
@DoNotStrip
|
|
28
|
+
@Keep
|
|
25
29
|
val cdnURL: String,
|
|
30
|
+
@DoNotStrip
|
|
31
|
+
@Keep
|
|
26
32
|
val tenantID: String,
|
|
33
|
+
@DoNotStrip
|
|
34
|
+
@Keep
|
|
27
35
|
val appID: String,
|
|
36
|
+
@DoNotStrip
|
|
37
|
+
@Keep
|
|
28
38
|
val testingMode: Boolean,
|
|
39
|
+
@DoNotStrip
|
|
40
|
+
@Keep
|
|
29
41
|
val loggerLevel: String,
|
|
42
|
+
@DoNotStrip
|
|
43
|
+
@Keep
|
|
30
44
|
val consentsCheckInterval: Double,
|
|
45
|
+
@DoNotStrip
|
|
46
|
+
@Keep
|
|
31
47
|
val subjectId: String?,
|
|
48
|
+
@DoNotStrip
|
|
49
|
+
@Keep
|
|
32
50
|
val languageCode: String?,
|
|
51
|
+
@DoNotStrip
|
|
52
|
+
@Keep
|
|
33
53
|
val locationCode: String?,
|
|
54
|
+
@DoNotStrip
|
|
55
|
+
@Keep
|
|
34
56
|
val mode: String?
|
|
35
57
|
) {
|
|
36
58
|
/* main constructor */
|
package/nitrogen/generated/android/kotlin/com/margelo/nitro/securiticonsentsdk/CustomColors.kt
CHANGED
|
@@ -21,13 +21,29 @@ data class CustomColors
|
|
|
21
21
|
@DoNotStrip
|
|
22
22
|
@Keep
|
|
23
23
|
constructor(
|
|
24
|
+
@DoNotStrip
|
|
25
|
+
@Keep
|
|
24
26
|
val buttonBackground: String?,
|
|
27
|
+
@DoNotStrip
|
|
28
|
+
@Keep
|
|
25
29
|
val buttonText: String?,
|
|
30
|
+
@DoNotStrip
|
|
31
|
+
@Keep
|
|
26
32
|
val buttonBorder: String?,
|
|
33
|
+
@DoNotStrip
|
|
34
|
+
@Keep
|
|
27
35
|
val bannerBackground: String?,
|
|
36
|
+
@DoNotStrip
|
|
37
|
+
@Keep
|
|
28
38
|
val bannerText: String?,
|
|
39
|
+
@DoNotStrip
|
|
40
|
+
@Keep
|
|
29
41
|
val bannerLinks: String?,
|
|
42
|
+
@DoNotStrip
|
|
43
|
+
@Keep
|
|
30
44
|
val preferenceCenterFooterBackground: String?,
|
|
45
|
+
@DoNotStrip
|
|
46
|
+
@Keep
|
|
31
47
|
val preferenceCenterFooterSelector: String?
|
|
32
48
|
) {
|
|
33
49
|
/* main constructor */
|
package/nitrogen/generated/android/kotlin/com/margelo/nitro/securiticonsentsdk/PermissionConsent.kt
CHANGED
|
@@ -21,8 +21,14 @@ data class PermissionConsent
|
|
|
21
21
|
@DoNotStrip
|
|
22
22
|
@Keep
|
|
23
23
|
constructor(
|
|
24
|
+
@DoNotStrip
|
|
25
|
+
@Keep
|
|
24
26
|
val permission: String,
|
|
27
|
+
@DoNotStrip
|
|
28
|
+
@Keep
|
|
25
29
|
val consentStatus: String,
|
|
30
|
+
@DoNotStrip
|
|
31
|
+
@Keep
|
|
26
32
|
val timestamp: Double
|
|
27
33
|
) {
|
|
28
34
|
/* main constructor */
|
|
@@ -21,17 +21,41 @@ data class PostConsentsRequest
|
|
|
21
21
|
@DoNotStrip
|
|
22
22
|
@Keep
|
|
23
23
|
constructor(
|
|
24
|
+
@DoNotStrip
|
|
25
|
+
@Keep
|
|
24
26
|
val uuid: String,
|
|
27
|
+
@DoNotStrip
|
|
28
|
+
@Keep
|
|
25
29
|
val appUUID: String,
|
|
30
|
+
@DoNotStrip
|
|
31
|
+
@Keep
|
|
26
32
|
val device: String,
|
|
33
|
+
@DoNotStrip
|
|
34
|
+
@Keep
|
|
27
35
|
val implicitConsent: Boolean,
|
|
36
|
+
@DoNotStrip
|
|
37
|
+
@Keep
|
|
28
38
|
val version: Double,
|
|
39
|
+
@DoNotStrip
|
|
40
|
+
@Keep
|
|
29
41
|
val purposeConsents: Array<PurposeConsent>,
|
|
42
|
+
@DoNotStrip
|
|
43
|
+
@Keep
|
|
30
44
|
val permissions: Array<PermissionConsent>,
|
|
45
|
+
@DoNotStrip
|
|
46
|
+
@Keep
|
|
31
47
|
val isTestMode: Boolean,
|
|
48
|
+
@DoNotStrip
|
|
49
|
+
@Keep
|
|
32
50
|
val adId: String,
|
|
51
|
+
@DoNotStrip
|
|
52
|
+
@Keep
|
|
33
53
|
val bannerInfo: String,
|
|
54
|
+
@DoNotStrip
|
|
55
|
+
@Keep
|
|
34
56
|
val sdkVersion: String?,
|
|
57
|
+
@DoNotStrip
|
|
58
|
+
@Keep
|
|
35
59
|
val platform: String?
|
|
36
60
|
) {
|
|
37
61
|
/* main constructor */
|
|
@@ -21,17 +21,41 @@ data class Purpose
|
|
|
21
21
|
@DoNotStrip
|
|
22
22
|
@Keep
|
|
23
23
|
constructor(
|
|
24
|
+
@DoNotStrip
|
|
25
|
+
@Keep
|
|
24
26
|
val purposeId: Double?,
|
|
27
|
+
@DoNotStrip
|
|
28
|
+
@Keep
|
|
25
29
|
val purposeName: String?,
|
|
30
|
+
@DoNotStrip
|
|
31
|
+
@Keep
|
|
26
32
|
val purposeDescription: String?,
|
|
33
|
+
@DoNotStrip
|
|
34
|
+
@Keep
|
|
27
35
|
val sdks: Array<SDK>?,
|
|
36
|
+
@DoNotStrip
|
|
37
|
+
@Keep
|
|
28
38
|
val consentStatus: String?,
|
|
39
|
+
@DoNotStrip
|
|
40
|
+
@Keep
|
|
29
41
|
val disableOptOut: Boolean?,
|
|
42
|
+
@DoNotStrip
|
|
43
|
+
@Keep
|
|
30
44
|
val optOutText: String?,
|
|
45
|
+
@DoNotStrip
|
|
46
|
+
@Keep
|
|
31
47
|
val hideDetails: Boolean?,
|
|
48
|
+
@DoNotStrip
|
|
49
|
+
@Keep
|
|
32
50
|
val isGADMapped: Boolean?,
|
|
51
|
+
@DoNotStrip
|
|
52
|
+
@Keep
|
|
33
53
|
val gadDescription: String?,
|
|
54
|
+
@DoNotStrip
|
|
55
|
+
@Keep
|
|
34
56
|
val isATTMapped: Boolean?,
|
|
57
|
+
@DoNotStrip
|
|
58
|
+
@Keep
|
|
35
59
|
val attDescription: String?
|
|
36
60
|
) {
|
|
37
61
|
/* main constructor */
|
package/nitrogen/generated/android/kotlin/com/margelo/nitro/securiticonsentsdk/PurposeConsent.kt
CHANGED
|
@@ -21,9 +21,17 @@ data class PurposeConsent
|
|
|
21
21
|
@DoNotStrip
|
|
22
22
|
@Keep
|
|
23
23
|
constructor(
|
|
24
|
+
@DoNotStrip
|
|
25
|
+
@Keep
|
|
24
26
|
val purposeID: Double,
|
|
27
|
+
@DoNotStrip
|
|
28
|
+
@Keep
|
|
25
29
|
val consentStatus: String,
|
|
30
|
+
@DoNotStrip
|
|
31
|
+
@Keep
|
|
26
32
|
val timestamp: Double,
|
|
33
|
+
@DoNotStrip
|
|
34
|
+
@Keep
|
|
27
35
|
val isEssential: Boolean
|
|
28
36
|
) {
|
|
29
37
|
/* main constructor */
|
|
@@ -21,14 +21,32 @@ data class SDK
|
|
|
21
21
|
@DoNotStrip
|
|
22
22
|
@Keep
|
|
23
23
|
constructor(
|
|
24
|
+
@DoNotStrip
|
|
25
|
+
@Keep
|
|
24
26
|
val sdkId: Double?,
|
|
27
|
+
@DoNotStrip
|
|
28
|
+
@Keep
|
|
25
29
|
val namespaceId: String?,
|
|
30
|
+
@DoNotStrip
|
|
31
|
+
@Keep
|
|
26
32
|
val sdkName: String?,
|
|
33
|
+
@DoNotStrip
|
|
34
|
+
@Keep
|
|
27
35
|
val sdkDescription: String?,
|
|
36
|
+
@DoNotStrip
|
|
37
|
+
@Keep
|
|
28
38
|
val vendor: String?,
|
|
39
|
+
@DoNotStrip
|
|
40
|
+
@Keep
|
|
29
41
|
val logoBase64: String?,
|
|
42
|
+
@DoNotStrip
|
|
43
|
+
@Keep
|
|
30
44
|
val website: String?,
|
|
45
|
+
@DoNotStrip
|
|
46
|
+
@Keep
|
|
31
47
|
val matchedBy: Array<String>?,
|
|
48
|
+
@DoNotStrip
|
|
49
|
+
@Keep
|
|
32
50
|
val collectingData: Boolean?
|
|
33
51
|
) {
|
|
34
52
|
/* main constructor */
|
package/nitrogen/generated/android/kotlin/com/margelo/nitro/securiticonsentsdk/SettingsPrompt.kt
CHANGED
|
@@ -21,10 +21,20 @@ data class SettingsPrompt
|
|
|
21
21
|
@DoNotStrip
|
|
22
22
|
@Keep
|
|
23
23
|
constructor(
|
|
24
|
+
@DoNotStrip
|
|
25
|
+
@Keep
|
|
24
26
|
val promptHeading: String?,
|
|
27
|
+
@DoNotStrip
|
|
28
|
+
@Keep
|
|
25
29
|
val promptMessage: String?,
|
|
30
|
+
@DoNotStrip
|
|
31
|
+
@Keep
|
|
26
32
|
val settingsButtonText: String?,
|
|
33
|
+
@DoNotStrip
|
|
34
|
+
@Keep
|
|
27
35
|
val notNowButtonText: String?,
|
|
36
|
+
@DoNotStrip
|
|
37
|
+
@Keep
|
|
28
38
|
val permissions: Array<String>?
|
|
29
39
|
) {
|
|
30
40
|
/* main constructor */
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
namespace margelo::nitro::securiticonsentsdk::bridge::swift {
|
|
15
15
|
|
|
16
16
|
// pragma MARK: std::function<void(bool /* isReady */)>
|
|
17
|
-
Func_void_bool create_Func_void_bool(void* _Nonnull swiftClosureWrapper) {
|
|
17
|
+
Func_void_bool create_Func_void_bool(void* _Nonnull swiftClosureWrapper) noexcept {
|
|
18
18
|
auto swiftClosure = NitroSecuritiConsentSdk::Func_void_bool::fromUnsafe(swiftClosureWrapper);
|
|
19
19
|
return [swiftClosure = std::move(swiftClosure)](bool isReady) mutable -> void {
|
|
20
20
|
swiftClosure.call(isReady);
|
|
@@ -22,7 +22,7 @@ namespace margelo::nitro::securiticonsentsdk::bridge::swift {
|
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
// pragma MARK: std::function<void(const std::string& /* result */)>
|
|
25
|
-
Func_void_std__string create_Func_void_std__string(void* _Nonnull swiftClosureWrapper) {
|
|
25
|
+
Func_void_std__string create_Func_void_std__string(void* _Nonnull swiftClosureWrapper) noexcept {
|
|
26
26
|
auto swiftClosure = NitroSecuritiConsentSdk::Func_void_std__string::fromUnsafe(swiftClosureWrapper);
|
|
27
27
|
return [swiftClosure = std::move(swiftClosure)](const std::string& result) mutable -> void {
|
|
28
28
|
swiftClosure.call(result);
|
|
@@ -30,7 +30,7 @@ namespace margelo::nitro::securiticonsentsdk::bridge::swift {
|
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
// pragma MARK: std::function<void(const std::exception_ptr& /* error */)>
|
|
33
|
-
Func_void_std__exception_ptr create_Func_void_std__exception_ptr(void* _Nonnull swiftClosureWrapper) {
|
|
33
|
+
Func_void_std__exception_ptr create_Func_void_std__exception_ptr(void* _Nonnull swiftClosureWrapper) noexcept {
|
|
34
34
|
auto swiftClosure = NitroSecuritiConsentSdk::Func_void_std__exception_ptr::fromUnsafe(swiftClosureWrapper);
|
|
35
35
|
return [swiftClosure = std::move(swiftClosure)](const std::exception_ptr& error) mutable -> void {
|
|
36
36
|
swiftClosure.call(error);
|
|
@@ -38,7 +38,7 @@ namespace margelo::nitro::securiticonsentsdk::bridge::swift {
|
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
// pragma MARK: std::function<void(const std::vector<AppPermission>& /* result */)>
|
|
41
|
-
Func_void_std__vector_AppPermission_ create_Func_void_std__vector_AppPermission_(void* _Nonnull swiftClosureWrapper) {
|
|
41
|
+
Func_void_std__vector_AppPermission_ create_Func_void_std__vector_AppPermission_(void* _Nonnull swiftClosureWrapper) noexcept {
|
|
42
42
|
auto swiftClosure = NitroSecuritiConsentSdk::Func_void_std__vector_AppPermission_::fromUnsafe(swiftClosureWrapper);
|
|
43
43
|
return [swiftClosure = std::move(swiftClosure)](const std::vector<AppPermission>& result) mutable -> void {
|
|
44
44
|
swiftClosure.call(result);
|
|
@@ -46,7 +46,7 @@ namespace margelo::nitro::securiticonsentsdk::bridge::swift {
|
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
// pragma MARK: std::function<void(const std::vector<Purpose>& /* result */)>
|
|
49
|
-
Func_void_std__vector_Purpose_ create_Func_void_std__vector_Purpose_(void* _Nonnull swiftClosureWrapper) {
|
|
49
|
+
Func_void_std__vector_Purpose_ create_Func_void_std__vector_Purpose_(void* _Nonnull swiftClosureWrapper) noexcept {
|
|
50
50
|
auto swiftClosure = NitroSecuritiConsentSdk::Func_void_std__vector_Purpose_::fromUnsafe(swiftClosureWrapper);
|
|
51
51
|
return [swiftClosure = std::move(swiftClosure)](const std::vector<Purpose>& result) mutable -> void {
|
|
52
52
|
swiftClosure.call(result);
|
|
@@ -54,7 +54,7 @@ namespace margelo::nitro::securiticonsentsdk::bridge::swift {
|
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
// pragma MARK: std::function<void(const std::vector<SDK>& /* result */)>
|
|
57
|
-
Func_void_std__vector_SDK_ create_Func_void_std__vector_SDK_(void* _Nonnull swiftClosureWrapper) {
|
|
57
|
+
Func_void_std__vector_SDK_ create_Func_void_std__vector_SDK_(void* _Nonnull swiftClosureWrapper) noexcept {
|
|
58
58
|
auto swiftClosure = NitroSecuritiConsentSdk::Func_void_std__vector_SDK_::fromUnsafe(swiftClosureWrapper);
|
|
59
59
|
return [swiftClosure = std::move(swiftClosure)](const std::vector<SDK>& result) mutable -> void {
|
|
60
60
|
swiftClosure.call(result);
|
|
@@ -62,7 +62,7 @@ namespace margelo::nitro::securiticonsentsdk::bridge::swift {
|
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
// pragma MARK: std::function<void(const std::optional<BannerConfig>& /* result */)>
|
|
65
|
-
Func_void_std__optional_BannerConfig_ create_Func_void_std__optional_BannerConfig_(void* _Nonnull swiftClosureWrapper) {
|
|
65
|
+
Func_void_std__optional_BannerConfig_ create_Func_void_std__optional_BannerConfig_(void* _Nonnull swiftClosureWrapper) noexcept {
|
|
66
66
|
auto swiftClosure = NitroSecuritiConsentSdk::Func_void_std__optional_BannerConfig_::fromUnsafe(swiftClosureWrapper);
|
|
67
67
|
return [swiftClosure = std::move(swiftClosure)](const std::optional<BannerConfig>& result) mutable -> void {
|
|
68
68
|
swiftClosure.call(result);
|
|
@@ -70,19 +70,19 @@ namespace margelo::nitro::securiticonsentsdk::bridge::swift {
|
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
// pragma MARK: std::function<void(const std::optional<SettingsPrompt>& /* result */)>
|
|
73
|
-
Func_void_std__optional_SettingsPrompt_ create_Func_void_std__optional_SettingsPrompt_(void* _Nonnull swiftClosureWrapper) {
|
|
73
|
+
Func_void_std__optional_SettingsPrompt_ create_Func_void_std__optional_SettingsPrompt_(void* _Nonnull swiftClosureWrapper) noexcept {
|
|
74
74
|
auto swiftClosure = NitroSecuritiConsentSdk::Func_void_std__optional_SettingsPrompt_::fromUnsafe(swiftClosureWrapper);
|
|
75
75
|
return [swiftClosure = std::move(swiftClosure)](const std::optional<SettingsPrompt>& result) mutable -> void {
|
|
76
76
|
swiftClosure.call(result);
|
|
77
77
|
};
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
-
// pragma MARK: std::shared_ptr<
|
|
81
|
-
std::shared_ptr<
|
|
80
|
+
// pragma MARK: std::shared_ptr<HybridConsentSDKSpec>
|
|
81
|
+
std::shared_ptr<HybridConsentSDKSpec> create_std__shared_ptr_HybridConsentSDKSpec_(void* _Nonnull swiftUnsafePointer) noexcept {
|
|
82
82
|
NitroSecuritiConsentSdk::HybridConsentSDKSpec_cxx swiftPart = NitroSecuritiConsentSdk::HybridConsentSDKSpec_cxx::fromUnsafe(swiftUnsafePointer);
|
|
83
83
|
return std::make_shared<margelo::nitro::securiticonsentsdk::HybridConsentSDKSpecSwift>(swiftPart);
|
|
84
84
|
}
|
|
85
|
-
void* _Nonnull
|
|
85
|
+
void* _Nonnull get_std__shared_ptr_HybridConsentSDKSpec_(std__shared_ptr_HybridConsentSDKSpec_ cppType) noexcept {
|
|
86
86
|
std::shared_ptr<margelo::nitro::securiticonsentsdk::HybridConsentSDKSpecSwift> swiftWrapper = std::dynamic_pointer_cast<margelo::nitro::securiticonsentsdk::HybridConsentSDKSpecSwift>(cppType);
|
|
87
87
|
#ifdef NITRO_DEBUG
|
|
88
88
|
if (swiftWrapper == nullptr) [[unlikely]] {
|