Skip to content

Commit

Permalink
'update XCFrameworks for 7.6.9'
Browse files Browse the repository at this point in the history
  • Loading branch information
Nevazhnovu committed Jun 10, 2024
1 parent c536a63 commit b75b69f
Show file tree
Hide file tree
Showing 156 changed files with 289,385 additions and 0 deletions.
Binary file added XCFramework/ConsentViewController.xcframework.zip
Binary file not shown.
67 changes: 67 additions & 0 deletions XCFramework/ConsentViewController.xcframework/Info.plist
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>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
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>
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));
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
require("./SPJSReceiver")

it.skip("SPJSReceiver", () => {

})
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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));
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
require("./SPJSReceiver")

it.skip("SPJSReceiver", () => {

})
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"globals": {
"webkit": {
"messageHandlers": {}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"globals": {
"webkit": {
"messageHandlers": {}
}
}
}
Loading

0 comments on commit b75b69f

Please sign in to comment.