-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c536a63
commit b75b69f
Showing
156 changed files
with
289,385 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>AvailableLibraries</key> | ||
<array> | ||
<dict> | ||
<key>LibraryIdentifier</key> | ||
<string>ios-arm64</string> | ||
<key>LibraryPath</key> | ||
<string>ConsentViewController.framework</string> | ||
<key>SupportedArchitectures</key> | ||
<array> | ||
<string>arm64</string> | ||
</array> | ||
<key>SupportedPlatform</key> | ||
<string>ios</string> | ||
</dict> | ||
<dict> | ||
<key>LibraryIdentifier</key> | ||
<string>ios-arm64_x86_64-simulator</string> | ||
<key>LibraryPath</key> | ||
<string>ConsentViewController.framework</string> | ||
<key>SupportedArchitectures</key> | ||
<array> | ||
<string>arm64</string> | ||
<string>x86_64</string> | ||
</array> | ||
<key>SupportedPlatform</key> | ||
<string>ios</string> | ||
<key>SupportedPlatformVariant</key> | ||
<string>simulator</string> | ||
</dict> | ||
<dict> | ||
<key>LibraryIdentifier</key> | ||
<string>tvos-arm64</string> | ||
<key>LibraryPath</key> | ||
<string>ConsentViewController.framework</string> | ||
<key>SupportedArchitectures</key> | ||
<array> | ||
<string>arm64</string> | ||
</array> | ||
<key>SupportedPlatform</key> | ||
<string>tvos</string> | ||
</dict> | ||
<dict> | ||
<key>LibraryIdentifier</key> | ||
<string>tvos-arm64_x86_64-simulator</string> | ||
<key>LibraryPath</key> | ||
<string>ConsentViewController.framework</string> | ||
<key>SupportedArchitectures</key> | ||
<array> | ||
<string>arm64</string> | ||
<string>x86_64</string> | ||
</array> | ||
<key>SupportedPlatform</key> | ||
<string>tvos</string> | ||
<key>SupportedPlatformVariant</key> | ||
<string>simulator</string> | ||
</dict> | ||
</array> | ||
<key>CFBundlePackageType</key> | ||
<string>XFWK</string> | ||
<key>XCFrameworkFormatVersion</key> | ||
<string>1.0</string> | ||
</dict> | ||
</plist> |
Binary file added
BIN
+6.38 KB
...iewController.xcframework/ios-arm64/ConsentViewController.framework/Barcode.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+4.54 MB
...iewController.xcframework/ios-arm64/ConsentViewController.framework/ConsentViewController
Binary file not shown.
Binary file added
BIN
+6.38 KB
...-arm64/ConsentViewController.framework/ConsentViewController.bundle/Barcode.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+790 Bytes
...amework/ios-arm64/ConsentViewController.framework/ConsentViewController.bundle/Info.plist
Binary file not shown.
47 changes: 47 additions & 0 deletions
47
...-arm64/ConsentViewController.framework/ConsentViewController.bundle/PrivacyInfo.xcprivacy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>NSPrivacyTracking</key> | ||
<false/> | ||
<key>NSPrivacyCollectedDataTypes</key> | ||
<array> | ||
<dict> | ||
<key>NSPrivacyCollectedDataType</key> | ||
<string>NSPrivacyCollectedDataTypeUserID</string> | ||
<key>NSPrivacyCollectedDataTypeLinked</key> | ||
<true/> | ||
<key>NSPrivacyCollectedDataTypeTracking</key> | ||
<false/> | ||
<key>NSPrivacyCollectedDataTypePurposes</key> | ||
<array> | ||
<string>NSPrivacyCollectedDataTypePurposeAppFunctionality</string> | ||
</array> | ||
</dict> | ||
<dict> | ||
<key>NSPrivacyCollectedDataType</key> | ||
<string>NSPrivacyCollectedDataTypeProductInteraction</string> | ||
<key>NSPrivacyCollectedDataTypeLinked</key> | ||
<true/> | ||
<key>NSPrivacyCollectedDataTypeTracking</key> | ||
<false/> | ||
<key>NSPrivacyCollectedDataTypePurposes</key> | ||
<array> | ||
<string>NSPrivacyCollectedDataTypePurposeAppFunctionality</string> | ||
<string>NSPrivacyCollectedDataTypePurposeAnalytics</string> | ||
</array> | ||
</dict> | ||
</array> | ||
<key>NSPrivacyAccessedAPITypes</key> | ||
<array> | ||
<dict> | ||
<key>NSPrivacyAccessedAPITypeReasons</key> | ||
<array> | ||
<string>CA92.1</string> | ||
</array> | ||
<key>NSPrivacyAccessedAPIType</key> | ||
<string>NSPrivacyAccessedAPICategoryUserDefaults</string> | ||
</dict> | ||
</array> | ||
</dict> | ||
</plist> |
120 changes: 120 additions & 0 deletions
120
...rk/ios-arm64/ConsentViewController.framework/ConsentViewController.bundle/SPJSReceiver.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,120 @@ | ||
var postToWebView = function (webview) { | ||
return function(name, body) { | ||
webview.postMessage({ name: name, body: body || {} }, "*"); | ||
}; | ||
}(window.webkit.messageHandlers.SPJSReceiver); | ||
|
||
window.SDK = function (postToWebView) { | ||
return { | ||
loadMessage: function(messageJSON) { | ||
var messagePayload = Object.assign({}, messageJSON, { | ||
name: "sp.loadMessage", | ||
fromNativeSDK: true | ||
}); | ||
window.postMessage(messagePayload, "*"); | ||
}, | ||
readyForPreload: function () { | ||
postToWebView("readyForPreload"); | ||
}, | ||
onMessageReady: function() { | ||
postToWebView("onMessageReady"); | ||
}, | ||
onPMReady: function() { | ||
postToWebView("onPMReady"); | ||
}, | ||
onAction: function(action) { | ||
postToWebView("onAction", action); | ||
}, | ||
onError: function(error) { | ||
postToWebView("onError", { error: error }); | ||
}, | ||
onMessageEvent: function(payload) { | ||
postToWebView("onMessageEvent", payload); | ||
} | ||
}; | ||
}(postToWebView); | ||
|
||
var getActionFromMessage = function (eventData) { | ||
var choiceAction = eventData.payload.filter(function (action) { | ||
return action.type === 'choice'; | ||
})[0] || {}; | ||
var choiceData = choiceAction.data || {}; | ||
return { | ||
id: String(choiceData.choice_id), | ||
type: choiceData.type, | ||
pmUrl: choiceData.pmUrl || choiceData.iframe_url, | ||
consentLanguage: eventData.consentLanguage, | ||
customActionId: choiceData.customAction | ||
}; | ||
}; | ||
|
||
var handleMessageEvent = function(SDK) { | ||
return function(eventData) { | ||
switch(eventData.name) { | ||
case "sp.readyForPreload": | ||
SDK.readyForPreload(); | ||
break; | ||
case "sp.loadMessage": | ||
/* do nothing */ | ||
break; | ||
case "sp.showMessage": | ||
eventData.fromPM ? SDK.onPMReady() : SDK.onMessageReady(); | ||
break; | ||
case "sp.hideMessage": | ||
eventData.fromPM ? | ||
SDK.onAction({ | ||
type: eventData.actionType, | ||
payload: eventData.payload, | ||
consentLanguage: eventData.consentLanguage, | ||
customActionId: eventData.customAction, | ||
pmUrl: eventData.pmUrl | ||
}) : | ||
SDK.onAction(getActionFromMessage(eventData)); | ||
break; | ||
case "sp.renderingAppError": | ||
SDK.onError(eventData); | ||
break; | ||
default: | ||
eventData.payload.action = eventData.name; | ||
SDK.onMessageEvent(eventData); | ||
} | ||
}; | ||
}; | ||
|
||
function isFromPM(event) { | ||
event.settings = event.settings || {}; | ||
return event.fromPM || event.settings.vendorList; | ||
} | ||
|
||
function isError(event) { | ||
return event.stackTrace !== undefined; | ||
} | ||
|
||
function handleError(event) { | ||
window.SDK.onError({ | ||
code: event.code, | ||
title: event.title, | ||
stackTrace: event.stackTrace | ||
}); | ||
} | ||
|
||
var handleMessageOrPMEvent = function (SDK) { | ||
return function (event) { | ||
var data = event.data; | ||
try { | ||
isError(event) ? handleError(event) : handleMessageEvent(SDK)({ | ||
name: data.name, | ||
fromPM: isFromPM(data), | ||
actionType: data.actionType, | ||
payload: data.payload || data.actions || {}, | ||
consentLanguage: data.consentLanguage, | ||
customAction: data.customAction, | ||
pmUrl: data.iframe_url | ||
}); | ||
} catch (error) { | ||
SDK.onError(error); | ||
} | ||
}; | ||
}; | ||
|
||
window.addEventListener("message", handleMessageOrPMEvent(window.SDK)); |
5 changes: 5 additions & 0 deletions
5
...s-arm64/ConsentViewController.framework/ConsentViewController.bundle/SPJSReceiver.spec.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
require("./SPJSReceiver") | ||
|
||
it.skip("SPJSReceiver", () => { | ||
|
||
}) |
Binary file added
BIN
+8.05 KB
...-arm64/ConsentViewController.framework/ConsentViewController.bundle/SP_Icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+7.84 KB
...ConsentViewController.framework/ConsentViewController.bundle/images/Barcode.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+10.6 KB
...ConsentViewController.framework/ConsentViewController.bundle/images/SP_Icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
120 changes: 120 additions & 0 deletions
120
...4/ConsentViewController.framework/ConsentViewController.bundle/javascript/SPJSReceiver.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,120 @@ | ||
var postToWebView = function (webview) { | ||
return function(name, body) { | ||
webview.postMessage({ name: name, body: body || {} }, "*"); | ||
}; | ||
}(window.webkit.messageHandlers.SPJSReceiver); | ||
|
||
window.SDK = function (postToWebView) { | ||
return { | ||
loadMessage: function(messageJSON) { | ||
var messagePayload = Object.assign({}, messageJSON, { | ||
name: "sp.loadMessage", | ||
fromNativeSDK: true | ||
}); | ||
window.postMessage(messagePayload, "*"); | ||
}, | ||
readyForPreload: function () { | ||
postToWebView("readyForPreload"); | ||
}, | ||
onMessageReady: function() { | ||
postToWebView("onMessageReady"); | ||
}, | ||
onPMReady: function() { | ||
postToWebView("onPMReady"); | ||
}, | ||
onAction: function(action) { | ||
postToWebView("onAction", action); | ||
}, | ||
onError: function(error) { | ||
postToWebView("onError", { error: error }); | ||
}, | ||
onMessageEvent: function(payload) { | ||
postToWebView("onMessageEvent", payload); | ||
} | ||
}; | ||
}(postToWebView); | ||
|
||
var getActionFromMessage = function (eventData) { | ||
var choiceAction = eventData.payload.filter(function (action) { | ||
return action.type === 'choice'; | ||
})[0] || {}; | ||
var choiceData = choiceAction.data || {}; | ||
return { | ||
id: String(choiceData.choice_id), | ||
type: choiceData.type, | ||
pmUrl: choiceData.pmUrl || choiceData.iframe_url, | ||
consentLanguage: eventData.consentLanguage, | ||
customActionId: choiceData.customAction | ||
}; | ||
}; | ||
|
||
var handleMessageEvent = function(SDK) { | ||
return function(eventData) { | ||
switch(eventData.name) { | ||
case "sp.readyForPreload": | ||
SDK.readyForPreload(); | ||
break; | ||
case "sp.loadMessage": | ||
/* do nothing */ | ||
break; | ||
case "sp.showMessage": | ||
eventData.fromPM ? SDK.onPMReady() : SDK.onMessageReady(); | ||
break; | ||
case "sp.hideMessage": | ||
eventData.fromPM ? | ||
SDK.onAction({ | ||
type: eventData.actionType, | ||
payload: eventData.payload, | ||
consentLanguage: eventData.consentLanguage, | ||
customActionId: eventData.customAction, | ||
pmUrl: eventData.pmUrl | ||
}) : | ||
SDK.onAction(getActionFromMessage(eventData)); | ||
break; | ||
case "sp.renderingAppError": | ||
SDK.onError(eventData); | ||
break; | ||
default: | ||
eventData.payload.action = eventData.name; | ||
SDK.onMessageEvent(eventData); | ||
} | ||
}; | ||
}; | ||
|
||
function isFromPM(event) { | ||
event.settings = event.settings || {}; | ||
return event.fromPM || event.settings.vendorList; | ||
} | ||
|
||
function isError(event) { | ||
return event.stackTrace !== undefined; | ||
} | ||
|
||
function handleError(event) { | ||
window.SDK.onError({ | ||
code: event.code, | ||
title: event.title, | ||
stackTrace: event.stackTrace | ||
}); | ||
} | ||
|
||
var handleMessageOrPMEvent = function (SDK) { | ||
return function (event) { | ||
var data = event.data; | ||
try { | ||
isError(event) ? handleError(event) : handleMessageEvent(SDK)({ | ||
name: data.name, | ||
fromPM: isFromPM(data), | ||
actionType: data.actionType, | ||
payload: data.payload || data.actions || {}, | ||
consentLanguage: data.consentLanguage, | ||
customAction: data.customAction, | ||
pmUrl: data.iframe_url | ||
}); | ||
} catch (error) { | ||
SDK.onError(error); | ||
} | ||
}; | ||
}; | ||
|
||
window.addEventListener("message", handleMessageOrPMEvent(window.SDK)); |
5 changes: 5 additions & 0 deletions
5
...sentViewController.framework/ConsentViewController.bundle/javascript/SPJSReceiver.spec.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
require("./SPJSReceiver") | ||
|
||
it.skip("SPJSReceiver", () => { | ||
|
||
}) |
7 changes: 7 additions & 0 deletions
7
.../ConsentViewController.framework/ConsentViewController.bundle/javascript/jest.config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"globals": { | ||
"webkit": { | ||
"messageHandlers": {} | ||
} | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
...k/ios-arm64/ConsentViewController.framework/ConsentViewController.bundle/jest.config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"globals": { | ||
"webkit": { | ||
"messageHandlers": {} | ||
} | ||
} | ||
} |
Oops, something went wrong.