Skip to content

Commit 118d527

Browse files
update XCFramework
1 parent 46175e9 commit 118d527

38 files changed

+713
-429
lines changed

XCFramework/ConsentViewController.xcframework/Info.plist

+7-7
Original file line numberDiff line numberDiff line change
@@ -6,32 +6,32 @@
66
<array>
77
<dict>
88
<key>LibraryIdentifier</key>
9-
<string>ios-arm64_armv7</string>
9+
<string>ios-arm64_i386_x86_64-simulator</string>
1010
<key>LibraryPath</key>
1111
<string>ConsentViewController.framework</string>
1212
<key>SupportedArchitectures</key>
1313
<array>
1414
<string>arm64</string>
15-
<string>armv7</string>
15+
<string>i386</string>
16+
<string>x86_64</string>
1617
</array>
1718
<key>SupportedPlatform</key>
1819
<string>ios</string>
20+
<key>SupportedPlatformVariant</key>
21+
<string>simulator</string>
1922
</dict>
2023
<dict>
2124
<key>LibraryIdentifier</key>
22-
<string>ios-arm64_i386_x86_64-simulator</string>
25+
<string>ios-arm64_armv7</string>
2326
<key>LibraryPath</key>
2427
<string>ConsentViewController.framework</string>
2528
<key>SupportedArchitectures</key>
2629
<array>
2730
<string>arm64</string>
28-
<string>i386</string>
29-
<string>x86_64</string>
31+
<string>armv7</string>
3032
</array>
3133
<key>SupportedPlatform</key>
3234
<string>ios</string>
33-
<key>SupportedPlatformVariant</key>
34-
<string>simulator</string>
3535
</dict>
3636
</array>
3737
<key>CFBundlePackageType</key>

XCFramework/ConsentViewController.xcframework/ios-arm64_armv7/ConsentViewController.framework/Headers/ConsentViewController-Swift.h

+86-56
Original file line numberDiff line numberDiff line change
@@ -440,8 +440,8 @@ enum SPPrivacyManagerTab : NSInteger;
440440

441441
SWIFT_PROTOCOL("_TtP21ConsentViewController6SPCCPA_")
442442
@protocol SPCCPA
443-
- (void)loadCCPAPrivacyManagerWithId:(NSString * _Nonnull)withId tab:(enum SPPrivacyManagerTab)tab;
444-
- (BOOL)ccpaApplies SWIFT_WARN_UNUSED_RESULT;
443+
- (void)loadCCPAPrivacyManagerWithId:(NSString * _Nonnull)id tab:(enum SPPrivacyManagerTab)tab;
444+
@property (nonatomic, readonly) BOOL ccpaApplies;
445445
@end
446446

447447

@@ -546,57 +546,72 @@ SWIFT_PROTOCOL("_TtP21ConsentViewController17SPConsentDelegate_")
546546
- (void)onErrorWithError:(SPError * _Nonnull)error;
547547
@end
548548

549+
enum SPMessageLanguage : NSInteger;
550+
@class SPPropertyName;
551+
552+
SWIFT_CLASS("_TtC21ConsentViewController16SPConsentManager")
553+
@interface SPConsentManager : NSObject
554+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class) BOOL shouldCallErrorMetrics;)
555+
+ (BOOL)shouldCallErrorMetrics SWIFT_WARN_UNUSED_RESULT;
556+
+ (void)setShouldCallErrorMetrics:(BOOL)value;
557+
/// By default, the SDK will remove all user consent data from UserDefaults, possibly triggering a message to be displayed again next time
558+
/// <code>.loadMessage</code> is called.
559+
/// Set this flag to <code>false</code> if you wish to opt-out from this behaviour.
560+
@property (nonatomic) BOOL cleanUserDataOnError;
561+
/// The timeout interval in seconds for the message being displayed
562+
@property (nonatomic) NSTimeInterval messageTimeoutInSeconds;
563+
/// Instructs the privacy manager to be displayed with this tab.
564+
/// By default the SDK will use the defult tab of PM
565+
@property (nonatomic) enum SPPrivacyManagerTab privacyManagerTab;
566+
/// Instructs the message to be displayed in this language. If the translation is missing, the fallback will be English.
567+
/// By default the SDK will use the locale defined by the WebView
568+
@property (nonatomic) enum SPMessageLanguage messageLanguage;
569+
- (nonnull instancetype)initWithAccountId:(NSInteger)accountId propertyName:(SPPropertyName * _Nonnull)propertyName campaignsEnv:(enum SPCampaignEnv)campaignsEnv campaigns:(SPCampaigns * _Nonnull)campaigns delegate:(id <SPDelegate> _Nullable)delegate;
570+
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
571+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
572+
@end
573+
574+
575+
549576

