securiti-consent-sdk 1.141.0-1rc → 1.141.0-20rc
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/README.md +508 -2
- package/android/build.gradle +2 -2
- package/android/src/main/java/com/margelo/nitro/securiticonsentsdk/HybridConsentSDK.kt +168 -34
- package/android/src/main/java/com/margelo/nitro/securiticonsentsdk/NullTypeCompat.kt +19 -0
- package/ios/HybridConsentSDK.swift +78 -32
- package/lib/ConsentSDK.nitro.d.ts +8 -0
- package/lib/ConsentSDK.nitro.js +6 -0
- package/lib/index.js +8 -1
- package/nitrogen/generated/.gitattributes +1 -1
- package/nitrogen/generated/android/NitroSecuritiConsentSdk+autolinking.cmake +10 -4
- package/nitrogen/generated/android/NitroSecuritiConsentSdkOnLoad.cpp +1 -3
- package/nitrogen/generated/android/c++/JAppPermission.hpp +5 -1
- package/nitrogen/generated/android/c++/JBannerConfig.hpp +5 -1
- package/nitrogen/generated/android/c++/JCmpSDKOptions.hpp +5 -1
- package/nitrogen/generated/android/c++/JCustomColors.hpp +5 -1
- package/nitrogen/generated/android/c++/JFunc_void_bool.hpp +2 -1
- package/nitrogen/generated/android/c++/JHybridConsentSDKSpec.cpp +55 -14
- package/nitrogen/generated/android/c++/JHybridConsentSDKSpec.hpp +7 -3
- package/nitrogen/generated/android/c++/JPermissionConsent.hpp +5 -1
- package/nitrogen/generated/android/c++/JPostConsentsRequest.hpp +9 -3
- package/nitrogen/generated/android/c++/JPurpose.hpp +7 -2
- package/nitrogen/generated/android/c++/JPurposeConsent.hpp +5 -1
- package/nitrogen/generated/android/c++/JSDK.hpp +7 -2
- package/nitrogen/generated/android/c++/JSettingsPrompt.hpp +7 -2
- package/nitrogen/generated/android/c++/JVariant_NullType_BannerConfig.cpp +26 -0
- package/nitrogen/generated/android/c++/JVariant_NullType_BannerConfig.hpp +76 -0
- package/nitrogen/generated/android/c++/JVariant_NullType_CmpSDKOptions.cpp +26 -0
- package/nitrogen/generated/android/c++/JVariant_NullType_CmpSDKOptions.hpp +73 -0
- package/nitrogen/generated/android/c++/JVariant_NullType_SettingsPrompt.cpp +26 -0
- package/nitrogen/generated/android/c++/JVariant_NullType_SettingsPrompt.hpp +74 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/securiticonsentsdk/AppPermission.kt +44 -16
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/securiticonsentsdk/BannerConfig.kt +113 -39
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/securiticonsentsdk/CmpSDKOptions.kt +50 -18
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/securiticonsentsdk/CustomColors.kt +41 -15
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/securiticonsentsdk/Func_void_bool.kt +1 -1
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/securiticonsentsdk/HybridConsentSDKSpec.kt +16 -5
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/securiticonsentsdk/PermissionConsent.kt +24 -8
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/securiticonsentsdk/PostConsentsRequest.kt +53 -19
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/securiticonsentsdk/Purpose.kt +53 -19
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/securiticonsentsdk/PurposeConsent.kt +27 -9
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/securiticonsentsdk/SDK.kt +44 -16
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/securiticonsentsdk/SettingsPrompt.kt +30 -10
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/securiticonsentsdk/Variant_NullType_BannerConfig.kt +59 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/securiticonsentsdk/Variant_NullType_CmpSDKOptions.kt +59 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/securiticonsentsdk/Variant_NullType_SettingsPrompt.kt +59 -0
- package/nitrogen/generated/ios/NitroSecuritiConsentSdk-Swift-Cxx-Bridge.cpp +28 -19
- package/nitrogen/generated/ios/NitroSecuritiConsentSdk-Swift-Cxx-Bridge.hpp +313 -163
- package/nitrogen/generated/ios/NitroSecuritiConsentSdk-Swift-Cxx-Umbrella.hpp +4 -1
- package/nitrogen/generated/ios/NitroSecuritiConsentSdkAutolinking.mm +1 -1
- package/nitrogen/generated/ios/NitroSecuritiConsentSdkAutolinking.swift +2 -2
- package/nitrogen/generated/ios/c++/HybridConsentSDKSpecSwift.hpp +25 -10
- package/nitrogen/generated/ios/swift/AppPermission.swift +21 -7
- package/nitrogen/generated/ios/swift/BannerConfig.swift +111 -38
- package/nitrogen/generated/ios/swift/CmpSDKOptions.swift +9 -4
- package/nitrogen/generated/ios/swift/CustomColors.swift +17 -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__string.swift +1 -0
- package/nitrogen/generated/ios/swift/Func_void_std__unordered_map_std__string__std__string_.swift +55 -0
- package/nitrogen/generated/ios/swift/Func_void_std__variant_nitro__NullType__BannerConfig_.swift +59 -0
- package/nitrogen/generated/ios/swift/Func_void_std__variant_nitro__NullType__SettingsPrompt_.swift +59 -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 +13 -4
- package/nitrogen/generated/ios/swift/HybridConsentSDKSpec_cxx.swift +85 -40
- package/nitrogen/generated/ios/swift/PermissionConsent.swift +1 -0
- package/nitrogen/generated/ios/swift/PostConsentsRequest.swift +5 -2
- package/nitrogen/generated/ios/swift/Purpose.swift +47 -11
- package/nitrogen/generated/ios/swift/PurposeConsent.swift +1 -0
- package/nitrogen/generated/ios/swift/SDK.swift +23 -8
- package/nitrogen/generated/ios/swift/SettingsPrompt.swift +11 -5
- package/nitrogen/generated/ios/swift/Variant_NullType_BannerConfig.swift +18 -0
- package/nitrogen/generated/ios/swift/Variant_NullType_CmpSDKOptions.swift +18 -0
- package/nitrogen/generated/ios/swift/Variant_NullType_SettingsPrompt.swift +18 -0
- package/nitrogen/generated/shared/c++/AppPermission.hpp +12 -6
- package/nitrogen/generated/shared/c++/BannerConfig.hpp +15 -9
- package/nitrogen/generated/shared/c++/CmpSDKOptions.hpp +12 -6
- package/nitrogen/generated/shared/c++/CustomColors.hpp +13 -7
- package/nitrogen/generated/shared/c++/HybridConsentSDKSpec.cpp +1 -0
- package/nitrogen/generated/shared/c++/HybridConsentSDKSpec.hpp +9 -6
- package/nitrogen/generated/shared/c++/PermissionConsent.hpp +12 -6
- package/nitrogen/generated/shared/c++/PostConsentsRequest.hpp +19 -13
- package/nitrogen/generated/shared/c++/Purpose.hpp +16 -10
- package/nitrogen/generated/shared/c++/PurposeConsent.hpp +12 -6
- package/nitrogen/generated/shared/c++/SDK.hpp +12 -6
- package/nitrogen/generated/shared/c++/SettingsPrompt.hpp +13 -7
- package/package.json +1 -1
- package/src/ConsentSDK.nitro.ts +11 -0
- package/src/index.ts +11 -0
- package/lib/index.d.ts +0 -20
- package/nitrogen/generated/ios/swift/Func_void_std__optional_BannerConfig_.swift +0 -52
- package/nitrogen/generated/ios/swift/Func_void_std__optional_SettingsPrompt_.swift +0 -52
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// JVariant_NullType_SettingsPrompt.cpp
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/mrousavy/nitro
|
|
5
|
+
/// Copyright © 2025 Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
#include "JVariant_NullType_SettingsPrompt.hpp"
|
|
9
|
+
|
|
10
|
+
namespace margelo::nitro::securiticonsentsdk {
|
|
11
|
+
/**
|
|
12
|
+
* Converts JVariant_NullType_SettingsPrompt to std::variant<nitro::NullType, SettingsPrompt>
|
|
13
|
+
*/
|
|
14
|
+
std::variant<nitro::NullType, SettingsPrompt> JVariant_NullType_SettingsPrompt::toCpp() const {
|
|
15
|
+
if (isInstanceOf(JVariant_NullType_SettingsPrompt_impl::First::javaClassStatic())) {
|
|
16
|
+
// It's a `nitro::NullType`
|
|
17
|
+
auto jniValue = static_cast<const JVariant_NullType_SettingsPrompt_impl::First*>(this)->getValue();
|
|
18
|
+
return nitro::null;
|
|
19
|
+
} else if (isInstanceOf(JVariant_NullType_SettingsPrompt_impl::Second::javaClassStatic())) {
|
|
20
|
+
// It's a `SettingsPrompt`
|
|
21
|
+
auto jniValue = static_cast<const JVariant_NullType_SettingsPrompt_impl::Second*>(this)->getValue();
|
|
22
|
+
return jniValue->toCpp();
|
|
23
|
+
}
|
|
24
|
+
throw std::invalid_argument("Variant is unknown Kotlin instance!");
|
|
25
|
+
}
|
|
26
|
+
} // namespace margelo::nitro::securiticonsentsdk
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// JVariant_NullType_SettingsPrompt.hpp
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/mrousavy/nitro
|
|
5
|
+
/// Copyright © 2025 Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
#pragma once
|
|
9
|
+
|
|
10
|
+
#include <fbjni/fbjni.h>
|
|
11
|
+
#include <variant>
|
|
12
|
+
|
|
13
|
+
#include <NitroModules/Null.hpp>
|
|
14
|
+
#include "SettingsPrompt.hpp"
|
|
15
|
+
#include <variant>
|
|
16
|
+
#include <NitroModules/JNull.hpp>
|
|
17
|
+
#include "JSettingsPrompt.hpp"
|
|
18
|
+
#include <string>
|
|
19
|
+
#include <optional>
|
|
20
|
+
#include <vector>
|
|
21
|
+
|
|
22
|
+
namespace margelo::nitro::securiticonsentsdk {
|
|
23
|
+
|
|
24
|
+
using namespace facebook;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* The C++ JNI bridge between the C++ std::variant and the Java class "Variant_NullType_SettingsPrompt".
|
|
28
|
+
*/
|
|
29
|
+
class JVariant_NullType_SettingsPrompt: public jni::JavaClass<JVariant_NullType_SettingsPrompt> {
|
|
30
|
+
public:
|
|
31
|
+
static auto constexpr kJavaDescriptor = "Lcom/margelo/nitro/securiticonsentsdk/Variant_NullType_SettingsPrompt;";
|
|
32
|
+
|
|
33
|
+
static jni::local_ref<JVariant_NullType_SettingsPrompt> create_0(jni::alias_ref<JNull> value) {
|
|
34
|
+
static const auto method = javaClassStatic()->getStaticMethod<JVariant_NullType_SettingsPrompt(jni::alias_ref<JNull>)>("create");
|
|
35
|
+
return method(javaClassStatic(), value);
|
|
36
|
+
}
|
|
37
|
+
static jni::local_ref<JVariant_NullType_SettingsPrompt> create_1(jni::alias_ref<JSettingsPrompt> value) {
|
|
38
|
+
static const auto method = javaClassStatic()->getStaticMethod<JVariant_NullType_SettingsPrompt(jni::alias_ref<JSettingsPrompt>)>("create");
|
|
39
|
+
return method(javaClassStatic(), value);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
static jni::local_ref<JVariant_NullType_SettingsPrompt> fromCpp(const std::variant<nitro::NullType, SettingsPrompt>& variant) {
|
|
43
|
+
switch (variant.index()) {
|
|
44
|
+
case 0: return create_0(JNull::null());
|
|
45
|
+
case 1: return create_1(JSettingsPrompt::fromCpp(std::get<1>(variant)));
|
|
46
|
+
default: throw std::invalid_argument("Variant holds unknown index! (" + std::to_string(variant.index()) + ")");
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
[[nodiscard]] std::variant<nitro::NullType, SettingsPrompt> toCpp() const;
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
namespace JVariant_NullType_SettingsPrompt_impl {
|
|
54
|
+
class First: public jni::JavaClass<First, JVariant_NullType_SettingsPrompt> {
|
|
55
|
+
public:
|
|
56
|
+
static auto constexpr kJavaDescriptor = "Lcom/margelo/nitro/securiticonsentsdk/Variant_NullType_SettingsPrompt$First;";
|
|
57
|
+
|
|
58
|
+
[[nodiscard]] jni::local_ref<JNull> getValue() const {
|
|
59
|
+
static const auto field = javaClassStatic()->getField<JNull>("value");
|
|
60
|
+
return getFieldValue(field);
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
class Second: public jni::JavaClass<Second, JVariant_NullType_SettingsPrompt> {
|
|
65
|
+
public:
|
|
66
|
+
static auto constexpr kJavaDescriptor = "Lcom/margelo/nitro/securiticonsentsdk/Variant_NullType_SettingsPrompt$Second;";
|
|
67
|
+
|
|
68
|
+
[[nodiscard]] jni::local_ref<JSettingsPrompt> getValue() const {
|
|
69
|
+
static const auto field = javaClassStatic()->getField<JSettingsPrompt>("value");
|
|
70
|
+
return getFieldValue(field);
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
} // namespace JVariant_NullType_SettingsPrompt_impl
|
|
74
|
+
} // namespace margelo::nitro::securiticonsentsdk
|
package/nitrogen/generated/android/kotlin/com/margelo/nitro/securiticonsentsdk/AppPermission.kt
CHANGED
|
@@ -9,26 +9,54 @@ package com.margelo.nitro.securiticonsentsdk
|
|
|
9
9
|
|
|
10
10
|
import androidx.annotation.Keep
|
|
11
11
|
import com.facebook.proguard.annotations.DoNotStrip
|
|
12
|
-
|
|
12
|
+
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* Represents the JavaScript object/struct "AppPermission".
|
|
16
16
|
*/
|
|
17
17
|
@DoNotStrip
|
|
18
18
|
@Keep
|
|
19
|
-
data class AppPermission
|
|
20
|
-
@DoNotStrip
|
|
21
|
-
@Keep
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
19
|
+
data class AppPermission(
|
|
20
|
+
@DoNotStrip
|
|
21
|
+
@Keep
|
|
22
|
+
val id: Double?,
|
|
23
|
+
@DoNotStrip
|
|
24
|
+
@Keep
|
|
25
|
+
val name: String?,
|
|
26
|
+
@DoNotStrip
|
|
27
|
+
@Keep
|
|
28
|
+
val permissionId: String?,
|
|
29
|
+
@DoNotStrip
|
|
30
|
+
@Keep
|
|
31
|
+
val description: String?,
|
|
32
|
+
@DoNotStrip
|
|
33
|
+
@Keep
|
|
34
|
+
val group: String?,
|
|
35
|
+
@DoNotStrip
|
|
36
|
+
@Keep
|
|
37
|
+
val groupId: Double?,
|
|
38
|
+
@DoNotStrip
|
|
39
|
+
@Keep
|
|
40
|
+
val consentStatus: String?,
|
|
41
|
+
@DoNotStrip
|
|
42
|
+
@Keep
|
|
43
|
+
val nameMap: String?,
|
|
44
|
+
@DoNotStrip
|
|
45
|
+
@Keep
|
|
46
|
+
val isSettingsPromptEnabled: Boolean?
|
|
47
|
+
) {
|
|
48
|
+
/* primary constructor */
|
|
49
|
+
|
|
50
|
+
private companion object {
|
|
51
|
+
/**
|
|
52
|
+
* Constructor called from C++
|
|
53
|
+
*/
|
|
54
|
+
@DoNotStrip
|
|
55
|
+
@Keep
|
|
56
|
+
@Suppress("unused")
|
|
57
|
+
@JvmStatic
|
|
58
|
+
private fun fromCpp(id: Double?, name: String?, permissionId: String?, description: String?, group: String?, groupId: Double?, consentStatus: String?, nameMap: String?, isSettingsPromptEnabled: Boolean?): AppPermission {
|
|
59
|
+
return AppPermission(id, name, permissionId, description, group, groupId, consentStatus, nameMap, isSettingsPromptEnabled)
|
|
60
|
+
}
|
|
61
|
+
}
|
|
34
62
|
}
|
package/nitrogen/generated/android/kotlin/com/margelo/nitro/securiticonsentsdk/BannerConfig.kt
CHANGED
|
@@ -9,49 +9,123 @@ package com.margelo.nitro.securiticonsentsdk
|
|
|
9
9
|
|
|
10
10
|
import androidx.annotation.Keep
|
|
11
11
|
import com.facebook.proguard.annotations.DoNotStrip
|
|
12
|
-
|
|
12
|
+
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* Represents the JavaScript object/struct "BannerConfig".
|
|
16
16
|
*/
|
|
17
17
|
@DoNotStrip
|
|
18
18
|
@Keep
|
|
19
|
-
data class BannerConfig
|
|
20
|
-
@DoNotStrip
|
|
21
|
-
@Keep
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
19
|
+
data class BannerConfig(
|
|
20
|
+
@DoNotStrip
|
|
21
|
+
@Keep
|
|
22
|
+
val hideCloseButton: Boolean?,
|
|
23
|
+
@DoNotStrip
|
|
24
|
+
@Keep
|
|
25
|
+
val hideAcceptButton: Boolean?,
|
|
26
|
+
@DoNotStrip
|
|
27
|
+
@Keep
|
|
28
|
+
val embedDSRPortalLink: Boolean?,
|
|
29
|
+
@DoNotStrip
|
|
30
|
+
@Keep
|
|
31
|
+
val recordConsentUponAppStart: Boolean?,
|
|
32
|
+
@DoNotStrip
|
|
33
|
+
@Keep
|
|
34
|
+
val hideToggleForEssentialCategories: Boolean?,
|
|
35
|
+
@DoNotStrip
|
|
36
|
+
@Keep
|
|
37
|
+
val name: String?,
|
|
38
|
+
@DoNotStrip
|
|
39
|
+
@Keep
|
|
40
|
+
val dsrPortalLink: String?,
|
|
41
|
+
@DoNotStrip
|
|
42
|
+
@Keep
|
|
43
|
+
val complianceType: String?,
|
|
44
|
+
@DoNotStrip
|
|
45
|
+
@Keep
|
|
46
|
+
val bannerReappearanceTime: String?,
|
|
47
|
+
@DoNotStrip
|
|
48
|
+
@Keep
|
|
49
|
+
val privacyNoticeLink: String?,
|
|
50
|
+
@DoNotStrip
|
|
51
|
+
@Keep
|
|
52
|
+
val accept: String?,
|
|
53
|
+
@DoNotStrip
|
|
54
|
+
@Keep
|
|
55
|
+
val reject: String?,
|
|
56
|
+
@DoNotStrip
|
|
57
|
+
@Keep
|
|
58
|
+
val bannerText: String?,
|
|
59
|
+
@DoNotStrip
|
|
60
|
+
@Keep
|
|
61
|
+
val bannerHeading: String?,
|
|
62
|
+
@DoNotStrip
|
|
63
|
+
@Keep
|
|
64
|
+
val sdkTabHeading: String?,
|
|
65
|
+
@DoNotStrip
|
|
66
|
+
@Keep
|
|
67
|
+
val privacyNoticeText: String?,
|
|
68
|
+
@DoNotStrip
|
|
69
|
+
@Keep
|
|
70
|
+
val preferenceCenterLink: String?,
|
|
71
|
+
@DoNotStrip
|
|
72
|
+
@Keep
|
|
73
|
+
val permissionsTabHeading: String?,
|
|
74
|
+
@DoNotStrip
|
|
75
|
+
@Keep
|
|
76
|
+
val permissionsTabGuidance: String?,
|
|
77
|
+
@DoNotStrip
|
|
78
|
+
@Keep
|
|
79
|
+
val preferenceCenterHeading: String?,
|
|
80
|
+
@DoNotStrip
|
|
81
|
+
@Keep
|
|
82
|
+
val preferenceCenterGuidance: String?,
|
|
83
|
+
@DoNotStrip
|
|
84
|
+
@Keep
|
|
85
|
+
val permissionsTabDescription: String?,
|
|
86
|
+
@DoNotStrip
|
|
87
|
+
@Keep
|
|
88
|
+
val preferenceCenterDescription: String?,
|
|
89
|
+
@DoNotStrip
|
|
90
|
+
@Keep
|
|
91
|
+
val showPoweredBySecuritiLogo: Boolean?,
|
|
92
|
+
@DoNotStrip
|
|
93
|
+
@Keep
|
|
94
|
+
val showDescriptionTextWithPrefCenterToggle: Boolean?,
|
|
95
|
+
@DoNotStrip
|
|
96
|
+
@Keep
|
|
97
|
+
val paletteTheme: Double?,
|
|
98
|
+
@DoNotStrip
|
|
99
|
+
@Keep
|
|
100
|
+
val bannerPosition: String?,
|
|
101
|
+
@DoNotStrip
|
|
102
|
+
@Keep
|
|
103
|
+
val buttonShape: String?,
|
|
104
|
+
@DoNotStrip
|
|
105
|
+
@Keep
|
|
106
|
+
val companyLogo: String?,
|
|
107
|
+
@DoNotStrip
|
|
108
|
+
@Keep
|
|
109
|
+
val customPaletteTheme: CustomColors?,
|
|
110
|
+
@DoNotStrip
|
|
111
|
+
@Keep
|
|
112
|
+
val shouldShowSettingsPrompt: Boolean?,
|
|
113
|
+
@DoNotStrip
|
|
114
|
+
@Keep
|
|
115
|
+
val translations: Map<String, String>?
|
|
116
|
+
) {
|
|
117
|
+
/* primary constructor */
|
|
118
|
+
|
|
119
|
+
private companion object {
|
|
120
|
+
/**
|
|
121
|
+
* Constructor called from C++
|
|
122
|
+
*/
|
|
123
|
+
@DoNotStrip
|
|
124
|
+
@Keep
|
|
125
|
+
@Suppress("unused")
|
|
126
|
+
@JvmStatic
|
|
127
|
+
private fun fromCpp(hideCloseButton: Boolean?, hideAcceptButton: Boolean?, embedDSRPortalLink: Boolean?, recordConsentUponAppStart: Boolean?, hideToggleForEssentialCategories: Boolean?, name: String?, dsrPortalLink: String?, complianceType: String?, bannerReappearanceTime: String?, privacyNoticeLink: String?, accept: String?, reject: String?, bannerText: String?, bannerHeading: String?, sdkTabHeading: String?, privacyNoticeText: String?, preferenceCenterLink: String?, permissionsTabHeading: String?, permissionsTabGuidance: String?, preferenceCenterHeading: String?, preferenceCenterGuidance: String?, permissionsTabDescription: String?, preferenceCenterDescription: String?, showPoweredBySecuritiLogo: Boolean?, showDescriptionTextWithPrefCenterToggle: Boolean?, paletteTheme: Double?, bannerPosition: String?, buttonShape: String?, companyLogo: String?, customPaletteTheme: CustomColors?, shouldShowSettingsPrompt: Boolean?, translations: Map<String, String>?): BannerConfig {
|
|
128
|
+
return BannerConfig(hideCloseButton, hideAcceptButton, embedDSRPortalLink, recordConsentUponAppStart, hideToggleForEssentialCategories, name, dsrPortalLink, complianceType, bannerReappearanceTime, privacyNoticeLink, accept, reject, bannerText, bannerHeading, sdkTabHeading, privacyNoticeText, preferenceCenterLink, permissionsTabHeading, permissionsTabGuidance, preferenceCenterHeading, preferenceCenterGuidance, permissionsTabDescription, preferenceCenterDescription, showPoweredBySecuritiLogo, showDescriptionTextWithPrefCenterToggle, paletteTheme, bannerPosition, buttonShape, companyLogo, customPaletteTheme, shouldShowSettingsPrompt, translations)
|
|
129
|
+
}
|
|
130
|
+
}
|
|
57
131
|
}
|
package/nitrogen/generated/android/kotlin/com/margelo/nitro/securiticonsentsdk/CmpSDKOptions.kt
CHANGED
|
@@ -9,28 +9,60 @@ package com.margelo.nitro.securiticonsentsdk
|
|
|
9
9
|
|
|
10
10
|
import androidx.annotation.Keep
|
|
11
11
|
import com.facebook.proguard.annotations.DoNotStrip
|
|
12
|
-
|
|
12
|
+
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* Represents the JavaScript object/struct "CmpSDKOptions".
|
|
16
16
|
*/
|
|
17
17
|
@DoNotStrip
|
|
18
18
|
@Keep
|
|
19
|
-
data class CmpSDKOptions
|
|
20
|
-
@DoNotStrip
|
|
21
|
-
@Keep
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
19
|
+
data class CmpSDKOptions(
|
|
20
|
+
@DoNotStrip
|
|
21
|
+
@Keep
|
|
22
|
+
val appURL: String,
|
|
23
|
+
@DoNotStrip
|
|
24
|
+
@Keep
|
|
25
|
+
val cdnURL: String,
|
|
26
|
+
@DoNotStrip
|
|
27
|
+
@Keep
|
|
28
|
+
val tenantID: String,
|
|
29
|
+
@DoNotStrip
|
|
30
|
+
@Keep
|
|
31
|
+
val appID: String,
|
|
32
|
+
@DoNotStrip
|
|
33
|
+
@Keep
|
|
34
|
+
val testingMode: Boolean,
|
|
35
|
+
@DoNotStrip
|
|
36
|
+
@Keep
|
|
37
|
+
val loggerLevel: String,
|
|
38
|
+
@DoNotStrip
|
|
39
|
+
@Keep
|
|
40
|
+
val consentsCheckInterval: Double,
|
|
41
|
+
@DoNotStrip
|
|
42
|
+
@Keep
|
|
43
|
+
val subjectId: String?,
|
|
44
|
+
@DoNotStrip
|
|
45
|
+
@Keep
|
|
46
|
+
val languageCode: String?,
|
|
47
|
+
@DoNotStrip
|
|
48
|
+
@Keep
|
|
49
|
+
val locationCode: String?,
|
|
50
|
+
@DoNotStrip
|
|
51
|
+
@Keep
|
|
52
|
+
val mode: String?
|
|
53
|
+
) {
|
|
54
|
+
/* primary constructor */
|
|
55
|
+
|
|
56
|
+
private companion object {
|
|
57
|
+
/**
|
|
58
|
+
* Constructor called from C++
|
|
59
|
+
*/
|
|
60
|
+
@DoNotStrip
|
|
61
|
+
@Keep
|
|
62
|
+
@Suppress("unused")
|
|
63
|
+
@JvmStatic
|
|
64
|
+
private fun fromCpp(appURL: String, cdnURL: String, tenantID: String, appID: String, testingMode: Boolean, loggerLevel: String, consentsCheckInterval: Double, subjectId: String?, languageCode: String?, locationCode: String?, mode: String?): CmpSDKOptions {
|
|
65
|
+
return CmpSDKOptions(appURL, cdnURL, tenantID, appID, testingMode, loggerLevel, consentsCheckInterval, subjectId, languageCode, locationCode, mode)
|
|
66
|
+
}
|
|
67
|
+
}
|
|
36
68
|
}
|
package/nitrogen/generated/android/kotlin/com/margelo/nitro/securiticonsentsdk/CustomColors.kt
CHANGED
|
@@ -9,25 +9,51 @@ package com.margelo.nitro.securiticonsentsdk
|
|
|
9
9
|
|
|
10
10
|
import androidx.annotation.Keep
|
|
11
11
|
import com.facebook.proguard.annotations.DoNotStrip
|
|
12
|
-
|
|
12
|
+
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* Represents the JavaScript object/struct "CustomColors".
|
|
16
16
|
*/
|
|
17
17
|
@DoNotStrip
|
|
18
18
|
@Keep
|
|
19
|
-
data class CustomColors
|
|
20
|
-
@DoNotStrip
|
|
21
|
-
@Keep
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
19
|
+
data class CustomColors(
|
|
20
|
+
@DoNotStrip
|
|
21
|
+
@Keep
|
|
22
|
+
val buttonBackground: String?,
|
|
23
|
+
@DoNotStrip
|
|
24
|
+
@Keep
|
|
25
|
+
val buttonText: String?,
|
|
26
|
+
@DoNotStrip
|
|
27
|
+
@Keep
|
|
28
|
+
val buttonBorder: String?,
|
|
29
|
+
@DoNotStrip
|
|
30
|
+
@Keep
|
|
31
|
+
val bannerBackground: String?,
|
|
32
|
+
@DoNotStrip
|
|
33
|
+
@Keep
|
|
34
|
+
val bannerText: String?,
|
|
35
|
+
@DoNotStrip
|
|
36
|
+
@Keep
|
|
37
|
+
val bannerLinks: String?,
|
|
38
|
+
@DoNotStrip
|
|
39
|
+
@Keep
|
|
40
|
+
val preferenceCenterFooterBackground: String?,
|
|
41
|
+
@DoNotStrip
|
|
42
|
+
@Keep
|
|
43
|
+
val preferenceCenterFooterSelector: String?
|
|
44
|
+
) {
|
|
45
|
+
/* primary constructor */
|
|
46
|
+
|
|
47
|
+
private companion object {
|
|
48
|
+
/**
|
|
49
|
+
* Constructor called from C++
|
|
50
|
+
*/
|
|
51
|
+
@DoNotStrip
|
|
52
|
+
@Keep
|
|
53
|
+
@Suppress("unused")
|
|
54
|
+
@JvmStatic
|
|
55
|
+
private fun fromCpp(buttonBackground: String?, buttonText: String?, buttonBorder: String?, bannerBackground: String?, bannerText: String?, bannerLinks: String?, preferenceCenterFooterBackground: String?, preferenceCenterFooterSelector: String?): CustomColors {
|
|
56
|
+
return CustomColors(buttonBackground, buttonText, buttonBorder, bannerBackground, bannerText, bannerLinks, preferenceCenterFooterBackground, preferenceCenterFooterSelector)
|
|
57
|
+
}
|
|
58
|
+
}
|
|
33
59
|
}
|
package/nitrogen/generated/android/kotlin/com/margelo/nitro/securiticonsentsdk/Func_void_bool.kt
CHANGED
|
@@ -10,9 +10,9 @@ package com.margelo.nitro.securiticonsentsdk
|
|
|
10
10
|
import androidx.annotation.Keep
|
|
11
11
|
import com.facebook.jni.HybridData
|
|
12
12
|
import com.facebook.proguard.annotations.DoNotStrip
|
|
13
|
-
import com.margelo.nitro.core.*
|
|
14
13
|
import dalvik.annotation.optimization.FastNative
|
|
15
14
|
|
|
15
|
+
|
|
16
16
|
/**
|
|
17
17
|
* Represents the JavaScript callback `(isReady: boolean) => void`.
|
|
18
18
|
* This can be either implemented in C++ (in which case it might be a callback coming from JS),
|
|
@@ -10,7 +10,9 @@ package com.margelo.nitro.securiticonsentsdk
|
|
|
10
10
|
import androidx.annotation.Keep
|
|
11
11
|
import com.facebook.jni.HybridData
|
|
12
12
|
import com.facebook.proguard.annotations.DoNotStrip
|
|
13
|
-
import com.margelo.nitro.core
|
|
13
|
+
import com.margelo.nitro.core.Promise
|
|
14
|
+
import com.margelo.nitro.core.NullType
|
|
15
|
+
import com.margelo.nitro.core.HybridObject
|
|
14
16
|
|
|
15
17
|
/**
|
|
16
18
|
* A Kotlin class representing the ConsentSDK HybridObject.
|
|
@@ -36,6 +38,11 @@ abstract class HybridConsentSDKSpec: HybridObject() {
|
|
|
36
38
|
super.updateNative(hybridData)
|
|
37
39
|
}
|
|
38
40
|
|
|
41
|
+
// Default implementation of `HybridObject.toString()`
|
|
42
|
+
override fun toString(): String {
|
|
43
|
+
return "[HybridObject ConsentSDK]"
|
|
44
|
+
}
|
|
45
|
+
|
|
39
46
|
// Properties
|
|
40
47
|
|
|
41
48
|
|
|
@@ -99,15 +106,19 @@ abstract class HybridConsentSDKSpec: HybridObject() {
|
|
|
99
106
|
|
|
100
107
|
@DoNotStrip
|
|
101
108
|
@Keep
|
|
102
|
-
abstract fun
|
|
109
|
+
abstract fun getGCMConsents(): Promise<Map<String, String>>
|
|
110
|
+
|
|
111
|
+
@DoNotStrip
|
|
112
|
+
@Keep
|
|
113
|
+
abstract fun getBannerConfig(): Promise<Variant_NullType_BannerConfig>
|
|
103
114
|
|
|
104
115
|
@DoNotStrip
|
|
105
116
|
@Keep
|
|
106
|
-
abstract fun options():
|
|
117
|
+
abstract fun options(): Variant_NullType_CmpSDKOptions
|
|
107
118
|
|
|
108
119
|
@DoNotStrip
|
|
109
120
|
@Keep
|
|
110
|
-
abstract fun getSettingsPrompt(): Promise<
|
|
121
|
+
abstract fun getSettingsPrompt(): Promise<Variant_NullType_SettingsPrompt>
|
|
111
122
|
|
|
112
123
|
@DoNotStrip
|
|
113
124
|
@Keep
|
|
@@ -116,6 +127,6 @@ abstract class HybridConsentSDKSpec: HybridObject() {
|
|
|
116
127
|
private external fun initHybrid(): HybridData
|
|
117
128
|
|
|
118
129
|
companion object {
|
|
119
|
-
|
|
130
|
+
protected const val TAG = "HybridConsentSDKSpec"
|
|
120
131
|
}
|
|
121
132
|
}
|
package/nitrogen/generated/android/kotlin/com/margelo/nitro/securiticonsentsdk/PermissionConsent.kt
CHANGED
|
@@ -9,20 +9,36 @@ package com.margelo.nitro.securiticonsentsdk
|
|
|
9
9
|
|
|
10
10
|
import androidx.annotation.Keep
|
|
11
11
|
import com.facebook.proguard.annotations.DoNotStrip
|
|
12
|
-
|
|
12
|
+
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* Represents the JavaScript object/struct "PermissionConsent".
|
|
16
16
|
*/
|
|
17
17
|
@DoNotStrip
|
|
18
18
|
@Keep
|
|
19
|
-
data class PermissionConsent
|
|
19
|
+
data class PermissionConsent(
|
|
20
|
+
@DoNotStrip
|
|
21
|
+
@Keep
|
|
22
|
+
val permission: String,
|
|
20
23
|
@DoNotStrip
|
|
21
24
|
@Keep
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
/*
|
|
25
|
+
val consentStatus: String,
|
|
26
|
+
@DoNotStrip
|
|
27
|
+
@Keep
|
|
28
|
+
val timestamp: Double
|
|
29
|
+
) {
|
|
30
|
+
/* primary constructor */
|
|
31
|
+
|
|
32
|
+
private companion object {
|
|
33
|
+
/**
|
|
34
|
+
* Constructor called from C++
|
|
35
|
+
*/
|
|
36
|
+
@DoNotStrip
|
|
37
|
+
@Keep
|
|
38
|
+
@Suppress("unused")
|
|
39
|
+
@JvmStatic
|
|
40
|
+
private fun fromCpp(permission: String, consentStatus: String, timestamp: Double): PermissionConsent {
|
|
41
|
+
return PermissionConsent(permission, consentStatus, timestamp)
|
|
42
|
+
}
|
|
43
|
+
}
|
|
28
44
|
}
|
|
@@ -9,29 +9,63 @@ package com.margelo.nitro.securiticonsentsdk
|
|
|
9
9
|
|
|
10
10
|
import androidx.annotation.Keep
|
|
11
11
|
import com.facebook.proguard.annotations.DoNotStrip
|
|
12
|
-
|
|
12
|
+
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* Represents the JavaScript object/struct "PostConsentsRequest".
|
|
16
16
|
*/
|
|
17
17
|
@DoNotStrip
|
|
18
18
|
@Keep
|
|
19
|
-
data class PostConsentsRequest
|
|
20
|
-
@DoNotStrip
|
|
21
|
-
@Keep
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
19
|
+
data class PostConsentsRequest(
|
|
20
|
+
@DoNotStrip
|
|
21
|
+
@Keep
|
|
22
|
+
val uuid: String,
|
|
23
|
+
@DoNotStrip
|
|
24
|
+
@Keep
|
|
25
|
+
val appUUID: String,
|
|
26
|
+
@DoNotStrip
|
|
27
|
+
@Keep
|
|
28
|
+
val device: String,
|
|
29
|
+
@DoNotStrip
|
|
30
|
+
@Keep
|
|
31
|
+
val implicitConsent: Boolean,
|
|
32
|
+
@DoNotStrip
|
|
33
|
+
@Keep
|
|
34
|
+
val version: Double,
|
|
35
|
+
@DoNotStrip
|
|
36
|
+
@Keep
|
|
37
|
+
val purposeConsents: Array<PurposeConsent>,
|
|
38
|
+
@DoNotStrip
|
|
39
|
+
@Keep
|
|
40
|
+
val permissions: Array<PermissionConsent>,
|
|
41
|
+
@DoNotStrip
|
|
42
|
+
@Keep
|
|
43
|
+
val isTestMode: Boolean,
|
|
44
|
+
@DoNotStrip
|
|
45
|
+
@Keep
|
|
46
|
+
val adId: String,
|
|
47
|
+
@DoNotStrip
|
|
48
|
+
@Keep
|
|
49
|
+
val bannerInfo: String,
|
|
50
|
+
@DoNotStrip
|
|
51
|
+
@Keep
|
|
52
|
+
val sdkVersion: String?,
|
|
53
|
+
@DoNotStrip
|
|
54
|
+
@Keep
|
|
55
|
+
val platform: String?
|
|
56
|
+
) {
|
|
57
|
+
/* primary constructor */
|
|
58
|
+
|
|
59
|
+
private companion object {
|
|
60
|
+
/**
|
|
61
|
+
* Constructor called from C++
|
|
62
|
+
*/
|
|
63
|
+
@DoNotStrip
|
|
64
|
+
@Keep
|
|
65
|
+
@Suppress("unused")
|
|
66
|
+
@JvmStatic
|
|
67
|
+
private fun fromCpp(uuid: String, appUUID: String, device: String, implicitConsent: Boolean, version: Double, purposeConsents: Array<PurposeConsent>, permissions: Array<PermissionConsent>, isTestMode: Boolean, adId: String, bannerInfo: String, sdkVersion: String?, platform: String?): PostConsentsRequest {
|
|
68
|
+
return PostConsentsRequest(uuid, appUUID, device, implicitConsent, version, purposeConsents, permissions, isTestMode, adId, bannerInfo, sdkVersion, platform)
|
|
69
|
+
}
|
|
70
|
+
}
|
|
37
71
|
}
|