Skip to content

Commit

Permalink
bump podspec version to 4.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
andresilveirah committed Feb 25, 2020
1 parent f269605 commit 742272d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ConsentViewController.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'ConsentViewController'
s.version = '4.1.2'
s.version = '4.1.3'
s.summary = 'SourcePoint\'s ConsentViewController to handle privacy consents.'
s.homepage = 'https://www.sourcepoint.com'
s.license = { :type => 'MIT', :file => 'LICENSE' }
Expand Down
6 changes: 5 additions & 1 deletion Example/ConsentViewController/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,11 @@ class ViewController: UIViewController, GDPRConsentDelegate {
print("ConsentUUID: \(gdprUUID)")
userConsent.acceptedVendors.forEach({ vendorId in print("Vendor: \(vendorId)") })
userConsent.acceptedCategories.forEach({ purposeId in print("Purpose: \(purposeId)") })
print("Consent String: \(UserDefaults.standard.string(forKey: GDPRConsentViewController.IAB_CONSENT_CONSENT_STRING) ?? "<empty>")")
print(UserDefaults.standard.dictionaryRepresentation().filter { (key, _) in
key.starts(with: "sp_") || key.starts(with: "IAB")
})
let consentString = UserDefaults.standard.string(forKey: GDPRConsentViewController.IAB_CONSENT_CONSENT_STRING) ?? "<empty>"
print("Consent String: \(consentString)")
}

func onError(error: GDPRConsentViewControllerError?) {
Expand Down

0 comments on commit 742272d

Please sign in to comment.