550577
SWIFT_PROTOCOL("_TtP21ConsentViewController6SPGDPR_")
551578
@protocol SPGDPR
552-
- (void)loadGDPRPrivacyManagerWithId:(NSString * _Nonnull)withId tab:(enum SPPrivacyManagerTab)tab;
553-
- (BOOL)gdprApplies SWIFT_WARN_UNUSED_RESULT;
579+
- (void)loadGDPRPrivacyManagerWithId:(NSString * _Nonnull)id tab:(enum SPPrivacyManagerTab)tab;
580+
@property (nonatomic, readonly) BOOL gdprApplies;
554581
@end
555582

556583
@class SPGDPRConsent;
557584

558585
SWIFT_PROTOCOL("_TtP21ConsentViewController5SPSDK_")
559586
@protocol SPSDK <SPCCPA, SPGDPR>
587+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull VERSION;)
588+
+ (NSString * _Nonnull)VERSION SWIFT_WARN_UNUSED_RESULT;
589+
+ (void)clearAllData;
590+
@property (nonatomic) BOOL cleanUserDataOnError;
591+
@property (nonatomic) NSTimeInterval messageTimeoutInSeconds;
592+
@property (nonatomic) enum SPPrivacyManagerTab privacyManagerTab;
593+
@property (nonatomic) enum SPMessageLanguage messageLanguage;
560594
@property (nonatomic, readonly, strong) SPUserData * _Nonnull userData;
595+
- (nonnull instancetype)initWithAccountId:(NSInteger)accountId propertyName:(SPPropertyName * _Nonnull)propertyName campaignsEnv:(enum SPCampaignEnv)campaignsEnv campaigns:(SPCampaigns * _Nonnull)campaigns delegate:(id <SPDelegate> _Nullable)delegate;
561596
- (void)loadMessageForAuthId:(NSString * _Nullable)authId;
562597
- (void)customConsentGDPRWithVendors:(NSArray<NSString *> * _Nonnull)vendors categories:(NSArray<NSString *> * _Nonnull)categories legIntCategories:(NSArray<NSString *> * _Nonnull)legIntCategories handler:(void (^ _Nonnull)(SPGDPRConsent * _Nonnull))handler;
563598
@end
564599

565-
@class SPPropertyName;
566-
enum SPMessageLanguage : NSInteger;
567600

