securiti-consent-sdk 1.135.0-9rc → 1.136.0-10rc
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/ios/HybridConsentSDK.swift +1 -0
- package/lib/index.d.ts +20 -0
- package/nitrogen/generated/android/NitroSecuritiConsentSdkOnLoad.cpp +1 -2
- package/nitrogen/generated/android/c++/JHybridConsentSDKSpec.cpp +7 -2
- package/nitrogen/generated/android/c++/JHybridConsentSDKSpec.hpp +2 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/securiticonsentsdk/AppPermission.kt +19 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/securiticonsentsdk/BannerConfig.kt +65 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/securiticonsentsdk/CmpSDKOptions.kt +23 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/securiticonsentsdk/CustomColors.kt +17 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/securiticonsentsdk/Func_void_bool.kt +1 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/securiticonsentsdk/PermissionConsent.kt +7 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/securiticonsentsdk/PostConsentsRequest.kt +25 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/securiticonsentsdk/Purpose.kt +25 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/securiticonsentsdk/PurposeConsent.kt +9 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/securiticonsentsdk/SDK.kt +19 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/securiticonsentsdk/SettingsPrompt.kt +11 -0
- package/nitrogen/generated/ios/NitroSecuritiConsentSdk-Swift-Cxx-Bridge.cpp +13 -13
- 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/c++/HybridConsentSDKSpecSwift.hpp +4 -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 +6 -5
- package/nitrogen/generated/ios/swift/Func_void_std__exception_ptr.swift +1 -0
- package/nitrogen/generated/ios/swift/Func_void_std__optional_BannerConfig_.swift +3 -1
- package/nitrogen/generated/ios/swift/Func_void_std__optional_SettingsPrompt_.swift +3 -1
- package/nitrogen/generated/ios/swift/Func_void_std__string.swift +1 -0
- package/nitrogen/generated/ios/swift/Func_void_std__vector_AppPermission_.swift +1 -0
- package/nitrogen/generated/ios/swift/Func_void_std__vector_Purpose_.swift +1 -0
- package/nitrogen/generated/ios/swift/Func_void_std__vector_SDK_.swift +1 -0
- package/nitrogen/generated/ios/swift/HybridConsentSDKSpec.swift +2 -1
- package/nitrogen/generated/ios/swift/HybridConsentSDKSpec_cxx.swift +15 -6
- 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 +5 -7
- package/nitrogen/generated/shared/c++/HybridConsentSDKSpec.hpp +3 -3
- package/nitrogen/generated/shared/c++/PermissionConsent.hpp +4 -6
- package/nitrogen/generated/shared/c++/PostConsentsRequest.hpp +11 -13
- package/nitrogen/generated/shared/c++/Purpose.hpp +8 -10
- 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 +5 -7
- package/package.json +1 -1
package/android/build.gradle
CHANGED
|
@@ -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
|
))
|
package/lib/index.d.ts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { CmpSDKLoggerLevel, CmpSDKOptions, ConsentStatus, Purpose, AppPermission, SDK, BannerConfig, SettingsPrompt, PostConsentsRequest, ComplianceType, BannerPosition, ButtonShape, CustomColors, PurposeConsent, PermissionConsent, Mode, PurposeObject, PermissionObject } from './ConsentSDK.nitro';
|
|
2
|
+
export type { CmpSDKLoggerLevel, CmpSDKOptions, ConsentStatus, Purpose, AppPermission, SDK, BannerConfig, SettingsPrompt, PostConsentsRequest, ComplianceType, BannerPosition, ButtonShape, CustomColors, PurposeConsent, PermissionConsent, Mode, PurposeObject, PermissionObject, };
|
|
3
|
+
export { LoggerLevel, ModeValues, ConsentStatusValues, ComplianceTypeValues, BannerPositionValues, ButtonShapeValues, } from './ConsentSDK.nitro';
|
|
4
|
+
export declare function initialize(sdkOptions: CmpSDKOptions): void;
|
|
5
|
+
export declare function presentConsentBanner(): void;
|
|
6
|
+
export declare function presentPreferenceCenter(): void;
|
|
7
|
+
export declare function isSdkReady(): boolean;
|
|
8
|
+
export declare function isReady(callback: (isReady: boolean) => void): void;
|
|
9
|
+
export declare function resetConsents(): void;
|
|
10
|
+
export declare function getConsentByPurposeId(purposeId: number): Promise<string>;
|
|
11
|
+
export declare function getConsentByPermissionId(permissionId: string): Promise<string>;
|
|
12
|
+
export declare function getPermissions(): Promise<Array<AppPermission>>;
|
|
13
|
+
export declare function getPurposes(): Promise<Array<Purpose>>;
|
|
14
|
+
export declare function getSdksInPurpose(purposeId: number): Promise<Array<SDK>>;
|
|
15
|
+
export declare function setPurposeConsent(purpose: Purpose, consent: string): boolean;
|
|
16
|
+
export declare function setPermissionConsent(permission: AppPermission, consent: string): boolean;
|
|
17
|
+
export declare function getBannerConfig(): Promise<BannerConfig | null>;
|
|
18
|
+
export declare function options(): CmpSDKOptions | null;
|
|
19
|
+
export declare function getSettingsPrompt(): Promise<SettingsPrompt | null>;
|
|
20
|
+
export declare function uploadConsents(request: PostConsentsRequest): Promise<boolean>;
|
|
@@ -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
|
});
|
|
@@ -28,11 +28,11 @@ namespace margelo::nitro::securiticonsentsdk { struct PurposeConsent; }
|
|
|
28
28
|
// Forward declaration of `PermissionConsent` to properly resolve imports.
|
|
29
29
|
namespace margelo::nitro::securiticonsentsdk { struct PermissionConsent; }
|
|
30
30
|
|
|
31
|
-
#include <NitroModules/Promise.hpp>
|
|
32
31
|
#include <string>
|
|
32
|
+
#include <NitroModules/Promise.hpp>
|
|
33
33
|
#include <NitroModules/JPromise.hpp>
|
|
34
|
-
#include <vector>
|
|
35
34
|
#include "AppPermission.hpp"
|
|
35
|
+
#include <vector>
|
|
36
36
|
#include "JAppPermission.hpp"
|
|
37
37
|
#include <optional>
|
|
38
38
|
#include "Purpose.hpp"
|
|
@@ -74,6 +74,11 @@ namespace margelo::nitro::securiticonsentsdk {
|
|
|
74
74
|
return method(_javaPart);
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
+
void JHybridConsentSDKSpec::dispose() noexcept {
|
|
78
|
+
static const auto method = javaClassStatic()->getMethod<void()>("dispose");
|
|
79
|
+
method(_javaPart);
|
|
80
|
+
}
|
|
81
|
+
|
|
77
82
|
// Properties
|
|
78
83
|
|
|
79
84
|
|
|
@@ -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:
|
|
@@ -39,6 +40,7 @@ namespace margelo::nitro::securiticonsentsdk {
|
|
|
39
40
|
|
|
40
41
|
public:
|
|
41
42
|
size_t getExternalMemorySize() noexcept override;
|
|
43
|
+
void dispose() noexcept override;
|
|
42
44
|
|
|
43
45
|
public:
|
|
44
46
|
inline const jni::global_ref<JHybridConsentSDKSpec::javaobject>& getJavaPart() const noexcept {
|
package/nitrogen/generated/android/kotlin/com/margelo/nitro/securiticonsentsdk/AppPermission.kt
CHANGED
|
@@ -11,6 +11,7 @@ import androidx.annotation.Keep
|
|
|
11
11
|
import com.facebook.proguard.annotations.DoNotStrip
|
|
12
12
|
import com.margelo.nitro.core.*
|
|
13
13
|
|
|
14
|
+
|
|
14
15
|
/**
|
|
15
16
|
* Represents the JavaScript object/struct "AppPermission".
|
|
16
17
|
*/
|
|
@@ -20,14 +21,32 @@ data class AppPermission
|
|
|
20
21
|
@DoNotStrip
|
|
21
22
|
@Keep
|
|
22
23
|
constructor(
|
|
24
|
+
@DoNotStrip
|
|
25
|
+
@Keep
|
|
23
26
|
val id: Double?,
|
|
27
|
+
@DoNotStrip
|
|
28
|
+
@Keep
|
|
24
29
|
val name: String?,
|
|
30
|
+
@DoNotStrip
|
|
31
|
+
@Keep
|
|
25
32
|
val permissionId: String?,
|
|
33
|
+
@DoNotStrip
|
|
34
|
+
@Keep
|
|
26
35
|
val description: String?,
|
|
36
|
+
@DoNotStrip
|
|
37
|
+
@Keep
|
|
27
38
|
val group: String?,
|
|
39
|
+
@DoNotStrip
|
|
40
|
+
@Keep
|
|
28
41
|
val groupId: Double?,
|
|
42
|
+
@DoNotStrip
|
|
43
|
+
@Keep
|
|
29
44
|
val consentStatus: String?,
|
|
45
|
+
@DoNotStrip
|
|
46
|
+
@Keep
|
|
30
47
|
val nameMap: String?,
|
|
48
|
+
@DoNotStrip
|
|
49
|
+
@Keep
|
|
31
50
|
val isSettingsPromptEnabled: Boolean?
|
|
32
51
|
) {
|
|
33
52
|
/* main constructor */
|
package/nitrogen/generated/android/kotlin/com/margelo/nitro/securiticonsentsdk/BannerConfig.kt
CHANGED
|
@@ -11,6 +11,7 @@ import androidx.annotation.Keep
|
|
|
11
11
|
import com.facebook.proguard.annotations.DoNotStrip
|
|
12
12
|
import com.margelo.nitro.core.*
|
|
13
13
|
|
|
14
|
+
|
|
14
15
|
/**
|
|
15
16
|
* Represents the JavaScript object/struct "BannerConfig".
|
|
16
17
|
*/
|
|
@@ -20,37 +21,101 @@ data class BannerConfig
|
|
|
20
21
|
@DoNotStrip
|
|
21
22
|
@Keep
|
|
22
23
|
constructor(
|
|
24
|
+
@DoNotStrip
|
|
25
|
+
@Keep
|
|
23
26
|
val hideCloseButton: Boolean?,
|
|
27
|
+
@DoNotStrip
|
|
28
|
+
@Keep
|
|
24
29
|
val hideAcceptButton: Boolean?,
|
|
30
|
+
@DoNotStrip
|
|
31
|
+
@Keep
|
|
25
32
|
val embedDSRPortalLink: Boolean?,
|
|
33
|
+
@DoNotStrip
|
|
34
|
+
@Keep
|
|
26
35
|
val recordConsentUponAppStart: Boolean?,
|
|
36
|
+
@DoNotStrip
|
|
37
|
+
@Keep
|
|
27
38
|
val hideToggleForEssentialCategories: Boolean?,
|
|
39
|
+
@DoNotStrip
|
|
40
|
+
@Keep
|
|
28
41
|
val name: String?,
|
|
42
|
+
@DoNotStrip
|
|
43
|
+
@Keep
|
|
29
44
|
val dsrPortalLink: String?,
|
|
45
|
+
@DoNotStrip
|
|
46
|
+
@Keep
|
|
30
47
|
val complianceType: String?,
|
|
48
|
+
@DoNotStrip
|
|
49
|
+
@Keep
|
|
31
50
|
val bannerReappearanceTime: String?,
|
|
51
|
+
@DoNotStrip
|
|
52
|
+
@Keep
|
|
32
53
|
val privacyNoticeLink: String?,
|
|
54
|
+
@DoNotStrip
|
|
55
|
+
@Keep
|
|
33
56
|
val accept: String?,
|
|
57
|
+
@DoNotStrip
|
|
58
|
+
@Keep
|
|
34
59
|
val reject: String?,
|
|
60
|
+
@DoNotStrip
|
|
61
|
+
@Keep
|
|
35
62
|
val bannerText: String?,
|
|
63
|
+
@DoNotStrip
|
|
64
|
+
@Keep
|
|
36
65
|
val bannerHeading: String?,
|
|
66
|
+
@DoNotStrip
|
|
67
|
+
@Keep
|
|
37
68
|
val sdkTabHeading: String?,
|
|
69
|
+
@DoNotStrip
|
|
70
|
+
@Keep
|
|
38
71
|
val privacyNoticeText: String?,
|
|
72
|
+
@DoNotStrip
|
|
73
|
+
@Keep
|
|
39
74
|
val preferenceCenterLink: String?,
|
|
75
|
+
@DoNotStrip
|
|
76
|
+
@Keep
|
|
40
77
|
val permissionsTabHeading: String?,
|
|
78
|
+
@DoNotStrip
|
|
79
|
+
@Keep
|
|
41
80
|
val permissionsTabGuidance: String?,
|
|
81
|
+
@DoNotStrip
|
|
82
|
+
@Keep
|
|
42
83
|
val preferenceCenterHeading: String?,
|
|
84
|
+
@DoNotStrip
|
|
85
|
+
@Keep
|
|
43
86
|
val preferenceCenterGuidance: String?,
|
|
87
|
+
@DoNotStrip
|
|
88
|
+
@Keep
|
|
44
89
|
val permissionsTabDescription: String?,
|
|
90
|
+
@DoNotStrip
|
|
91
|
+
@Keep
|
|
45
92
|
val preferenceCenterDescription: String?,
|
|
93
|
+
@DoNotStrip
|
|
94
|
+
@Keep
|
|
46
95
|
val showPoweredBySecuritiLogo: Boolean?,
|
|
96
|
+
@DoNotStrip
|
|
97
|
+
@Keep
|
|
47
98
|
val showDescriptionTextWithPrefCenterToggle: Boolean?,
|
|
99
|
+
@DoNotStrip
|
|
100
|
+
@Keep
|
|
48
101
|
val paletteTheme: Double?,
|
|
102
|
+
@DoNotStrip
|
|
103
|
+
@Keep
|
|
49
104
|
val bannerPosition: String?,
|
|
105
|
+
@DoNotStrip
|
|
106
|
+
@Keep
|
|
50
107
|
val buttonShape: String?,
|
|
108
|
+
@DoNotStrip
|
|
109
|
+
@Keep
|
|
51
110
|
val companyLogo: String?,
|
|
111
|
+
@DoNotStrip
|
|
112
|
+
@Keep
|
|
52
113
|
val customPaletteTheme: CustomColors?,
|
|
114
|
+
@DoNotStrip
|
|
115
|
+
@Keep
|
|
53
116
|
val shouldShowSettingsPrompt: Boolean?,
|
|
117
|
+
@DoNotStrip
|
|
118
|
+
@Keep
|
|
54
119
|
val translations: Map<String, String>?
|
|
55
120
|
) {
|
|
56
121
|
/* main constructor */
|
package/nitrogen/generated/android/kotlin/com/margelo/nitro/securiticonsentsdk/CmpSDKOptions.kt
CHANGED
|
@@ -11,6 +11,7 @@ import androidx.annotation.Keep
|
|
|
11
11
|
import com.facebook.proguard.annotations.DoNotStrip
|
|
12
12
|
import com.margelo.nitro.core.*
|
|
13
13
|
|
|
14
|
+
|
|
14
15
|
/**
|
|
15
16
|
* Represents the JavaScript object/struct "CmpSDKOptions".
|
|
16
17
|
*/
|
|
@@ -20,16 +21,38 @@ data class CmpSDKOptions
|
|
|
20
21
|
@DoNotStrip
|
|
21
22
|
@Keep
|
|
22
23
|
constructor(
|
|
24
|
+
@DoNotStrip
|
|
25
|
+
@Keep
|
|
23
26
|
val appURL: String,
|
|
27
|
+
@DoNotStrip
|
|
28
|
+
@Keep
|
|
24
29
|
val cdnURL: String,
|
|
30
|
+
@DoNotStrip
|
|
31
|
+
@Keep
|
|
25
32
|
val tenantID: String,
|
|
33
|
+
@DoNotStrip
|
|
34
|
+
@Keep
|
|
26
35
|
val appID: String,
|
|
36
|
+
@DoNotStrip
|
|
37
|
+
@Keep
|
|
27
38
|
val testingMode: Boolean,
|
|
39
|
+
@DoNotStrip
|
|
40
|
+
@Keep
|
|
28
41
|
val loggerLevel: String,
|
|
42
|
+
@DoNotStrip
|
|
43
|
+
@Keep
|
|
29
44
|
val consentsCheckInterval: Double,
|
|
45
|
+
@DoNotStrip
|
|
46
|
+
@Keep
|
|
30
47
|
val subjectId: String?,
|
|
48
|
+
@DoNotStrip
|
|
49
|
+
@Keep
|
|
31
50
|
val languageCode: String?,
|
|
51
|
+
@DoNotStrip
|
|
52
|
+
@Keep
|
|
32
53
|
val locationCode: String?,
|
|
54
|
+
@DoNotStrip
|
|
55
|
+
@Keep
|
|
33
56
|
val mode: String?
|
|
34
57
|
) {
|
|
35
58
|
/* main constructor */
|
package/nitrogen/generated/android/kotlin/com/margelo/nitro/securiticonsentsdk/CustomColors.kt
CHANGED
|
@@ -11,6 +11,7 @@ import androidx.annotation.Keep
|
|
|
11
11
|
import com.facebook.proguard.annotations.DoNotStrip
|
|
12
12
|
import com.margelo.nitro.core.*
|
|
13
13
|
|
|
14
|
+
|
|
14
15
|
/**
|
|
15
16
|
* Represents the JavaScript object/struct "CustomColors".
|
|
16
17
|
*/
|
|
@@ -20,13 +21,29 @@ data class CustomColors
|
|
|
20
21
|
@DoNotStrip
|
|
21
22
|
@Keep
|
|
22
23
|
constructor(
|
|
24
|
+
@DoNotStrip
|
|
25
|
+
@Keep
|
|
23
26
|
val buttonBackground: String?,
|
|
27
|
+
@DoNotStrip
|
|
28
|
+
@Keep
|
|
24
29
|
val buttonText: String?,
|
|
30
|
+
@DoNotStrip
|
|
31
|
+
@Keep
|
|
25
32
|
val buttonBorder: String?,
|
|
33
|
+
@DoNotStrip
|
|
34
|
+
@Keep
|
|
26
35
|
val bannerBackground: String?,
|
|
36
|
+
@DoNotStrip
|
|
37
|
+
@Keep
|
|
27
38
|
val bannerText: String?,
|
|
39
|
+
@DoNotStrip
|
|
40
|
+
@Keep
|
|
28
41
|
val bannerLinks: String?,
|
|
42
|
+
@DoNotStrip
|
|
43
|
+
@Keep
|
|
29
44
|
val preferenceCenterFooterBackground: String?,
|
|
45
|
+
@DoNotStrip
|
|
46
|
+
@Keep
|
|
30
47
|
val preferenceCenterFooterSelector: String?
|
|
31
48
|
) {
|
|
32
49
|
/* main constructor */
|
package/nitrogen/generated/android/kotlin/com/margelo/nitro/securiticonsentsdk/Func_void_bool.kt
CHANGED
|
@@ -13,6 +13,7 @@ import com.facebook.proguard.annotations.DoNotStrip
|
|
|
13
13
|
import com.margelo.nitro.core.*
|
|
14
14
|
import dalvik.annotation.optimization.FastNative
|
|
15
15
|
|
|
16
|
+
|
|
16
17
|
/**
|
|
17
18
|
* Represents the JavaScript callback `(isReady: boolean) => void`.
|
|
18
19
|
* This can be either implemented in C++ (in which case it might be a callback coming from JS),
|
package/nitrogen/generated/android/kotlin/com/margelo/nitro/securiticonsentsdk/PermissionConsent.kt
CHANGED
|
@@ -11,6 +11,7 @@ import androidx.annotation.Keep
|
|
|
11
11
|
import com.facebook.proguard.annotations.DoNotStrip
|
|
12
12
|
import com.margelo.nitro.core.*
|
|
13
13
|
|
|
14
|
+
|
|
14
15
|
/**
|
|
15
16
|
* Represents the JavaScript object/struct "PermissionConsent".
|
|
16
17
|
*/
|
|
@@ -20,8 +21,14 @@ data class PermissionConsent
|
|
|
20
21
|
@DoNotStrip
|
|
21
22
|
@Keep
|
|
22
23
|
constructor(
|
|
24
|
+
@DoNotStrip
|
|
25
|
+
@Keep
|
|
23
26
|
val permission: String,
|
|
27
|
+
@DoNotStrip
|
|
28
|
+
@Keep
|
|
24
29
|
val consentStatus: String,
|
|
30
|
+
@DoNotStrip
|
|
31
|
+
@Keep
|
|
25
32
|
val timestamp: Double
|
|
26
33
|
) {
|
|
27
34
|
/* main constructor */
|
|
@@ -11,6 +11,7 @@ import androidx.annotation.Keep
|
|
|
11
11
|
import com.facebook.proguard.annotations.DoNotStrip
|
|
12
12
|
import com.margelo.nitro.core.*
|
|
13
13
|
|
|
14
|
+
|
|
14
15
|
/**
|
|
15
16
|
* Represents the JavaScript object/struct "PostConsentsRequest".
|
|
16
17
|
*/
|
|
@@ -20,17 +21,41 @@ data class PostConsentsRequest
|
|
|
20
21
|
@DoNotStrip
|
|
21
22
|
@Keep
|
|
22
23
|
constructor(
|
|
24
|
+
@DoNotStrip
|
|
25
|
+
@Keep
|
|
23
26
|
val uuid: String,
|
|
27
|
+
@DoNotStrip
|
|
28
|
+
@Keep
|
|
24
29
|
val appUUID: String,
|
|
30
|
+
@DoNotStrip
|
|
31
|
+
@Keep
|
|
25
32
|
val device: String,
|
|
33
|
+
@DoNotStrip
|
|
34
|
+
@Keep
|
|
26
35
|
val implicitConsent: Boolean,
|
|
36
|
+
@DoNotStrip
|
|
37
|
+
@Keep
|
|
27
38
|
val version: Double,
|
|
39
|
+
@DoNotStrip
|
|
40
|
+
@Keep
|
|
28
41
|
val purposeConsents: Array<PurposeConsent>,
|
|
42
|
+
@DoNotStrip
|
|
43
|
+
@Keep
|
|
29
44
|
val permissions: Array<PermissionConsent>,
|
|
45
|
+
@DoNotStrip
|
|
46
|
+
@Keep
|
|
30
47
|
val isTestMode: Boolean,
|
|
48
|
+
@DoNotStrip
|
|
49
|
+
@Keep
|
|
31
50
|
val adId: String,
|
|
51
|
+
@DoNotStrip
|
|
52
|
+
@Keep
|
|
32
53
|
val bannerInfo: String,
|
|
54
|
+
@DoNotStrip
|
|
55
|
+
@Keep
|
|
33
56
|
val sdkVersion: String?,
|
|
57
|
+
@DoNotStrip
|
|
58
|
+
@Keep
|
|
34
59
|
val platform: String?
|
|
35
60
|
) {
|
|
36
61
|
/* main constructor */
|
|
@@ -11,6 +11,7 @@ import androidx.annotation.Keep
|
|
|
11
11
|
import com.facebook.proguard.annotations.DoNotStrip
|
|
12
12
|
import com.margelo.nitro.core.*
|
|
13
13
|
|
|
14
|
+
|
|
14
15
|
/**
|
|
15
16
|
* Represents the JavaScript object/struct "Purpose".
|
|
16
17
|
*/
|
|
@@ -20,17 +21,41 @@ data class Purpose
|
|
|
20
21
|
@DoNotStrip
|
|
21
22
|
@Keep
|
|
22
23
|
constructor(
|
|
24
|
+
@DoNotStrip
|
|
25
|
+
@Keep
|
|
23
26
|
val purposeId: Double?,
|
|
27
|
+
@DoNotStrip
|
|
28
|
+
@Keep
|
|
24
29
|
val purposeName: String?,
|
|
30
|
+
@DoNotStrip
|
|
31
|
+
@Keep
|
|
25
32
|
val purposeDescription: String?,
|
|
33
|
+
@DoNotStrip
|
|
34
|
+
@Keep
|
|
26
35
|
val sdks: Array<SDK>?,
|
|
36
|
+
@DoNotStrip
|
|
37
|
+
@Keep
|
|
27
38
|
val consentStatus: String?,
|
|
39
|
+
@DoNotStrip
|
|
40
|
+
@Keep
|
|
28
41
|
val disableOptOut: Boolean?,
|
|
42
|
+
@DoNotStrip
|
|
43
|
+
@Keep
|
|
29
44
|
val optOutText: String?,
|
|
45
|
+
@DoNotStrip
|
|
46
|
+
@Keep
|
|
30
47
|
val hideDetails: Boolean?,
|
|
48
|
+
@DoNotStrip
|
|
49
|
+
@Keep
|
|
31
50
|
val isGADMapped: Boolean?,
|
|
51
|
+
@DoNotStrip
|
|
52
|
+
@Keep
|
|
32
53
|
val gadDescription: String?,
|
|
54
|
+
@DoNotStrip
|
|
55
|
+
@Keep
|
|
33
56
|
val isATTMapped: Boolean?,
|
|
57
|
+
@DoNotStrip
|
|
58
|
+
@Keep
|
|
34
59
|
val attDescription: String?
|
|
35
60
|
) {
|
|
36
61
|
/* main constructor */
|
package/nitrogen/generated/android/kotlin/com/margelo/nitro/securiticonsentsdk/PurposeConsent.kt
CHANGED
|
@@ -11,6 +11,7 @@ import androidx.annotation.Keep
|
|
|
11
11
|
import com.facebook.proguard.annotations.DoNotStrip
|
|
12
12
|
import com.margelo.nitro.core.*
|
|
13
13
|
|
|
14
|
+
|
|
14
15
|
/**
|
|
15
16
|
* Represents the JavaScript object/struct "PurposeConsent".
|
|
16
17
|
*/
|
|
@@ -20,9 +21,17 @@ data class PurposeConsent
|
|
|
20
21
|
@DoNotStrip
|
|
21
22
|
@Keep
|
|
22
23
|
constructor(
|
|
24
|
+
@DoNotStrip
|
|
25
|
+
@Keep
|
|
23
26
|
val purposeID: Double,
|
|
27
|
+
@DoNotStrip
|
|
28
|
+
@Keep
|
|
24
29
|
val consentStatus: String,
|
|
30
|
+
@DoNotStrip
|
|
31
|
+
@Keep
|
|
25
32
|
val timestamp: Double,
|
|
33
|
+
@DoNotStrip
|
|
34
|
+
@Keep
|
|
26
35
|
val isEssential: Boolean
|
|
27
36
|
) {
|
|
28
37
|
/* main constructor */
|
|
@@ -11,6 +11,7 @@ import androidx.annotation.Keep
|
|
|
11
11
|
import com.facebook.proguard.annotations.DoNotStrip
|
|
12
12
|
import com.margelo.nitro.core.*
|
|
13
13
|
|
|
14
|
+
|
|
14
15
|
/**
|
|
15
16
|
* Represents the JavaScript object/struct "SDK".
|
|
16
17
|
*/
|
|
@@ -20,14 +21,32 @@ data class SDK
|
|
|
20
21
|
@DoNotStrip
|
|
21
22
|
@Keep
|
|
22
23
|
constructor(
|
|
24
|
+
@DoNotStrip
|
|
25
|
+
@Keep
|
|
23
26
|
val sdkId: Double?,
|
|
27
|
+
@DoNotStrip
|
|
28
|
+
@Keep
|
|
24
29
|
val namespaceId: String?,
|
|
30
|
+
@DoNotStrip
|
|
31
|
+
@Keep
|
|
25
32
|
val sdkName: String?,
|
|
33
|
+
@DoNotStrip
|
|
34
|
+
@Keep
|
|
26
35
|
val sdkDescription: String?,
|
|
36
|
+
@DoNotStrip
|
|
37
|
+
@Keep
|
|
27
38
|
val vendor: String?,
|
|
39
|
+
@DoNotStrip
|
|
40
|
+
@Keep
|
|
28
41
|
val logoBase64: String?,
|
|
42
|
+
@DoNotStrip
|
|
43
|
+
@Keep
|
|
29
44
|
val website: String?,
|
|
45
|
+
@DoNotStrip
|
|
46
|
+
@Keep
|
|
30
47
|
val matchedBy: Array<String>?,
|
|
48
|
+
@DoNotStrip
|
|
49
|
+
@Keep
|
|
31
50
|
val collectingData: Boolean?
|
|
32
51
|
) {
|
|
33
52
|
/* main constructor */
|
package/nitrogen/generated/android/kotlin/com/margelo/nitro/securiticonsentsdk/SettingsPrompt.kt
CHANGED
|
@@ -11,6 +11,7 @@ import androidx.annotation.Keep
|
|
|
11
11
|
import com.facebook.proguard.annotations.DoNotStrip
|
|
12
12
|
import com.margelo.nitro.core.*
|
|
13
13
|
|
|
14
|
+
|
|
14
15
|
/**
|
|
15
16
|
* Represents the JavaScript object/struct "SettingsPrompt".
|
|
16
17
|
*/
|
|
@@ -20,10 +21,20 @@ data class SettingsPrompt
|
|
|
20
21
|
@DoNotStrip
|
|
21
22
|
@Keep
|
|
22
23
|
constructor(
|
|
24
|
+
@DoNotStrip
|
|
25
|
+
@Keep
|
|
23
26
|
val promptHeading: String?,
|
|
27
|
+
@DoNotStrip
|
|
28
|
+
@Keep
|
|
24
29
|
val promptMessage: String?,
|
|
30
|
+
@DoNotStrip
|
|
31
|
+
@Keep
|
|
25
32
|
val settingsButtonText: String?,
|
|
33
|
+
@DoNotStrip
|
|
34
|
+
@Keep
|
|
26
35
|
val notNowButtonText: String?,
|
|
36
|
+
@DoNotStrip
|
|
37
|
+
@Keep
|
|
27
38
|
val permissions: Array<String>?
|
|
28
39
|
) {
|
|
29
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,25 +70,25 @@ 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]] {
|
|
89
89
|
throw std::runtime_error("Class \"HybridConsentSDKSpec\" is not implemented in Swift!");
|
|
90
90
|
}
|
|
91
|
-
|
|
91
|
+
#endif
|
|
92
92
|
NitroSecuritiConsentSdk::HybridConsentSDKSpec_cxx& swiftPart = swiftWrapper->getSwiftPart();
|
|
93
93
|
return swiftPart.toUnsafe();
|
|
94
94
|
}
|