securiti-consent-sdk 1.136.0-2rc → 1.136.0-4rc
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/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.hpp +3 -0
- package/nitrogen/generated/ios/swift/BannerConfig.swift +1 -1
- package/package.json +1 -1
|
@@ -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 */
|
|
@@ -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
|
|
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-
|
|
3
|
+
"version": "1.136.0-4rc",
|
|
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",
|