568-
SWIFT_CLASS("_TtC21ConsentViewController16SPConsentManager")
569-
@interface SPConsentManager : NSObject <SPSDK>
601+
@interface SPConsentManager (SWIFT_EXTENSION(ConsentViewController)) <SPSDK>
570602
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull VERSION;)
571603
+ (NSString * _Nonnull)VERSION SWIFT_WARN_UNUSED_RESULT;
572-
SWIFT_CLASS_PROPERTY(@property (nonatomic, class) BOOL shouldCallErrorMetrics;)
573-
+ (BOOL)shouldCallErrorMetrics SWIFT_WARN_UNUSED_RESULT;
574-
+ (void)setShouldCallErrorMetrics:(BOOL)value;
575-
@property (nonatomic, readonly, strong) SPUserData * _Nonnull userData;
576604
+ (void)clearAllData;
577-
/// The timeout interval in seconds for the message being displayed
578-
@property (nonatomic) NSTimeInterval messageTimeoutInSeconds;
579-
- (nonnull instancetype)initWithAccountId:(NSInteger)accountId propertyName:(SPPropertyName * _Nonnull)propertyName campaignsEnv:(enum SPCampaignEnv)campaignsEnv campaigns:(SPCampaigns * _Nonnull)campaigns delegate:(id <SPDelegate> _Nullable)delegate;
580-
/// Instructs the privacy manager to be displayed with this tab.
581-
/// By default the SDK will use the defult tab of PM
582-
@property (nonatomic) enum SPPrivacyManagerTab privacyManagerTab;
583-
/// Instructs the message to be displayed in this language. If the translation is missing, the fallback will be English.
584-
/// By default the SDK will use the locale defined by the WebView
585-
@property (nonatomic) enum SPMessageLanguage messageLanguage;
605+
@property (nonatomic, readonly) BOOL gdprApplies;
606+
@property (nonatomic, readonly) BOOL ccpaApplies;
607+
@property (nonatomic, readonly, strong) SPUserData * _Nonnull userData;
586608
- (void)loadMessageForAuthId:(NSString * _Nullable)authId;
587609
- (void)loadGDPRPrivacyManagerWithId:(NSString * _Nonnull)id tab:(enum SPPrivacyManagerTab)tab;
588610
- (void)loadCCPAPrivacyManagerWithId:(NSString * _Nonnull)id tab:(enum SPPrivacyManagerTab)tab;
589-
- (BOOL)gdprApplies SWIFT_WARN_UNUSED_RESULT;
590-
- (BOOL)ccpaApplies SWIFT_WARN_UNUSED_RESULT;
591611
- (void)customConsentGDPRWithVendors:(NSArray<NSString *> * _Nonnull)vendors categories:(NSArray<NSString *> * _Nonnull)categories legIntCategories:(NSArray<NSString *> * _Nonnull)legIntCategories handler:(void (^ _Nonnull)(SPGDPRConsent * _Nonnull))handler;
592-
- (void)onError:(SPError * _Nonnull)error;
593-
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
594-
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
595612
@end
596613

597614

598-
599-
600615
SWIFT_PROTOCOL("_TtP21ConsentViewController19SPConsentUIDelegate_")
601616
@protocol SPConsentUIDelegate
602617
/// called when the user takes an action in the SP UI
@@ -1259,8 +1274,8 @@ enum SPPrivacyManagerTab : NSInteger;
12591274

12601275
SWIFT_PROTOCOL("_TtP21ConsentViewController6SPCCPA_")
12611276
@protocol SPCCPA
1262-
- (void)loadCCPAPrivacyManagerWithId:(NSString * _Nonnull)withId tab:(enum SPPrivacyManagerTab)tab;
1263-
- (BOOL)ccpaApplies SWIFT_WARN_UNUSED_RESULT;
1277+
- (void)loadCCPAPrivacyManagerWithId:(NSString * _Nonnull)id tab:(enum SPPrivacyManagerTab)tab;
1278+
@property (nonatomic, readonly) BOOL ccpaApplies;
12641279
@end
12651280

12661281

@@ -1365,57 +1380,72 @@ SWIFT_PROTOCOL("_TtP21ConsentViewController17SPConsentDelegate_")
13651380
- (void)onErrorWithError:(SPError * _Nonnull)error;
13661381
@end
13671382

