securiti-consent-sdk 1.134.0 → 1.135.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 -2
- package/nitrogen/generated/.gitattributes +1 -1
- package/nitrogen/generated/ios/NitroSecuritiConsentSdk-Swift-Cxx-Bridge.hpp +24 -24
- package/nitrogen/generated/ios/NitroSecuritiConsentSdk-Swift-Cxx-Umbrella.hpp +2 -1
- package/package.json +1 -1
- package/src/ConsentSDK.nitro.ts +1 -1
- package/lib/index.d.ts +0 -20
package/android/build.gradle
CHANGED
|
@@ -138,7 +138,7 @@ dependencies {
|
|
|
138
138
|
implementation "com.facebook.react:react-native:+"
|
|
139
139
|
|
|
140
140
|
|
|
141
|
-
implementation 'ai.securiti.cmpsdkcore:consent-sdk:1.
|
|
141
|
+
implementation 'ai.securiti.cmpsdkcore:consent-sdk:1.135.0'
|
|
142
142
|
|
|
143
143
|
// Add a dependency on NitroModules
|
|
144
144
|
implementation project(":react-native-nitro-modules")
|
|
@@ -46,9 +46,8 @@ public class HybridConsentSDK : HybridConsentSDKSpec {
|
|
|
46
46
|
testingMode: options.testingMode,
|
|
47
47
|
logLevel: logLevel,
|
|
48
48
|
consentsCheckInterval: Int(options.consentsCheckInterval),
|
|
49
|
-
subjectId: options.subjectId,
|
|
50
49
|
languageCode: options.languageCode,
|
|
51
|
-
locationCode: options.locationCode
|
|
50
|
+
locationCode: options.locationCode
|
|
52
51
|
))
|
|
53
52
|
|
|
54
53
|
// Register for ready status
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
** linguist-generated=true
|
|
@@ -80,13 +80,13 @@ namespace margelo::nitro::securiticonsentsdk::bridge::swift {
|
|
|
80
80
|
*/
|
|
81
81
|
class Func_void_bool_Wrapper final {
|
|
82
82
|
public:
|
|
83
|
-
explicit Func_void_bool_Wrapper(std::function<void(bool /* isReady */)>&& func): _function(std::
|
|
83
|
+
explicit Func_void_bool_Wrapper(std::function<void(bool /* isReady */)>&& func): _function(std::make_unique<std::function<void(bool /* isReady */)>>(std::move(func))) {}
|
|
84
84
|
inline void call(bool isReady) const {
|
|
85
85
|
_function->operator()(isReady);
|
|
86
86
|
}
|
|
87
87
|
private:
|
|
88
|
-
std::
|
|
89
|
-
};
|
|
88
|
+
std::unique_ptr<std::function<void(bool /* isReady */)>> _function;
|
|
89
|
+
} SWIFT_NONCOPYABLE;
|
|
90
90
|
Func_void_bool create_Func_void_bool(void* _Nonnull swiftClosureWrapper);
|
|
91
91
|
inline Func_void_bool_Wrapper wrap_Func_void_bool(Func_void_bool value) {
|
|
92
92
|
return Func_void_bool_Wrapper(std::move(value));
|
|
@@ -114,13 +114,13 @@ namespace margelo::nitro::securiticonsentsdk::bridge::swift {
|
|
|
114
114
|
*/
|
|
115
115
|
class Func_void_std__string_Wrapper final {
|
|
116
116
|
public:
|
|
117
|
-
explicit Func_void_std__string_Wrapper(std::function<void(const std::string& /* result */)>&& func): _function(std::
|
|
117
|
+
explicit Func_void_std__string_Wrapper(std::function<void(const std::string& /* result */)>&& func): _function(std::make_unique<std::function<void(const std::string& /* result */)>>(std::move(func))) {}
|
|
118
118
|
inline void call(std::string result) const {
|
|
119
119
|
_function->operator()(result);
|
|
120
120
|
}
|
|
121
121
|
private:
|
|
122
|
-
std::
|
|
123
|
-
};
|
|
122
|
+
std::unique_ptr<std::function<void(const std::string& /* result */)>> _function;
|
|
123
|
+
} SWIFT_NONCOPYABLE;
|
|
124
124
|
Func_void_std__string create_Func_void_std__string(void* _Nonnull swiftClosureWrapper);
|
|
125
125
|
inline Func_void_std__string_Wrapper wrap_Func_void_std__string(Func_void_std__string value) {
|
|
126
126
|
return Func_void_std__string_Wrapper(std::move(value));
|
|
@@ -136,13 +136,13 @@ namespace margelo::nitro::securiticonsentsdk::bridge::swift {
|
|
|
136
136
|
*/
|
|
137
137
|
class Func_void_std__exception_ptr_Wrapper final {
|
|
138
138
|
public:
|
|
139
|
-
explicit Func_void_std__exception_ptr_Wrapper(std::function<void(const std::exception_ptr& /* error */)>&& func): _function(std::
|
|
139
|
+
explicit Func_void_std__exception_ptr_Wrapper(std::function<void(const std::exception_ptr& /* error */)>&& func): _function(std::make_unique<std::function<void(const std::exception_ptr& /* error */)>>(std::move(func))) {}
|
|
140
140
|
inline void call(std::exception_ptr error) const {
|
|
141
141
|
_function->operator()(error);
|
|
142
142
|
}
|
|
143
143
|
private:
|
|
144
|
-
std::
|
|
145
|
-
};
|
|
144
|
+
std::unique_ptr<std::function<void(const std::exception_ptr& /* error */)>> _function;
|
|
145
|
+
} SWIFT_NONCOPYABLE;
|
|
146
146
|
Func_void_std__exception_ptr create_Func_void_std__exception_ptr(void* _Nonnull swiftClosureWrapper);
|
|
147
147
|
inline Func_void_std__exception_ptr_Wrapper wrap_Func_void_std__exception_ptr(Func_void_std__exception_ptr value) {
|
|
148
148
|
return Func_void_std__exception_ptr_Wrapper(std::move(value));
|
|
@@ -199,13 +199,13 @@ namespace margelo::nitro::securiticonsentsdk::bridge::swift {
|
|
|
199
199
|
*/
|
|
200
200
|
class Func_void_std__vector_AppPermission__Wrapper final {
|
|
201
201
|
public:
|
|
202
|
-
explicit Func_void_std__vector_AppPermission__Wrapper(std::function<void(const std::vector<AppPermission>& /* result */)>&& func): _function(std::
|
|
202
|
+
explicit Func_void_std__vector_AppPermission__Wrapper(std::function<void(const std::vector<AppPermission>& /* result */)>&& func): _function(std::make_unique<std::function<void(const std::vector<AppPermission>& /* result */)>>(std::move(func))) {}
|
|
203
203
|
inline void call(std::vector<AppPermission> result) const {
|
|
204
204
|
_function->operator()(result);
|
|
205
205
|
}
|
|
206
206
|
private:
|
|
207
|
-
std::
|
|
208
|
-
};
|
|
207
|
+
std::unique_ptr<std::function<void(const std::vector<AppPermission>& /* result */)>> _function;
|
|
208
|
+
} SWIFT_NONCOPYABLE;
|
|
209
209
|
Func_void_std__vector_AppPermission_ create_Func_void_std__vector_AppPermission_(void* _Nonnull swiftClosureWrapper);
|
|
210
210
|
inline Func_void_std__vector_AppPermission__Wrapper wrap_Func_void_std__vector_AppPermission_(Func_void_std__vector_AppPermission_ value) {
|
|
211
211
|
return Func_void_std__vector_AppPermission__Wrapper(std::move(value));
|
|
@@ -284,13 +284,13 @@ namespace margelo::nitro::securiticonsentsdk::bridge::swift {
|
|
|
284
284
|
*/
|
|
285
285
|
class Func_void_std__vector_Purpose__Wrapper final {
|
|
286
286
|
public:
|
|
287
|
-
explicit Func_void_std__vector_Purpose__Wrapper(std::function<void(const std::vector<Purpose>& /* result */)>&& func): _function(std::
|
|
287
|
+
explicit Func_void_std__vector_Purpose__Wrapper(std::function<void(const std::vector<Purpose>& /* result */)>&& func): _function(std::make_unique<std::function<void(const std::vector<Purpose>& /* result */)>>(std::move(func))) {}
|
|
288
288
|
inline void call(std::vector<Purpose> result) const {
|
|
289
289
|
_function->operator()(result);
|
|
290
290
|
}
|
|
291
291
|
private:
|
|
292
|
-
std::
|
|
293
|
-
};
|
|
292
|
+
std::unique_ptr<std::function<void(const std::vector<Purpose>& /* result */)>> _function;
|
|
293
|
+
} SWIFT_NONCOPYABLE;
|
|
294
294
|
Func_void_std__vector_Purpose_ create_Func_void_std__vector_Purpose_(void* _Nonnull swiftClosureWrapper);
|
|
295
295
|
inline Func_void_std__vector_Purpose__Wrapper wrap_Func_void_std__vector_Purpose_(Func_void_std__vector_Purpose_ value) {
|
|
296
296
|
return Func_void_std__vector_Purpose__Wrapper(std::move(value));
|
|
@@ -318,13 +318,13 @@ namespace margelo::nitro::securiticonsentsdk::bridge::swift {
|
|
|
318
318
|
*/
|
|
319
319
|
class Func_void_std__vector_SDK__Wrapper final {
|
|
320
320
|
public:
|
|
321
|
-
explicit Func_void_std__vector_SDK__Wrapper(std::function<void(const std::vector<SDK>& /* result */)>&& func): _function(std::
|
|
321
|
+
explicit Func_void_std__vector_SDK__Wrapper(std::function<void(const std::vector<SDK>& /* result */)>&& func): _function(std::make_unique<std::function<void(const std::vector<SDK>& /* result */)>>(std::move(func))) {}
|
|
322
322
|
inline void call(std::vector<SDK> result) const {
|
|
323
323
|
_function->operator()(result);
|
|
324
324
|
}
|
|
325
325
|
private:
|
|
326
|
-
std::
|
|
327
|
-
};
|
|
326
|
+
std::unique_ptr<std::function<void(const std::vector<SDK>& /* result */)>> _function;
|
|
327
|
+
} SWIFT_NONCOPYABLE;
|
|
328
328
|
Func_void_std__vector_SDK_ create_Func_void_std__vector_SDK_(void* _Nonnull swiftClosureWrapper);
|
|
329
329
|
inline Func_void_std__vector_SDK__Wrapper wrap_Func_void_std__vector_SDK_(Func_void_std__vector_SDK_ value) {
|
|
330
330
|
return Func_void_std__vector_SDK__Wrapper(std::move(value));
|
|
@@ -401,13 +401,13 @@ namespace margelo::nitro::securiticonsentsdk::bridge::swift {
|
|
|
401
401
|
*/
|
|
402
402
|
class Func_void_std__optional_BannerConfig__Wrapper final {
|
|
403
403
|
public:
|
|
404
|
-
explicit Func_void_std__optional_BannerConfig__Wrapper(std::function<void(const std::optional<BannerConfig>& /* result */)>&& func): _function(std::
|
|
404
|
+
explicit Func_void_std__optional_BannerConfig__Wrapper(std::function<void(const std::optional<BannerConfig>& /* result */)>&& func): _function(std::make_unique<std::function<void(const std::optional<BannerConfig>& /* result */)>>(std::move(func))) {}
|
|
405
405
|
inline void call(std::optional<BannerConfig> result) const {
|
|
406
406
|
_function->operator()(result);
|
|
407
407
|
}
|
|
408
408
|
private:
|
|
409
|
-
std::
|
|
410
|
-
};
|
|
409
|
+
std::unique_ptr<std::function<void(const std::optional<BannerConfig>& /* result */)>> _function;
|
|
410
|
+
} SWIFT_NONCOPYABLE;
|
|
411
411
|
Func_void_std__optional_BannerConfig_ create_Func_void_std__optional_BannerConfig_(void* _Nonnull swiftClosureWrapper);
|
|
412
412
|
inline Func_void_std__optional_BannerConfig__Wrapper wrap_Func_void_std__optional_BannerConfig_(Func_void_std__optional_BannerConfig_ value) {
|
|
413
413
|
return Func_void_std__optional_BannerConfig__Wrapper(std::move(value));
|
|
@@ -453,13 +453,13 @@ namespace margelo::nitro::securiticonsentsdk::bridge::swift {
|
|
|
453
453
|
*/
|
|
454
454
|
class Func_void_std__optional_SettingsPrompt__Wrapper final {
|
|
455
455
|
public:
|
|
456
|
-
explicit Func_void_std__optional_SettingsPrompt__Wrapper(std::function<void(const std::optional<SettingsPrompt>& /* result */)>&& func): _function(std::
|
|
456
|
+
explicit Func_void_std__optional_SettingsPrompt__Wrapper(std::function<void(const std::optional<SettingsPrompt>& /* result */)>&& func): _function(std::make_unique<std::function<void(const std::optional<SettingsPrompt>& /* result */)>>(std::move(func))) {}
|
|
457
457
|
inline void call(std::optional<SettingsPrompt> result) const {
|
|
458
458
|
_function->operator()(result);
|
|
459
459
|
}
|
|
460
460
|
private:
|
|
461
|
-
std::
|
|
462
|
-
};
|
|
461
|
+
std::unique_ptr<std::function<void(const std::optional<SettingsPrompt>& /* result */)>> _function;
|
|
462
|
+
} SWIFT_NONCOPYABLE;
|
|
463
463
|
Func_void_std__optional_SettingsPrompt_ create_Func_void_std__optional_SettingsPrompt_(void* _Nonnull swiftClosureWrapper);
|
|
464
464
|
inline Func_void_std__optional_SettingsPrompt__Wrapper wrap_Func_void_std__optional_SettingsPrompt_(Func_void_std__optional_SettingsPrompt_ value) {
|
|
465
465
|
return Func_void_std__optional_SettingsPrompt__Wrapper(std::move(value));
|
|
@@ -58,8 +58,9 @@ namespace margelo::nitro::securiticonsentsdk { struct SettingsPrompt; }
|
|
|
58
58
|
|
|
59
59
|
// Common C++ types used in Swift
|
|
60
60
|
#include <NitroModules/ArrayBufferHolder.hpp>
|
|
61
|
-
#include <NitroModules/
|
|
61
|
+
#include <NitroModules/AnyMapUtils.hpp>
|
|
62
62
|
#include <NitroModules/RuntimeError.hpp>
|
|
63
|
+
#include <NitroModules/DateToChronoDate.hpp>
|
|
63
64
|
|
|
64
65
|
// Forward declarations of Swift defined types
|
|
65
66
|
// Forward declaration of `HybridConsentSDKSpec_cxx` to properly resolve imports.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "securiti-consent-sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.135.0-10rc",
|
|
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",
|
package/src/ConsentSDK.nitro.ts
CHANGED
package/lib/index.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
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>;
|