1383+
enum SPMessageLanguage : NSInteger;
1384+
@class SPPropertyName;
1385+
1386+
SWIFT_CLASS("_TtC21ConsentViewController16SPConsentManager")
1387+
@interface SPConsentManager : NSObject
1388+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class) BOOL shouldCallErrorMetrics;)
1389+
+ (BOOL)shouldCallErrorMetrics SWIFT_WARN_UNUSED_RESULT;
1390+
+ (void)setShouldCallErrorMetrics:(BOOL)value;
1391+
/// By default, the SDK will remove all user consent data from UserDefaults, possibly triggering a message to be displayed again next time
1392+
/// <code>.loadMessage</code> is called.
1393+
/// Set this flag to <code>false</code> if you wish to opt-out from this behaviour.
1394+
@property (nonatomic) BOOL cleanUserDataOnError;
1395+
/// The timeout interval in seconds for the message being displayed
1396+
@property (nonatomic) NSTimeInterval messageTimeoutInSeconds;
1397+
/// Instructs the privacy manager to be displayed with this tab.
1398+
/// By default the SDK will use the defult tab of PM
1399+
@property (nonatomic) enum SPPrivacyManagerTab privacyManagerTab;
1400+
/// Instructs the message to be displayed in this language. If the translation is missing, the fallback will be English.
1401+
/// By default the SDK will use the locale defined by the WebView
1402+
@property (nonatomic) enum SPMessageLanguage messageLanguage;
1403+
- (nonnull instancetype)initWithAccountId:(NSInteger)accountId propertyName:(SPPropertyName * _Nonnull)propertyName campaignsEnv:(enum SPCampaignEnv)campaignsEnv campaigns:(SPCampaigns * _Nonnull)campaigns delegate:(id <SPDelegate> _Nullable)delegate;
1404+
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
1405+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
1406+
@end
1407+
1408+
1409+
13681410

13691411
SWIFT_PROTOCOL("_TtP21ConsentViewController6SPGDPR_")
13701412
@protocol SPGDPR
1371-
- (void)loadGDPRPrivacyManagerWithId:(NSString * _Nonnull)withId tab:(enum SPPrivacyManagerTab)tab;
1372-
- (BOOL)gdprApplies SWIFT_WARN_UNUSED_RESULT;
1413+
- (void)loadGDPRPrivacyManagerWithId:(NSString * _Nonnull)id tab:(enum SPPrivacyManagerTab)tab;
1414+
@property (nonatomic, readonly) BOOL gdprApplies;
13731415
@end
13741416

13751417
@class SPGDPRConsent;
13761418

13771419
SWIFT_PROTOCOL("_TtP21ConsentViewController5SPSDK_")
13781420
@protocol SPSDK <SPCCPA, SPGDPR>
1421+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull VERSION;)
1422+
+ (NSString * _Nonnull)VERSION SWIFT_WARN_UNUSED_RESULT;
1423+
+ (void)clearAllData;
1424+
@property (nonatomic) BOOL cleanUserDataOnError;
1425+
@property (nonatomic) NSTimeInterval messageTimeoutInSeconds;
1426+
@property (nonatomic) enum SPPrivacyManagerTab privacyManagerTab;
1427+
@property (nonatomic) enum SPMessageLanguage messageLanguage;
13791428
@property (nonatomic, readonly, strong) SPUserData * _Nonnull userData;
1429+
- (nonnull instancetype)initWithAccountId:(NSInteger)accountId propertyName:(SPPropertyName * _Nonnull)propertyName campaignsEnv:(enum SPCampaignEnv)campaignsEnv campaigns:(SPCampaigns * _Nonnull)campaigns delegate:(id <SPDelegate> _Nullable)delegate;
13801430
- (void)loadMessageForAuthId:(NSString * _Nullable)authId;
13811431
- (void)customConsentGDPRWithVendors:(NSArray<NSString *> * _Nonnull)vendors categories:(NSArray<NSString *> * _Nonnull)categories legIntCategories:(NSArray<NSString *> * _Nonnull)legIntCategories handler:(void (^ _Nonnull)(SPGDPRConsent * _Nonnull))handler;
13821432
@end
13831433

1384-
@class SPPropertyName;
1385-
enum SPMessageLanguage : NSInteger;
13861434

1387-
SWIFT_CLASS("_TtC21ConsentViewController16SPConsentManager")
1388-
@interface SPConsentManager : NSObject <SPSDK>
1435+
@interface SPConsentManager (SWIFT_EXTENSION(ConsentViewController)) <SPSDK>
13891436
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull VERSION;)
13901437
+ (NSString * _Nonnull)VERSION SWIFT_WARN_UNUSED_RESULT;
1391-
SWIFT_CLASS_PROPERTY(@property (nonatomic, class) BOOL shouldCallErrorMetrics;)
1392-
+ (BOOL)shouldCallErrorMetrics SWIFT_WARN_UNUSED_RESULT;
1393-
+ (void)setShouldCallErrorMetrics:(BOOL)value;
1394-
@property (nonatomic, readonly, strong) SPUserData * _Nonnull userData;
13951438
+ (void)clearAllData;
1396-
/// The timeout interval in seconds for the message being displayed
1397-
@property (nonatomic) NSTimeInterval messageTimeoutInSeconds;
1398-
- (nonnull instancetype)initWithAccountId:(NSInteger)accountId propertyName:(SPPropertyName * _Nonnull)propertyName campaignsEnv:(enum SPCampaignEnv)campaignsEnv campaigns:(SPCampaigns * _Nonnull)campaigns delegate:(id <SPDelegate> _Nullable)delegate;
1399-
/// Instructs the privacy manager to be displayed with this tab.
1400-
/// By default the SDK will use the defult tab of PM
1401-
@property (nonatomic) enum SPPrivacyManagerTab privacyManagerTab;
1402-
/// Instructs the message to be displayed in this language. If the translation is missing, the fallback will be English.
1403-
/// By default the SDK will use the locale defined by the WebView
1404-
@property (nonatomic) enum SPMessageLanguage messageLanguage;
1439+
@property (nonatomic, readonly) BOOL gdprApplies;
1440+
@property (nonatomic, readonly) BOOL ccpaApplies;
1441+
@property (nonatomic, readonly, strong) SPUserData * _Nonnull userData;
14051442
- (void)loadMessageForAuthId:(NSString * _Nullable)authId;
14061443
- (void)loadGDPRPrivacyManagerWithId:(NSString * _Nonnull)id tab:(enum SPPrivacyManagerTab)tab;
14071444
- (void)loadCCPAPrivacyManagerWithId:(NSString * _Nonnull)id tab:(enum SPPrivacyManagerTab)tab;
1408-
- (BOOL)gdprApplies SWIFT_WARN_UNUSED_RESULT;
1409-
- (BOOL)ccpaApplies SWIFT_WARN_UNUSED_RESULT;
14101445
- (void)customConsentGDPRWithVendors:(NSArray<NSString *> * _Nonnull)vendors categories:(NSArray<NSString *> * _Nonnull)categories legIntCategories:(NSArray<NSString *> * _Nonnull)legIntCategories handler:(void (^ _Nonnull)(SPGDPRConsent * _Nonnull))handler;
1411-
- (void)onError:(SPError * _Nonnull)error;
1412-
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
1413-
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
14141446
@end
14151447

14161448

1417-
1418-
14191449
SWIFT_PROTOCOL("_TtP21ConsentViewController19SPConsentUIDelegate_")
14201450
@protocol SPConsentUIDelegate
14211451
/// called when the user takes an action in the SP UI

XCFramework/ConsentViewController.xcframework/ios-arm64_armv7/ConsentViewController.framework/Modules/ConsentViewController.swiftmodule/arm.swiftinterface

+38-19
Original file line numberDiff line numberDiff line change
@@ -160,30 +160,36 @@ public typealias SPUsPrivacyString = Swift.String
160160
@objc deinit
161161
public func encode(to encoder: Swift.Encoder) throws
162162
}
163-
@objc @_hasMissingDesignatedInitializers @objcMembers public class SPConsentManager : ObjectiveC.NSObject, ConsentViewController.SPSDK {
164-
@objc public static let VERSION: Swift.String
163+
@objc @_hasMissingDesignatedInitializers @objcMembers public class SPConsentManager : ObjectiveC.NSObject {
165164
@objc public static var shouldCallErrorMetrics: Swift.Bool
166-
@objc public var userData: ConsentViewController.SPUserData {
167-
@objc get
168-
}
169-
@objc public static func clearAllData()
165+
@objc public var cleanUserDataOnError: Swift.Bool
170166
@objc public var messageTimeoutInSeconds: Foundation.TimeInterval {
171167
@objc get
172168
@objc set
173169
}
174-
@objc convenience public init(accountId: Swift.Int, propertyName: ConsentViewController.SPPropertyName, campaignsEnv: ConsentViewController.SPCampaignEnv = .Public, campaigns: ConsentViewController.SPCampaigns, delegate: ConsentViewController.SPDelegate?)
175170
@objc public var privacyManagerTab: ConsentViewController.SPPrivacyManagerTab
176171
@objc public var messageLanguage: ConsentViewController.SPMessageLanguage
177-
@objc public func loadMessage(forAuthId authId: Swift.String? = nil)
178-
@objc public func loadGDPRPrivacyManager(withId id: Swift.String, tab: ConsentViewController.SPPrivacyManagerTab = .Default)
179-
@objc public func loadCCPAPrivacyManager(withId id: Swift.String, tab: ConsentViewController.SPPrivacyManagerTab = .Default)
180-
@objc public func gdprApplies() -> Swift.Bool
181-
@objc public func ccpaApplies() -> Swift.Bool
182-
@objc public func customConsentGDPR(vendors: [Swift.String], categories: [Swift.String], legIntCategories: [Swift.String], handler: @escaping (ConsentViewController.SPGDPRConsent) -> Swift.Void)
183-
@objc public func onError(_ error: ConsentViewController.SPError)
172+
@objc required convenience public init(accountId: Swift.Int, propertyName: ConsentViewController.SPPropertyName, campaignsEnv: ConsentViewController.SPCampaignEnv = .Public, campaigns: ConsentViewController.SPCampaigns, delegate: ConsentViewController.SPDelegate?)
184173
@objc override dynamic public init()
185174
@objc deinit
186175
}
176+
@objc extension SPConsentManager : ConsentViewController.SPSDK {
177+
@objc public static let VERSION: Swift.String
178+
@objc public static func clearAllData()
179+
@objc dynamic public var gdprApplies: Swift.Bool {
180+
@objc get
181+
}
182+
@objc dynamic public var ccpaApplies: Swift.Bool {
183+
@objc get
184+
}
185+
@objc dynamic public var userData: ConsentViewController.SPUserData {
186+
@objc get
187+
}
188+
@objc dynamic public func loadMessage(forAuthId authId: Swift.String? = nil)
189+
@objc dynamic public func loadGDPRPrivacyManager(withId id: Swift.String, tab: ConsentViewController.SPPrivacyManagerTab = .Default)
190+
@objc dynamic public func loadCCPAPrivacyManager(withId id: Swift.String, tab: ConsentViewController.SPPrivacyManagerTab = .Default)
191+
@objc dynamic public func customConsentGDPR(vendors: [Swift.String], categories: [Swift.String], legIntCategories: [Swift.String], handler: @escaping (ConsentViewController.SPGDPRConsent) -> Swift.Void)
192+
}
187193
@objc public protocol SPConsentUIDelegate {
188194
@objc func onAction(_ action: ConsentViewController.SPAction, from controller: ConsentViewController.SPMessageViewController)
189195
}
@@ -391,7 +397,7 @@ public typealias SPGDPRPurposeId = Swift.String
391397
@objc get
392398
}
393399
@objc override dynamic public func isEqual(_ object: Any?) -> Swift.Bool
394-
@objc public init(granted: Swift.Bool, purposeGrants: ConsentViewController.SPGDPRPurposeGrants)
400+
@objc public init(granted: Swift.Bool = false, purposeGrants: ConsentViewController.SPGDPRPurposeGrants = [:])
395401
@objc override dynamic public init()
396402
@objc deinit
397403
public func encode(to encoder: Swift.Encoder) throws
@@ -612,18 +618,31 @@ extension SPCategoryType : Swift.Codable {
612618
@objc deinit
613619
}
614620
@objc public protocol SPCCPA {
615-
@objc func loadCCPAPrivacyManager(withId: Swift.String, tab: ConsentViewController.SPPrivacyManagerTab)
616-
@objc func ccpaApplies() -> Swift.Bool
621+
@objc func loadCCPAPrivacyManager(withId id: Swift.String, tab: ConsentViewController.SPPrivacyManagerTab)
622+
@objc var ccpaApplies: Swift.Bool { get }
617623
}
618624
@objc public protocol SPGDPR {
619-
@objc func loadGDPRPrivacyManager(withId: Swift.String, tab: ConsentViewController.SPPrivacyManagerTab)
620-
@objc func gdprApplies() -> Swift.Bool
625+
@objc func loadGDPRPrivacyManager(withId id: Swift.String, tab: ConsentViewController.SPPrivacyManagerTab)
626+
@objc var gdprApplies: Swift.Bool { get }
621627
}
622628
@objc public protocol SPSDK : ConsentViewController.SPCCPA, ConsentViewController.SPGDPR {
629+
@objc static var VERSION: Swift.String { get }
630+
@objc static func clearAllData()
631+
@objc var cleanUserDataOnError: Swift.Bool { get set }
632+
@objc var messageTimeoutInSeconds: Foundation.TimeInterval { get set }
633+
@objc var privacyManagerTab: ConsentViewController.SPPrivacyManagerTab { get set }
634+
@objc var messageLanguage: ConsentViewController.SPMessageLanguage { get set }
623635
@objc var userData: ConsentViewController.SPUserData { get }
636+
@objc init(accountId: Swift.Int, propertyName: ConsentViewController.SPPropertyName, campaignsEnv: ConsentViewController.SPCampaignEnv, campaigns: ConsentViewController.SPCampaigns, delegate: ConsentViewController.SPDelegate?)
624637
@objc func loadMessage(forAuthId authId: Swift.String?)
625638
@objc func customConsentGDPR(vendors: [Swift.String], categories: [Swift.String], legIntCategories: [Swift.String], handler: @escaping (ConsentViewController.SPGDPRConsent) -> Swift.Void)
626639
}
640+
extension SPSDK {
641+
public init(accountId: Swift.Int, propertyName: ConsentViewController.SPPropertyName, campaignsEnv: ConsentViewController.SPCampaignEnv = .Public, campaigns: ConsentViewController.SPCampaigns, delegate: ConsentViewController.SPDelegate?)
642+
public func loadMessage(forAuthId authId: Swift.String? = "")
643+
public func loadCCPAPrivacyManager(withId id: Swift.String, tab: ConsentViewController.SPPrivacyManagerTab = .Default)
644+
public func loadGDPRPrivacyManager(withId id: Swift.String, tab: ConsentViewController.SPPrivacyManagerTab = .Default)
645+
}
627646
public class SPConsent<ConsentType> : ObjectiveC.NSObject, Swift.Codable where ConsentType : Swift.Decodable, ConsentType : Swift.Encodable, ConsentType : Swift.Equatable {
628647
final public let consents: ConsentType?
629648
final public let applies: Swift.Bool

0 commit comments

Comments
 (0)