diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/AlibabaAuthSDK.bundle/alibaba_auth_sdk.png b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/AlibabaAuthSDK.bundle/alibaba_auth_sdk.png new file mode 100644 index 0000000..573541a --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/AlibabaAuthSDK.bundle/alibaba_auth_sdk.png @@ -0,0 +1 @@ +0 diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/AlibabaAuthSDK.bundle/alimember_navbar_left@2x.png b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/AlibabaAuthSDK.bundle/alimember_navbar_left@2x.png new file mode 100644 index 0000000..4aa9b6b Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/AlibabaAuthSDK.bundle/alimember_navbar_left@2x.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/AriverFileManager.bundle/.gitignore b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/AriverFileManager.bundle/.gitignore new file mode 100644 index 0000000..e69de29 diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/AriverKernel.bundle/AriverKernel-Config.plist b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/AriverKernel.bundle/AriverKernel-Config.plist new file mode 100644 index 0000000..8a8f4ab --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/AriverKernel.bundle/AriverKernel-Config.plist @@ -0,0 +1,641 @@ + + + + + JsApiRuntime + + JsApis + + + name + RVTJsApi4PostMessage + jsApi + postMessage + + + name + RVTJsApi4CreateWorker + jsApi + createWorker + + + name + RVTJsApiHandler4MultiWorkerPostMessage + jsApi + multiWorkerPostMessage + + + name + RVTJsApiHandler4MultiWorkerTerminate + jsApi + multiWorkerTerminate + + + name + RVTJsApi4RegisterWorker + jsApi + registerWorker + + + jsApi + RVKExtensionJsapi + name + RVKExtensionJsapi + + + jsApi + internalAPI + name + RVPJsApiHandler4InternalAPI + + + name + RVPJsApiHandler4GetAuthCode + jsApi + getAuthorize + + + name + RVPJsApiHandler4GetAuthCode + jsApi + getBusinessAuth + + + name + RVPJsApiHandler4GetAuthCode + jsApi + getComponentAuth + + + name + RVPJsApiHandler4GetAuthCode + jsApi + getAuthCode + + + name + RVUJsApiHandler4TinyRpcForAppX + jsApi + appxrpc + + + name + RVUApiHandler4Rpc + jsApi + rpc + + + name + RVPJSApiHandler4ChangeTab + jsApi + switchTab + + + + PluginRuntime + + Plugins + + + name + RVPlugin4PagePerformance + + + name + RVPlugin4TinyAppPerformance + scope + session + events + + + name + - + useCapture + + + + + + name + RVTPlugin4ConcurrentWorker + scope + session + events + + + name + - + useCapture + + + + + + name + RVTPlugin4JSCCallHandler + scope + service + events + + + name + - + useCapture + + + + + + name + RVTPlugin4TinyAppParam + + + name + RVTPlugin4TinyAppResource + + + name + RVTPlugin4Session + scope + session + events + + + name + - + useCapture + NO + + + + + name + RVAPlugin4EventDispatch + scope + service + events + + + name + *.* + useCapture + + + + + + name + RVKPlugin4JSApiDispatch + events + + + name + invocation.start + useCapture + + + + + + name + RVSPlugin4JsApiPermission + scope + session + events + + + name + - + useCapture + + + + + + name + RVSPlugin4SessionBindVariables + scope + session + events + + + name + - + useCapture + + + + + + name + RVUPlugin4Authorization + scope + session + events + + + name + - + useCapture + + + + + + name + RVTPlugin4Component + scope + session + events + + + name + - + useCapture + + + + + + name + RVPPlugin4TabBar + scope + session + events + + + name + - + useCapture + + + + + + name + RVDPlugin4Debug + scope + session + events + + + name + - + useCapture + + + + + + name + RVDRemoteDebugPlugin4NetworkInfo + scope + session + events + + + name + - + useCapture + + + + + + name + RVDRemoteDebugPlugin4JSApiLog + scope + session + events + + + name + - + useCapture + + + + + + name + RVAPlugin4Canvas + scope + session + events + + + name + - + useCapture + + + + + + name + RVPPlugin4WebSocket + scope + session + events + + + name + - + useCapture + + + + + + name + RVDPlugin4Bugme + scope + session + events + + + name + - + useCapture + + + + + + + ExtensionRuntime + + Extensions + + + name + RVPBridgeExtension4HideKeyboard + + + name + RVPBridgeExtension4ScreenOrientation + + + name + RVLJsApiHandler4HandleLoggingAction + + + name + RVAExtension4WKCrash + + + name + RVKExtension4Screen + + + name + RVPExtension4Shake + + + name + RVPExtension4Wifi + + + name + RVPBridgeExtension4Wifi + + + name + RVPBridgeExtension4BLE + + + name + RVPBridgeExtension4Beacon + + + name + TRVSBridgeExtension4TBSessionKey + + + name + TRVSJsApiHandler4TBSessionKey + + + name + RVPBridgeExtension4LocationPicker + + + name + RVPBridgeExtension4CityPicker + + + name + RVPBridgeExtension4WifiInfo + + + name + RVPBridgeExtension4PhoneContact + + + name + RVPBridgeExtension4Shake + + + name + RVPBridgeExtension4Screen + + + name + RVPBridgeExtension4DeviceMotion + + + name + RVPBridgeExtension4Vibrate + + + name + RVPBridgeExtension4PhoneCall + + + name + RVPBridgeExtension4Battery + + + name + RVPBridgeExtension4Clipboard + + + name + RVPBridgeExtension4Jailbroken + + + name + RVPBridgeExtension4SystemInfo + + + name + RVPBridgeExtension4CarrierName + + + name + RVPBridgeExtension4PushWindow + + + name + RVPBridgeExtension4PopWindow + + + name + RVPBridgeExtension4Notify + + + name + RVPBridgeExtension4ShortCut + + + name + RVPBridgeExtenion4Environment + + + name + RVPBridgeExtension4GetNetworkType + + + name + RVPBridgeExtension4PackageManager + + + name + RVPBridgeExtension4CheckJSAPI + + + name + RVPBridgeExtension4AuthGuide + + + name + RVPBridgeExtension4SharedData + + + name + RVPBridgeExtension4GetFileInfo + + + name + RVPBridgeExtension4SaveFile + + + name + RVPBridgeExtension4GetSavedFileInfo + + + name + RVPBridgeExtension4GetSavedFileList + + + name + RVPBridgeExtension4RemoveSavedFile + + + name + RVPBridgeExtension4ChooseFileFromDisk + + + name + RVPBridgeExtension4SceneStackInfo + + + name + RVPBridgeExtension4AccountManager + + + name + RVDBridgeExtension4DebugConsole + + + name + RVDBridgeExtension4RemoteDebug + + + name + RVPBridgeExtension4WebSocket + + + name + RVPBridgeExtension4TradePay + + + name + RVPBridgeExtension4BLEPeripheral + + + name + RVPExtension4BLEPeripheral + + + name + RVPBridgeExtension4StartAudioRecord + + + name + RVPBridgeExtension4StopAudioRecord + + + name + RVPBridgeExtension4PauseAudioRecord + + + name + RVPBridgeExtension4ResumeAudioRecord + + + name + RVPBridgeExtension4CancelAudioRecord + + + name + RVSBridgeExtension4Permission + + + name + RVTBridgeExtensionInitialTraceDebug + + + name + RVTBridgeExtensionPostMethodTrace + + + name + RVTExtensionTraceDebugApp + + + name + RVTExtensionTraceDebugInvocation + + + name + RVTBridgeExtension4Worker + + + name + RVPBridgeExtension4Tabbar + + + name + RVPBridgeExtension4FileSystemManager + + + name + TinyTestExtension + + + name + Plugin4Cdp + + + name + RVPJsApiGetLocaleInfo + + + name + RVPJsApiGetLayoutDirection + + + + + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/AriverKernel.bundle/Ariver_version.json b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/AriverKernel.bundle/Ariver_version.json new file mode 100644 index 0000000..39893eb --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/AriverKernel.bundle/Ariver_version.json @@ -0,0 +1 @@ +{"version":"1.0.11.0"} diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/AriverResource.bundle/.gitkeep b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/AriverResource.bundle/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/AriverRuntime.bundle/H5ES6Promise.js b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/AriverRuntime.bundle/H5ES6Promise.js new file mode 100644 index 0000000..d80381c --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/AriverRuntime.bundle/H5ES6Promise.js @@ -0,0 +1 @@ +!function(t){"use strict";function n(t){return"function"==typeof t||"object"==typeof t&&null!==t}function e(t){return"function"==typeof t}function r(t){H=t}function o(t){R=t}function i(){return function(){process.nextTick(f)}}function s(){return function(){G(f)}}function u(){var t=0,n=new Z(f),e=document.createTextNode("");return n.observe(e,{characterData:!0}),function(){e.data=t=++t%2}}function c(){var t=new MessageChannel;return t.port1.onmessage=f,function(){t.port2.postMessage(0)}}function a(){return function(){setTimeout(f,1)}}function f(){for(var t=0;Q>t;t+=2){var n=nt[t],e=nt[t+1];n(e),nt[t]=void 0,nt[t+1]=void 0}Q=0}function l(){try{var t=require,n=t("vertx");return G=n.runOnLoop||n.runOnContext,s()}catch(e){return a()}}function h(t,n){var e=this,r=new this.constructor(p);void 0===r[ot]&&Y(r);var o=e._state;if(o){var i=arguments[o-1];R(function(){P(o,r,i,e._result)})}else T(e,r,t,n);return r}function _(t){var n=this;if(t&&"object"==typeof t&&t.constructor===n)return t;var e=new n(p);return A(e,t),e}function p(){}function v(){return new TypeError("You cannot resolve a promise with itself")}function y(){return new TypeError("A promises callback cannot return that same promise.")}function d(t){try{return t.then}catch(n){return ct.error=n,ct}}function m(t,n,e,r){try{t.call(n,e,r)}catch(o){return o}}function w(t,n,e){R(function(t){var r=!1,o=m(e,n,function(e){r||(r=!0,n!==e?A(t,e):j(t,e))},function(n){r||(r=!0,E(t,n))},"Settle: "+(t._label||" unknown promise"));!r&&o&&(r=!0,E(t,o))},t)}function b(t,n){n._state===st?j(t,n._result):n._state===ut?E(t,n._result):T(n,void 0,function(n){A(t,n)},function(n){E(t,n)})}function g(t,n,r){n.constructor===t.constructor&&r===et&&constructor.resolve===rt?b(t,n):r===ct?E(t,ct.error):void 0===r?j(t,n):e(r)?w(t,n,r):j(t,n)}function A(t,e){t===e?E(t,v()):n(e)?g(t,e,d(e)):j(t,e)}function S(t){t._onerror&&t._onerror(t._result),M(t)}function j(t,n){t._state===it&&(t._result=n,t._state=st,0!==t._subscribers.length&&R(M,t))}function E(t,n){t._state===it&&(t._state=ut,t._result=n,R(S,t))}function T(t,n,e,r){var o=t._subscribers,i=o.length;t._onerror=null,o[i]=n,o[i+st]=e,o[i+ut]=r,0===i&&t._state&&R(M,t)}function M(t){var n=t._subscribers,e=t._state;if(0!==n.length){for(var r,o,i=t._result,s=0;si;i++)n.resolve(t[i]).then(e,r)}:function(t,n){n(new TypeError("You must pass an array to race."))})}function F(t){var n=this,e=new n(p);return E(e,t),e}function K(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function L(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}function N(t){this[ot]=k(),this._result=this._state=void 0,this._subscribers=[],p!==t&&("function"!=typeof t&&K(),this instanceof N?x(this,t):L())}function U(t,n){this._instanceConstructor=t,this.promise=new t(p),this.promise[ot]||Y(this.promise),J(n)?(this._input=n,this.length=n.length,this._remaining=n.length,this._result=new Array(this.length),0===this.length?j(this.promise,this._result):(this.length=this.length||0,this._enumerate(),0===this._remaining&&j(this.promise,this._result))):E(this.promise,W())}function W(){return new Error("Array Methods must be provided an Array")}var z=t.Promise;if(!z||"[object Promise]"!==Object.prototype.toString.call(z.resolve())||z.cast){var B;B=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)};var G,H,I,J=B,Q=0,R=function(t,n){nt[Q]=t,nt[Q+1]=n,Q+=2,2===Q&&(H?H(f):I())},V="undefined"!=typeof window?window:void 0,X=V||{},Z=X.MutationObserver||X.WebKitMutationObserver,$="undefined"==typeof self&&"undefined"!=typeof process&&"[object process]"==={}.toString.call(process),tt="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel,nt=new Array(1e3);I=$?i():Z?u():tt?c():void 0===V&&"function"==typeof require?l():a();var et=h,rt=_,ot=Math.random().toString(36).substring(16),it=void 0,st=1,ut=2,ct=new C,at=new C,ft=0,lt=q,ht=D,_t=F,pt=N;N.all=lt,N.race=ht,N.resolve=rt,N.reject=_t,N._setScheduler=r,N._setAsap=o,N._asap=R,N.prototype={constructor:N,then:et,"catch":function(t){return this.then(null,t)}};var vt=U;U.prototype._enumerate=function(){for(var t=this.length,n=this._input,e=0;this._state===it&&t>e;e++)this._eachEntry(n[e],e)},U.prototype._eachEntry=function(t,n){var e=this._instanceConstructor,r=e.resolve;if(r===rt){var o=d(t);if(o===et&&t._state!==it)this._settledAt(t._state,n,t._result);else if("function"!=typeof o)this._remaining--,this._result[n]=t;else if(e===pt){var i=new e(p);g(i,t,o),this._willSettleAt(i,n)}else this._willSettleAt(new e(function(n){n(t)}),n)}else this._willSettleAt(r(t),n)},U.prototype._settledAt=function(t,n,e){var r=this.promise;r._state===it&&(this._remaining--,t===ut?E(r,e):this._result[n]=e),0===this._remaining&&j(r,this._result)},U.prototype._willSettleAt=function(t,n){var e=this;T(t,void 0,function(t){e._settledAt(st,n,t)},function(t){e._settledAt(ut,n,t)})},t.Promise=pt}}(this); \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/AriverRuntime.bundle/H5JSCBridge.js b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/AriverRuntime.bundle/H5JSCBridge.js new file mode 100644 index 0000000..15a82db --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/AriverRuntime.bundle/H5JSCBridge.js @@ -0,0 +1,631 @@ +/** + * Created by xinnian on 2016/12/21. + */ +var setTimeout, setInterval, clearTimeout, clearInterval, AlipayTimersExecution; +if(!this.console){ + this.console = { + log: function () {}, + error: function () {}, + warn: function () {}, + info: function () {} + } +}; +(function () { + AlipayTimersExecution = { + GUID: 1, + Type: { + setTimeout: "setTimeout", + setInterval: "setInterval", + requestAnimationFrame: "requestAnimationFrame", + setImmediate: "setImmediate" + }, + + callbacks: [], + types: [], + timerIDs: [], + immediates: [], + + callTimer: function (timerID) { + + var timerIndex = AlipayTimersExecution.timerIDs.indexOf(timerID); + // timerIndex of -1 means that no timer with that ID exists. There are + // two situations when this happens, when a garbage timer ID was given + // and when a previously existing timer was deleted before this callback + // fired. In both cases we want to ignore the timer id, but in the former + // case we warn as well. + if (timerIndex === -1) { + return; + } + var type = AlipayTimersExecution.types[timerIndex]; + var callback = AlipayTimersExecution.callbacks[timerIndex]; + + // Clear the metadata + if (type === AlipayTimersExecution.Type.setTimeout || type === AlipayTimersExecution.Type.setImmediate || type === AlipayTimersExecution.Type.requestAnimationFrame) { + AlipayTimersExecution._clearIndex(timerIndex); + } + + try { + if (type === AlipayTimersExecution.Type.setTimeout || type === AlipayTimersExecution.Type.setInterval || type === AlipayTimersExecution.Type.setImmediate) { + callback(); + } else if (type === AlipayTimersExecution.Type.requestAnimationFrame) { + var currentTime = performanceNow(); + callback(currentTime); + } else { + console.error('Tried to call a callback with invalid type: ' + type); + return; + } + } catch (e) { + // Don't rethrow so that we can run every other timer. + AlipayTimersExecution.errors = AlipayTimersExecution.errors || []; + AlipayTimersExecution.errors.push(e); + } + }, + + /** + * This is called from the native side. We are passed an array of timerIDs, + * and + */ + callTimers: function (timerIDs) { + //invariant(timerIDs.length !== 0, 'Probably shouldn\'t call "callTimers" with no timerIDs'); + AlipayTimersExecution.errors = null; + timerIDs.forEach(AlipayTimersExecution.callTimer); + + var errors = AlipayTimersExecution.errors; + if (errors) { + var errorCount = errors.length; + if (errorCount > 1) { + // Throw all the other errors in a setTimeout, which will throw each + // error one at a time + for (var ii = 1; ii < errorCount; ii++) { + var error = errors[ii]; + AlipayTimers.setTimeout(function () { + throw error; + }, + 0); + } + } + throw errors[0]; + } + }, + + /** + * This is called after we execute any command we receive from native but + * before we hand control back to native. + */ + callImmediates: function () { + AlipayTimersExecution.errors = null; + while (AlipayTimersExecution.immediates.length !== 0) { + AlipayTimersExecution.callTimer(AlipayTimersExecution.immediates.shift()); + } + if (AlipayTimersExecution.errors) { + AlipayTimersExecution.errors.forEach(function () { + var args = Array.prototype.slice.call(undefined, arguments); + var error = args[0]; + AlipayTimers.setTimeout(function () { + throw error; + }, + 0); + }); + } + }, + + _clearIndex: function (i) { + AlipayTimersExecution.timerIDs[i] = null; + AlipayTimersExecution.callbacks[i] = null; + AlipayTimersExecution.types[i] = null; + } + }; + + function _getFreeIndex() { + var freeIndex = AlipayTimersExecution.timerIDs.indexOf(null); + if (freeIndex === -1) { + freeIndex = AlipayTimersExecution.timerIDs.length; + } + return freeIndex; + } + + function _allocateCallback(func, type) { + const id = AlipayTimersExecution.GUID++; + const freeIndex = _getFreeIndex(); + AlipayTimersExecution.timerIDs[freeIndex] = id; + AlipayTimersExecution.callbacks[freeIndex] = func; + AlipayTimersExecution.types[freeIndex] = type; + return id; + } + + function _freeCallback(timerID) { + // AlipayTimersExecution.timerIDs contains nulls after timers have been removed; + // ignore nulls upfront so indexOf doesn't find them + if (timerID == null) { + return; + } + + var index = AlipayTimersExecution.timerIDs.indexOf(timerID); + // See corresponding comment in `callTimers` for reasoning behind this + if (index !== -1) { + AlipayTimersExecution._clearIndex(index); + const type = AlipayTimersExecution.types[index]; + if (type !== 'setImmediate' && type !== 'requestIdleCallback') { + //call native method + deleteTimer(timerID); + } + } + } + + var AlipayTimers = { + + setTimeout: function () { + var args = Array.prototype.slice.call(arguments); + var func = arguments[0]; + var duration = arguments[1]; + + var id = _allocateCallback((function (fn) { + return function () { + fn.apply(undefined, args.slice(2)); + } + })(func), 'setTimeout'); + //call native method + createTimer(id, duration || 0, Date.now(), false); + return id; + }, + + setInterval: function () { + var args = Array.prototype.slice.call(arguments); + var func = arguments[0]; + var duration = arguments[1]; + + var id = _allocateCallback((function (fn) { + return function () { + fn.apply(undefined, args.slice(2)); + } + })(func), 'setInterval'); + //call native method + createTimer(id, duration || 0, Date.now(), true); + return id; + }, + + clearTimeout: function (timerID) { + _freeCallback(timerID); + }, + + clearInterval: function (timerID) { + _freeCallback(timerID); + } + }; + + setTimeout = setTimeout || AlipayTimers.setTimeout; + setInterval = setInterval || AlipayTimers.setInterval; + clearTimeout = clearTimeout || AlipayTimers.clearTimeout; + clearInterval = clearInterval || AlipayTimers.clearInterval; +})(); + + + +/** + * Created by xinnian on 2016/11/24. + */ +var document, AlipayJSBridge, window, self = {}; +// window self 指向global 对象 +window = self = this; +(function () { + //set global nativeFlushQueueImmediate null + var nativeFlushQueueImmediate = this.nativeFlushQueueImmediate; + this.nativeFlushQueueImmediate = null; + + var useOptimizedMessageChannel = this.useOptimizedMessageChannel; + this.useOptimizedMessageChannel = null; + + var optimizedMessageChannel = this.optimizedMessageChannel; + this.optimizedMessageChannel = null; + + var handlers = {}; + var windowHanders = {}; + var sendMessageQueue = []; + + function Event(name) { + this.name = name; + } + + Event.prototype = { + preventDefault: function () { + this._preventDefault = true; + }, + initEvent: function(name) { + this.name = name; + }, + isDefaultPrevented: function () { + return !!this._preventDefault; + } + }; + function add(eventName, fn) { + handlers[eventName] || (handlers[eventName] = []); + + var handler = {}; + handler.fn = fn; + + handlers[eventName].push(handler); + } + + function windowAddEvent(eventName, fn) { + windowHanders[eventName] || (windowHanders[eventName] = []); + + var handler = {}; + handler.fn = fn; + + windowHanders[eventName].push(handler); + } + + function remove(eventName, fn) { + if (handlers[eventName]) { + for (var i = 0; i < handlers[eventName].length; i++) { + if (fn === handlers[eventName][i].fn) { + handlers[eventName].splice(i, 1); + if (handlers[eventName].length === 0) { + delete handlers[eventName]; + } + break; + } + } + } + } + + function removeWindowEvent(eventName, fn) { + if (windowHanders[eventName]) { + for (var i = 0; i < windowHanders[eventName].length; i++) { + if (fn === windowHanders[eventName][i].fn) { + windowHanders[eventName].splice(i, 1); + if (windowHanders[eventName].length === 0) { + delete windowHanders[eventName]; + } + break; + } + } + } + } + + function createEvent(eventName) { + return new Event(eventName); + } + + function dispatchEvent(eventName, args) { + var evt = createEvent(eventName); + var isDefaultPrevented = false; + if (handlers[eventName]) { + for (var i = 0; i < handlers[eventName].length; i++) { + evt.data = args; + handlers[eventName][i].fn(evt); + if (evt.isDefaultPrevented()) { + isDefaultPrevented = true; + } + } + } + + return !isDefaultPrevented; + } + + function trigger(eventName, args) { + + var isDefaultPrevented = !dispatchEvent(eventName, args); + if (args.callbackId) { + var callbackData = {}; + callbackData.callbackId = args.callbackId; + callbackData[eventName + 'EventCanceled'] = isDefaultPrevented; + if (typeof args["func"] === "string") { + callbackData[args["func"] + 'EventCanceled'] = isDefaultPrevented; + } + AlipayJSBridge.call("__nofunc__",callbackData); + // delete args.callbackId; + } + } + + document = { + addEventListener: add, + removeEventListener: remove, + trigger: trigger, + sendMessageQueue: sendMessageQueue, + createEvent: createEvent, + dispatchEvent: dispatchEvent, + location: { + href: 'about:blank', + toString:function () { + return location.href; + } + }, + + title: '' + }; + window.addEventListener = windowAddEvent; + window.removeEventListener = removeWindowEvent; + var msgPortMap = {}; + + function trasMsgPort(viewId, pageId, msgPort) { + msgPort.postMessage = function (data) { + var _data = { + data: data, + type: 'messagePort', + msgPortId: msgPort.id, + viewId: viewId, + pageId: pageId + }; + AlipayJSBridge.call("postMessage", _data); + }; + if(!msgPortMap['m_'+viewId]){ + msgPortMap['m_'+viewId] = {}; + } + if(!msgPortMap['m_' + viewId]['p_' + pageId]){ + msgPortMap['m_' + viewId]['p_' + pageId] = {}; + } + msgPortMap['m_'+viewId]['p_' + pageId][msgPort.id] = msgPort; + return msgPort; + } + + document.addEventListener('message', function (event) { + if (event.data && event.data.type != 'messagePort' && !event.data.beforeunload) { + var data = event.data.data; + var eventPorts = event.data.eventPorts; + var viewId = event.data.viewId; + var pageId = event.data.pageId || 0; + if (eventPorts && eventPorts[0]) { + eventPorts[0] = trasMsgPort(viewId, pageId, eventPorts[0]); + } + if (windowHanders['message']) { + for (var i = 0; i < windowHanders['message'].length; i++) { + event.data = data; + event.ports = eventPorts; + windowHanders['message'][i].fn(event); + } + } + } else if (event.data && event.data.type == 'messagePort' && event.data.msgPortId) { + var viewId = event.data.viewId; + var pageId = event.data.pageId || 0; + if(!msgPortMap['m_' + viewId] || !msgPortMap['m_' + viewId]['p_' + pageId]){ + console.error('unknown view', event, msgPortMap); + return; + } + var msgPort = msgPortMap['m_' + viewId]['p_' + pageId][event.data.msgPortId]; + if (msgPort && msgPort.onmessage) { + msgPort.onmessage({ + data: event.data.data + }); + } + } else { + console.log('unknown event', event); + } + }); + + Object.defineProperty(document.location, "href", { + get: function () { + return document.location._href; + }, + + set: function (newValue) { + if (typeof newValue !== 'string') return; + + newValue = newValue.trim(); + if(self.AlipayJSBridge._trimLocationHref){ + var rs = self.AlipayJSBridge._trimLocationHref(newValue); + if(rs){ + for(var key in rs){ + if(key != "href" && typeof rs[key] !== "function"){ + document.location[key] = rs[key]; + } + } + } + } + document.location._href = newValue; + } + }); + /***************Param Type*****************/ + var NEBULA_TYPE_INFO = "NEBULATYPEINFO",NEBULA_TYPE_OF_ARRAYBUFFER = "ArrayBuffer"; + + + var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; + var lookup = new Uint8Array(256); + for (var i = 0; i < chars.length; i++) { + lookup[chars.charCodeAt(i)] = i; + } + + function arrayBufferToBase64(arraybuffer) { + var bytes = new Uint8Array(arraybuffer), + i, len = bytes.length, base64 = ""; + + for (i = 0; i < len; i+=3) { + base64 += chars[bytes[i] >> 2]; + base64 += chars[((bytes[i] & 3) << 4) | (bytes[i + 1] >> 4)]; + base64 += chars[((bytes[i + 1] & 15) << 2) | (bytes[i + 2] >> 6)]; + base64 += chars[bytes[i + 2] & 63]; + } + + if ((len % 3) === 2) { + base64 = base64.substring(0, base64.length - 1) + "="; + } else if (len % 3 === 1) { + base64 = base64.substring(0, base64.length - 2) + "=="; + } + + return base64; + } + + function base64ToArrayBuffer(base64) { + var bufferLength = base64.length * 0.75, + len = base64.length, i, p = 0, + encoded1, encoded2, encoded3, encoded4; + + if (base64[base64.length - 1] === "=") { + bufferLength--; + if (base64[base64.length - 2] === "=") { + bufferLength--; + } + } + + var arraybuffer = new ArrayBuffer(bufferLength), + bytes = new Uint8Array(arraybuffer); + + for (i = 0; i < len; i+=4) { + encoded1 = lookup[base64.charCodeAt(i)]; + encoded2 = lookup[base64.charCodeAt(i+1)]; + encoded3 = lookup[base64.charCodeAt(i+2)]; + encoded4 = lookup[base64.charCodeAt(i+3)]; + + bytes[p++] = (encoded1 << 2) | (encoded2 >> 4); + bytes[p++] = ((encoded2 & 15) << 4) | (encoded3 >> 2); + bytes[p++] = ((encoded3 & 3) << 6) | (encoded4 & 63); + } + + return arraybuffer; + } + + function transformCallParam(param){ + var result = param; + for(var key in param){ + if (param.hasOwnProperty(key)) { + var val = param[key]; + if (val instanceof ArrayBuffer) { + param[key] = arrayBufferToBase64(val); + if (!result[NEBULA_TYPE_INFO]) { + result[NEBULA_TYPE_INFO] = {}; + } + result[NEBULA_TYPE_INFO][key] = {"type" : NEBULA_TYPE_OF_ARRAYBUFFER}; + } + } + } + return result; + } + + function transformResponseData(responsedata){ + if(responsedata && responsedata[NEBULA_TYPE_INFO]){ + var nebulaTypeInfo = responsedata[NEBULA_TYPE_INFO]; + if (nebulaTypeInfo) { + for(var key in nebulaTypeInfo){ + if (nebulaTypeInfo.hasOwnProperty(key)) { + var item = nebulaTypeInfo[key]; + if (item.type) { + var typeVal = item["type"]; + if (typeVal === NEBULA_TYPE_OF_ARRAYBUFFER) { + responsedata[key] = base64ToArrayBuffer(responsedata[key]); + } + } + } + } + } + } + return responsedata; + } + + var callbackPoll = []; + + AlipayJSBridge = { + + call: function (func, param, callback) { + + if ('string' !== typeof func) { + return; + } + + if ('function' === typeof param) { + callback = param; + param = null; + } else if (typeof param !== 'object') { + param = null; + } + + var callbackId = func + '_' + new Date().getTime() + (Math.random()); + if ('function' === typeof callback) { + callbackPoll[callbackId] = callback; + } + + if (useOptimizedMessageChannel) { + var message = {}; + if (param && param.callbackId) { + message = { + responseId: param.callbackId, + responseData: param + }; + delete param.callbackId; + } else { + message = { + handlerName: func, + data: param || {} + }; + message.callbackId = '' + callbackId; + } + optimizedMessageChannel(message); + return; + } + + if (param && param.callbackId) { + func = { + responseId: param.callbackId, + responseData: param + }; + delete param.callbackId; + } else { + var dataJson = transformCallParam(param),targetData; + try{ + targetData = JSON.stringify(dataJson); + }catch(ex){ + console.log(ex); + targetData = JSON.stringify({}); + } + func = { + handlerName: func, + data: targetData || {} + }; + func.callbackId = '' + callbackId; + } + nativeFlushQueueImmediate([func]); + }, + + _handleMessageFromObjC: function (message) { + var resp = JSON.parse(message); + var handlerName = resp.handlerName; + var data = resp.data; + data || (data = {}); + data.callbackId = resp.callbackId; + // setTimeout(function() { + //document.trigger(handlerName, data); + AlipayJSBridge._invokeJS(resp); + // },1); + }, + + _invokeJS: function (resp) { + if (resp.responseId) { + var func = callbackPoll[resp.responseId]; + if (!(typeof resp.keepCallback == 'boolean' && resp.keepCallback)) { + delete callbackPoll[resp.responseId]; + } + + if ('function' === typeof func) { + func(transformResponseData(resp.responseData)); + } + } else if (resp.handlerName) { + if (resp.callbackId) { + resp.data = resp.data || {}; + resp.data.callbackId = resp.callbackId; + } + document.trigger(resp.handlerName, resp.data); + } + }, + + _fetchQueue: function () { + var messageQueueString = JSON.stringify(document.sendMessageQueue); + document.sendMessageQueue.length = 0; + return messageQueueString; + }, + + _domReady: function () { + GLOBAL.ALIPAYH5STARTUPPARAMS || {}; + GLOBAL.ALIPAYH5STARTUPPARAMS = null; + document.dispatchEvent('DOMContentLoaded', null); + document.dispatchEvent('AlipayJSBridgeReady', null); + } + }; + + window.history = { + length: 1 + }; + + window.location = document.location; + window.document = document; +})();!function(t){function e(s){if(r[s])return r[s].exports;var n=r[s]={exports:{},id:s,loaded:!1};return t[s].call(n.exports,n,n.exports,e),n.loaded=!0,n.exports}var r={};return e.m=t,e.c=r,e.p="",e(0)}({0:function(t,e,r){"use strict";function s(t){return t&&t.__esModule?t:{default:t}}var n=r(73),o=s(n),h=r(66),a=s(h);window.importScripts=o.default;var i={};if(self.navigator&&(self.navigator.userAgent||self.navigator.swuserAgent)){var l=self.navigator.userAgent||self.navigator.swuserAgent,u=l.match(/\sOS\s\d*_\d*/gi);if(u&&u.length>0){var c=u[0],f=c.match(/\d+/gi);i.version=parseInt(f[0]),i.subVersion=parseInt(f[1])}}self.Promise&&(self.sourcePromise=self.Promise);try{self.Promise=null,(0,o.default)("https://as.alipayobjects.com/g/component/es6-promise/3.2.2/es6-promise.min.js")}catch(t){console.error("加载Promise 出错::",t),self.Promise=self.sourcePromise}self&&self.AlipayJSBridge&&(self.AlipayJSBridge._trimLocationHref=function(t){var e={href:t};try{e=a.default.parse(t),e&&!e.origin&&(e.origin=e.protocol+"//"+e.host),["hash","search","query"].forEach(function(t){null===e[t]&&(e[t]="")});for(var r in e)"function"==typeof e[r]&&delete e[r]}catch(t){console.error("url 解析错误:",t)}return e})},66:function(t,e,r){"use strict";function s(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function n(t,e,r){if(t&&l.isObject(t)&&t instanceof s)return t;var n=new s;return n.parse(t,e,r),n}function o(t){return l.isString(t)&&(t=n(t)),t instanceof s?t.format():s.prototype.format.call(t)}function h(t,e){return n(t,!1,!0).resolve(e)}function a(t,e){return t?n(t,!1,!0).resolveObject(e):e}var i=r(67),l=r(69);e.parse=n,e.resolve=h,e.resolveObject=a,e.format=o,e.Url=s;var u=/^([a-z0-9.+-]+:)/i,c=/:[0-9]*$/,f=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,p=["<",">",'"',"`"," ","\r","\n","\t"],m=["{","}","|","\\","^","`"].concat(p),v=["'"].concat(m),d=["%","/","?",";","#"].concat(v),g=["/","?","#"],y=255,b=/^[+a-z0-9A-Z_-]{0,63}$/,x=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,j={javascript:!0,"javascript:":!0},O={javascript:!0,"javascript:":!0},w={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},A=r(70);s.prototype.parse=function(t,e,r){if(!l.isString(t))throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var s=t.indexOf("?"),n=s!==-1&&s127?"x":_[F];if(!N.match(b)){var $=k.slice(0,q),z=k.slice(q+1),H=_.match(x);H&&($.push(H[1]),z.unshift(H[2])),z.length&&(a="/"+z.join(".")+a),this.hostname=$.join(".");break}}}this.hostname.length>y?this.hostname="":this.hostname=this.hostname.toLowerCase(),P||(this.hostname=i.toASCII(this.hostname));var M=this.port?":"+this.port:"",T=this.hostname||"";this.host=T+M,this.href+=this.host,P&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==a[0]&&(a="/"+a))}if(!j[m])for(var q=0,E=v.length;q0)&&r.host.split("@");C&&(r.auth=C.shift(),r.host=r.hostname=C.shift())}return r.search=t.search,r.query=t.query,l.isNull(r.pathname)&&l.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!j.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var I=j.slice(-1)[0],q=(r.host||t.host||j.length>1)&&("."===I||".."===I)||""===I,U=0,R=j.length;R>=0;R--)I=j[R],"."===I?j.splice(R,1):".."===I?(j.splice(R,1),U++):U&&(j.splice(R,1),U--);if(!b&&!x)for(;U--;U)j.unshift("..");!b||""===j[0]||j[0]&&"/"===j[0].charAt(0)||j.unshift(""),q&&"/"!==j.join("/").substr(-1)&&j.push("");var S=""===j[0]||j[0]&&"/"===j[0].charAt(0);if(A){r.hostname=r.host=S?"":j.length?j.shift():"";var C=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@");C&&(r.auth=C.shift(),r.host=r.hostname=C.shift())}return b=b||r.host&&j.length,b&&!S&&j.unshift(""),j.length?r.pathname=j.join("/"):(r.pathname=null,r.path=null),l.isNull(r.pathname)&&l.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=t.auth||r.auth,r.slashes=r.slashes||t.slashes,r.href=r.format(),r},s.prototype.parseHost=function(){var t=this.host,e=c.exec(t);e&&(e=e[0],":"!==e&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)}},67:function(t,e,r){var s;(function(t,n){!function(o){function h(t){throw RangeError(k[t])}function a(t,e){for(var r=t.length,s=[];r--;)s[r]=e(t[r]);return s}function i(t,e){var r=t.split("@"),s="";r.length>1&&(s=r[0]+"@",t=r[1]),t=t.replace(P,".");var n=t.split("."),o=a(n,e).join(".");return s+o}function l(t){for(var e,r,s=[],n=0,o=t.length;n=55296&&e<=56319&&n65535&&(t-=65536,e+=N(t>>>10&1023|55296),t=56320|1023&t),e+=N(t)}).join("")}function c(t){return t-48<10?t-22:t-65<26?t-65:t-97<26?t-97:j}function f(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function p(t,e,r){var s=0;for(t=r?_(t/C):t>>1,t+=_(t/e);t>E*w>>1;s+=j)t=_(t/E);return _(s+(E+1)*t/(t+A))}function m(t){var e,r,s,n,o,a,i,l,f,m,v=[],d=t.length,g=0,y=q,b=I;for(r=t.lastIndexOf(U),r<0&&(r=0),s=0;s=128&&h("not-basic"),v.push(t.charCodeAt(s));for(n=r>0?r+1:0;n=d&&h("invalid-input"),l=c(t.charCodeAt(n++)),(l>=j||l>_((x-g)/a))&&h("overflow"),g+=l*a,f=i<=b?O:i>=b+w?w:i-b,!(l_(x/m)&&h("overflow"),a*=m;e=v.length+1,b=p(g-o,e,0==o),_(g/e)>x-y&&h("overflow"),y+=_(g/e),g%=e,v.splice(g++,0,y)}return u(v)}function v(t){var e,r,s,n,o,a,i,u,c,m,v,d,g,y,b,A=[];for(t=l(t),d=t.length,e=q,r=0,o=I,a=0;a=e&&v_((x-r)/g)&&h("overflow"),r+=(i-e)*g,e=i,a=0;ax&&h("overflow"),v==e){for(u=r,c=j;m=c<=o?O:c>=o+w?w:c-o,!(u= 0x80 (not a basic code point)","invalid-input":"Invalid input"},E=j-O,_=Math.floor,N=String.fromCharCode;b={version:"1.3.2",ucs2:{decode:l,encode:u},decode:m,encode:v,toASCII:g,toUnicode:d},s=function(){return b}.call(e,r,e,t),!(void 0!==s&&(t.exports=s))}(this)}).call(e,r(68)(t),function(){return this}())},68:function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children=[],t.webpackPolyfill=1),t}},69:function(t,e){"use strict";t.exports={isString:function(t){return"string"==typeof t},isObject:function(t){return"object"==typeof t&&null!==t},isNull:function(t){return null===t},isNullOrUndefined:function(t){return null==t}}},70:function(t,e,r){"use strict";e.decode=e.parse=r(71),e.encode=e.stringify=r(72)},71:function(t,e){"use strict";function r(t,e){return Object.prototype.hasOwnProperty.call(t,e)}t.exports=function(t,e,s,n){e=e||"&",s=s||"=";var o={};if("string"!=typeof t||0===t.length)return o;var h=/\+/g;t=t.split(e);var a=1e3;n&&"number"==typeof n.maxKeys&&(a=n.maxKeys);var i=t.length;a>0&&i>a&&(i=a);for(var l=0;l=0?(u=m.substr(0,v),c=m.substr(v+1)):(u=m,c=""),f=decodeURIComponent(u),p=decodeURIComponent(c),r(o,f)?Array.isArray(o[f])?o[f].push(p):o[f]=[o[f],p]:o[f]=p}return o}},72:function(t,e){"use strict";var r=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};t.exports=function(t,e,s,n){return e=e||"&",s=s||"=",null===t&&(t=void 0),"object"==typeof t?Object.keys(t).map(function(n){var o=encodeURIComponent(r(n))+s;return Array.isArray(t[n])?t[n].map(function(t){return o+encodeURIComponent(r(t))}).join(e):o+encodeURIComponent(r(t[n]))}).join(e):n?encodeURIComponent(r(n))+s+encodeURIComponent(r(t)):""}},73:function(t,e,r){"use strict";function s(t){return t&&t.__esModule?t:{default:t}}function n(t){if(arguments&&arguments.length>1)for(var e=0,r=arguments.length;e 1) { + // Throw all the other errors in a setTimeout, which will throw each + // error one at a time + for (var ii = 1; ii < errorCount; ii++) { + var error = errors[ii]; + AlipayTimers.setTimeout(function () { + throw error; + }, + 0); + } + } + throw errors[0]; + } + }, + + /** + * This is called after we execute any command we receive from native but + * before we hand control back to native. + */ + callImmediates: function () { + AlipayTimersExecution.errors = null; + while (AlipayTimersExecution.immediates.length !== 0) { + AlipayTimersExecution.callTimer(AlipayTimersExecution.immediates.shift()); + } + if (AlipayTimersExecution.errors) { + AlipayTimersExecution.errors.forEach(function () { + var args = Array.prototype.slice.call(undefined, arguments); + var error = args[0]; + AlipayTimers.setTimeout(function () { + throw error; + }, + 0); + }); + } + }, + + _clearIndex: function (i) { + AlipayTimersExecution.timerIDs[i] = null; + AlipayTimersExecution.callbacks[i] = null; + AlipayTimersExecution.types[i] = null; + } + }; + + function _getFreeIndex() { + var freeIndex = AlipayTimersExecution.timerIDs.indexOf(null); + if (freeIndex === -1) { + freeIndex = AlipayTimersExecution.timerIDs.length; + } + return freeIndex; + } + + function _allocateCallback(func, type) { + const id = AlipayTimersExecution.GUID++; + const freeIndex = _getFreeIndex(); + AlipayTimersExecution.timerIDs[freeIndex] = id; + AlipayTimersExecution.callbacks[freeIndex] = func; + AlipayTimersExecution.types[freeIndex] = type; + return id; + } + + function _freeCallback(timerID) { + // AlipayTimersExecution.timerIDs contains nulls after timers have been removed; + // ignore nulls upfront so indexOf doesn't find them + if (timerID == null) { + return; + } + + var index = AlipayTimersExecution.timerIDs.indexOf(timerID); + // See corresponding comment in `callTimers` for reasoning behind this + if (index !== -1) { + AlipayTimersExecution._clearIndex(index); + const type = AlipayTimersExecution.types[index]; + if (type !== 'setImmediate' && type !== 'requestIdleCallback') { + //call native method + deleteTimer(timerID); + } + } + } + + var AlipayTimers = { + + setTimeout: function () { + var args = Array.prototype.slice.call(arguments); + var func = arguments[0]; + var duration = arguments[1]; + + var id = _allocateCallback((function (fn) { + return function () { + fn.apply(undefined, args.slice(2)); + } + })(func), 'setTimeout'); + //call native method + createTimer(id, duration || 0, Date.now(), false); + return id; + }, + + setInterval: function () { + var args = Array.prototype.slice.call(arguments); + var func = arguments[0]; + var duration = arguments[1]; + + var id = _allocateCallback((function (fn) { + return function () { + fn.apply(undefined, args.slice(2)); + } + })(func), 'setInterval'); + //call native method + createTimer(id, duration || 0, Date.now(), true); + return id; + }, + + clearTimeout: function (timerID) { + _freeCallback(timerID); + }, + + clearInterval: function (timerID) { + _freeCallback(timerID); + } + }; + + setTimeout = setTimeout || AlipayTimers.setTimeout; + setInterval = setInterval || AlipayTimers.setInterval; + clearTimeout = clearTimeout || AlipayTimers.clearTimeout; + clearInterval = clearInterval || AlipayTimers.clearInterval; +})(); \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Contents.json b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Contents.json new file mode 100644 index 0000000..38f0c81 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Contents.json @@ -0,0 +1,9 @@ +{ + "info" : { + "version" : 1, + "author" : "xcode" + }, + "properties" : { + "provides-namespace" : true + } +} \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/Contents.json b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/Contents.json new file mode 100644 index 0000000..1bf9a1c --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/Contents.json @@ -0,0 +1 @@ +{"info":{"version":1,"author":"xcode"},"properties":{"provides-namespace":true}} diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/anchor_item.imageset/Contents.json b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/anchor_item.imageset/Contents.json new file mode 100644 index 0000000..c60a69c --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/anchor_item.imageset/Contents.json @@ -0,0 +1 @@ +{"images": [{"idiom": "universal", "scale": "1x"}, {"idiom": "universal", "scale": "2x", "filename": "anchor_item@2x.png"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/anchor_item.imageset/anchor_item@2x.png b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/anchor_item.imageset/anchor_item@2x.png new file mode 100644 index 0000000..0dad636 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/anchor_item.imageset/anchor_item@2x.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/back.imageset/Contents.json b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/back.imageset/Contents.json new file mode 100644 index 0000000..6718a8e --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/back.imageset/Contents.json @@ -0,0 +1 @@ +{"images": [{"idiom": "universal", "scale": "1x"}, {"idiom": "universal", "scale": "2x", "filename": "back@2x.png"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/back.imageset/back@2x.png b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/back.imageset/back@2x.png new file mode 100644 index 0000000..46adc55 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/back.imageset/back@2x.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/closeDanmaku.imageset/Contents.json b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/closeDanmaku.imageset/Contents.json new file mode 100644 index 0000000..678cd21 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/closeDanmaku.imageset/Contents.json @@ -0,0 +1 @@ +{"images": [{"idiom": "universal", "scale": "1x", "filename": "closeDanmaku.png"}, {"idiom": "universal", "scale": "2x"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/closeDanmaku.imageset/closeDanmaku.png b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/closeDanmaku.imageset/closeDanmaku.png new file mode 100644 index 0000000..edbb24c Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/closeDanmaku.imageset/closeDanmaku.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/controllers_background.imageset/Contents.json b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/controllers_background.imageset/Contents.json new file mode 100644 index 0000000..bbfbcfd --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/controllers_background.imageset/Contents.json @@ -0,0 +1 @@ +{"images": [{"idiom": "universal", "scale": "1x"}, {"idiom": "universal", "scale": "2x", "filename": "controllers_background@2x.png"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/controllers_background.imageset/controllers_background@2x.png b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/controllers_background.imageset/controllers_background@2x.png new file mode 100644 index 0000000..79b8ad0 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/controllers_background.imageset/controllers_background@2x.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/floating_window_close_btn.imageset/Contents.json b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/floating_window_close_btn.imageset/Contents.json new file mode 100644 index 0000000..65dcea1 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/floating_window_close_btn.imageset/Contents.json @@ -0,0 +1 @@ +{"images": [{"idiom": "universal", "scale": "1x"}, {"idiom": "universal", "scale": "2x", "filename": "floating_window_close_btn@2x.png"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/floating_window_close_btn.imageset/floating_window_close_btn@2x.png b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/floating_window_close_btn.imageset/floating_window_close_btn@2x.png new file mode 100644 index 0000000..c87da51 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/floating_window_close_btn.imageset/floating_window_close_btn@2x.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/frontcover_playtimes.imageset/Contents.json b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/frontcover_playtimes.imageset/Contents.json new file mode 100644 index 0000000..d4d9882 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/frontcover_playtimes.imageset/Contents.json @@ -0,0 +1 @@ +{"images": [{"idiom": "universal", "scale": "1x", "filename": "frontcover_playtimes.png"}, {"idiom": "universal", "scale": "2x"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/frontcover_playtimes.imageset/frontcover_playtimes.png b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/frontcover_playtimes.imageset/frontcover_playtimes.png new file mode 100644 index 0000000..7c53637 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/frontcover_playtimes.imageset/frontcover_playtimes.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/icon_backward.imageset/Contents.json b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/icon_backward.imageset/Contents.json new file mode 100644 index 0000000..7c8d01b --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/icon_backward.imageset/Contents.json @@ -0,0 +1 @@ +{"images": [{"idiom": "universal", "scale": "1x"}, {"idiom": "universal", "scale": "2x", "filename": "icon_backward@2x.png"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/icon_backward.imageset/icon_backward@2x.png b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/icon_backward.imageset/icon_backward@2x.png new file mode 100644 index 0000000..60e261e Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/icon_backward.imageset/icon_backward@2x.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/icon_brightness.imageset/Contents.json b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/icon_brightness.imageset/Contents.json new file mode 100644 index 0000000..bbfb1db --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/icon_brightness.imageset/Contents.json @@ -0,0 +1 @@ +{"images": [{"idiom": "universal", "scale": "1x"}, {"idiom": "universal", "scale": "2x", "filename": "icon_brightness@2x.png"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/icon_brightness.imageset/icon_brightness@2x.png b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/icon_brightness.imageset/icon_brightness@2x.png new file mode 100644 index 0000000..2aa95d9 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/icon_brightness.imageset/icon_brightness@2x.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/icon_forward.imageset/Contents.json b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/icon_forward.imageset/Contents.json new file mode 100644 index 0000000..f7cf745 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/icon_forward.imageset/Contents.json @@ -0,0 +1 @@ +{"images": [{"idiom": "universal", "scale": "1x"}, {"idiom": "universal", "scale": "2x", "filename": "icon_forward@2x.png"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/icon_forward.imageset/icon_forward@2x.png b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/icon_forward.imageset/icon_forward@2x.png new file mode 100644 index 0000000..721ac22 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/icon_forward.imageset/icon_forward@2x.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/icon_volume.imageset/Contents.json b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/icon_volume.imageset/Contents.json new file mode 100644 index 0000000..96080e9 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/icon_volume.imageset/Contents.json @@ -0,0 +1 @@ +{"images": [{"idiom": "universal", "scale": "1x"}, {"idiom": "universal", "scale": "2x", "filename": "icon_volume@2x.png"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/icon_volume.imageset/icon_volume@2x.png b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/icon_volume.imageset/icon_volume@2x.png new file mode 100644 index 0000000..4775067 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/icon_volume.imageset/icon_volume@2x.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/landscape_back.imageset/Contents.json b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/landscape_back.imageset/Contents.json new file mode 100644 index 0000000..3ac7e1f --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/landscape_back.imageset/Contents.json @@ -0,0 +1 @@ +{"images": [{"idiom": "universal", "scale": "1x"}, {"idiom": "universal", "scale": "2x", "filename": "landscape_back@2x.png"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/landscape_back.imageset/landscape_back@2x.png b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/landscape_back.imageset/landscape_back@2x.png new file mode 100644 index 0000000..d741283 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/landscape_back.imageset/landscape_back@2x.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/loading.imageset/Contents.json b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/loading.imageset/Contents.json new file mode 100644 index 0000000..4bb08d5 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/loading.imageset/Contents.json @@ -0,0 +1 @@ +{"images": [{"idiom": "universal", "scale": "1x"}, {"idiom": "universal", "scale": "2x", "filename": "loading@2x.png"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/loading.imageset/loading@2x.png b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/loading.imageset/loading@2x.png new file mode 100644 index 0000000..6319c8f Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/loading.imageset/loading@2x.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/open.imageset/Contents.json b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/open.imageset/Contents.json new file mode 100644 index 0000000..9c9c0c2 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/open.imageset/Contents.json @@ -0,0 +1 @@ +{"images": [{"idiom": "universal", "scale": "1x"}, {"idiom": "universal", "scale": "2x", "filename": "open@2x.png"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/open.imageset/open@2x.png b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/open.imageset/open@2x.png new file mode 100644 index 0000000..0a1be9d Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/open.imageset/open@2x.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/openDanmaku.imageset/Contents.json b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/openDanmaku.imageset/Contents.json new file mode 100644 index 0000000..d53bf22 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/openDanmaku.imageset/Contents.json @@ -0,0 +1 @@ +{"images": [{"idiom": "universal", "scale": "1x", "filename": "openDanmaku.png"}, {"idiom": "universal", "scale": "2x"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/openDanmaku.imageset/openDanmaku.png b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/openDanmaku.imageset/openDanmaku.png new file mode 100644 index 0000000..575e57b Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/openDanmaku.imageset/openDanmaku.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/play_btn.imageset/Contents.json b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/play_btn.imageset/Contents.json new file mode 100644 index 0000000..28696e5 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/play_btn.imageset/Contents.json @@ -0,0 +1 @@ +{"images": [{"idiom": "universal", "scale": "1x"}, {"idiom": "universal", "scale": "2x", "filename": "play_btn@2x.png"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/play_btn.imageset/play_btn@2x.png b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/play_btn.imageset/play_btn@2x.png new file mode 100644 index 0000000..22ed43c Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/play_btn.imageset/play_btn@2x.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/play_fill_btn.imageset/Contents.json b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/play_fill_btn.imageset/Contents.json new file mode 100644 index 0000000..42e0ac1 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/play_fill_btn.imageset/Contents.json @@ -0,0 +1 @@ +{"images": [{"idiom": "universal", "scale": "1x"}, {"idiom": "universal", "scale": "2x", "filename": "play_fill_btn@2x.png"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/play_fill_btn.imageset/play_fill_btn@2x.png b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/play_fill_btn.imageset/play_fill_btn@2x.png new file mode 100644 index 0000000..b99890a Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/play_fill_btn.imageset/play_fill_btn@2x.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/refresh.imageset/Contents.json b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/refresh.imageset/Contents.json new file mode 100644 index 0000000..8865910 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/refresh.imageset/Contents.json @@ -0,0 +1 @@ +{"images": [{"idiom": "universal", "scale": "1x"}, {"idiom": "universal", "scale": "2x", "filename": "refresh@2x.png"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/refresh.imageset/refresh@2x.png b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/refresh.imageset/refresh@2x.png new file mode 100644 index 0000000..22e04e6 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/refresh.imageset/refresh@2x.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/sendDanmaku.imageset/Contents.json b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/sendDanmaku.imageset/Contents.json new file mode 100644 index 0000000..721c875 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/sendDanmaku.imageset/Contents.json @@ -0,0 +1 @@ +{"images": [{"idiom": "universal", "scale": "1x"}, {"idiom": "universal", "scale": "2x", "filename": "sendDanmaku@2x.png"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/sendDanmaku.imageset/sendDanmaku@2x.png b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/sendDanmaku.imageset/sendDanmaku@2x.png new file mode 100644 index 0000000..7edc5be Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/sendDanmaku.imageset/sendDanmaku@2x.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/slider.imageset/Contents.json b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/slider.imageset/Contents.json new file mode 100644 index 0000000..60bda8c --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/slider.imageset/Contents.json @@ -0,0 +1 @@ +{"images": [{"idiom": "universal", "scale": "1x"}, {"idiom": "universal", "scale": "2x", "filename": "slider@2x.png"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/slider.imageset/slider@2x.png b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/slider.imageset/slider@2x.png new file mode 100644 index 0000000..a4e8341 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/slider.imageset/slider@2x.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/stop_btn.imageset/Contents.json b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/stop_btn.imageset/Contents.json new file mode 100644 index 0000000..4abcc7a --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/stop_btn.imageset/Contents.json @@ -0,0 +1 @@ +{"images": [{"idiom": "universal", "scale": "1x"}, {"idiom": "universal", "scale": "2x", "filename": "stop_btn@2x.png"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/stop_btn.imageset/stop_btn@2x.png b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/stop_btn.imageset/stop_btn@2x.png new file mode 100644 index 0000000..fcc8e47 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/stop_btn.imageset/stop_btn@2x.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/tbavsdk_video_close.imageset/Contents.json b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/tbavsdk_video_close.imageset/Contents.json new file mode 100644 index 0000000..766eff9 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/tbavsdk_video_close.imageset/Contents.json @@ -0,0 +1 @@ +{"images": [{"idiom": "universal", "scale": "1x"}, {"idiom": "universal", "scale": "2x", "filename": "tbavsdk_video_close@2x.png"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/tbavsdk_video_close.imageset/tbavsdk_video_close@2x.png b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/tbavsdk_video_close.imageset/tbavsdk_video_close@2x.png new file mode 100644 index 0000000..059436d Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/tbavsdk_video_close.imageset/tbavsdk_video_close@2x.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/volume_off.imageset/Contents.json b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/volume_off.imageset/Contents.json new file mode 100644 index 0000000..8440fc2 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/volume_off.imageset/Contents.json @@ -0,0 +1 @@ +{"images": [{"idiom": "universal", "scale": "1x"}, {"idiom": "universal", "scale": "2x", "filename": "volume_off@2x.png"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/volume_off.imageset/volume_off@2x.png b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/volume_off.imageset/volume_off@2x.png new file mode 100644 index 0000000..ab5a48d Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/volume_off.imageset/volume_off@2x.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/arrowUpflod.imageset/Contents.json b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/arrowUpflod.imageset/Contents.json new file mode 100644 index 0000000..d126715 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/arrowUpflod.imageset/Contents.json @@ -0,0 +1 @@ +{"images": [{"idiom": "universal", "scale": "1x", "filename": "arrowUpflod.png"}, {"idiom": "universal", "scale": "2x"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/arrowUpflod.imageset/arrowUpflod.png b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/arrowUpflod.imageset/arrowUpflod.png new file mode 100644 index 0000000..16f0359 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/arrowUpflod.imageset/arrowUpflod.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/cart_light.imageset/Contents.json b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/cart_light.imageset/Contents.json new file mode 100644 index 0000000..b7c0946 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/cart_light.imageset/Contents.json @@ -0,0 +1 @@ +{"images": [{"idiom": "universal", "scale": "1x", "filename": "cart_light.png"}, {"idiom": "universal", "scale": "2x"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/cart_light.imageset/cart_light.png b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/cart_light.imageset/cart_light.png new file mode 100644 index 0000000..bd19a9d Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/cart_light.imageset/cart_light.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/dwfreeflow.imageset/Contents.json b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/dwfreeflow.imageset/Contents.json new file mode 100644 index 0000000..72fdbc9 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/dwfreeflow.imageset/Contents.json @@ -0,0 +1 @@ +{"images": [{"idiom": "universal", "scale": "1x"}, {"idiom": "universal", "scale": "2x", "filename": "dwfreeflow@2x.png"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/dwfreeflow.imageset/dwfreeflow@2x.png b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/dwfreeflow.imageset/dwfreeflow@2x.png new file mode 100644 index 0000000..d33de59 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/dwfreeflow.imageset/dwfreeflow@2x.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/dwgoshop.imageset/Contents.json b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/dwgoshop.imageset/Contents.json new file mode 100644 index 0000000..2ce7597 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/dwgoshop.imageset/Contents.json @@ -0,0 +1 @@ +{"images": [{"idiom": "universal", "scale": "1x", "filename": "dwgoshop.png"}, {"idiom": "universal", "scale": "2x"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/dwgoshop.imageset/dwgoshop.png b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/dwgoshop.imageset/dwgoshop.png new file mode 100644 index 0000000..444c823 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/dwgoshop.imageset/dwgoshop.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/dwmoreitem.imageset/Contents.json b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/dwmoreitem.imageset/Contents.json new file mode 100644 index 0000000..814eede --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/dwmoreitem.imageset/Contents.json @@ -0,0 +1 @@ +{"images": [{"idiom": "universal", "scale": "1x", "filename": "dwmoreitem.png"}, {"idiom": "universal", "scale": "2x"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/dwmoreitem.imageset/dwmoreitem.png b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/dwmoreitem.imageset/dwmoreitem.png new file mode 100644 index 0000000..a8c921c Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/dwmoreitem.imageset/dwmoreitem.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/dwreplace.imageset/Contents.json b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/dwreplace.imageset/Contents.json new file mode 100644 index 0000000..19289df --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/dwreplace.imageset/Contents.json @@ -0,0 +1 @@ +{"images": [{"idiom": "universal", "scale": "1x", "filename": "dwreplace.png"}, {"idiom": "universal", "scale": "2x"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/dwreplace.imageset/dwreplace.png b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/dwreplace.imageset/dwreplace.png new file mode 100644 index 0000000..10c8b91 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/dwreplace.imageset/dwreplace.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/dwreplay.imageset/Contents.json b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/dwreplay.imageset/Contents.json new file mode 100644 index 0000000..fa452d9 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/dwreplay.imageset/Contents.json @@ -0,0 +1 @@ +{"images": [{"idiom": "universal", "scale": "1x", "filename": "dwreplay.png"}, {"idiom": "universal", "scale": "2x"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/dwreplay.imageset/dwreplay.png b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/dwreplay.imageset/dwreplay.png new file mode 100644 index 0000000..d622390 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/dwreplay.imageset/dwreplay.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/dwround_down.imageset/Contents.json b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/dwround_down.imageset/Contents.json new file mode 100644 index 0000000..5cc7be7 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/dwround_down.imageset/Contents.json @@ -0,0 +1 @@ +{"images": [{"idiom": "universal", "scale": "1x", "filename": "dwround_down.png"}, {"idiom": "universal", "scale": "2x"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/dwround_down.imageset/dwround_down.png b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/dwround_down.imageset/dwround_down.png new file mode 100644 index 0000000..d43556e Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/dwround_down.imageset/dwround_down.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/dwround_up.imageset/Contents.json b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/dwround_up.imageset/Contents.json new file mode 100644 index 0000000..a29244d --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/dwround_up.imageset/Contents.json @@ -0,0 +1 @@ +{"images": [{"idiom": "universal", "scale": "1x", "filename": "dwround_up.png"}, {"idiom": "universal", "scale": "2x"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/dwround_up.imageset/dwround_up.png b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/dwround_up.imageset/dwround_up.png new file mode 100644 index 0000000..29af7ef Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/dwround_up.imageset/dwround_up.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/dwshare.imageset/Contents.json b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/dwshare.imageset/Contents.json new file mode 100644 index 0000000..cb85eb3 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/dwshare.imageset/Contents.json @@ -0,0 +1 @@ +{"images": [{"idiom": "universal", "scale": "1x", "filename": "dwshare.png"}, {"idiom": "universal", "scale": "2x"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/dwshare.imageset/dwshare.png b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/dwshare.imageset/dwshare.png new file mode 100644 index 0000000..0574f00 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/dwshare.imageset/dwshare.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/fullScreenCloseBtn.imageset/Contents.json b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/fullScreenCloseBtn.imageset/Contents.json new file mode 100644 index 0000000..c9ecee2 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/fullScreenCloseBtn.imageset/Contents.json @@ -0,0 +1 @@ +{"images": [{"idiom": "universal", "scale": "1x", "filename": "fullScreenCloseBtn.png"}, {"idiom": "universal", "scale": "2x"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/fullScreenCloseBtn.imageset/fullScreenCloseBtn.png b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/fullScreenCloseBtn.imageset/fullScreenCloseBtn.png new file mode 100644 index 0000000..3487ab4 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/fullScreenCloseBtn.imageset/fullScreenCloseBtn.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/fullScreenEndGoshopBtn.imageset/Contents.json b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/fullScreenEndGoshopBtn.imageset/Contents.json new file mode 100644 index 0000000..bba43cd --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/fullScreenEndGoshopBtn.imageset/Contents.json @@ -0,0 +1 @@ +{"images": [{"idiom": "universal", "scale": "1x", "filename": "fullScreenEndGoshopBtn.png"}, {"idiom": "universal", "scale": "2x"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/fullScreenEndGoshopBtn.imageset/fullScreenEndGoshopBtn.png b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/fullScreenEndGoshopBtn.imageset/fullScreenEndGoshopBtn.png new file mode 100644 index 0000000..5f746f2 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/fullScreenEndGoshopBtn.imageset/fullScreenEndGoshopBtn.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/fullScreenEndReplyBtn.imageset/Contents.json b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/fullScreenEndReplyBtn.imageset/Contents.json new file mode 100644 index 0000000..1d67fd4 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/fullScreenEndReplyBtn.imageset/Contents.json @@ -0,0 +1 @@ +{"images": [{"idiom": "universal", "scale": "1x", "filename": "fullScreenEndReplyBtn.png"}, {"idiom": "universal", "scale": "2x"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/fullScreenEndReplyBtn.imageset/fullScreenEndReplyBtn.png b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/fullScreenEndReplyBtn.imageset/fullScreenEndReplyBtn.png new file mode 100644 index 0000000..a8444f6 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/fullScreenEndReplyBtn.imageset/fullScreenEndReplyBtn.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/fullScreenEndShareBtn.imageset/Contents.json b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/fullScreenEndShareBtn.imageset/Contents.json new file mode 100644 index 0000000..68aee8d --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/fullScreenEndShareBtn.imageset/Contents.json @@ -0,0 +1 @@ +{"images": [{"idiom": "universal", "scale": "1x", "filename": "fullScreenEndShareBtn.png"}, {"idiom": "universal", "scale": "2x"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/fullScreenEndShareBtn.imageset/fullScreenEndShareBtn.png b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/fullScreenEndShareBtn.imageset/fullScreenEndShareBtn.png new file mode 100644 index 0000000..a81fa9a Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/fullScreenEndShareBtn.imageset/fullScreenEndShareBtn.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/fullScreenShareBtn.imageset/Contents.json b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/fullScreenShareBtn.imageset/Contents.json new file mode 100644 index 0000000..f9a4eda --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/fullScreenShareBtn.imageset/Contents.json @@ -0,0 +1 @@ +{"images": [{"idiom": "universal", "scale": "1x", "filename": "fullScreenShareBtn.png"}, {"idiom": "universal", "scale": "2x"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/fullScreenShareBtn.imageset/fullScreenShareBtn.png b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/fullScreenShareBtn.imageset/fullScreenShareBtn.png new file mode 100644 index 0000000..834b8cc Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/fullScreenShareBtn.imageset/fullScreenShareBtn.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/fullScreengoLikeBtn.imageset/Contents.json b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/fullScreengoLikeBtn.imageset/Contents.json new file mode 100644 index 0000000..f83303c --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/fullScreengoLikeBtn.imageset/Contents.json @@ -0,0 +1 @@ +{"images": [{"idiom": "universal", "scale": "1x", "filename": "fullScreengoLikeBtn.png"}, {"idiom": "universal", "scale": "2x"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/fullScreengoLikeBtn.imageset/fullScreengoLikeBtn.png b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/fullScreengoLikeBtn.imageset/fullScreengoLikeBtn.png new file mode 100644 index 0000000..e3282cd Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/fullScreengoLikeBtn.imageset/fullScreengoLikeBtn.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/fullScreengoLikedBtn.imageset/Contents.json b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/fullScreengoLikedBtn.imageset/Contents.json new file mode 100644 index 0000000..1f60634 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/fullScreengoLikedBtn.imageset/Contents.json @@ -0,0 +1 @@ +{"images": [{"idiom": "universal", "scale": "1x", "filename": "fullScreengoLikedBtn.png"}, {"idiom": "universal", "scale": "2x"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/fullScreengoLikedBtn.imageset/fullScreengoLikedBtn.png b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/fullScreengoLikedBtn.imageset/fullScreengoLikedBtn.png new file mode 100644 index 0000000..02159bd Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/fullScreengoLikedBtn.imageset/fullScreengoLikedBtn.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/fullScreengoShopBtn.imageset/Contents.json b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/fullScreengoShopBtn.imageset/Contents.json new file mode 100644 index 0000000..60358bf --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/fullScreengoShopBtn.imageset/Contents.json @@ -0,0 +1 @@ +{"images": [{"idiom": "universal", "scale": "1x", "filename": "fullScreengoShopBtn.png"}, {"idiom": "universal", "scale": "2x"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/fullScreengoShopBtn.imageset/fullScreengoShopBtn.png b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/fullScreengoShopBtn.imageset/fullScreengoShopBtn.png new file mode 100644 index 0000000..5db8f2f Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/fullScreengoShopBtn.imageset/fullScreengoShopBtn.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/goods_list_btn.imageset/Contents.json b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/goods_list_btn.imageset/Contents.json new file mode 100644 index 0000000..df7e94f --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/goods_list_btn.imageset/Contents.json @@ -0,0 +1 @@ +{"images": [{"idiom": "universal", "scale": "1x", "filename": "goods_list_btn.png"}, {"idiom": "universal", "scale": "2x"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/goods_list_btn.imageset/goods_list_btn.png b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/goods_list_btn.imageset/goods_list_btn.png new file mode 100644 index 0000000..cd721cf Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/goods_list_btn.imageset/goods_list_btn.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/goshop.imageset/Contents.json b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/goshop.imageset/Contents.json new file mode 100644 index 0000000..df2e693 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/goshop.imageset/Contents.json @@ -0,0 +1 @@ +{"images": [{"idiom": "universal", "scale": "1x", "filename": "goshop.png"}, {"idiom": "universal", "scale": "2x"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/goshop.imageset/goshop.png b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/goshop.imageset/goshop.png new file mode 100644 index 0000000..b853e36 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/goshop.imageset/goshop.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/interactiveTips.imageset/Contents.json b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/interactiveTips.imageset/Contents.json new file mode 100644 index 0000000..f33a3fb --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/interactiveTips.imageset/Contents.json @@ -0,0 +1 @@ +{"images": [{"idiom": "universal", "scale": "1x", "filename": "interactiveTips.png"}, {"idiom": "universal", "scale": "2x"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/interactiveTips.imageset/interactiveTips.png b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/interactiveTips.imageset/interactiveTips.png new file mode 100644 index 0000000..8ff47d2 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/interactiveTips.imageset/interactiveTips.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/tb_interactive_menu.imageset/Contents.json b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/tb_interactive_menu.imageset/Contents.json new file mode 100644 index 0000000..f457181 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/tb_interactive_menu.imageset/Contents.json @@ -0,0 +1 @@ +{"images": [{"idiom": "universal", "scale": "1x"}, {"idiom": "universal", "scale": "2x", "filename": "tb_interactive_menu@2x.png"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/tb_interactive_menu.imageset/tb_interactive_menu@2x.png b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/tb_interactive_menu.imageset/tb_interactive_menu@2x.png new file mode 100644 index 0000000..cc3ad9b Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/tb_interactive_menu.imageset/tb_interactive_menu@2x.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/tb_menu_btn.imageset/Contents.json b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/tb_menu_btn.imageset/Contents.json new file mode 100644 index 0000000..9089da8 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/tb_menu_btn.imageset/Contents.json @@ -0,0 +1 @@ +{"images": [{"idiom": "universal", "scale": "1x"}, {"idiom": "universal", "scale": "2x", "filename": "tb_menu_btn@2x.png"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/tb_menu_btn.imageset/tb_menu_btn@2x.png b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/tb_menu_btn.imageset/tb_menu_btn@2x.png new file mode 100644 index 0000000..49dc814 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/tb_menu_btn.imageset/tb_menu_btn@2x.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/tb_video_report.imageset/Contents.json b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/tb_video_report.imageset/Contents.json new file mode 100644 index 0000000..4d67d50 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/tb_video_report.imageset/Contents.json @@ -0,0 +1 @@ +{"images": [{"idiom": "universal", "scale": "1x", "filename": "tb_video_report.png"}, {"idiom": "universal", "scale": "2x"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/tb_video_report.imageset/tb_video_report.png b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/tb_video_report.imageset/tb_video_report.png new file mode 100644 index 0000000..3ef532b Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/tb_video_report.imageset/tb_video_report.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/videoMuteCloseButton.imageset/Contents.json b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/videoMuteCloseButton.imageset/Contents.json new file mode 100644 index 0000000..a68d910 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/videoMuteCloseButton.imageset/Contents.json @@ -0,0 +1 @@ +{"images": [{"idiom": "universal", "scale": "1x", "filename": "videoMuteCloseButton.png"}, {"idiom": "universal", "scale": "2x"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/videoMuteCloseButton.imageset/videoMuteCloseButton.png b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/videoMuteCloseButton.imageset/videoMuteCloseButton.png new file mode 100644 index 0000000..bea8f6a Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/videoMuteCloseButton.imageset/videoMuteCloseButton.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/videoMuteOpenButton.imageset/Contents.json b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/videoMuteOpenButton.imageset/Contents.json new file mode 100644 index 0000000..6ca5f13 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/videoMuteOpenButton.imageset/Contents.json @@ -0,0 +1 @@ +{"images": [{"idiom": "universal", "scale": "1x", "filename": "videoMuteOpenButton.png"}, {"idiom": "universal", "scale": "2x"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/videoMuteOpenButton.imageset/videoMuteOpenButton.png b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/videoMuteOpenButton.imageset/videoMuteOpenButton.png new file mode 100644 index 0000000..1cca8fe Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/videoMuteOpenButton.imageset/videoMuteOpenButton.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/NBBizResource.bundle/Root.plist b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/NBBizResource.bundle/Root.plist new file mode 100644 index 0000000..b1b6fea --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/NBBizResource.bundle/Root.plist @@ -0,0 +1,61 @@ + + + + + StringsTable + Root + PreferenceSpecifiers + + + Type + PSGroupSpecifier + Title + Group + + + Type + PSTextFieldSpecifier + Title + Name + Key + name_preference + DefaultValue + + IsSecure + + KeyboardType + Alphabet + AutocapitalizationType + None + AutocorrectionType + No + + + Type + PSToggleSwitchSpecifier + Title + Enabled + Key + enabled_preference + DefaultValue + + + + Type + PSSliderSpecifier + Key + slider_preference + DefaultValue + 0.5 + MinimumValue + 0 + MaximumValue + 1 + MinimumValueImage + + MaximumValueImage + + + + + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/NBBizResource.bundle/auth_selected@2x.png b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/NBBizResource.bundle/auth_selected@2x.png new file mode 100644 index 0000000..1d550d6 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/NBBizResource.bundle/auth_selected@2x.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/NBBizResource.bundle/auth_selected@3x.png b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/NBBizResource.bundle/auth_selected@3x.png new file mode 100644 index 0000000..fbd7137 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/NBBizResource.bundle/auth_selected@3x.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/NBBizResource.bundle/back@2x.png b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/NBBizResource.bundle/back@2x.png new file mode 100644 index 0000000..df11be4 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/NBBizResource.bundle/back@2x.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/NBBizResource.bundle/back@3x.png b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/NBBizResource.bundle/back@3x.png new file mode 100644 index 0000000..dbec282 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/NBBizResource.bundle/back@3x.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/NBBizResource.bundle/close@2x.png b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/NBBizResource.bundle/close@2x.png new file mode 100644 index 0000000..df92118 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/NBBizResource.bundle/close@2x.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/NBBizResource.bundle/close@3x.png b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/NBBizResource.bundle/close@3x.png new file mode 100644 index 0000000..2f19382 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/NBBizResource.bundle/close@3x.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/NBBizResource.bundle/en.lproj/Root.strings b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/NBBizResource.bundle/en.lproj/Root.strings new file mode 100644 index 0000000..8cd87b9 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/NBBizResource.bundle/en.lproj/Root.strings differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/NBBizResource.bundle/whiteClose@2x.png b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/NBBizResource.bundle/whiteClose@2x.png new file mode 100644 index 0000000..955e85c Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/NBBizResource.bundle/whiteClose@2x.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/NBBizResource.bundle/whiteClose@3x.png b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/NBBizResource.bundle/whiteClose@3x.png new file mode 100644 index 0000000..e92580f Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/NBBizResource.bundle/whiteClose@3x.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/NBWebResource.bundle/Root.plist b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/NBWebResource.bundle/Root.plist new file mode 100644 index 0000000..b1b6fea --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/NBWebResource.bundle/Root.plist @@ -0,0 +1,61 @@ + + + + + StringsTable + Root + PreferenceSpecifiers + + + Type + PSGroupSpecifier + Title + Group + + + Type + PSTextFieldSpecifier + Title + Name + Key + name_preference + DefaultValue + + IsSecure + + KeyboardType + Alphabet + AutocapitalizationType + None + AutocorrectionType + No + + + Type + PSToggleSwitchSpecifier + Title + Enabled + Key + enabled_preference + DefaultValue + + + + Type + PSSliderSpecifier + Key + slider_preference + DefaultValue + 0.5 + MinimumValue + 0 + MaximumValue + 1 + MinimumValueImage + + MaximumValueImage + + + + + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/NBWebResource.bundle/back@2x.png b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/NBWebResource.bundle/back@2x.png new file mode 100644 index 0000000..df11be4 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/NBWebResource.bundle/back@2x.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/NBWebResource.bundle/back@3x.png b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/NBWebResource.bundle/back@3x.png new file mode 100644 index 0000000..dbec282 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/NBWebResource.bundle/back@3x.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/NBWebResource.bundle/close@2x.png b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/NBWebResource.bundle/close@2x.png new file mode 100644 index 0000000..df92118 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/NBWebResource.bundle/close@2x.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/NBWebResource.bundle/close@3x.png b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/NBWebResource.bundle/close@3x.png new file mode 100644 index 0000000..2f19382 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/NBWebResource.bundle/close@3x.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/NBWebResource.bundle/en.lproj/Root.strings b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/NBWebResource.bundle/en.lproj/Root.strings new file mode 100644 index 0000000..8cd87b9 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/NBWebResource.bundle/en.lproj/Root.strings differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/NBWebResource.bundle/whiteClose@2x.png b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/NBWebResource.bundle/whiteClose@2x.png new file mode 100644 index 0000000..955e85c Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/NBWebResource.bundle/whiteClose@2x.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/NBWebResource.bundle/whiteClose@3x.png b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/NBWebResource.bundle/whiteClose@3x.png new file mode 100644 index 0000000..e92580f Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/NBWebResource.bundle/whiteClose@3x.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/NebulaWK.bundle/h5_message_channel.js b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/NebulaWK.bundle/h5_message_channel.js new file mode 100644 index 0000000..50b1263 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/NebulaWK.bundle/h5_message_channel.js @@ -0,0 +1,2 @@ +/* 2019-03-18 19:08:21 */ +!function(){!function(e){"use strict";var t={searchParams:"URLSearchParams"in e,iterable:"Symbol"in e&&"iterator"in Symbol,blob:"FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in e,arrayBuffer:"ArrayBuffer"in e};if(t.arrayBuffer)var r=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],n=function(e){return e&&DataView.prototype.isPrototypeOf(e)},o=ArrayBuffer.isView||function(e){return e&&r.indexOf(Object.prototype.toString.call(e))>-1};function a(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function i(e){return"string"!=typeof e&&(e=String(e)),e}function s(e){var r={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return t.iterable&&(r[Symbol.iterator]=function(){return r}),r}function u(e){this.map={},e instanceof u?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function l(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function c(e){return new Promise(function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}})}function f(e){var t=new FileReader,r=c(t);return t.readAsArrayBuffer(e),r}function h(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function d(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e,e)if("string"==typeof e)this._bodyText=e;else if(t.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(t.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(t.searchParams&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else if(t.arrayBuffer&&t.blob&&n(e))this._bodyArrayBuffer=h(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer]);else{if(!t.arrayBuffer||!ArrayBuffer.prototype.isPrototypeOf(e)&&!o(e))throw new Error("unsupported BodyInit type");this._bodyArrayBuffer=h(e)}else this._bodyText="";this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):t.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},t.blob&&(this.blob=function(){var e=l(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?l(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(f)}),this.text=function(){var e,t,r,n=l(this);if(n)return n;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,r=c(t),t.readAsText(e),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),n=0;n-1?n:r),this.mode=t.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(o)}function m(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var r=e.split("="),n=r.shift().replace(/\+/g," "),o=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(o))}}),t}function b(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new u(t.headers),this.url=t.url||"",this._initBody(e)}y.prototype.clone=function(){return new y(this,{body:this._bodyInit})},d.call(y.prototype),d.call(b.prototype),b.prototype.clone=function(){return new b(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new u(this.headers),url:this.url})},b.error=function(){var e=new b(null,{status:0,statusText:""});return e.type="error",e};var v=[301,302,303,307,308];b.redirect=function(e,t){if(-1===v.indexOf(t))throw new RangeError("Invalid status code");return new b(null,{status:t,headers:{location:e}})},e.Headers=u,e.Request=y,e.Response=b,e.fetch=function(e,r){return new Promise(function(n,o){var a=new y(e,r),i=new XMLHttpRequest;i.onload=function(){var e,t,r={status:i.status,statusText:i.statusText,headers:(e=i.getAllResponseHeaders()||"",t=new u,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach(function(e){var r=e.split(":"),n=r.shift().trim();if(n){var o=r.join(":").trim();t.append(n,o)}}),t)};r.url="responseURL"in i?i.responseURL:r.headers.get("X-Request-URL");var o="response"in i?i.response:i.responseText;n(new b(o,r))},i.onerror=function(){o(new TypeError("Network request failed"))},i.ontimeout=function(){o(new TypeError("Network request failed"))},i.open(a.method,a.url,!0),"include"===a.credentials?i.withCredentials=!0:"omit"===a.credentials&&(i.withCredentials=!1),"responseType"in i&&t.blob&&(i.responseType="blob"),a.headers.forEach(function(e,t){i.setRequestHeader(t,e)}),i.send(void 0===a._bodyInit?null:a._bodyInit)})},e.fetch.polyfill=!0}("undefined"!=typeof self?self:this),function(){var e=/^(?:button|image|reset|file)$/i,t=/^(?:input|select|textarea|keygen)/i,r=/(\[[^\[\]]*\])/g;function n(e,t,n){t.match(r);var o=e[t];return o?(Array.isArray(o)||(e[t]=[o]),e[t].push(n)):e[t]=n,e}function o(e,t,r){return r=r.replace(/(\r)?\n/g,"\r\n"),r=(r=encodeURIComponent(r)).replace(/%20/g,"+"),e+(e?"&":"")+encodeURIComponent(t)+"="+r}window.NebulaSerialize=function(r,a){"object"!=typeof a?a={hash:!!a}:void 0===a.hash&&(a.hash=!0);for(var i=a.hash?{}:"",s=a.serializer||(a.hash?n:o),u=r&&r.elements?r.elements:[],l=Object.create(null),c=0;c0)for(var l=i.files.length,c=0;c0?(e.value=o,t(e)):r(new Error(""))},o.onerror=function(){r(new Error(""))},o.onabort=function(){r(new Error(""))},o.readAsDataURL(n)}else t(e)})}function l(e){for(var t="",r=new Uint8Array(e),n=r.byteLength,o=0;o0){var a=o.search;/X-NEBULAXMLHTTPREQUEST/.test(a)?(a=a.replace(/X-NEBULAXMLHTTPREQUEST=(\d+)/,"X-NEBULAXMLHTTPREQUEST="+r),t.setAttribute("action",o.protocol+"//"+o.host+o.pathname+a+o.hash)):t.setAttribute("action",o.protocol+"//"+o.host+o.pathname+o.search+"&X-NEBULAXMLHTTPREQUEST="+r+o.hash)}else t.setAttribute("action",o.protocol+"//"+o.host+o.pathname+"?X-NEBULAXMLHTTPREQUEST="+r+o.hash)}t.setAttribute("data-nebulaId",r)}}var d,p=(d=FormData,window.originFormData=d,function(e){this.realFormData=new d(e),e&&(this.targetForm=e),this.appendData=[]});p.prototype.constructor=window.originFormData,p.prototype.append=function(e,t,r){this.appendData.push({name:e,value:t,fileName:r})},FormData=p;var y={},m="msgRequestUrl",b="type",v={cacheMessage:function(t,r,n,o,a){e===a&&(y[o]={msgId:o,callBack:function(){var e=t;try{return r.apply(e,n)}catch(e){c(e)}}},setTimeout(function(){v.triggerMessageCallBack(o,a)},500))},triggerMessageCallBack:function(t,r){e===r&&y[t]&&(y[t].callBack(),delete y[t])},addFormExtraInfoToElement:function(t,r){if(e===r){var n={};n[b]="FormElement",n.msgKt=r;var a=function(e){if(e&&e.nodeType){for(var t=e;t;){if("form"===t.nodeName.toLowerCase())return t;if(t===document||t===document.documentElement||t===document.body)break;t=t.parentNode}return null}}(t||document.activeElement);if(f(a))return;if(a){var i=a.getAttribute("data-nebulaId"),l=a.getAttribute("action"),h=s(a,!1);return Promise.all(h.map(function(e){return u(e)})).then(function(e){n.msgId=i,n.val=e,n[b]="FormElement",n.FormEnctype=a.enctype,n.AcceptCharset=a.acceptCharset,n.DocumentCharset=document.charset,n[m]=l,o(n)}).catch(function(e){c(e)}),i}}},updateCookies:void 0};window.NebulaXMLHttpRequestMessageBridge=v,Object.freeze(window.NebulaXMLHttpRequestMessageBridge),Object.defineProperty(window,"NebulaXMLHttpRequestMessageBridge",{configurable:!1,writable:!1});var E,w,g=function(e){return"^^^^"+e+"^^^^"},T=["POST","PUT","DELETE","PATCH"],A=/\^\^\^\^(\d+)\^\^\^\^/;XMLHttpRequest.prototype.open=(E=XMLHttpRequest.prototype.open,function(e,t,r,n,o){var a=[].slice.call(arguments),i=!0;a.length>2&&(i=!!a[2]),this.requestAsync=i;var s=+new Date+""+Math.round(1e5*Math.random());if(this.requestId=s,e&&T.indexOf(e.toUpperCase())>-1){var u=document.createElement("a");u.href=t,A.test(u.hash)?u.hash=u.hash.replace(A,g(s)):u.hash&&u.hash.length>0?u.hash=u.hash+g(s):u.hash=g(s),t=u.href}return this.requestUrl=t,a[1]=t,E.apply(this,a)}),XMLHttpRequest.prototype.send=(w=XMLHttpRequest.prototype.send,function(t){var r,n,a,i=this.requestId,f={},h=this,d=[].slice.call(arguments);if(f.msgId=i,f.msgKt=e,f.msgMainUrl=document.location.href,f[m]=this.requestUrl,!t)return w.apply(this,d);if("string"==typeof t&&t.length>0)f.val=t,f[b]="String",o(f);else if(t instanceof Blob){if(f[b]="Blob",this.requestAsync)return r=t,n=function(t){f.val=t,o(f),v.cacheMessage(h,w,d,i,e)},(a=new FileReader).onload=function(e){var t=e.target.result;n(t)},void a.readAsDataURL(r);f.error="NOTSUPPORT",o(f)}else if(t instanceof FormData){if(f[b]="FormData",this.requestAsync){f[b]="FormData";var p=t.appendData;return t.targetForm&&(p=p.concat(s(t.targetForm,!0))),void Promise.all(p.map(function(e){return u(e)})).then(function(r){f.val=r,o(f),v.cacheMessage(h,w,t.realFormData,i,e)}).catch(function(e){c(e)})}f.error="NOTSUPPORT",o(f)}else if(t.nodeType)f[b]="Document",t===document?f.val=(new XMLSerializer).serializeToString(document):f.val=t.toString(),o(f);else if(t instanceof ArrayBuffer)f.val=l(t),f[b]="ArrayBuffer",o(f);else{if(!t.buffer)return w.apply(this,d);f.val=l(t.buffer),f[b]="ArrayBuffer",o(f)}return this.requestAsync?v.cacheMessage(h,w,d,i,e):w.apply(this,d)});var B,L={};window.lastClickElement=null,document.addEventListener("DOMContentLoaded",function(){!function(){for(var t=[].slice.call(document.querySelectorAll("form")),r=t.length-1;r>=0;r--)h(t[r]),t[r].addEventListener("submit",function(t){v.addFormExtraInfoToElement(t.target,e)},!1)}(),document.addEventListener("change",function(e){var t=e.target;if(t.nodeName&&t.nodeName.toLowerCase()&&t.type&&"file"===t.type)for(var r=t,n=0;n0?r[0]:void 0},e.isTrue=function(t){return!0===t||"true"===t}},function(t,e,r){var n=r(5),o=r(28),i=r(29),a="[object Null]",u="[object Undefined]",c=n?n.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?u:a:c&&c in Object(t)?o(t):i(t)}},function(t,e,r){var n=r(38),o=r(43);t.exports=function(t,e){var r=o(t,e);return n(r)?r:void 0}},function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var o=n(r(12)),i=n(r(13)),a=n(r(21));!function(){o.default(i.default);var t=window.templateSnapshot,e=window.AlipayJSBridge;if(t&&e&&e.startupParams&&t.data)try{a.default({data:t.data,startParams:e.startupParams})}catch(t){}}()},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n="";function o(t){return n+t.replace(/( |^)[a-z]/g,(function(t){return t.toUpperCase()}))}e.default=function(t){t.forEach((function(t){var e=t.name,r=t.component;window.AFAppX.addExtraComponent({name:o(e),factory:function(t){return r(t.createReactClass)}})}))}},function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var o=n(r(14));e.default=[o.default]},function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,n=arguments.length;r-1||p.indexOf("Adr")>-1,h={capture:!0,passive:!0},y=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.headDom=null,e.triggerDom=null,e.maskDom=null,e.loftLogDom=null,e.currentScroller=null,e.isLoftOpen=!1,e.isLoftPulling=!1,e.isTouch=!1,e.scrollersTop={},e.distanceX=0,e.distanceY=0,e.moveCount=0,e.touchStartPoint=null,e.bindDom=function(){e.triggerDom||(e.headDom=document.querySelector(".loft-trigger-head"),e.triggerDom=document.querySelector(".loft-trigger-content"),e.maskDom=document.querySelector(".loft-trigger-mask"),e.loftLogDom=document.querySelector(".loft-log"),e.currentScroller||(e.currentScroller=l.findCurrentScorller(e.props.currentScrollerId)),e.triggerDom&&(e.triggerDom.addEventListener("touchstart",e.onStart,h),e.triggerDom.addEventListener("touchend",e.onEnd,h),e.triggerDom.addEventListener("touchcancel",e.onEnd,h),e.currentScroller&&e.currentScroller.addEventListener("scroll",e.scrollHandler,h),d?e.triggerDom.addEventListener("touchmove",e.onMove,h):(window.WEEXVIEW_TOUCH_START=function(){e.onStart()},window.WEEXVIEW_TOUCH_END=function(){e.onEnd()},window.WEEXVIEW_TOUCH_CANCEL=function(){e.onEnd()})))},e.scrollHandler=function(t){var r,n,o;t.weexViewId?(r=t.weexViewId,n=t.scrollTop,o=t.scrollHeight):(r=e.props.currentScrollerId,n=e.currentScroller.scrollTop,o=e.currentScroller.scrollHeight),e.log(r,n,o),e.swipeHandler({scrollTop:n,weexViewId:r,scrollHeight:o}),e.props.shouldTirggerLoft&&(e.isTouch&&n<-f?(e.pullHandler(n),e.isLoftPulling=!0):e.isLoftPulling=!1)},e.swipeHandler=function(t){var r=t.scrollTop,n=t.weexViewId,o=t.scrollHeight,i=void 0===o?1e3:o;if(r=Math.round(r),void 0!==e.scrollersTop[n]){var a=i-window.innerHeight;r<0&&r>-f&&e.isTouch&&e.scrollersTop[n]>r&&e.props.isHeadFixed&&e.props.onSwipeDown&&e.props.onSwipeDown(),d?r>0&&(e.isLoftPulling||(e.scrollersTop[n]>r&&e.props.isHeadFixed&&e.props.onSwipeDown&&e.props.onSwipeDown(),e.scrollersTop[n]0&&rr&&e.props.isHeadFixed&&e.props.onSwipeDown&&e.props.onSwipeDown(),e.scrollersTop[n]=o)e.headDom&&(e.headDom.style.opacity=0),e.maskDom&&(e.maskDom.style.opacity=1),e.isLoftOpen||e.openLoft(),e.isLoftOpen=!0;else{var i=(r-f)/(o-f);e.headDom&&(e.headDom.style.opacity=1-i),e.maskDom&&(e.maskDom.style.opacity=i),e.isLoftOpen=!1}},e.onStart=function(t){e.isTouch=!0,e.log(e.isTouch),d&&(e.touchStartPoint={x:t.touches[0].screenX,y:t.touches[0].screenY})},e.onEnd=function(){e.isLoftPulling=!1,e.isTouch=!1,e.isLoftOpen=!1,e.log(e.isTouch),e.isLoftOpen&&e.currentScroller&&(e.currentScroller.scrollTop=0),e.headDom&&(e.headDom.style.opacity=1),e.maskDom&&(e.maskDom.style.opacity=0),e.distanceX=0,e.distanceY=0,e.moveCount=0,e.touchStartPoint=null,e.triggerDom&&(e.triggerDom.style.transform="translateY(0px)")},e.onMove=function(t){if(e.props.shouldTirggerLoft&&e.triggerDom&&d&&!(e.currentScroller&&e.currentScroller.scrollTop>0)){if(e.distanceX=e.touchStartPoint.x-t.touches[0].screenX,e.distanceY=e.touchStartPoint.y-t.touches[0].screenY,e.moveCount<=4&&e.distanceX<10&&e.distanceX>-10&&e.distanceY<-10&&(e.isLoftPulling=!0),e.moveCount>5&&e.isLoftPulling){var r=l.damping(-e.distanceY,(e.props.maxGap||120)+30);e.triggerDom.style.transform="translateY("+r+"px)",r>f&&e.pullHandler(-r)}e.moveCount++}},e}return o(e,t),e.prototype.componentDidUpdate=function(t){this.props.currentScrollerId!==t.currentScrollerId&&(this.currentScroller&&this.currentScroller.removeEventListener("scroll",this.scrollHandler,h),this.currentScroller=l.findCurrentScorller(this.props.currentScrollerId),this.currentScroller&&this.currentScroller.addEventListener("scroll",this.scrollHandler,h))},e.prototype.componentDidMount=function(){window.PIPE_TO_LOFT=this.scrollHandler,window.AlipayJSBridge&&window.AlipayJSBridge.startupParams&&this.props.onDidMount&&this.props.onDidMount(AlipayJSBridge.startupParams),setTimeout(this.bindDom,3e3)},e.prototype.componentWillUnmount=function(){delete window.PIPE_TO_LOFT,delete window.WEEXVIEW_TOUCH_START,delete window.WEEXVIEW_TOUCH_END,delete window.WEEXVIEW_TOUCH_CANCEL,this.triggerDom&&(this.triggerDom.removeEventListener("touchstart",this.onStart,h),this.triggerDom.removeEventListener("touchend",this.onEnd,h),this.triggerDom.removeEventListener("touchcancel",this.onEnd,h),this.triggerDom.removeEventListener("touchmove",this.onMove,h))},e.prototype.openLoft=function(){this.props.onLoftOpen&&this.props.onLoftOpen()},e.prototype.log=function(){for(var t=[],e=0;eI.length&&I.push(t)}function A(t,e,r){return null==t?0:function t(e,r,n,o){var u=typeof e;"undefined"!==u&&"boolean"!==u||(e=null);var c=!1;if(null===e)c=!0;else switch(u){case"string":case"number":c=!0;break;case"object":switch(e.$$typeof){case i:case a:c=!0}}if(c)return n(o,e,""===r?"."+H(e,0):r),1;if(c=0,r=""===r?".":r+":",Array.isArray(e))for(var s=0;s-1}},function(t,e,r){var n=r(1);t.exports=function(t,e){var r=this.__data__,o=n(r,t);return o<0?(++this.size,r.push([t,e])):r[o][1]=e,this}},function(t,e,r){var n=r(9)(r(6),"Map");t.exports=n},function(t,e,r){var n=r(2);t.exports=function(t){var e=n(this,t).delete(t);return this.size-=e?1:0,e}},function(t,e){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},function(t,e,r){var n=r(2);t.exports=function(t){return n(this,t).get(t)}},function(t,e,r){var n=r(2);t.exports=function(t){return n(this,t).has(t)}},function(t,e,r){var n=r(2);t.exports=function(t,e){var r=n(this,t),o=r.size;return r.set(t,e),this.size+=r.size==o?0:1,this}},function(t,e,r){var n=r(62);t.exports=function(t){return null==t?"":n(t)}},function(t,e,r){var n=r(5),o=r(63),i=r(3),a=r(4),u=1/0,c=n?n.prototype:void 0,s=c?c.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(i(e))return o(e,t)+"";if(a(e))return s?s.call(e):"";var r=e+"";return"0"==r&&1/e==-u?"-0":r}},function(t,e){t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,o=Array(n);++r-1&&(u="http:"),a.url=u+a.url}e.shopContent.map((function(e,r){e.key===t?e.url=a.url:e.subTabs.map((function(e,r){e.key===t&&(e.url=a.url)}))}))}}else i&&"header"===i.type?(e.headerData=i.payload,e.headerData.loftInfo&&(e.loftInfo=e.headerData.loftInfo)):i&&"navigator"===i.type&&(e.navigatorData=i.payload)}}))},this.urlParams=t||{}};e.default=o}]);!function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=1)}([function(e,t,r){"use strict";e.exports=r(5)},function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=n(r(2)),u=n(r(3));o.default(u.default)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="";function o(e){return n+e.replace(/( |^)[a-z]/g,(function(e){return e.toUpperCase()}))}t.default=function(e){var t=window.AFAppX,r=t.addExtraComponent,n=t.bridge;e.forEach((function(e){var t=e.name,u=e.component;r({name:o(t),factory:function(e){return u(e.createReactClass,n)}})}))}},function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(4),u=n(r(7));t.default=[o.MixRenderObject,o.MixRenderParam,u.default]},function(e,t,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;rM.length&&M.push(e)}function H(e,t,r){return null==e?0:function e(t,r,n,o){var l=typeof t;"undefined"!==l&&"boolean"!==l||(t=null);var a=!1;if(null===t)a=!0;else switch(l){case"string":case"number":a=!0;break;case"object":switch(t.$$typeof){case u:case i:a=!0}}if(a)return n(o,t,""===r?"."+T(t,0):r),1;if(a=0,r=""===r?".":r+":",Array.isArray(t))for(var c=0;c + + + + JsApiRuntime + + JsApis + + + jsApi + getAuthUserInfo + name + RVPJsApiHandler4GetAuthUserInfo + + + jsApi + openSetting + name + RVSJsApiHandler4OpenSetting + + + jsApi + getSetting + name + RVPJsApiHandler4GetSetting + + + jsApi + authorize + name + RVPJsApiHandler4Authorize + + + jsApi + getTBCode + name + RVPJsApiHandler4GetTBCode + + + jsApi + NBComponent.render + name + RVKJsApiHandler4ComponentRender + + + jsApi + NBComponent.remove + name + RVKJsApiHandler4ComponentRemove + + + jsApi + NBComponent.setData + name + RVKJsApiHandler4ComponentSetData + + + jsApi + NBComponent.sendMessage + name + RVKJsApiHandler4ComponentSendMessage + + + jsApi + postWebViewMessage + name + RVKJsApiHandler4WebViewPostMessage + + + + PluginRuntime + + Plugins + + + events + + + useCapture + + name + - + + + scope + scene + name + TRVPluginExtension4PreventFirstRequest + + + events + + + useCapture + + name + - + + + scope + scene + name + TRVPluginExtension4PreRenderWeex + + + events + + + useCapture + + name + - + + + scope + session + name + TRVMNNPlugin + + + + ExtensionRuntime + + Extensions + + + ComponentRuntime + + Components + + + + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/TriverRuntime.bundle/h5_bridge.js b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/TriverRuntime.bundle/h5_bridge.js new file mode 100644 index 0000000..c12bcd6 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/TriverRuntime.bundle/h5_bridge.js @@ -0,0 +1,355 @@ +//contact with lin.weng@alipay.com before change this file +(window.AlipayJSBridge && !window.AlipayCallFromJS)|| (function () { + "H5_BRIDGE_JS_REPLACE_STRING"; + var iframe = null; + + var rawJsonStringify = JSON.stringify; + var rawJsonParse = JSON.parse; + var rawArrayPush = Array.prototype.push; + /***************Messge Handler*****************/ + var safeCallMessage,shouldUseMessageChannel = false; + if (window.webkit + && window.webkit.messageHandlers + && window.webkit.messageHandlers.PSDBRIDGEMESSAGEHANDLER + && window.webkit.messageHandlers.PSDBRIDGEMESSAGEHANDLER.postMessage) { + var webkit = window.webkit; + var postMessage = window.webkit.messageHandlers.PSDBRIDGEMESSAGEHANDLER.postMessage; + var PSDBRIDGEMESSAGEHANDLER = window.webkit.messageHandlers.PSDBRIDGEMESSAGEHANDLER; + window.webkit.messageHandlers.PSDBRIDGEMESSAGEHANDLER.postMessage = function(){}; + safeCallMessage = function(message){ + return postMessage.apply(PSDBRIDGEMESSAGEHANDLER,[message]); + } + shouldUseMessageChannel = true; + } + + function renderIframe() { + if (iframe || shouldUseMessageChannel) return; + try { + iframe = document.createElement("iframe"); + iframe.id = "__AlipayJSBridgeIframe"; + iframe.style.display = "none"; + if (document.documentElement) { + document.documentElement.appendChild(iframe); + }else{ + //for pdf to append iframe + document.appendChild(iframe); + } + } catch (e) { + + } + } + + function onDOMReady(callback) { + var readyRE = /complete|loaded|interactive/; + if (readyRE.test(document.readyState)) { + setTimeout(function() { + callback(); + }, 1); + } else { + document.defaultView.addEventListener('DOMContentLoaded', function () { + callback(); + }, false); + } + } + + /***************Param Type*****************/ + var NEBULA_TYPE_INFO = "NEBULATYPEINFO",NEBULA_TYPE_OF_ARRAYBUFFER = "ArrayBuffer"; + + var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; + var lookup = new Uint8Array(256); + for (var i = 0; i < chars.length; i++) { + lookup[chars.charCodeAt(i)] = i; + } + + function arrayBufferToBase64(buffer) { + var binary = ''; + var bytes = new Uint8Array(buffer); + var len = bytes.byteLength; + for (var i = 0; i < len; i++) { + binary += String.fromCharCode(bytes[i]); + } + return window.btoa(binary); + } + + function base64ToArrayBuffer(base64) { + var bufferLength = base64.length * 0.75, + len = base64.length, i, p = 0, + encoded1, encoded2, encoded3, encoded4; + + if (base64[base64.length - 1] === "=") { + bufferLength--; + if (base64[base64.length - 2] === "=") { + bufferLength--; + } + } + + var arraybuffer = new ArrayBuffer(bufferLength), + bytes = new Uint8Array(arraybuffer); + + for (i = 0; i < len; i+=4) { + encoded1 = lookup[base64.charCodeAt(i)]; + encoded2 = lookup[base64.charCodeAt(i+1)]; + encoded3 = lookup[base64.charCodeAt(i+2)]; + encoded4 = lookup[base64.charCodeAt(i+3)]; + + bytes[p++] = (encoded1 << 2) | (encoded2 >> 4); + bytes[p++] = ((encoded2 & 15) << 4) | (encoded3 >> 2); + bytes[p++] = ((encoded3 & 3) << 6) | (encoded4 & 63); + } + + return arraybuffer; + } + + function transformCallParam(param){ + var result = param; + for(var key in param){ + if (param.hasOwnProperty(key)) { + var val = param[key]; + if (val instanceof ArrayBuffer) { + param[key] = arrayBufferToBase64(val); + if (!result[NEBULA_TYPE_INFO]) { + result[NEBULA_TYPE_INFO] = {}; + } + result[NEBULA_TYPE_INFO][key] = {"type" : NEBULA_TYPE_OF_ARRAYBUFFER}; + } + } + } + return result; + } + + function transformResponseData(responsedata){ + if (responsedata && responsedata[NEBULA_TYPE_INFO]) { + var nebulaTypeInfo = responsedata[NEBULA_TYPE_INFO]; + if (nebulaTypeInfo) { + for(var key in nebulaTypeInfo){ + if (nebulaTypeInfo.hasOwnProperty(key)) { + var item = nebulaTypeInfo[key]; + if (item.type) { + var typeVal = item["type"]; + if (typeVal === NEBULA_TYPE_OF_ARRAYBUFFER) { + responsedata[key] = base64ToArrayBuffer(responsedata[key]); + } + } + } + } + delete responsedata[NEBULA_TYPE_INFO]; + } + } + return responsedata; + } + + /***************Bridge*****************/ + var msgKt = "messageTK"; + var callbackPoll = {}; + + var sendMessageQueue = []; + var receiveMessageQueue = []; + + var JSAPI = { + /* + * 调用Native功能 + */ + call: function (func, param, callback) { + //jsbridge注入提前后,DOM环境可能还没创建,原jsbridge注入的同时创建iframe的方式将创建失败,改为调用接口的时候创建iframe + //如果直接使用JSC通信 + renderIframe(); + // + if ('string' !== typeof func) { + return; + } + + if ('function' === typeof param) { + callback = param; + param = null; + } else if (typeof param !== 'object') { + param = null; + } + + // 防止时间戳重复 + var callbackId = func + '_' + new Date().getTime() + (Math.random()); + if ('function' === typeof callback) { + callbackPoll[callbackId] = callback; + } + + if (param && param.callbackId) { + // 从Native调用过来的请求,再回调到Native的callback里 + // TODO: 需要优化,这里调用回Native的callback不需要传入`handlerName` + func = { + responseId: param.callbackId, + responseData: param + }; + delete param.callbackId; + } else { + // 从页面直接发起到Native的请求 + // 支持arrayBuffer的数据格式 + func = { + handlerName: func, + data: transformCallParam(param) || {} + }; + func.callbackId = '' + callbackId; + } + +// console.log('bridge.call: ' + JSON.stringify(func)); + + rawArrayPush.call(sendMessageQueue, func); + //use jsc + if (window.AlipayCallFromJS && 'function' === typeof window.AlipayCallFromJS) { + window.AlipayCallFromJS(JSAPI._fetchQueue(), document.location.href); + }else if(window.webkit && window.webkit.messageHandlers && window.webkit.messageHandlers.PSDBRIDGEMESSAGEHANDLER && window.webkit.messageHandlers.PSDBRIDGEMESSAGEHANDLER.postMessage){ + //use wkwebview message channel + safeCallMessage({ + type:"api", + queue:JSAPI._stringifyMessageQueue(), + msgKt:msgTKTarget + }); + }else if (iframe) { + iframe.src = "alipaybridge://dispatch_message"; + } + }, + + trigger: function (name, data) { +// console.log('bridge.trigger ' + name); + if (name) { + var triggerEvent = function (name, data) { + var callbackId; + if (data && data.callbackId) { + callbackId = data.callbackId; + data.callbackId = null; + } + var evt = document.createEvent("Events"); + evt.initEvent(name, false, true); + evt.syncJsApis = []; + + if (data) { + if (data.__pull__) { + delete data.__pull__; + for (var k in data) { + evt[k] = data[k]; + } + } else { + evt.data = data; + } + } + var canceled = !document.dispatchEvent(evt); + if (callbackId) { + var callbackData = {}; + callbackData.callbackId = callbackId; + callbackData[name + 'EventCanceled'] = canceled; + callbackData['syncJsApis'] = evt.syncJsApis; + JSAPI.call('__nofunc__', callbackData); + } + }; + setTimeout(function () { + triggerEvent(name, data); + }, 1); + } + }, + + /* + * Native调用js函数,传输消息 + **/ + _invokeJS: function (resp) { +// console.log('bridge._invokeJS: ' + resp); + resp = rawJsonParse(resp); + + if (resp.responseId) { + var func = callbackPoll[resp.responseId]; + //某些情况需要多次回调,添加keepCallback标识,防删除 + if (!(typeof resp.keepCallback == 'boolean' && resp.keepCallback)) { + delete callbackPoll[resp.responseId]; + } + + if ('function' === typeof func) { + // 避免死锁问题 + setTimeout(function () { + func(transformResponseData(resp.responseData)); + }, 1); + } + } else if (resp.handlerName) { + if (resp.callbackId) { + resp.data = resp.data || {}; + resp.data.callbackId = resp.callbackId; + } + JSAPI.trigger(resp.handlerName, resp.data); + } + }, + + // *********************************************** + // WebViewJSBridge.js库兼容 @远尘 2014.2.28 + + _handleMessageFromObjC: function (message) { + if (receiveMessageQueue&&!window.AlipayJSBridge) { + receiveMessageQueue.push(message); + } else { + JSAPI._invokeJS(message); + } + }, + _stringifyMessageQueue:function(){ + var messageQueueString = rawJsonStringify(sendMessageQueue); + sendMessageQueue = []; + return messageQueueString; + }, + _fetchQueue: function (tk) { + //if shouldshouldUseTK and if no token we think it is illegal call and just retrun empth array + if (shouldUseTK) { + if (tk && msgTKTarget && msgTKTarget === tk) { + return JSAPI._stringifyMessageQueue(); + }else { + return '[]'; + } + }else{ + return JSAPI._stringifyMessageQueue(); + } + } + }; + + // *********************************************** + + // 初使化事件, 在webview didFinishLoad后调用 + JSAPI.init = function () { + // dont call me any more + //JSAPI.init = null; + + + var readyEvent = document.createEvent('Events'); + readyEvent.initEvent('AlipayJSBridgeReady', false, false); + + // 处理ready事件发生以后才addEventListener的情况 + var docAddEventListener = document.addEventListener; + document.addEventListener = function (name, func) { + if (name === readyEvent.type) { + // 保持func执行的异步性 + setTimeout(function () { + func(readyEvent); + }, 1); + } else { + docAddEventListener.apply(document, arguments); + } + }; + + document.dispatchEvent(readyEvent); + + var receivedMessages = receiveMessageQueue; + receiveMessageQueue = null; + for (var i = 0; i < receivedMessages.length; i++) { + JSAPI._invokeJS(receivedMessages[i]); + } + }; + + window.AlipayJSBridge = JSAPI; + + //动态替换js片段,为了解决在AlipayJSBridge Ready中,使用新增的js属性,由内核替换为js片段字符串 + "H5_BRIDGE_JS_***_REPLACE_STRING_***_SJ_EGDIRB_5H"; + + //从全局对象中读取startupParams,确保ready中可用 + JSAPI.startupParams = window.ALIPAYH5STARTUPPARAMS || {}; + + //jsbridge提前后,将webViewDidFinishLoad中init方法,提前到DOMReady后执行,避免由于长时间加载资源,而影响到接口调用 + onDOMReady(JSAPI.init); + + onDOMReady(function(){ + if (window.webkit && window.webkit.messageHandlers && window.webkit.messageHandlers.PSDBRIDGEDOMREADY && window.webkit.messageHandlers.PSDBRIDGEDOMREADY.postMessage) { + window.webkit.messageHandlers.PSDBRIDGEDOMREADY.postMessage(""); + }; + }); +})(); diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/WindMixView.bundle/mixView.js b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/WindMixView.bundle/mixView.js new file mode 100644 index 0000000..82c26b8 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/WindMixView.bundle/mixView.js @@ -0,0 +1,2 @@ +/* mix-view-adaptor (min) v0.4.0, build at 2020-07-14 16:31. */ +!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e["mix-view-adaptor"]=t()}(this,function(){"use strict";"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{writable:!0,enumerable:!1,configurable:!0,value:function(e){var t=arguments;if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(e),r=1;r=N.indexOf(n)}function k(e){M("debug")&&P("debug",e)}function q(e){M("warn")&&P("warn",e)}function D(e){M("error")&&P("error",e)}function F(){}F.prototype.postMessage=function(e){if(e&&e.length){var t=f();try{k("Post message: "+JSON.stringify(e)),t.webkit.messageHandlers.mixView.postMessage(e)}catch(e){D("Failed to postMessage: "+e.toString())}}},F.prototype.onmessage=function(t,n){void 0===n&&(n="mixviewevent"),f().addEventListener(n,function(e){k('Receive event "'+n+'": '+JSON.stringify(e.data)),e&&g(e.data)&&"function"==typeof t&&t(e.data)})};var I=function(e){function t(){e.call(this)}return e&&(t.__proto__=e),((t.prototype=Object.create(e&&e.prototype)).constructor=t).prototype.postMessage=function(e){if(e&&e.length){var t=f();try{k("Post message (on Android): "+JSON.stringify(e)),t.mixView.postMessage(e)}catch(e){D("Failed to postMessage (on Android): "+e.toString())}}},t}(F),V="[[EVENT_MAP]]";function R(e,t){var n=e[V];return Array.isArray(n[t])||(n[t]=[]),n[t]}function $(){Object.defineProperty(this,V,{configurable:!1,enumerable:!1,writable:!1,value:{}})}$.prototype.on=function(e,t){return R(this,e).push({listener:t,once:!1,callCount:0}),this},$.prototype.once=function(e,t){return R(this,e).push({listener:t,once:!0,callCount:0}),this},$.prototype.off=function(e,t){var n,r,i=this[V];return t?(n=i[e],!Array.isArray(n)||-1!==(r=n.findIndex(function(e){return e.listener===t}))&&n.splice(r,1)):delete i[e],this},$.prototype.emit=function(t){for(var n=[],e=arguments.length-1;0 element');var n="",r={};if(e.children)for(var i=0;i to be "'+e.id+'".'),a.setAttribute(x,e.id))}var s=[];for(var u in e){var c=/^on([a-z]+)$/.exec(u);c&&c[1]&&y(e[u])&&s.push(c[1])}var d={type:n,viewType:n,styles:function(e){var t=f();if(t&&"function"==typeof t.getComputedStyle){var n=t.getComputedStyle(e),r={};return Q.forEach(function(e){r[e]=n.getPropertyValue(e)}),r}return{}}(e),backgroundColor:t.backgroundColor};return Object.keys(r).length&&(d.params=r),s.length&&(d.events=s),d}function K(r,i){var o=r,a=[];o._events=Object.create(null);function e(e){var t,n=/^on([a-z]+)$/.exec(e);n&&n[1]&&(t=n[1],o._events[t]=r[e],Object.defineProperty(r,e,{enumerable:!0,configurable:!0,get:function(){return o._events[t]},set:function(e){y(i)&&i(t,e,o._events[t]),o._events[t]=e}}),y(r[e])&&a.push(t))}for(var t in r)e(t);return a}function Y(e,r,i){m(e,"addEventListener")||(e._addEventListener=e.addEventListener,Object.defineProperty(e,"addEventListener",{writable:!0,enumerable:!0,configurable:!0,value:function(e,t,n){y(r)&&r(e,this),this._addEventListener(e,t,n)}})),m(e,"removeEventListener")||(e._removeEventListener=e.removeEventListener,Object.defineProperty(e,"removeEventListener",{writable:!0,enumerable:!0,configurable:!0,value:function(e,t,n){y(i)&&i(e,this),this._removeEventListener(e,t,n)}}))}var Z=["title","style","class",l,x];function ee(t){return new MutationObserver(function(e){var N=[];e.forEach(function(e){var t,n,r,i,o,a,s,u=e.type,c=e.attributeName,d=e.oldValue,l=e.target;if(1===l.nodeType)switch(u){case"attributes":var v,f,p,h,m=l.getAttribute(c);s=c,!j(a=l)&&!C(a)||-1!==Z.indexOf(s)||((i=d)==(o=m)||T(i)&&T(o))||(k('Captured "'+c+'" attribute change of <'+l.nodeName+'> (old: "'+d+'", new: "'+m+'").'),j(l)?(v={id:l.id,appx:L(),action:"setAttributes",args:[((t={})[c]=m,t)]},N.push(v)):C(l)&&(f=l.getAttribute(x),p=l.getAttribute("name"),h=B(l),k('The "'+p+'" param of #'+f+" object is changed to "+JSON.stringify(h)+"."),N.push({id:f,action:"setParams",args:[((n={})[p]=h,n)]})));break;case"childList":if(!j(l))break;var b=e.addedNodes,g=e.removedNodes;if(k("Captured params change of <"+l.nodeName+"> (added: "+b.length+", removed: "+g.length+")."),b.length)for(var y,_,w=0;w and set its "'+x+'" to be "'+l.id+'".'),N.push({id:l.id,action:"setParams",args:[((r={})[_]=B(y),r)]}))}if(g.length)for(var A,E,O=0;O has been deleted.'),N.push({id:A.getAttribute(x),action:"removeParams",args:[E]}))}}}),t(N)})}function te(e,t){if(void 0===t&&(t="div"),!e.parentNode)return q("The <"+e.tagName+"> element is offline, can't replace its tagName."),e;if(e.tagName.toLowerCase()===t.toLowerCase())return e;for(var n=document.createElement(t),r=0,i=e.attributes.length;r element (#"+s.id+") and start to preprocess it."),i=s.tagName.toLowerCase(),w()&&"div"!==i&&(q("The <"+i+"> element is not supported in current environment, it will be replaced by a
element."),(s=te(s,"div")).setAttribute("original-type",i)),o=v(),s.id?t[s.id]&&(q('The id "'+s.id+'" of <'+s.nodeName+'> has already been used, it will be replaced by "'+o+'".'),s.id=o,s.setAttribute("id",o)):(s.id=o,s.setAttribute("id",o)),a=h(),s.style["-webkit-transform"]="translate3d(0,0,0)",s.style["background-color"]=p(a),t[s.id]={options:G(s,{backgroundColor:a}),element:s})}return t}(function(e){return e&&!t._views[e.id]});for(var n in e)this._views[n]||(this._views[n]=e[n]);return this},re.prototype.observe=function(){var t=this;for(var e in this._views){var n,r=this._views[e],i=r.options,o=r.element;this._observers[e]||(k("Start to observe the <"+o.tagName+"> element (#"+o.id+")."),this._parseInlineEvent(o),this._registerMethods(o,i.viewType||i.type),(n=ee(function(e){t.schedule(e),t.send()})).observe(o,{attributes:!0,attributeOldValue:!0,childList:!0,subtree:!0}),this._observers[e]=n,o.setAttribute(l,this._label),this.schedule([{id:e,appx:L(),action:"createElement",args:[i]}]))}return this},re.prototype.schedule=function(e){var c=this;return e.forEach(function(e){var t=e.id,n=e.action,r=e.args;m(c._messages,t)||(c._messages[t]=Object.create(null));var i=c._messages[t];if(m(i,n)&&r?(-1!==["setParams","setAttributes","setStyles"].indexOf(n)&&r.forEach(function(e,t){i[n][t]?Object.assign(i[n][t],e):i[n][t]=e}),-1!==["removeParams","removeAttributes","removeStyles","addEvent","removeEvent"].indexOf(n)&&r.forEach(function(e){-1===i[n].indexOf(e)&&i[n].push(e)})):i[n]=r,m(i,"createElement")&&m(i,"removeElement")&&(delete i.createElement,delete i.removeElement),m(i,"createElement")&&i.createElement[0]){var o,a=i.createElement[0];if(m(i,"addEvent")&&(o=i.addEvent,Array.isArray(o)&&(a.events&&Array.isArray(a.events)?o.forEach(function(e){-1===a.events.indexOf(e)&&a.events.push(e)}):a.events=o),delete i.addEvent),m(i,"removeEvent")&&a.events){for(var s=0;s (added: "+r.length+", removed: "+i.length+").");var o=ne(i);if(o.length)for(var a=0;a."),t.observe(e,{childList:!0,subtree:!0}),e.setAttribute(l,this._label)),this;q('No available "document.body", will try again!')},re.prototype.stopObserve=function(e){var t;return j(e)&&this._isObserved(e)&&(t=e.id,k("Stop observe <"+e.tagName+"> (#"+t+")."),delete this._views[t],delete this._messages[t],this._observers[t]&&(this._observers[t].disconnect(),delete this._observers[t]),e.removeAttribute(l),this.schedule([{id:t,appx:L(),action:"removeElement"}])),this},re.prototype.cleanUp=function(e){if(void 0===e&&(e=document.body),k("Will clean up observed elements."),e&&!this._isObserved(e)){e.removeAttribute(l);for(var t=ne([e]),n=0;n (#"+i+")."),delete this._views[i],delete this._messages[i],this._observers[i]&&(this._observers[i].disconnect(),delete this._observers[i]),r.removeAttribute("original-type"),r.removeAttribute(l);for(var o,a=r.querySelectorAll("param"),s=0;s (#"+o.id+")."),o.removeAttribute(x),o.removeAttribute(l))}}}},a()||ie(),ie}); diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/WindVaneBasic.bundle/logger.js b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/WindVaneBasic.bundle/logger.js new file mode 100644 index 0000000..7192bf6 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/bundle/WindVaneBasic.bundle/logger.js @@ -0,0 +1,2 @@ +/* 2019-07-09 17:41:48 */ +!function(e,r,n){var t=e.console;if(r&&t&&!t.__isWindVaneLog__){t.__isWindVaneLog__=!0;var a=Object.prototype.toString;if(n>=4){var o=t.log;t.log=function(){o.apply(t,arguments);var e=u(4,arguments);e&&r.postMessage(e)}}if(n>=3){var i=t.info;t.info=function(){i.apply(t,arguments);var e=u(3,arguments);e&&r.postMessage(e)}}if(n>=2){var c=t.warn;t.warn=function(){c.apply(t,arguments);var e=u(2,arguments);e&&r.postMessage(e)}}if(n>=1){var f=t.error;t.error=function(){f.apply(t,arguments);var e=u(1,arguments);e&&r.postMessage(e)}}}function s(e,r){for(var n in r)if(r[n]==e)return'"[Ref '+n+']"'}function l(r,n,t,o){if(null==r)return"null";if(void 0==r)return"undefined";var i;switch(a.call(r)){case"[object String]":case"[object Date]":case"[object Function]":i=r.toString();break;case"[object Boolean]":case"[object Number]":case"[object Regex]":n=!0,i=r.toString();break;case"[object Error]":i=r.stack;break;case"[object Arguments]":case"[object Array]":if(f=s(r,o))return f;o[t]=r,n=!0,i="[";for(var c=0;c0&&(i+=", "),i+=l(r[c],!1,t+"."+c,o);i+="]";break;default:if(e.HTMLElement&&r instanceof HTMLElement)i=r.outerHTML;else{var f;if(f=s(r,o))return f;if(o[t]=r,r.hasOwnProperty){n=!0,i="{";var u=!0;for(var c in r)if(r.hasOwnProperty(c)){u?u=!1:i+=", ";var g=JSON.stringify(c);i+=g,i+=": ",i+=l(r[c],!1,t+"."+g,o)}i+="}"}else i=a.call(r)}}return n||(i=JSON.stringify(i)),i}function u(e,r){if(0!=r.length){for(var n="",t=0;t0&&(n+=" "),n+=l(r[t],!0,"",{});return{level:e,log:n}}}}(WV_GLOBALOBJECT,WV_LOGGER,WV_LOGLEVEL); \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AliAuthSDK/AlibabaAuthEntrance.framework/AlibabaAuthEntrance b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AliAuthSDK/AlibabaAuthEntrance.framework/AlibabaAuthEntrance new file mode 100644 index 0000000..fa5be4a Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AliAuthSDK/AlibabaAuthEntrance.framework/AlibabaAuthEntrance differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AliAuthSDK/AlibabaAuthEntrance.framework/Headers/ALBBCompatibleEnvConfig.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AliAuthSDK/AlibabaAuthEntrance.framework/Headers/ALBBCompatibleEnvConfig.h new file mode 100644 index 0000000..c2fd024 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AliAuthSDK/AlibabaAuthEntrance.framework/Headers/ALBBCompatibleEnvConfig.h @@ -0,0 +1,29 @@ +// +// aluEnvConfig.h +// AliUniversalAccount +// +// Created by ethan on 12/14/15. +// Copyright © 2015 Alipay. All rights reserved. +// + +#import + +/** 环境 */ +typedef NS_ENUM (NSUInteger, ALBBCompatibleEnvironment) { + /** 测试环境 */ + ALBBCompatibleEnvironmentDaily, + /** 预发环境 */ + ALBBCompatibleEnvironmentPreRelease, + /** 线上环境 */ + ALBBCompatibleEnvironmentRelease, +}; + +@interface ALBBCompatibleEnvConfig : NSObject + ++ (instancetype)shareInstance; + +- (void) setGWServerSettings:(ALBBCompatibleEnvironment) env; + +- (void)setSecAdditional:(NSString *)additional; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AliAuthSDK/AlibabaAuthEntrance.framework/Headers/ALBBCompatibleSession.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AliAuthSDK/AlibabaAuthEntrance.framework/Headers/ALBBCompatibleSession.h new file mode 100644 index 0000000..6a48918 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AliAuthSDK/AlibabaAuthEntrance.framework/Headers/ALBBCompatibleSession.h @@ -0,0 +1,30 @@ +// +// ALBBSession.h +// AlibabaAuthSDK +// +// Created by Bangzhe Liu on 6/17/16. +// Copyright © 2016 taobao. All rights reserved. +// + +#import +#import "ALBBUser.h" + +@interface ALBBCompatibleSession : NSObject + +/** + @return 返回单例 + */ ++ (ALBBCompatibleSession *)sharedInstance; + +/** + 如果未登录或者登录态已经过期,返回NO + @return 当前会话是否登录有效 + */ +- (BOOL)isLogin; + +/** + @return 返回User对象 + */ +- (ALBBUser *)getUser; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AliAuthSDK/AlibabaAuthEntrance.framework/Headers/ALBBSDK.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AliAuthSDK/AlibabaAuthEntrance.framework/Headers/ALBBSDK.h new file mode 100644 index 0000000..641b0e7 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AliAuthSDK/AlibabaAuthEntrance.framework/Headers/ALBBSDK.h @@ -0,0 +1,48 @@ +// +// AlibabaAuthSDK.h +// AlibabaAuthSDK +// +// Created by Bangzhe Liu on 6/15/16. +// Copyright © 2016 taobao. All rights reserved. +// + +#import +#import + + +/** 回调定义 */ +typedef void (^SuccessCallback)(void); +typedef void (^FailureCallback)(NSError *error); + + +@interface ALBBSDK : NSObject + ++ (ALBBSDK *)sharedInstance; + +//必须在主线程调用 +- (void)ALBBSDKInit; + +- (void)auth:(UIViewController *)parentController successCallback:(SuccessCallback) onSuccess failureCallback:(FailureCallback) onFailure; + +/** + 退出登录 + */ +- (void)logout; + +/** + 是否是登录URL + */ +- (BOOL)isLoginURL:(NSString *)url; + +/** + 是否是登出URL + */ +- (BOOL)isLogoutUrl:(NSString *)url; + +- (BOOL)handleUrl:(NSString *)url; + +//如果是接入的极简版本需要手动设置appkey +- (void)setAppkey : (NSString *)appKey; + +- (void)setH5Only:(BOOL)h5Only; +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AliAuthSDK/AlibabaAuthEntrance.framework/Headers/ALBBUser.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AliAuthSDK/AlibabaAuthEntrance.framework/Headers/ALBBUser.h new file mode 100644 index 0000000..ce3843b --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AliAuthSDK/AlibabaAuthEntrance.framework/Headers/ALBBUser.h @@ -0,0 +1,26 @@ +// +// ALBBUser.h +// AlibabaAuthSDK +// +// Created by Bangzhe Liu on 6/17/16. +// Copyright © 2016 taobao. All rights reserved. +// + +#import + +@interface ALBBUser : NSObject + +/** 昵称 */ +@property (nonatomic, copy, readonly) NSString *nick; +/** 头像地址 */ +@property (nonatomic, copy, readonly) NSString *avatarUrl; + +@property (nonatomic, copy, readonly) NSString *openId; +@property (nonatomic, copy, readonly) NSString *openSid; +@property (nonatomic, copy, readonly) NSString *topAccessToken; +@property (nonatomic, copy, readonly) NSString *topAuthCode; + +- (instancetype)initWithNick:(NSString *)nick avatarUrl:(NSString *)avatarUrl openId:(NSString *)openId openSid:(NSString *)openSid topAccessToken:(NSString *)topAccessToken topAuthCode:(NSString*)authCode; + + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AliAuthSDK/AlibabaAuthExt.framework/AlibabaAuthExt b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AliAuthSDK/AlibabaAuthExt.framework/AlibabaAuthExt new file mode 100644 index 0000000..a54a3f0 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AliAuthSDK/AlibabaAuthExt.framework/AlibabaAuthExt differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AliAuthSDK/AlibabaAuthExt.framework/Headers/AlibabaAuthExt.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AliAuthSDK/AlibabaAuthExt.framework/Headers/AlibabaAuthExt.h new file mode 100644 index 0000000..a70dc95 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AliAuthSDK/AlibabaAuthExt.framework/Headers/AlibabaAuthExt.h @@ -0,0 +1,13 @@ +// +// AlibabaAuthExt.h +// AlibabaAuthSDK +// +// Created by Bangzhe Liu on 9/9/16. +// Copyright © 2016 alibaba. All rights reserved. +// + +#import + +@interface AlibabaAuthExt : NSObject + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AliAuthSDK/AlibabaAuthExt.framework/Info.plist b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AliAuthSDK/AlibabaAuthExt.framework/Info.plist new file mode 100644 index 0000000..3dc5a26 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AliAuthSDK/AlibabaAuthExt.framework/Info.plist @@ -0,0 +1,50 @@ + + + + + BuildMachineOSBuild + 19G2021 + CFBundleDevelopmentRegion + en + CFBundleExecutable + AlibabaAuthExt + CFBundleIdentifier + com.taobao.AlibabaAuthExt + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + AlibabaAuthExt + CFBundlePackageType + FMWK + CFBundleShortVersionString + 1.1.0.43-bc-SNAPSHOT + CFBundleSignature + ???? + CFBundleSupportedPlatforms + + iPhoneOS + + DTCompiler + com.apple.compilers.llvm.clang.1_0 + DTPlatformBuild + 18B79 + DTPlatformName + iphoneos + DTPlatformVersion + 14.2 + DTSDKBuild + 18B79 + DTSDKName + iphoneos14.2 + DTXcode + 1220 + DTXcodeBuild + 12B45b + MinimumOSVersion + 7.0 + UIDeviceFamily + + 1 + + + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AliAuthSDK/AlibabaAuthSDK.framework/AlibabaAuthSDK b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AliAuthSDK/AlibabaAuthSDK.framework/AlibabaAuthSDK new file mode 100644 index 0000000..c2d4c0e Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AliAuthSDK/AlibabaAuthSDK.framework/AlibabaAuthSDK differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AliAuthSDK/AlibabaAuthSDK.framework/AlibabaAuthSDK.bundle/alibaba_auth_sdk.png b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AliAuthSDK/AlibabaAuthSDK.framework/AlibabaAuthSDK.bundle/alibaba_auth_sdk.png new file mode 100644 index 0000000..573541a --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AliAuthSDK/AlibabaAuthSDK.framework/AlibabaAuthSDK.bundle/alibaba_auth_sdk.png @@ -0,0 +1 @@ +0 diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AliAuthSDK/AlibabaAuthSDK.framework/AlibabaAuthSDK.bundle/alimember_navbar_left@2x.png b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AliAuthSDK/AlibabaAuthSDK.framework/AlibabaAuthSDK.bundle/alimember_navbar_left@2x.png new file mode 100644 index 0000000..4aa9b6b Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AliAuthSDK/AlibabaAuthSDK.framework/AlibabaAuthSDK.bundle/alimember_navbar_left@2x.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AliAuthSDK/AlibabaAuthSDK.framework/Info.plist b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AliAuthSDK/AlibabaAuthSDK.framework/Info.plist new file mode 100644 index 0000000..c50859e --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AliAuthSDK/AlibabaAuthSDK.framework/Info.plist @@ -0,0 +1,50 @@ + + + + + BuildMachineOSBuild + 19G2021 + CFBundleDevelopmentRegion + en + CFBundleExecutable + AlibabaAuthSDK + CFBundleIdentifier + com.taobao.AlibabaAuthSDK + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + AlibabaAuthSDK + CFBundlePackageType + FMWK + CFBundleShortVersionString + 1.1.0.43-bc-SNAPSHOT + CFBundleSignature + ???? + CFBundleSupportedPlatforms + + iPhoneOS + + DTCompiler + com.apple.compilers.llvm.clang.1_0 + DTPlatformBuild + 18B79 + DTPlatformName + iphoneos + DTPlatformVersion + 14.2 + DTSDKBuild + 18B79 + DTSDKName + iphoneos14.2 + DTXcode + 1220 + DTXcodeBuild + 12B45b + MinimumOSVersion + 7.0 + UIDeviceFamily + + 1 + + + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeBaseContainer.framework/AlibcTradeBaseContainer b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeBaseContainer.framework/AlibcTradeBaseContainer new file mode 100644 index 0000000..b843770 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeBaseContainer.framework/AlibcTradeBaseContainer differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeBaseContainer.framework/Headers/AlibcBaseContainer.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeBaseContainer.framework/Headers/AlibcBaseContainer.h new file mode 100644 index 0000000..093efb9 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeBaseContainer.framework/Headers/AlibcBaseContainer.h @@ -0,0 +1,22 @@ +/* + * AlibcBaseContainer.h + * + * 阿里百川电商 + * 项目名称:阿里巴巴电商 AlibcTradeBaseContainer + * 版本号:5.0.0.0 + * 发布时间:2020-01-03 + * 开发团队:阿里巴巴百川 + * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) + * Copyright (c) 2016-2020 阿里巴巴-淘宝-百川. All rights reserved. + */ + +#import +#import "AlibcTradeContainerProtocol.h" + +NS_ASSUME_NONNULL_BEGIN + +@interface AlibcBaseContainer : NSObject + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeBaseContainer.framework/Headers/AlibcTradeBaseContainer.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeBaseContainer.framework/Headers/AlibcTradeBaseContainer.h new file mode 100644 index 0000000..0657021 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeBaseContainer.framework/Headers/AlibcTradeBaseContainer.h @@ -0,0 +1,34 @@ +/* + * AlibcTradeBaseContainer.h + * + * 阿里百川电商 + * 项目名称:阿里巴巴电商 AlibcTradeBaseContainer + * 版本号:5.0.0.0 + * 发布时间:2020-01-03 + * 开发团队:阿里巴巴百川 + * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) + * Copyright (c) 2016-2020 阿里巴巴-淘宝-百川. All rights reserved. + */ + +#import + +//! Project version number for AlibcTradeBaseContainer. +FOUNDATION_EXPORT double AlibcTradeBaseContainerVersionNumber; + +//! Project version string for AlibcTradeBaseContainer. +FOUNDATION_EXPORT const unsigned char AlibcTradeBaseContainerVersionString[]; + +// In this header, you should import all the public headers of your framework using statements like #import + +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeBaseContainer.framework/Headers/AlibcTradeContainer4ContainerBridgeEventListenerProtocol.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeBaseContainer.framework/Headers/AlibcTradeContainer4ContainerBridgeEventListenerProtocol.h new file mode 100644 index 0000000..8bd8930 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeBaseContainer.framework/Headers/AlibcTradeContainer4ContainerBridgeEventListenerProtocol.h @@ -0,0 +1,25 @@ +/* + * AlibcTradeContainer4ContainerBridgeEventListenerProtocol.h + * + * 阿里百川电商 + * 项目名称:阿里巴巴电商 AlibcTradeBaseContainer + * 版本号:5.0.0.0 + * 发布时间:2020-01-03 + * 开发团队:阿里巴巴百川 + * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) + * Copyright (c) 2016-2020 阿里巴巴-淘宝-百川. All rights reserved. + */ + +#import +#import "AlibcTradeContainerBridgeEventContextModel.h" +#import "AlibcTradeContainerEventListenerBaseProtocol.h" + +NS_ASSUME_NONNULL_BEGIN + +@protocol AlibcTradeContainer4ContainerBridgeEventListenerProtocol + +- (void)handleContainerBridgeEvent:(AlibcTradeContainerBridgeEventContextModel *)model callBack:(void (^)(AlibcTradeContainerBridgeEventHandleResult *result))callback; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeBaseContainer.framework/Headers/AlibcTradeContainerAppInfoModel.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeBaseContainer.framework/Headers/AlibcTradeContainerAppInfoModel.h new file mode 100644 index 0000000..e01ac1f --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeBaseContainer.framework/Headers/AlibcTradeContainerAppInfoModel.h @@ -0,0 +1,25 @@ +/* + * AlibcTradeContainerAppInfoModel.h + * + * 阿里百川电商 + * 项目名称:阿里巴巴电商 AlibcTradeBaseContainer + * 版本号:5.0.0.0 + * 发布时间:2020-01-03 + * 开发团队:阿里巴巴百川 + * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) + * Copyright (c) 2016-2020 阿里巴巴-淘宝-百川. All rights reserved. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface AlibcTradeContainerAppInfoModel : NSObject + +@property (nonatomic,copy)NSString *appName; +@property (nonatomic,copy)NSString *appVersion; +@property (nonatomic,copy)NSDictionary *extParams; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeBaseContainer.framework/Headers/AlibcTradeContainerBridgeEventContextModel.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeBaseContainer.framework/Headers/AlibcTradeContainerBridgeEventContextModel.h new file mode 100644 index 0000000..92eabea --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeBaseContainer.framework/Headers/AlibcTradeContainerBridgeEventContextModel.h @@ -0,0 +1,35 @@ +/* + * AlibcTradeContainerBridgeEventContextModel.h + * + * 阿里百川电商 + * 项目名称:阿里巴巴电商 AlibcTradeBaseContainer + * 版本号:5.0.0.0 + * 发布时间:2020-01-03 + * 开发团队:阿里巴巴百川 + * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) + * Copyright (c) 2016-2020 阿里巴巴-淘宝-百川. All rights reserved. + */ + +#import +#import "AlibcTradeContainerContextModel.h" + +NS_ASSUME_NONNULL_BEGIN +@interface AlibcTradeContainerBridgeEventHandleResult : NSObject + +@property (nonatomic,strong)NSError *error; +@property (nonatomic,copy)NSDictionary *resultDataDic; + +@end + + +@interface AlibcTradeContainerBridgeEventContextModel : NSObject + +@property (nonatomic,copy)NSString *eventName; +@property (nonatomic,copy)NSDictionary *paramDic; +@property (nonatomic,copy)NSString *sourceType;// h5、miniapp + +@property (nonatomic,strong,nullable) AlibcTradeContainerContextModel * containerContext; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeBaseContainer.framework/Headers/AlibcTradeContainerContextModel.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeBaseContainer.framework/Headers/AlibcTradeContainerContextModel.h new file mode 100644 index 0000000..4dce3d7 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeBaseContainer.framework/Headers/AlibcTradeContainerContextModel.h @@ -0,0 +1,86 @@ +/* + * AlibcTradeContainerContextModel.h + * + * 阿里百川电商 + * 项目名称:阿里巴巴电商 AlibcTradeBaseContainer + * 版本号:5.0.0.0 + * 发布时间:2020-01-03 + * 开发团队:阿里巴巴百川 + * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) + * Copyright (c) 2016-2020 阿里巴巴-淘宝-百川. All rights reserved. + */ + +#import +#import +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface AlibcTradeContainerContextModel : NSObject + +@property (nonatomic,weak)UIViewController *parentViewController; +@property (nonatomic,copy)NSString *url; +@property (nonatomic,copy)NSString *containerTag; +@property (nonatomic,copy)NSString *originalUrl; +@property (nonatomic,assign)BOOL isiFrame;// 是否为ifame web专用 + +// 用户默认唤起目标客户端 +@property(nonatomic, strong) NSString *linkKey; + +/** + 唤起阿里App失败处理模式 默认唤端失败会拉起对应AliApp下载页 + */ +@property(nonatomic, assign) AlibcOpenByAliAppFailedMode failMode; + +@property(nonatomic, strong) NSString *backUrl; + +/** + 媒体自定义降级url;注 failMode 需要设置 AlibcOpenInAppByCustomerDegradeUrl + */ +@property(nonatomic, copy)NSString *degradeUrl; + +/** 使用百川webView支持push、present两种方式打开 默认为 present webView */ +@property(nonatomic, assign)BOOL isPushBCWebView; + +/** + 淘客参数 + */ +@property(nonatomic,strong)id taokeParams; + +@property(nonatomic,strong) NSDictionary *bizExtParams; + + +@property(nonatomic,strong) NSDictionary *frontParam; + +/** + 业务参数 + */ +@property(nonatomic,strong)NSDictionary* bizParams; + +/** 链路跟踪参数 */ +@property(nonatomic,strong)NSDictionary *trackParam; + +/** + 扩展参数 + */ +@property(nonatomic,strong)NSDictionary *extParam; + +/** 套件类型 */ +@property (nonatomic,copy)NSString *suitType; +@property (nonatomic,copy)NSString *suiteCode; + +/** 页面类型 */ +@property (nonatomic,copy)NSString *pageType; +@property (nonatomic,copy)NSString *pageCode; + + +/// @brief 单词链路 +@property (nonatomic,copy) NSString *recoveryId; + +/// @brief 唤端前的百川出错状态 +@property (nonatomic,assign) ALIBCLinkErrorCode linkErrorCode; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeBaseContainer.framework/Headers/AlibcTradeContainerDataSource.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeBaseContainer.framework/Headers/AlibcTradeContainerDataSource.h new file mode 100644 index 0000000..f131f01 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeBaseContainer.framework/Headers/AlibcTradeContainerDataSource.h @@ -0,0 +1,30 @@ +/* + * AlibcTradeContainerDataSource.h + * + * 阿里百川电商 + * 项目名称:阿里巴巴电商 AlibcTradeBaseContainer + * 版本号:5.0.0.0 + * 发布时间:2020-01-03 + * 开发团队:阿里巴巴百川 + * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) + * Copyright (c) 2016-2020 阿里巴巴-淘宝-百川. All rights reserved. + */ + +#import +#import "AlibcTradeContainerProtocol.h" + +NS_ASSUME_NONNULL_BEGIN + +@interface AlibcTradeContainerDataSource : NSObject + ++ (instancetype)sharedInstance; + +- (void)addContainer:(id)container; + +- (void)removeContainer:(id)container; + +- (NSMutableArray >*)getTradeContainerList; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeBaseContainer.framework/Headers/AlibcTradeContainerEventListenerBaseProtocol.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeBaseContainer.framework/Headers/AlibcTradeContainerEventListenerBaseProtocol.h new file mode 100644 index 0000000..a574f20 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeBaseContainer.framework/Headers/AlibcTradeContainerEventListenerBaseProtocol.h @@ -0,0 +1,23 @@ +/* + * AlibcTradeContainerEventListenerBaseProtocol.h + * + * 阿里百川电商 + * 项目名称:阿里巴巴电商 AlibcTradeBaseContainer + * 版本号:5.0.0.0 + * 发布时间:2020-01-03 + * 开发团队:阿里巴巴百川 + * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) + * Copyright (c) 2016-2020 阿里巴巴-淘宝-百川. All rights reserved. + */ + +#import +#import "AlibcTradeContainerContextModel.h" + +NS_ASSUME_NONNULL_BEGIN + +@protocol AlibcTradeContainerEventListenerBaseProtocol + + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeBaseContainer.framework/Headers/AlibcTradeContainerLifeCycleEventListenerProtocol.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeBaseContainer.framework/Headers/AlibcTradeContainerLifeCycleEventListenerProtocol.h new file mode 100644 index 0000000..84c47cf --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeBaseContainer.framework/Headers/AlibcTradeContainerLifeCycleEventListenerProtocol.h @@ -0,0 +1,48 @@ +/* + * AlibcTradeContainerLifeCycleEventListenerProtocol.h + * + * 阿里百川电商 + * 项目名称:阿里巴巴电商 AlibcTradeBaseContainer + * 版本号:5.0.0.0 + * 发布时间:2020-01-03 + * 开发团队:阿里巴巴百川 + * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) + * Copyright (c) 2016-2020 阿里巴巴-淘宝-百川. All rights reserved. + */ + +#import +#import "AlibcTradeContainerEventListenerBaseProtocol.h" + +NS_ASSUME_NONNULL_BEGIN + +@protocol AlibcTradeContainerLifeCycleEventListenerProtocol + +/** +正在启动 +*/ +- (void)containerWillOpen:(AlibcTradeContainerContextModel *)context; + +/** +容器已启动 +*/ +- (void)containerDidOpen:(AlibcTradeContainerContextModel *)context; + +/** +容器准备销毁 +*/ +- (void)containerWillClose:(AlibcTradeContainerContextModel *)context; + +/** +容器已销毁 +*/ +- (void)containerDidClose:(AlibcTradeContainerContextModel *)context; + +/** +容器初始化失败 +*/ +- (void)containerInitFailed:(AlibcTradeContainerContextModel *)context; + + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeBaseContainer.framework/Headers/AlibcTradeContainerLoadUrlEventListenerProtocol.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeBaseContainer.framework/Headers/AlibcTradeContainerLoadUrlEventListenerProtocol.h new file mode 100644 index 0000000..1bb0444 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeBaseContainer.framework/Headers/AlibcTradeContainerLoadUrlEventListenerProtocol.h @@ -0,0 +1,23 @@ +/* + * AlibcTradeContainerLoadUrlEventListenerProtocol.h + * + * 阿里百川电商 + * 项目名称:阿里巴巴电商 AlibcTradeBaseContainer + * 版本号:5.0.0.0 + * 发布时间:2020-01-03 + * 开发团队:阿里巴巴百川 + * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) + * Copyright (c) 2016-2020 阿里巴巴-淘宝-百川. All rights reserved. + */ + +#import +#import "AlibcTradeContainerEventListenerBaseProtocol.h" +#import "AlibcTradeContainerProcessUrlResult.h" + +typedef void (^AlibcLoadUrlEventCompletion)(AlibcTradeContainerProcessUrlResult *result); + +@protocol AlibcTradeContainerLoadUrlEventHandleProtocol + +- (BOOL)processLoadingUrl:(AlibcTradeContainerContextModel *)context completion:(AlibcLoadUrlEventCompletion)completion; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeBaseContainer.framework/Headers/AlibcTradeContainerPageLifeCycleEventListenerProtocol.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeBaseContainer.framework/Headers/AlibcTradeContainerPageLifeCycleEventListenerProtocol.h new file mode 100644 index 0000000..48ee239 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeBaseContainer.framework/Headers/AlibcTradeContainerPageLifeCycleEventListenerProtocol.h @@ -0,0 +1,57 @@ +/* + * AlibcTradeContainerPageLifeCycleEventListenerProtocol.h + * + * 阿里百川电商 + * 项目名称:阿里巴巴电商 AlibcTradeBaseContainer + * 版本号:5.0.0.0 + * 发布时间:2020-01-03 + * 开发团队:阿里巴巴百川 + * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) + * Copyright (c) 2016-2020 阿里巴巴-淘宝-百川. All rights reserved. + */ + +#import +#import "AlibcTradeContainerEventListenerBaseProtocol.h" + +NS_ASSUME_NONNULL_BEGIN + +@protocol AlibcTradeContainerPageLifeCycleEventListenerProtocol + +/** + 页面将要加载 +*/ +- (void)pageWillLoad:(AlibcTradeContainerContextModel *)context; + +/** + 页面加载完成 +*/ +- (void)pageDidLoad:(AlibcTradeContainerContextModel *)context; + +/** + 页面加载失败 +*/ +- (void)pageLoadFailed:(AlibcTradeContainerContextModel *)context; + +/** + 页面将要展现 +*/ +- (void)pageWillAppear:(AlibcTradeContainerContextModel *)context; + +/** + 页面已经展现 +*/ +- (void)pageDidAppear:(AlibcTradeContainerContextModel *)context; + +/** + 页面将要关闭 +*/ +- (void)pageWillDisAppear:(AlibcTradeContainerContextModel *)context; + +/** + 页面已经关闭 +*/ +- (void)pageDidDisAppear:(AlibcTradeContainerContextModel *)context; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeBaseContainer.framework/Headers/AlibcTradeContainerProcessUrlResult.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeBaseContainer.framework/Headers/AlibcTradeContainerProcessUrlResult.h new file mode 100644 index 0000000..7d15fcf --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeBaseContainer.framework/Headers/AlibcTradeContainerProcessUrlResult.h @@ -0,0 +1,47 @@ +/* + * AlibcTradeContainerProcessUrlResult.h + * + * 阿里百川电商 + * 项目名称:阿里巴巴电商 AlibcTradeBaseContainer + * 版本号:5.0.0.0 + * 发布时间:2020-01-03 + * 开发团队:阿里巴巴百川 + * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) + * Copyright (c) 2016-2020 阿里巴巴-淘宝-百川. All rights reserved. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface AlibcTradeContainerProcessUrlResult : NSObject + +/** + 是否已被其他容器处理 + */ +@property (nonatomic,assign)BOOL isHandled; + + +/** + 是否需要刷新 + */ +@property (nonatomic,assign)BOOL isNeedReload; + +/** + 是否需要smartGoBack + */ +@property (nonatomic,assign)BOOL isNeedGoBack; + +/** + url是否已被更改 + */ +@property (nonatomic,assign)BOOL isChangedUrl; + +/** + 处理后的url + */ +@property (nonatomic,copy)NSURL *resultUrl; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeBaseContainer.framework/Headers/AlibcTradeContainerProtocol.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeBaseContainer.framework/Headers/AlibcTradeContainerProtocol.h new file mode 100644 index 0000000..47d5867 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeBaseContainer.framework/Headers/AlibcTradeContainerProtocol.h @@ -0,0 +1,117 @@ +/* + * AlibcTradeContainerProtocol.h + * + * 阿里百川电商 + * 项目名称:阿里巴巴电商 AlibcTradeBaseContainer + * 版本号:5.0.0.0 + * 发布时间:2020-01-03 + * 开发团队:阿里巴巴百川 + * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) + * Copyright (c) 2016-2020 阿里巴巴-淘宝-百川. All rights reserved. + */ + +#import +#import +#import "AlibcTradeContainerAppInfoModel.h" +#import "AlibcTradeContainerContextModel.h" +#import "AlibcTradeContainerEventListenerBaseProtocol.h" + +NS_ASSUME_NONNULL_BEGIN + +/** 容器当前状态 */ +typedef NS_ENUM (NSUInteger, AlibcContainerState) { + /** 容器未进行初始化 */ + AlibcContainerUnInit = 0, + /** 容器初始化当中 */ + AlibcContainerIniting = 1, + /** 容器初始化完成 */ + AlibcContainerInitSucc = 2, + /** 容器初始化失败 */ + AlibcContainerInitFailed = 3 +}; + +@protocol AlibcTradeContainerProtocol + +/** + 初始化容器 + */ +@required +- (void)initConatinerWithData:(NSDictionary *)data; + +/** + 容器唯一标识 + */ +@required +- (NSString *)conatinerTag; + +/** + 设置容器环境参数 + */ +@required +- (void)setContainerEnv:(NSString *)env; + +/** + 返回容器状态 + */ +@required +- (AlibcContainerState)containerState; + +/** + 加载内容 + */ +@required +- (BOOL)loadUrlWithContext:(AlibcTradeContainerContextModel *)context; + +/** + 刷新容器 + */ +@required +- (void)reload; + +/** + 关闭容器 + */ +@required +- (void)closeContainer; + +/** + 创建容器组件并返回 +*/ +@optional +- (void)loadComponent4Context:(AlibcTradeContainerContextModel *)context + callBack:(void (^)(NSError *error,UIViewController *componentVC))callBack; + +/** + 创建容器组件并返回 +*/ +@optional +- (void)loadNativeComponent4Context:(AlibcTradeContainerContextModel *)context + callBack:(void (^)(NSError *error,UIViewController *componentVC))callBack; + +/** + 设置AppInfo + */ +@optional +- (void)setAppInfo4Container:(AlibcTradeContainerAppInfoModel *)appInfoModel; + + +/** + SDK Setting + */ +@optional +- (void)setSDKSetting:(NSDictionary *)sdkSetting WithGroupName:(NSString *)groupName; + +/** + 在原容器中加载新URL + */ +@optional +- (void)loadNewUrlInBeforeContainerWithContext:(AlibcTradeContainerContextModel *)context; + +/** + 容器页面回退 + */ +@optional +- (void)goback; +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeBaseContainer.framework/Headers/AlibcTradeESConfigModel.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeBaseContainer.framework/Headers/AlibcTradeESConfigModel.h new file mode 100644 index 0000000..702c263 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeBaseContainer.framework/Headers/AlibcTradeESConfigModel.h @@ -0,0 +1,66 @@ +/* + * AlibcTradeESConfigModel.h + * + * 阿里百川电商 + * 项目名称:阿里巴巴电商 AlibcTradeBaseContainer + * 版本号:5.0.0.0 + * 发布时间:2020-01-03 + * 开发团队:阿里巴巴百川 + * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) + * Copyright (c) 2016-2020 阿里巴巴-淘宝-百川. All rights reserved. + */ + +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface AlibcTradeESBaseModel : AlibcJSONModel + +@property(nonatomic,copy)NSString *code; +@property(nonatomic,copy)NSString *baseUrl; +@property(nonatomic,copy)NSString *type; +@property(nonatomic,copy)NSString *version; +@property(nonatomic,copy)NSString *appId; + +@end + +/// @brief 套件页面模块 +@interface AlibcTradeESDynamicPluginModel : AlibcJSONModel + +@property(nonatomic,copy)NSString *appId; +@property(nonatomic,copy)NSString *version; + +@end + +/// @brief 套件页面 +@interface AlibcTradeESFuncsConfigModel : AlibcTradeESBaseModel + +@property(nonatomic,copy)NSString *appType; +@property(nonatomic,copy)NSArray *dynamicPlugins; + +@end + +/// @brief 套件 +@interface AlibcTradeESSuitConfigModel : AlibcTradeESBaseModel + +@property(nonatomic,copy)NSArray*funcs; + +@end + +@interface AlibcTradeESMiscModel:AlibcJSONModel + +@property (nonatomic,copy) NSString *logEnable; +@property (nonatomic,copy) NSString *logUrl; + +@end + +@interface AlibcTradeESConfigModel : AlibcJSONModel + +@property (nonatomic,copy) NSArray*suites; +@property (nonatomic,strong) AlibcTradeESMiscModel *misc; +@property (nonatomic,copy) NSString *sign; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeBaseContainer.framework/Headers/AlibcTradeImageLoaderProtocol.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeBaseContainer.framework/Headers/AlibcTradeImageLoaderProtocol.h new file mode 100644 index 0000000..32195ef --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeBaseContainer.framework/Headers/AlibcTradeImageLoaderProtocol.h @@ -0,0 +1,40 @@ +// +// AlibcTradeImageLoaderProtocol.h +// AlibcTradeBaseContainer +// +// Created by zhongweitao on 2020/3/10. +// + +#import +#import + +@protocol AlibcTradeImageOperationProtocol + +- (void)cancel; + +@end + +typedef NS_ENUM(NSInteger, AlibcTradeImageLoaderCacheType) { + AlibcTradeImageLoaderCacheTypeNone, + AlibcTradeImageLoaderCacheTypeDisk, + AlibcTradeImageLoaderCacheTypeMemory +}; + +@protocol AlibcTradeImageLoaderProtocol + +- (id)downloadImageWithURL:(NSURL *)imageUrl + frame:(CGRect)imageFrame + options:(NSDictionary *)options + progress:(void(^)(NSInteger receivedSize, NSInteger expectedSize))progressBlock + completed:(void(^)(UIImage *image, NSError *error, BOOL finished))completedBlock; + +@optional + +- (void)setImageView:(UIImageView *)imageView + withURL:(NSURL *)imageUrl + placeholder:(UIImage *)placeholder + options:(NSDictionary *)options + progress:(void(^)(NSInteger receivedSize, NSInteger expectedSize))progressBlock + completed:(void(^)(UIImage *image, NSError *error, AlibcTradeImageLoaderCacheType cacheType, NSURL *imageURL))completedBlock; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeBaseContainer.framework/Info.plist b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeBaseContainer.framework/Info.plist new file mode 100644 index 0000000..ce5f78a --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeBaseContainer.framework/Info.plist @@ -0,0 +1,51 @@ + + + + + BuildMachineOSBuild + 20D91 + CFBundleDevelopmentRegion + en + CFBundleExecutable + AlibcTradeBaseContainer + CFBundleIdentifier + com.aliTradeSDK.demoyishan.AlibcTradeBaseContainer + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + AlibcTradeBaseContainer + CFBundlePackageType + FMWK + CFBundleShortVersionString + 5.0.0.11 + CFBundleSupportedPlatforms + + iPhoneOS + + CFBundleVersion + 1 + DTCompiler + com.apple.compilers.llvm.clang.1_0 + DTPlatformBuild + 18B79 + DTPlatformName + iphoneos + DTPlatformVersion + 14.2 + DTSDKBuild + 18B79 + DTSDKName + iphoneos14.2 + DTXcode + 1220 + DTXcodeBuild + 12B45b + MinimumOSVersion + 9.0 + UIDeviceFamily + + 1 + 2 + + + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeBaseContainer.framework/Modules/module.modulemap b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeBaseContainer.framework/Modules/module.modulemap new file mode 100644 index 0000000..ea74676 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeBaseContainer.framework/Modules/module.modulemap @@ -0,0 +1,6 @@ +framework module AlibcTradeBaseContainer { + umbrella header "AlibcTradeBaseContainer.h" + + export * + module * { export * } +} diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/AlibcTradeCommonSDK b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/AlibcTradeCommonSDK new file mode 100644 index 0000000..58fbb9a Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/AlibcTradeCommonSDK differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcConfig.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcConfig.h new file mode 100644 index 0000000..9376d92 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcConfig.h @@ -0,0 +1,110 @@ +/* + * AlibcConfig.h + * + * 阿里百川电商 + * 项目名称:阿里巴巴电商 AlibcTradeCommonSDK + * 版本号:5.0.0.0 + * 发布时间:2020-01-03 + * 开发团队:阿里巴巴百川 + * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) + * Copyright (c) 2016-2020 阿里巴巴-淘宝-百川. All rights reserved. + */ + +#import +#import "AlibcOpenNativeFailedMode.h" + +#ifndef AlibcConfig_h +#define AlibcConfig_h + +#define YBHPSS @"ybhpss" //全链路打通数据参数 + +/** 环境,测试和预发,只有内网有效,外部使用只能用线上环境 */ +typedef NS_ENUM(NSInteger, AlibcEnvironment) { + /** 未定义环境 */ + AlibcEnvironmentNone = -1, + /** 测试环境 */ + AlibcEnvironmentDaily = 0, + /** 预发环境 */ + AlibcEnvironmentPreRelease, + /** 线上环境 */ + AlibcEnvironmentRelease +}; + +/** 日志级别 */ +typedef NS_ENUM(NSUInteger, AlibcLogLevel) { + AlibcLogLevelDebug = 0, + AlibcLogLevelInfo = 1, + AlibcLogLevelPerf = 2, + AlibcLogLevelWarn = 3, + AlibcLogLevelError = 4, +}; + +/** SDK当前状态 */ +typedef NS_ENUM(NSUInteger, AlibcSDKState) { + /** SDK未进行初始化 */ + AlibcSDKStateUnInit = 0, + /** SDK初始化当中 */ + AlibcSDKStateIniting = 1, + /** SDK初始化完成 */ + AlibcSDKStateInitSucc = 2, + /** SDK初始化失败 */ + AlibcSDKStateInitFailed = 3 +}; + +NS_ASSUME_NONNULL_BEGIN + +/** 配置 */ +@interface AlibcConfig : NSObject +/** sdk初始化标识 */ +@property(nonatomic, assign) AlibcSDKState sdkState; +/** sdk是否需要升级 */ +@property(nonatomic, assign) BOOL isNeedUpdateSDK; +/** sdk强制升级文案 */ +@property(nonatomic, copy) NSString *_Nullable errorMsg; +/** sdk是否允许唤端 */ +@property(nonatomic,assign)BOOL isAllowLinkTaobao; + +@property(atomic, assign) AlibcEnvironment environment; +@property(nonatomic, assign) AlibcLogLevel logLevel; +@property(nonatomic, strong) NSString *utdId; + +@property(nonatomic, strong) NSString *appKey; +@property(nonatomic, strong) NSString *appVersion; +@property(nonatomic, strong) NSString *appName; +@property(nonatomic, copy) NSString *bcUA; +@property(nonatomic, copy) NSString *extUserAgent; +@property(nonatomic, copy, readonly) NSString *sdkVersion; + +/** 百川ttid */ +@property(nonatomic, copy, readonly) NSString *ttid; +/** 渠道相关 */ +@property(nonatomic, copy, readwrite) NSString *channelName; +@property(nonatomic, copy, readwrite) NSString *channelType; +/* isvCode,tag*/ +@property(nonatomic, copy, readwrite) NSString *isvCode; + +@property(nonatomic, strong) NSString *openId; + + +/** 登录相关 */ +@property(nonatomic,assign, readwrite)double lastAutoLoginTime; +@property(nonatomic,assign,readwrite)NSInteger loginFailedCount; +@property(nonatomic,assign,readwrite)NSInteger loginRetryCount; + +@property (nonatomic, strong) NSDictionary *customUTParams; + ++ (instancetype)sharedConfig; + +/** 写入插件上下文 */ +- (void)setValue:(nullable id)value forKey:(NSString *)key forModule:(NSString *)module; + +/** 读取插件上下文 */ +- (id)valueForKey:(NSString *)key forModule:(NSString *)module; + +- (void)setDictionary:(NSDictionary *)dic forModule:(NSString *)module; + +@end + +NS_ASSUME_NONNULL_END + +#endif diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcImage.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcImage.h new file mode 100755 index 0000000..76cfe1d --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcImage.h @@ -0,0 +1,24 @@ +/* + * AlibcImage.h + * + * 阿里百川电商 + * 项目名称:阿里巴巴电商 AlibcTradeCommonSDK + * 版本号:5.0.0.0 + * 发布时间:2020-01-03 + * 开发团队:阿里巴巴百川 + * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) + * Copyright (c) 2016-2020 阿里巴巴-淘宝-百川. All rights reserved. + */ + +#import + +#define UIColorFromRGB(rgbValue) \ + [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16)) / 255.0 \ + green:((float)((rgbValue & 0xFF00) >> 8)) / 255.0 \ + blue:((float)(rgbValue & 0xFF)) / 255.0 \ + alpha:1.0] + +@interface AlibcImage : NSObject + ++ (UIImage *)imageNamed:(NSString *)name type:(NSString *)type bundle:(NSString *)bundleName; +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcJSON.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcJSON.h new file mode 100644 index 0000000..76f4372 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcJSON.h @@ -0,0 +1,51 @@ +/* + * AlibcJSON.h + * + * 阿里百川电商 + * 项目名称:阿里巴巴电商 AlibcTradeCommonSDK + * 版本号:5.0.0.0 + * 发布时间:2020-01-03 + * 开发团队:阿里巴巴百川 + * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) + * Copyright (c) 2016-2020 阿里巴巴-淘宝-百川. All rights reserved. + */ + +#import + +#ifndef AlibcJSON_h +#define AlibcJSON_h + +@interface AlibcJSON : NSObject + ++ (id)jsonDataToObject:(NSData *)jsonData class:(Class)clazz; + ++ (NSDictionary *)jsonDataToDictionary:(NSData *)jsonData; + ++ (NSArray *)jsonDataToArray:(NSData *)jsonData; + ++ (NSData *)objectToJsonData:(id)object; + + ++ (id)jsonStringToObject:(NSString *)jsonString class:(Class)clazz; + ++ (NSDictionary *)jsonStringToDictionary:(NSString *)jsonString; + ++ (NSArray *)jsonStringToArray:(NSString *)jsonString; + ++ (NSString *)objectToJsonString:(id)object; + ++ (NSString *)alibcObjectToJsonString:(id)object; + ++ (id)dictionaryToClass:(NSDictionary *)dictionary class:(Class)clazz; + ++ (id)asJsonableObject:(id)object; + +/** + * 修复直接将 JSON 字符串作为 js 使用时,\u2028 和 \u2029 导致 JS 报错的问题。 + * + * 一份额外的列表,尚未决定是否全部替换 [\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff] + */ ++ (NSString *)fixJSON2JSBug:(NSString *)json; +@end + +#endif diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcJSONModel.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcJSONModel.h new file mode 100755 index 0000000..6399be9 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcJSONModel.h @@ -0,0 +1,57 @@ +/* + * AlibcJSONModel.h + * + * 阿里百川电商 + * 项目名称:阿里巴巴电商 AlibcTradeCommonSDK + * 版本号:5.0.0.0 + * 发布时间:2020-01-03 + * 开发团队:阿里巴巴百川 + * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) + * Copyright (c) 2016-2020 阿里巴巴-淘宝-百川. All rights reserved. + */ + +#import +#import "NSArray+AlibcJSONModel.h" +#import "NSDictionary+AlibcJSONModel.h" +#import "AlibcJSONModelKeyMapper.h" +#import "AlibcJSONModelProperty.h" +#import "AlibcJSONModelError.h" + +/* + AlibcJSONModel是json model的基类,其存在的作用是实现model属性和json之间的映射,以及自动设置等工作,使得上层model只需要声明其属性,而无需知道这些属性如何进行设置的。 + + 因为json数据中有些key和objc中的一些关键字或者属性方法名存在冲突,所以引入了一个keyMapper的概念,把json的key和model的属性名建立一个映射。 + + model进行初始化的时候使用了一些objc rutime的功能,比如获取当前model的所有属性信息,然后再通过这些属性信息以及KVC的方式为其设置属性值。为了性能的考虑,将这些属性信息设置为model class object的关联对象,下次获取的时候直接从class object的关联对象中获取。 +*/ + +@interface AlibcJSONModel : NSObject + ++ (id)modelWithJSONDictionary:(NSDictionary *)dict; ++ (id)modelWithJSONDictionary:(NSDictionary *)dict error:(NSError **)error; + +- (id)initWithJSONDictionary:(NSDictionary *)dict; +- (id)initWithJSONDictionary:(NSDictionary *)dict error:(NSError **)error; + +- (void)updateWithJSONDictionary:(NSDictionary *)dict; + +- (NSDictionary *)toJSONDictionary; + +- (void)setTreatBoolAsStringWhenModelToJSON:(BOOL)treatBoolAsStringWhenModelToJSON; + ++ (AlibcJSONModelKeyMapper *)modelKeyMapper; + +//此Dictionary的key为json对应的字段名,value为Model对应的属性名 ++ (NSDictionary *)jsonToModelKeyMapDictionary; + + +//此Dictionary可以用来描述model容器中元素对应的类@{"propertyNameA":ClassA} ++ (NSDictionary *)modelContainerClassMapDictioanry; + +//返回主动忽略的属性名的列表 ++ (NSArray *)ignoredPropertyNames; + +//当strictMode为YES的时候,json dictionary中的数据类型如果无法转换成对应的属性类型,则此属性不被设置,默认为NO ++ (BOOL)strictMode; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcJSONModelError.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcJSONModelError.h new file mode 100755 index 0000000..8ec90b9 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcJSONModelError.h @@ -0,0 +1,27 @@ +/* + * AlibcJSONModelError.h + * + * 阿里百川电商 + * 项目名称:阿里巴巴电商 AlibcTradeCommonSDK + * 版本号:5.0.0.0 + * 发布时间:2020-01-03 + * 开发团队:阿里巴巴百川 + * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) + * Copyright (c) 2016-2020 阿里巴巴-淘宝-百川. All rights reserved. + */ + +#import + +extern NSString * const AlibcJSONModelErrorDomain; + +typedef NS_ENUM(int, AlibcJSONModelErrorCode) { + AlibcJSONModelErrorCodeNilInput = 1, + AlibcJSONModelErrorCodeDataInvalid = 2 +}; + +@interface AlibcJSONModelError : NSError + ++ (id)errorNilInput; ++ (id)errorDataInvalidWithDescription:(NSString *)description; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcJSONModelKeyMapper.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcJSONModelKeyMapper.h new file mode 100755 index 0000000..9914726 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcJSONModelKeyMapper.h @@ -0,0 +1,23 @@ +/* + * AlibcJSONModelKeyMapper.h + * + * 阿里百川电商 + * 项目名称:阿里巴巴电商 AlibcTradeCommonSDK + * 版本号:5.0.0.0 + * 发布时间:2020-01-03 + * 开发团队:阿里巴巴百川 + * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) + * Copyright (c) 2016-2020 阿里巴巴-淘宝-百川. All rights reserved. + */ + +#import + +@interface AlibcJSONModelKeyMapper : NSObject + +//映射字典自身的key为json的字段名,value为model的属性名 +- (id)initWithDictionary:(NSDictionary *)dict; + +- (NSString *)modelKeyMappedFromJsonKey:(NSString *)jsonKey; +- (NSString *)jsonKeyMappedFromModelKey:(NSString *)modelKey; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcJSONModelProperty.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcJSONModelProperty.h new file mode 100755 index 0000000..89d1248 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcJSONModelProperty.h @@ -0,0 +1,60 @@ +/* + * AlibcJSONModelProperty.h + * + * 阿里百川电商 + * 项目名称:阿里巴巴电商 AlibcTradeCommonSDK + * 版本号:5.0.0.0 + * 发布时间:2020-01-03 + * 开发团队:阿里巴巴百川 + * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) + * Copyright (c) 2016-2020 阿里巴巴-淘宝-百川. All rights reserved. + */ + +#import +/* + 相关知识请参见Runtime文档 + Type Encodings https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/ObjCRuntimeGuide/Articles/ocrtTypeEncodings.html#//apple_ref/doc/uid/TP40008048-CH100-SW1 + Property Type String https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/ObjCRuntimeGuide/Articles/ocrtPropertyIntrospection.html#//apple_ref/doc/uid/TP40008048-CH101-SW6 + */ +typedef NS_ENUM(NSInteger, AlibcJSONModelPropertyValueType) { + AlibcClassPropertyValueTypeNone = 0, + AlibcClassPropertyTypeChar, + AlibcClassPropertyTypeInt, + AlibcClassPropertyTypeShort, + AlibcClassPropertyTypeLong, + AlibcClassPropertyTypeLongLong, + AlibcClassPropertyTypeUnsignedChar, + AlibcClassPropertyTypeUnsignedInt, + AlibcClassPropertyTypeUnsignedShort, + AlibcClassPropertyTypeUnsignedLong, + AlibcClassPropertyTypeUnsignedLongLong, + AlibcClassPropertyTypeFloat, + AlibcClassPropertyTypeDouble, + AlibcClassPropertyTypeBool, + AlibcClassPropertyTypeVoid, + AlibcClassPropertyTypeCharString, + AlibcClassPropertyTypeObject, + AlibcClassPropertyTypeClassObject, + AlibcClassPropertyTypeSelector, + AlibcClassPropertyTypeArray, + AlibcClassPropertyTypeStruct, + AlibcClassPropertyTypeUnion, + AlibcClassPropertyTypeBitField, + AlibcClassPropertyTypePointer, + AlibcClassPropertyTypeUnknow +}; + +@interface AlibcJSONModelProperty : NSObject{ + @public + NSString *_name; + AlibcJSONModelPropertyValueType _valueType; + NSString *_typeName; + Class _objectClass; + NSArray *_objectProtocols; + Class _containerElementClass; + BOOL _isReadonly; +} + ++ (instancetype)propertyWithName:(NSString *)name typeString:(NSString *)typeString; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcLocalLogProtocol.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcLocalLogProtocol.h new file mode 100644 index 0000000..4d0f433 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcLocalLogProtocol.h @@ -0,0 +1,28 @@ +// +// AlibcLocalLogProtocol.h +// AlibcTradeCommonSDK +// +// Created by zhongweitao on 2020/7/6. +// + +#import + +@protocol AlibcLocalLogProtocol + +@optional +/// @brief 记录日志 +- (void)logLocalInfo:(NSString *)stage title:(NSString *)title status:(BOOL)status stable:(BOOL)stable detail:(NSDictionary *)detail; + +/// @brief 清理日志 +- (void)clearAllLocalLog; + +/// @brief 是否关闭自检工具(默认开启) +- (void)enableLocalDebug:(BOOL)enable; + +/// @brief 是否开启自动显示自检工具入口(默认关闭) +- (void)enableAutoShowDebug:(BOOL)enable; + +/// @brief 手动显示自检工具 +- (void)showLocalDebugTool:(UIViewController *)parentViewController; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcLog.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcLog.h new file mode 100644 index 0000000..d6c3c58 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcLog.h @@ -0,0 +1,147 @@ +/* + * AlibcLog.h + * + * 阿里百川电商 + * 项目名称:阿里巴巴电商 AlibcTradeCommonSDK + * 版本号:5.0.0.0 + * 发布时间:2020-01-03 + * 开发团队:阿里巴巴百川 + * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) + * Copyright (c) 2016-2020 阿里巴巴-淘宝-百川. All rights reserved. + */ + +#import +#import + +typedef NS_OPTIONS(NSUInteger, ALIBCLinkErrorCode) { + ALIBCLinkErrorCodeNoSuite = 1 << 0, // 不在套件内唤端 + ALIBCLinkErrorCodePageInterceptor = 1 << 1, // 页面拦截唤端 + ALIBCLinkErrorCodeTinyAppLaunchFail = 1 << 2, // 启动失败唤端() + ALIBCLinkErrorCodeTradePluginLoadFail = 1 << 3, // 商业化插件加载失败(未分佣) + ALIBCLinkErrorCodeTradePluginJSError = 1 << 4, // 商业化插件执行失败(未分佣) + ALIBCLinkErrorCodeLiveCps = 1 << 5, // 没有直播间的分佣跟踪(未分佣) + ALIBCLinkErrorCodeDetailCps = 1 << 6, // 没有商品详情的分佣跟踪(未分佣) +}; + +#define kAlibcLinkErrorCodeKey @"bcLinkCode" + +#ifndef AlibcLog_h +#define AlibcLog_h + +#ifdef DEBUG +#define BCAssert(condition, info) \ +do { \ +@try { \ +if (!(condition)) { \ +if(tbim_check_debugger() == 0){ \ +TLOG_ERROR(info)\ +[NSException raise:@"Assert" format:@"%@",info];} \ +else {TLOG_ALERT(info)} \ +} \ +}\ +@catch (NSException *exception) {} \ +} while (0); +#else +#define BCAssert(condition, info) \ +do { \ +if (!(condition)) {TLOG_ERROR(info)}\ +} while (0); +#endif + +#ifdef DEBUG +#define BCAssert_F(condition, frmt, ...) \ +do { \ +@try { \ +if (!(condition)) { \ +if(tbim_check_debugger() == 0){ \ +TLOG_ERROR_F(frmt,##__VA_ARGS__) \ +[NSException raise:@"Assert" format:@"Assert"];} \ +else {TLOG_ALERT_F(frmt,##__VA_ARGS__)} \ +} \ +}\ +@catch (NSException *exception) {} \ +} while (0); +#else +#define BCAssert_F(condition, frmt, ...) \ +do { \ +if (!(condition)) { \ +TLOG_ERROR_F(frmt,##__VA_ARGS__) \ +} \ +} while (0); +#endif + +#define TLOG_ALERT(info) [[AlibcLog GetInstance] showAssertAlert:__FILE__ funcName:__func__ line: __LINE__ msg:info]; +#define TLOG_ALERT_F(fmt, ...) [[AlibcLog GetInstance] showAssertAlert:__FILE__ funcName:__func__ line: __LINE__ msg:[NSString stringWithFormat:fmt, ##__VA_ARGS__]]; + + +#define TLOG_DEBUG_EMPTY [[AlibcLog GetInstance] logDebugMsg:__FILE__ funcName:__func__ line: __LINE__ msg:@""]; +#define TLOG_INFO_EMPTY [[AlibcLog GetInstance] logInfoMsg:__FILE__ funcName:__func__ line: __LINE__ msg:@""]; +#define TLOG_WARN_EMPTY [[AlibcLog GetInstance] logWarnMsg:__FILE__ funcName:__func__ line: __LINE__ msg:@""]; +#define TLOG_ERROR_EMPTY [[AlibcLog GetInstance] logErrorMsg:__FILE__ funcName:__func__ line: __LINE__ msg:@""]; + +#define TLOG_DEBUG(info) [[AlibcLog GetInstance] logDebugMsg:__FILE__ funcName:__func__ line:__LINE__ msg:info]; +#define TLOG_INFO(info) [[AlibcLog GetInstance] logInfoMsg:__FILE__ funcName:__func__ line:__LINE__ msg:info]; +#define TLOG_WARN(info) [[AlibcLog GetInstance] logWarnMsg:__FILE__ funcName:__func__ line: __LINE__ msg:info]; +#define TLOG_ERROR(info) [[AlibcLog GetInstance] logErrorMsg:__FILE__ funcName:__func__ line: __LINE__ msg:info]; + +#define TLOG_DEBUG_F(fmt, ...) [[AlibcLog GetInstance] logDebugMsg:__FILE__ funcName:__func__ line: __LINE__ msg:[NSString stringWithFormat:fmt, ##__VA_ARGS__]]; +#define TLOG_INFO_F(fmt, ...) [[AlibcLog GetInstance] logInfoMsg:__FILE__ funcName:__func__ line: __LINE__ msg:[NSString stringWithFormat:fmt, ##__VA_ARGS__]]; +#define TLOG_WARN_F(fmt, ...) [[AlibcLog GetInstance] logWarnMsg:__FILE__ funcName:__func__ line: __LINE__ msg:[NSString stringWithFormat:fmt, ##__VA_ARGS__]]; +#define TLOG_ERROR_F(fmt, ...) [[AlibcLog GetInstance] logErrorMsg:__FILE__ funcName:__func__ line: __LINE__ msg:[NSString stringWithFormat:fmt, ##__VA_ARGS__]]; + + +int tbim_check_debugger(void); + + +@interface AlibcLog : NSObject + ++ (instancetype)GetInstance; + +- (void)showAssertAlert:(const char *)file funcName:(const char *)func line:(int)line msg:(NSString *)msg; + +- (void)logDebugMsg:(const char *)file funcName:(const char *)func line:(int)line msg:(NSString *)msg; + +- (void)logInfoMsg:(const char *)file funcName:(const char *)func line:(int)line msg:(NSString *)msg; + +- (void)logWarnMsg:(const char *)file funcName:(const char *)func line:(int)line msg:(NSString *)msg; + +- (void)logErrorMsg:(const char *)file funcName:(const char *)func line:(int)line msg:(NSString *)msg; + +- (void)setDebugLogOpen:(BOOL)isDebugLogOpen; + +- (void)setFileLogEnable:(BOOL)enable; + +- (void)updateFileHandle; + +/// @brief 清理当前链路的日志 +- (void)clearAllLocalLog; + +/// @brief Suite 运行时 +- (void)logLocalSuiteRuntime:(NSString *)title status:(BOOL)status detail:(NSDictionary *)detail; + +/// @brief OpenSuite (单次链路) +- (void)logLocalOpenSuite:(NSString *)title status:(BOOL)status detail:(NSDictionary *)detail; + +/// @brief 百川配置(基础配置、套件配置) +- (void)logLocalSDKConfig:(NSString *)title status:(BOOL)status detail:(NSDictionary *)detail; + +/// @brief 百川SDK初始化 +- (void)logLocalSDKInit:(NSString *)title status:(BOOL)status detail:(NSDictionary *)detail; + +- (void)logLocalInfo:(NSString *)stage title:(NSString *)title status:(BOOL)status stable:(BOOL)stable detail:(NSDictionary *)detail; + +/// @brief 是否关闭自检工具(默认开启) +- (void)enableLocalDebug:(BOOL)enable; + +/// @brief 是否开启自动显示自检工具入口(默认关闭) +- (void)enableAutoShowDebug:(BOOL)enable; + +/// @brief 手动显示自检工具 +- (void)showLocalDebugTool:(UIViewController *)parentViewController; + +/// @brief 上传当日日志文件到指定地址 +- (void)uploadLogFile4Url:(NSString *)logUrl; + +@end + +#endif diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcMtopBridge.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcMtopBridge.h new file mode 100644 index 0000000..f21814e --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcMtopBridge.h @@ -0,0 +1,59 @@ +/* + * AlibcMtopBridge.h + * + * 阿里百川电商 + * 项目名称:阿里巴巴电商 AlibcTradeCommonSDK + * 版本号:5.0.0.0 + * 发布时间:2020-01-03 + * 开发团队:阿里巴巴百川 + * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) + * Copyright (c) 2016-2020 阿里巴巴-淘宝-百川. All rights reserved. + */ + +#import +#import +#import "AlibcConfig.h" + +#ifndef AlibcMtopBridge_h +#define AlibcMtopBridge_h + +@class AlibcNetPacket; +@class MtopError; +@class AlibcNetError; + +@interface AlibcMtopBridge : NSObject + ++ (BOOL)isAvailable; + ++ (void)openSDKSwitchLog:(BOOL)logCtr; + ++ (void)initMtop; + ++ (void)setEnvironment:(AlibcEnvironment)env; + ++ (void)setTTID:(NSString *)ttid; + +@end + +@protocol AlibcMtopAdapter + +- (void)openSDKSwitchLog:(BOOL)logCtr; + +- (void)initMtop; + +- (BOOL)performSend:(AlibcNetPacket *)packet; + +- (AlibcNetError *)proccessMtopError:(MtopError *)sdkError; + +- (BOOL)shouldRetry:(NSError *)error; + +- (void)setTTID:(NSString *)ttid; + +- (void)setEnvironment:(AlibcEnvironment)env; + +@optional +- (BOOL)performJSSend:(AlibcNetPacket *)packet; + +@end + +#endif diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcMtopCmd.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcMtopCmd.h new file mode 100644 index 0000000..ee6ff07 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcMtopCmd.h @@ -0,0 +1,37 @@ +/* + * AlibcMtopCmd.h + * + * 阿里百川电商 + * 项目名称:阿里巴巴电商 AlibcTradeCommonSDK + * 版本号:5.0.0.0 + * 发布时间:2020-01-03 + * 开发团队:阿里巴巴百川 + * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) + * Copyright (c) 2016-2020 阿里巴巴-淘宝-百川. All rights reserved. + */ + +#import + +#ifndef AlibcMtopCmd_h +#define AlibcMtopCmd_h + +@interface AlibcMtopCmd : NSObject + +@property(nonatomic, strong) NSString *_Nonnull name; // mtop命令 +@property(nonatomic, strong) NSString *_Nonnull version; //版本,默认是@"1.0" +@property(nonatomic, assign) BOOL needLogin; //是否需要登录,默认值:NO +@property(nonatomic, assign) BOOL needAuth; //是否需要授权,默认值:NO +@property(nonatomic, assign) BOOL needWUA; //是否需要人机识别,默认是NO +@property(nonatomic, assign) BOOL needPost; +@property(nonatomic, assign) NSInteger sessionExpireType; // 0: AutologinAndManualLogin 1: AutoLoginOnly +@property(nonatomic, strong) NSDictionary * _Nullable extParams; +@property(nonatomic, strong) NSDictionary * _Nullable extHeaders; + +// +@property(nonatomic, copy) NSString * _Nullable ttid;// ttid + ++ (nonnull instancetype)cmd; + +@end + +#endif diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcMtopRequestHelp.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcMtopRequestHelp.h new file mode 100644 index 0000000..6b96794 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcMtopRequestHelp.h @@ -0,0 +1,96 @@ +/* + * AlibcMtopRequestHelp.h + * + * 阿里百川电商 + * 项目名称:阿里巴巴电商 AlibcTradeCommonSDK + * 版本号:5.0.0.0 + * 发布时间:2020-01-03 + * 开发团队:阿里巴巴百川 + * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) + * Copyright (c) 2016-2020 阿里巴巴-淘宝-百川. All rights reserved. + */ + +#import +#import "AlibcMtopCmd.h" +#import "AlibcNetError.h" +#import "AlibcConfig.h" + +#ifndef AlibcMtopRequestHelp_h +#define AlibcMtopRequestHelp_h + +//dataObj是mtop返回数据的data节点 +typedef void(^MtopRequestCallback)(AlibcNetError *_Nullable error, _Nullable id dataObj); + +typedef void(^MtopRequestJSCallback)(id _Nullable error, _Nullable id dataObj); + + +@interface AlibcMtopRequestHelp : NSObject +//uniqueKey长度大于0,会以cmd+uniqueKey作为值请求去重. +//NSDictionary里面可以包含基本的array,NSDictionary,内部会自己转换成string的 +//needLogin,needAuth不填,则默认都欧式NO +//version可以填nil,默认版本是1.0 + ++ (void)ProcessMtopRequest:(nonnull AlibcMtopCmd *)cmd + data:(nullable NSDictionary *)dict + complete:(nullable MtopRequestCallback)callback; + ++ (void)ProcessMtopRequest:(nonnull AlibcMtopCmd *)cmd + data:(nullable NSDictionary *)dict + uniqueKey:(nullable NSString *)uniqueKey + complete:(nullable MtopRequestCallback)callback; + +//这个接口专给组件用的 ++ (void)ProcessMtopRequest:(nonnull NSString *)cmdName + version:(nullable NSString *)version + data:(nullable NSDictionary *)dict + bizId:(nullable NSString *)bizId + uniqueKey:(nullable NSString *)uniqueKey + needLogin:(BOOL)needLogin + needAuth:(BOOL)needAuth + needWua:(BOOL)needWua + complete:(nullable MtopRequestCallback)callback; + +//这个接口专门给JSBridge调用的 ++ (void)ProcessMtopRequest:(nonnull NSString *)cmdName + version:(nullable NSString *)version + ttid:(nullable NSString *)ttid + data:(nullable NSDictionary *)dict + bizId:(nullable NSString *)bizId + uniqueKey:(nullable NSString *)uniqueKey + needLogin:(BOOL)needLogin + needAuth:(BOOL)needAuth + needWua:(BOOL)needWua + complete:(nullable MtopRequestCallback)callback; + ++ (void)ProcessJSMtopRequest:(nonnull NSString *)cmdName + version:(nullable NSString *)version + ttid:(nullable NSString *)ttid + data:(nullable NSDictionary *)dict + bizId:(nullable NSString *)bizId + uniqueKey:(nullable NSString *)uniqueKey + needLogin:(BOOL)needLogin + needAuth:(BOOL)needAuth + needWua:(BOOL)needWua + needPost:(BOOL)needPost + seessionExpireType:(NSInteger)seessionExpireType + complete:(nullable MtopRequestJSCallback)callback; + ++ (void)ProcessJSMtopRequest:(nonnull NSString *)cmdName + version:(nullable NSString *)version + ttid:(nullable NSString *)ttid + data:(nullable NSDictionary *)dict + extParams:(nullable NSDictionary *)extParmas + extHeaders:(nullable NSDictionary *)extHeaders + bizId:(nullable NSString *)bizId + uniqueKey:(nullable NSString *)uniqueKey + needLogin:(BOOL)needLogin + needAuth:(BOOL)needAuth + needWua:(BOOL)needWua + needPost:(BOOL)needPost + seessionExpireType:(NSInteger)seessionExpireType + complete:(nullable MtopRequestJSCallback)callback; + + +@end + +#endif diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcNetError.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcNetError.h new file mode 100644 index 0000000..e3d5715 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcNetError.h @@ -0,0 +1,55 @@ +/* + * AlibcNetError.h + * + * 阿里百川电商 + * 项目名称:阿里巴巴电商 AlibcTradeCommonSDK + * 版本号:5.0.0.0 + * 发布时间:2020-01-03 + * 开发团队:阿里巴巴百川 + * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) + * Copyright (c) 2016-2020 阿里巴巴-淘宝-百川. All rights reserved. + */ + +#import + +#ifndef AlibcNetError_h +#define AlibcNetError_h + +@interface AlibcError : NSError + ++ (instancetype)errorWithDomain:(NSString *)domain code:(NSInteger)code msg:(NSString *)msg; + +@end + +FOUNDATION_EXPORT NSString *const AlibcNetErrorCodeMtopNotAvailable; + +@interface AlibcNetError : NSObject + +/** + * 错误码 + */ +@property(nonatomic, copy) NSString *code; + +/** + * 错误信息 + */ +@property(nonatomic, copy) NSString *msg; + +/** + * 原始错误对象 + */ +@property(nonatomic, strong) NSError *rawError; + +/** + * 是否取消了登录 + */ +@property(assign, nonatomic) BOOL isLoginCancel; + +/** + * 是否取消了授权 + */ +@property(assign, nonatomic) BOOL isAuthCancel; + +@end + +#endif diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcNetMock.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcNetMock.h new file mode 100644 index 0000000..c816ebf --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcNetMock.h @@ -0,0 +1,25 @@ +/* + * AlibcNetMock.h + * + * 阿里百川电商 + * 项目名称:阿里巴巴电商 AlibcTradeCommonSDK + * 版本号:5.0.0.0 + * 发布时间:2020-01-03 + * 开发团队:阿里巴巴百川 + * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) + * Copyright (c) 2016-2020 阿里巴巴-淘宝-百川. All rights reserved. + */ + +#import + +#ifndef AlibcNetMock_h +#define AlibcNetMock_h + +@interface AlibcNetMock : NSObject ++ (instancetype)sharedInstance; + +- (NSString *)getMtopMockData:(NSString *)cmd; + +@end + +#endif diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcNetPacket.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcNetPacket.h new file mode 100644 index 0000000..881a5f2 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcNetPacket.h @@ -0,0 +1,105 @@ +/* + * AlibcNetPacket.h + * + * 阿里百川电商 + * 项目名称:阿里巴巴电商 AlibcTradeCommonSDK + * 版本号:5.0.0.0 + * 发布时间:2020-01-03 + * 开发团队:阿里巴巴百川 + * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) + * Copyright (c) 2016-2020 阿里巴巴-淘宝-百川. All rights reserved. + */ + +#import +#import "AlibcNetError.h" + +#ifndef AlibcNetPacket_h +#define AlibcNetPacket_h + +//*******使用须知 +//函数是给子类重载用的; block是给外部调用者设置的,子类自己不要用 + + +typedef NS_ENUM(long, ALiNetPriority) { + ALiNetPriorityHigh = 1, //高,马上发送 + ALiNetPriorityNormal, //普通,发送任务多时,可能等待200ms(等待时可以合并请求) + ALiNetPriorityLow, //低,等待200ms后发送,供合并请求 +}; + +typedef NS_ENUM(long, AlibcNetPacketStatus) { + AlibcNetPacketStatusNormal = 1,//请求未处理 + AlibcNetPacketStatusSendng, //发送中 + AlibcNetPacketStatusSuccess, //请求成功 + AlibcNetPacketStatusFail, //请求失败 +}; + +typedef void (^SuccessAction)(id netData); //发送成功 +typedef void (^ErrorAction)(AlibcNetError *error); //发送失败 +typedef void (^ErrorJSAction)(id error); //发送失败 + +//mtop请求包头定义 +@interface AlibcNetPacketHttpHeader : NSObject +@property(nonatomic, copy) NSString *cmd; //mtop命令 +@property(nonatomic, copy) NSString *version; //版本,默认值"1.0" +@property(nonatomic, assign) BOOL needPost; //是否用post,默认是YES +@property(nonatomic, assign) BOOL needLogin; //是否需要login,默认是NO +@property(nonatomic, assign) BOOL needAuth; //是否需要授权,默认是NO +@property(nonatomic, assign) BOOL needWua; //是否需要人机,默认是NO +@property(nonatomic, assign) NSInteger sessionExpireType; // 0 AutoLoginAndMaunlLogin 1 AutoLoginOnly + +@property(nonatomic, copy) NSString *bizId; //组件id,默认不需要填,组件发起的才需要填 +@property(nonatomic, copy) NSString *ttid;// 不设置 用默认百川的ttid + +@property(nonatomic, strong) NSDictionary *extHeaders; + +- (instancetype)initWithCmd:(NSString *)cmd; +@end + +//...... +@interface AlibcNetPacket : NSObject +@property(nonatomic, assign) NSUInteger retryTime; //发送重试次数,默认(0),不重试 最大重试5次 +@property(nonatomic, assign) ALiNetPriority priority; //默认值(AMPNetPriorityNormal) + +//****** 下面变量,是netservice维护的, ******// +@property(nonatomic, assign) NSUInteger retryCount; //当前是第几次重试,网络层用..子类不要动,切忌 +@property(nonatomic, assign) AlibcNetPacketStatus status; + +//block,只供外部使用者设置,子类不要用; +@property(nonatomic, copy) SuccessAction successAction; +@property(nonatomic, copy) ErrorAction failAction; +@property(nonatomic, copy) ErrorJSAction failJSAction; + + +//**************供子类重载用的 +//Mtop发送相关 +- (AlibcNetPacketHttpHeader *)generateMtopHeader; + +- (NSDictionary *)generateMtopBody; + +- (NSDictionary *)generateMtopExtParams; + +//重试通知, 如果有需要在这里修改内部数据 ,否则不用管,retryCount是第几次(1开始) +//retryAction时,可以改变netType,这样重试的时候,可以改变通道方式.比如第一次用accs的,重发的时候用mtop +- (void)retryAction:(NSUInteger)retryCount; + +//剔除sendPacke中自己已经在请求中部分.如果全部剔除完,返回YES,sendPacke会被丢弃(参考AMPBatchGetUserPacket) +- (BOOL)filterNewPacket:(__kindof AlibcNetPacket *)sendPack; + +//等待队列,请求合并..合并待发送的包,返回YES,sendPacke会被丢弃 +- (BOOL)conbineWaitingPacket:(__kindof AlibcNetPacket *)sendPack; + +//打点逻辑,如果retry时每次都要打点,重载这个..一般的成功失败打点直接successAction,failAction里挂载打点即可.. +- (void)trackActionSuccess:(BOOL)isSuccess error:(AlibcNetError *)error duration:(double)durationMillisecond; + + +//**********给子类用的辅助函数 +//是否有效,用户切换后则无效 .没事不要重载修改 +- (BOOL)isValued; + +- (BOOL)sendPacket; + +- (BOOL)sendJSPacket; + +@end + +#endif diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcNetServiceBase.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcNetServiceBase.h new file mode 100644 index 0000000..5650462 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcNetServiceBase.h @@ -0,0 +1,44 @@ +/* + * AlibcNetServiceBase.h + * + * 阿里百川电商 + * 项目名称:阿里巴巴电商 AlibcTradeCommonSDK + * 版本号:5.0.0.0 + * 发布时间:2020-01-03 + * 开发团队:阿里巴巴百川 + * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) + * Copyright (c) 2016-2020 阿里巴巴-淘宝-百川. All rights reserved. + */ + +#import +#import "AlibcNetPacket.h" + +#ifndef AlibcNetServiceBase_h +#define AlibcNetServiceBase_h + +#define AMP_NET_ERROR_TIME_OUT 118 + +@interface AlibcNetServiceBase : NSObject +@property(nonatomic, assign) NSTimeInterval timeoutSeconds; + +- (BOOL)processPacket:(AlibcNetPacket *)packet; + +- (BOOL)processJSPacket:(AlibcNetPacket *)packet; + +- (void)netJSPacketSuccess:(AlibcNetPacket *)packet data:(id)data; + +- (void)netJSPacketFail:(AlibcNetPacket *)packet error:(id)error; + +- (void)netPacketSuccess:(AlibcNetPacket *)packet data:(id)data; + +- (void)netPacketFail:(AlibcNetPacket *)packet error:(AlibcNetError *)error; + +//子类重载该函数,执行真实发送 ,其他的不要乱重载 +- (BOOL)performSend:(AlibcNetPacket *)packet; + +- (BOOL)performJSSend:(AlibcNetPacket *)packet; + +- (BOOL)shouldRetry:(NSError *)error; +@end + +#endif diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcNetServiceMtop.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcNetServiceMtop.h new file mode 100644 index 0000000..8632ff0 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcNetServiceMtop.h @@ -0,0 +1,31 @@ +/* + * AlibcNetServiceMtop.h + * + * 阿里百川电商 + * 项目名称:阿里巴巴电商 AlibcTradeCommonSDK + * 版本号:5.0.0.0 + * 发布时间:2020-01-03 + * 开发团队:阿里巴巴百川 + * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) + * Copyright (c) 2016-2020 阿里巴巴-淘宝-百川. All rights reserved. + */ + +#import +#import "AlibcNetServiceBase.h" + +#ifndef AlibcNetServiceMtop_h +#define AlibcNetServiceMtop_h + +@interface AlibcNetServiceMtop : AlibcNetServiceBase + ++ (instancetype)sharedInstance; + + +//设置是否免授权 +- (void)setIsAuthVip:(BOOL)isVip; + +- (BOOL)isAuthVip; + +@end + +#endif diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcNumber.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcNumber.h new file mode 100644 index 0000000..c6fcb2a --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcNumber.h @@ -0,0 +1,28 @@ +/* + * AlibcNumber.h + * + * 阿里百川电商 + * 项目名称:阿里巴巴电商 AlibcTradeCommonSDK + * 版本号:5.0.0.0 + * 发布时间:2020-01-03 + * 开发团队:阿里巴巴百川 + * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) + * Copyright (c) 2016-2020 阿里巴巴-淘宝-百川. All rights reserved. + */ + +#import + +#ifndef AlibcNumber_h +#define AlibcNumber_h + +@interface AlibcNumber : NSObject + ++ (NSNumber *)stringToNumber:(NSString *)value; + ++ (BOOL)isANumber:(NSString *)string; + ++ (BOOL)trv_isIPhoneXSeries; + +@end + +#endif diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcOpenNativeFailedMode.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcOpenNativeFailedMode.h new file mode 100644 index 0000000..29c25c8 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcOpenNativeFailedMode.h @@ -0,0 +1,35 @@ +/* + * AlibcOpenNativeFailedMode.h + * + * 阿里百川电商 + * 项目名称:阿里巴巴电商 AlibcTradeCommonSDK + * 版本号:5.0.0.0 + * 发布时间:2020-01-03 + * 开发团队:阿里巴巴百川 + * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) + * Copyright (c) 2016-2020 阿里巴巴-淘宝-百川. All rights reserved. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + 拉起手淘失败后的处理策略 + - AlibcOpenAliAppDownloadPage: 当拉起手淘/天猫失败, 则跳转对应 App + 下载页面;默认选项 + - AlibcOpenInAppByCustomerDegradeUrl: 当拉起手淘/天猫失败, + 则在媒体App内以自定义降级URL降级打开 + - AlibcOpenDoNothing: 当拉起手淘/天猫失败, 不做额外操作 + */ +typedef NS_ENUM(NSInteger, AlibcOpenByAliAppFailedMode) { + AlibcOpenAliAppDownloadPage = 0, + AlibcOpenInAppByCustomerDegradeUrl = 1, + AlibcOpenDoNothing = 2 +}; + +@interface AlibcOpenNativeFailedMode : NSObject + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcRSA.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcRSA.h new file mode 100644 index 0000000..b527824 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcRSA.h @@ -0,0 +1,81 @@ +// +// AlibcRSA.h +// AlibcTradeCommonSDK +// +// Created by zhongweitao on 2020/8/3. +// + +#import + +@interface AlibcRSA : NSObject + +#pragma mark - Encryption with RSA Public Key + +/** + * Encryption with RSA Public Key + * @param str utf8 str + * @param pubKey public key + * @return base64 encoded string + */ ++ (NSString *)encryptString:(NSString *)str publicKey:(NSString *)pubKey; + +/** + * Encryption with RSA Public Key + * @param data raw data + * @param pubKey public key + * @return raw data + */ ++ (NSData *)encryptData:(NSData *)data publicKey:(NSString *)pubKey; + +/** + * Encryption with RSA Private Key + * @param str utf8 str + * @param privKey private key + * @return base64 encoded string + */ ++ (NSString *)encryptString:(NSString *)str privateKey:(NSString *)privKey; + +/** + * Encryption with RSA Private Key + * @param data raw data + * @param privKey private key + * @return raw data + */ ++ (NSData *)encryptData:(NSData *)data privateKey:(NSString *)privKey; + +#pragma mark - Decryption with RSA Public Key +// decrypt base64 encoded string, convert result to string(not base64 encoded) + +/** + * Decryption with RSA Public Key + * @param str base64 encoded string + * @param pubKey public key + * @return string(not base64 encoded) + */ ++ (NSString *)decryptString:(NSString *)str publicKey:(NSString *)pubKey; + +/** + * Decryption with RSA Public Key + * @param data raw data + * @param pubKey public key + * @return raw data + */ ++ (NSData *)decryptData:(NSData *)data publicKey:(NSString *)pubKey; + +/** + * Decryption with RSA Private Key + * @param str base64 encoded string + * @param privKey private key + * @return string(not base64 encoded) + */ ++ (NSString *)decryptString:(NSString *)str privateKey:(NSString *)privKey; + +/** + * Decryption with RSA Private Key + * @param data raw data + * @param privKey private key + * @return raw data + */ ++ (NSData *)decryptData:(NSData *)data privateKey:(NSString *)privKey; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcReflectionUtil.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcReflectionUtil.h new file mode 100755 index 0000000..18ce049 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcReflectionUtil.h @@ -0,0 +1,38 @@ +/* + * AlibcReflectionUtil.h + * + * 阿里百川电商 + * 项目名称:阿里巴巴电商 AlibcTradeCommonSDK + * 版本号:5.0.0.0 + * 发布时间:2020-01-03 + * 开发团队:阿里巴巴百川 + * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) + * Copyright (c) 2016-2020 阿里巴巴-淘宝-百川. All rights reserved. + */ + +#import + +#ifndef AlibcReflectionUtil_h +#define AlibcReflectionUtil_h + +@interface AlibcReflectionUtil : NSObject ++ (id)getSharedInstance:(NSString *)className; + ++ (id)getInstance:(NSString *)className instanceMethodName:(NSString *)instanceMethodName; + ++ (id)executeInstanceMethod:(NSString *)methodName instance:(id)instance params:(NSArray *)params; + ++ (id)executeClassMethod:(NSString *)methodName clazz:(Class)clazz; + ++ (id)executeInstanceMethod:(NSString *)methodName instanceAndargs:(id)instance, ...; +@end + + +#define BC_MAKE_SELECTOR(var_name, sel_name) _Pragma("clang diagnostic push")\ +_Pragma("clang diagnostic ignored \"-Wundeclared-selector\"")\ +SEL var_name = @selector(sel_name);\ +_Pragma("clang diagnostic pop") + +#define BC_FETCH_CLASS(className) [NSClassFromString(@#className) class] + +#endif diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcSecurityGuardBridge.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcSecurityGuardBridge.h new file mode 100644 index 0000000..42f2894 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcSecurityGuardBridge.h @@ -0,0 +1,109 @@ +/* + * AlibcSecurityGuardBridge.h + * + * 阿里百川电商 + * 项目名称:阿里巴巴电商 AlibcTradeCommonSDK + * 版本号:5.0.0.0 + * 发布时间:2020-01-03 + * 开发团队:阿里巴巴百川 + * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) + * Copyright (c) 2016-2020 阿里巴巴-淘宝-百川. All rights reserved. + */ + +#import + +#ifndef AlibcSecurityGuardBridge_h +#define AlibcSecurityGuardBridge_h + +@interface AlibcSecurityGuardBridge : NSObject + +#pragma mark - Life Cycle + + +/** + 安全模块初始化 + + @param handler callback + */ ++ (void)asyncInit:(void (^)(NSError *))handler; + +#pragma mark - Info + + +/** + 安全是否可用 + + @return 安全是否可用 + */ ++ (BOOL)isSecurityGuardAvaleable; + + +/** + authCode + + @return auth code + */ ++ (NSString *)authCode; + + +/** + 获取AppKey + + @return AppKey + */ ++ (NSString *)getAppKey; + +#pragma mark - Encryption & Decryption + + +/** + 解析混淆ID + + @param itemId 混淆ID + @return 明文ID + */ ++ (NSNumber *)analyzeItemId:(NSString *)itemId; + + +#pragma mark - Storage + ++ (NSString *)getString:(NSString *)key; + ++ (int)putString:(NSString *)value forKey:(NSString *)key; + ++ (NSData *)getData:(NSString *)key; + ++ (int)putData:(NSData *)value forKey:(NSString *)key; + +@end + + +/** + Security Adapter 协议 + */ +@protocol AlibcSecurityAdapter + +- (void)asyncInit:(void (^)(NSError *))handler; + +#pragma mark - Info + +- (NSString *)getAppKey; + +#pragma mark - Encryption & Decryption + +- (NSNumber *)analyzeItemId:(NSString *)itemId; + +#pragma mark - Storage + +- (NSString *)getString:(NSString *)key; + +- (int)putString:(NSString *)value forKey:(NSString *)key; + +- (NSData *)getData:(NSString *)key; + +- (int)putData:(NSData *)value forKey:(NSString *)key; + + +@end + +#endif diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcString.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcString.h new file mode 100644 index 0000000..8532ab0 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcString.h @@ -0,0 +1,60 @@ +/* + * AlibcString.h + * + * 阿里百川电商 + * 项目名称:阿里巴巴电商 AlibcTradeCommonSDK + * 版本号:5.0.0.0 + * 发布时间:2020-01-03 + * 开发团队:阿里巴巴百川 + * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) + * Copyright (c) 2016-2020 阿里巴巴-淘宝-百川. All rights reserved. + */ + +#import + +#ifndef AlibcString_h +#define AlibcString_h + +@interface AlibcString : NSObject + ++ (BOOL)isChinaMobileNumber:(NSString *)number; + ++ (NSString *)fromCString:(char *)cString; + ++ (NSString *)fromNSData:(NSData *)data; + ++ (NSString *)fromNSData:(NSData *)data encoding:(NSStringEncoding)encoding; + ++ (NSString *)fromProtocol:(Protocol *)protocol; + ++ (NSString *)fromObject:(id)obj; + ++ (NSString *)fromClass:(Class)clazz; + ++ (NSString *)fromSelector:(SEL)selector; + ++ (const char *)toCString:(NSString *)string; + ++ (NSData *)toNSData:(NSString *)string; + ++ (Protocol *)toProtocol:(NSString *)string; + ++ (Class)toClass:(NSString *)string; + ++ (SEL)toSEL:(NSString *)string; + ++ (NSString *)trim:(NSString *)string; + ++ (BOOL)hasSubString:(NSString *)string substring:(NSString *)substring; + ++ (BOOL)isBlank:(NSString *)string; + ++ (BOOL)isNotBlank:(NSString *)string; + ++ (NSArray *)split:(NSString *)string sep:(NSString *)sep; + ++ (NSString *)md5:(NSString *)input; + +@end + +#endif diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcThread.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcThread.h new file mode 100644 index 0000000..95de732 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcThread.h @@ -0,0 +1,34 @@ +/* + * AlibcThread.h + * + * 阿里百川电商 + * 项目名称:阿里巴巴电商 AlibcTradeCommonSDK + * 版本号:5.0.0.0 + * 发布时间:2020-01-03 + * 开发团队:阿里巴巴百川 + * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) + * Copyright (c) 2016-2020 阿里巴巴-淘宝-百川. All rights reserved. + */ + +#import + +#ifndef AlibcThread_h +#define AlibcThread_h + +@interface AlibcThread : NSObject + +/** + * 提交到主线程运行 + */ ++ (void)foreground:(dispatch_block_t)block; + +/** + * 提交到后台主线程 + */ ++ (void)backgroundMain:(dispatch_block_t)block; + ++ (void)backgroundConcurrentTask:(dispatch_block_t)block; + +@end + +#endif diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcTradeCommon.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcTradeCommon.h new file mode 100644 index 0000000..8a37ca4 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcTradeCommon.h @@ -0,0 +1,47 @@ +/* + * AlibcTradeCommon.h + * + * 阿里百川电商 + * 项目名称:阿里巴巴电商 AlibcTradeCommonSDK + * 版本号:5.0.0.0 + * 发布时间:2020-01-03 + * 开发团队:阿里巴巴百川 + * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) + * Copyright (c) 2016-2020 阿里巴巴-淘宝-百川. All rights reserved. + */ + +#import +#import "AlibcConfig.h" + +NS_ASSUME_NONNULL_BEGIN + +@interface AlibcTradeCommon : NSObject + +/** + * 初始化函数,初始化成功后方可正常使用SDK中的功能 + * + * @param onSuccess 初始化成功的回调 + * @param onFailure 初始化失败的回调 + */ ++ (void)asyncInitWithSuccess:(void (^)(void))onSuccess + failure:(void (^)(NSError *error))onFailure; + +/** + * 设置环境 + */ ++ (void)setEnv:(AlibcEnvironment)env; + +/** + * 获取当前环境对象 + */ ++ (AlibcEnvironment)getEnv; + + +/** + 开启 Debug 模式日志 + */ ++ (void)setDebugLogOpen:(BOOL)isDebugLogOpen; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcTradeCommonSDK.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcTradeCommonSDK.h new file mode 100644 index 0000000..95f7d09 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcTradeCommonSDK.h @@ -0,0 +1,58 @@ +/* + * AlibcTradeCommonSDK.h + * + * 阿里百川电商 + * 项目名称:阿里巴巴电商 AlibcTradeCommonSDK + * 版本号:5.0.0.0 + * 发布时间:2020-01-03 + * 开发团队:阿里巴巴百川 + * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) + * Copyright (c) 2016-2020 阿里巴巴-淘宝-百川. All rights reserved. + */ + +#import + +//! Project version number for AlibcTradeCommonSDK. +FOUNDATION_EXPORT double AlibcTradeCommonSDKVersionNumber; + +//! Project version string for AlibcTradeCommonSDK. +FOUNDATION_EXPORT const unsigned char AlibcTradeCommonSDKVersionString[]; + +// In this header, you should import all the public headers of your framework using statements like #import + + +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcTradeListenerFactory.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcTradeListenerFactory.h new file mode 100644 index 0000000..a2cd3d6 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcTradeListenerFactory.h @@ -0,0 +1,46 @@ +/* + * AlibcTradeListenerFactory.h + * + * 阿里百川电商 + * 项目名称:阿里巴巴电商 AlibcTradeCommonSDK + * 版本号:5.0.0.0 + * 发布时间:2020-01-03 + * 开发团队:阿里巴巴百川 + * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) + * Copyright (c) 2016-2020 阿里巴巴-淘宝-百川. All rights reserved. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** +Listener 的工厂,相同 Protocol 的 Listener 只允许注册一个。 +*/ +@interface AlibcTradeListenerFactory : NSObject + +/** + 注册指定的 Listener。 + */ ++ (void)registerHandler:(id _Nonnull)handler withProtocol:(Protocol * _Nonnull)protocol; + +/** + 注册指定的 Listener 类。 + + @param singleton 是否是单例。如果为 YES,会将首次调用创建的实例保存起来;如果为 NO,会每次返回一个新实例。 + */ ++ (void)registerHandlerClass:(Class _Nonnull)handlerClass isSingleton:(BOOL)singleton withProtocol:(Protocol * _Nonnull)protocol; + +/** + 移除指定 Protocol 的 Listener。 + */ ++ (void)unregisterHandlerWithProtocol:(Protocol * _Nonnull)protocol; + +/** + 获取与指定 Protocol 关联的 Listener。 + */ ++ (id _Nullable)handlerForProtocol:(Protocol * _Nonnull)protocol; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcTradeListenerItem.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcTradeListenerItem.h new file mode 100644 index 0000000..f3f3785 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcTradeListenerItem.h @@ -0,0 +1,41 @@ +/* + * AlibcTradeListenerItem.h + * + * 阿里百川电商 + * 项目名称:阿里巴巴电商 AlibcTradeCommonSDK + * 版本号:5.0.0.0 + * 发布时间:2020-01-03 + * 开发团队:阿里巴巴百川 + * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) + * Copyright (c) 2016-2020 阿里巴巴-淘宝-百川. All rights reserved. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface AlibcTradeListenerItem : NSObject + +/** + Handler 实例。 + */ +@property (nonatomic, strong, readonly, nonnull) id instance; + +/** + Handler 类型。 + */ +@property (nonatomic, copy, readonly, nonnull) NSString * instanceType; + +/** + 使用指定的实例初始化。 + */ +- (instancetype _Nonnull)initWithInstance:(id _Nonnull)instance; + +/** + 使用指定的实例类型初始化。 + */ +- (instancetype _Nonnull)initWithClass:(Class _Nonnull)handlerClass isSingleton:(BOOL)singleton; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcTradeReachability.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcTradeReachability.h new file mode 100644 index 0000000..c927d78 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcTradeReachability.h @@ -0,0 +1,84 @@ +/* + * AlibcTradeReachability.h + * + * 阿里百川电商 + * 项目名称:阿里巴巴电商 AlibcTradeCommonSDK + * 版本号:5.0.0.0 + * 发布时间:2020-01-03 + * 开发团队:阿里巴巴百川 + * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) + * Copyright (c) 2016-2020 阿里巴巴-淘宝-百川. All rights reserved. + */ + +#import +#import + + +/** + * Create NS_ENUM macro if it does not exist on the targeted version of iOS or OS X. + * + * @see http://nshipster.com/ns_enum-ns_options/ + **/ +#ifndef NS_ENUM +#define NS_ENUM(_type, _name) enum _name : _type _name; enum _name : _type +#endif + +extern NSString *const kAlibcTradeReachabilityChangedNotification; + +typedef NS_ENUM(NSInteger, AlibcTradeNetworkStatus) { + // Apple NetworkStatus Compatible Names. + AlibcTradeNotReachable = 0, + AlibcTradeReachableViaWiFi = 2, + AlibcTradeReachableViaWWAN = 1 +}; + +@class AlibcTradeReachability; + +typedef void (^NetworkReachable)(AlibcTradeReachability * reachability); +typedef void (^NetworkUnreachable)(AlibcTradeReachability * reachability); +typedef void (^NetworkReachability)(AlibcTradeReachability * reachability, SCNetworkConnectionFlags flags); + + +@interface AlibcTradeReachability : NSObject + +@property (nonatomic, copy) NetworkReachable reachableBlock; +@property (nonatomic, copy) NetworkUnreachable unreachableBlock; +@property (nonatomic, copy) NetworkReachability reachabilityBlock; + +@property (nonatomic, assign) BOOL reachableOnWWAN; + + ++(instancetype)reachabilityWithHostname:(NSString*)hostname; +// This is identical to the function above, but is here to maintain +//compatibility with Apples original code. (see .m) ++(instancetype)reachabilityWithHostName:(NSString*)hostname; ++(instancetype)reachabilityForInternetConnection; ++(instancetype)reachabilityWithAddress:(void *)hostAddress; ++(instancetype)reachabilityForLocalWiFi; ++(instancetype)reachabilityWithURL:(NSURL*)url; + +-(instancetype)initWithReachabilityRef:(SCNetworkReachabilityRef)ref; + +-(BOOL)startNotifier; +-(void)stopNotifier; + +-(BOOL)isReachable; +-(BOOL)isReachableViaWWAN; +-(BOOL)isReachableViaWiFi; + +// WWAN may be available, but not active until a connection has been established. +// WiFi may require a connection for VPN on Demand. +-(BOOL)isConnectionRequired; // Identical DDG variant. +-(BOOL)connectionRequired; // Apple's routine. +// Dynamic, on demand connection? +-(BOOL)isConnectionOnDemand; +// Is user intervention required? +-(BOOL)isInterventionRequired; + +-(AlibcTradeNetworkStatus)currentReachabilityStatus; +-(SCNetworkReachabilityFlags)reachabilityFlags; +-(NSString*)currentReachabilityString; +-(NSString*)currentReachabilityFlags; + + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcURL.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcURL.h new file mode 100644 index 0000000..ebc6b3d --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcURL.h @@ -0,0 +1,30 @@ +/* + * AlibcURL.h + * + * 阿里百川电商 + * 项目名称:阿里巴巴电商 AlibcTradeCommonSDK + * 版本号:5.0.0.0 + * 发布时间:2020-01-03 + * 开发团队:阿里巴巴百川 + * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) + * Copyright (c) 2016-2020 阿里巴巴-淘宝-百川. All rights reserved. + */ + +#ifndef ALiURL_h +#define ALiURL_h + +#import + +@interface AlibcURL : NSObject + ++ (NSString *)urlEncoded:(NSString *)string; + ++ (NSString *)urlDecoded:(NSString *)string; + +/** + * 移除 URL 中的查询参数和 Fragment。 + */ ++ (NSString *)urlWithoutQueryAndFragment:(NSString *)url; +@end + +#endif /* ALiURL_h */ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcURLActionHandlerProtocol.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcURLActionHandlerProtocol.h new file mode 100644 index 0000000..dc5e42a --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcURLActionHandlerProtocol.h @@ -0,0 +1,36 @@ +// +// AlibcURLActionHandlerProtocol.h +// AlibcTradeCommonSDK +// +// Created by zhongweitao on 2020/12/1. +// + +#import +#import "AlibcURLActionRequest.h" +#import "AlibcURLActionResponse.h" + +NS_ASSUME_NONNULL_BEGIN + +typedef void(^AlibcURLActionCompeltion)(AlibcURLActionResponse *response); + +@protocol AlibcURLActionHandlerProtocol + +@optional +/** + 初始化路由模块 + + @param params 初始化参数 + */ +- (void)setupModule:(NSDictionary *)params; + +/** + URL路由处理类遵循接口 + + @param urlActionRequest 路由Request + @param completion 回调 + */ +- (void)handleURLActionRequest:(AlibcURLActionRequest *)urlActionRequest completion:(AlibcURLActionCompeltion)completion; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcURLActionRequest.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcURLActionRequest.h new file mode 100644 index 0000000..15f21cd --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcURLActionRequest.h @@ -0,0 +1,35 @@ +// +// AlibcURLActionRequest.h +// AlibcTradeCommonSDK +// +// Created by zhongweitao on 2020/11/30. +// + +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface AlibcURLActionRequest : NSObject + +@property (nullable, nonatomic, strong, readonly) NSURL *url; + +/** + * 使用者所在源controller + */ +@property (nullable, nonatomic, strong) UIViewController *sourceController; + +/** + * 不适合放在url里的本地参数 + */ +@property (nullable, nonatomic, strong) NSDictionary *params; + + +- (instancetype)initWithURL:(NSURL *)url params:(nullable id)params NS_DESIGNATED_INITIALIZER; + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcURLActionResponse.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcURLActionResponse.h new file mode 100644 index 0000000..b726a63 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcURLActionResponse.h @@ -0,0 +1,43 @@ +// +// AlibcURLActionResponse.h +// AlibcTradeCommonSDK +// +// Created by zhongweitao on 2020/11/30. +// + +#import +#import + +typedef NS_ENUM(NSUInteger, AlibcURLActionResponseType) { + AlibcURLActionResponseTypeNone = 1, /**< 告诉容器不用做处理。(如触发了某个事件,但不需页面跳转) */ + AlibcURLActionResponseTypeViewController, /**< 返回ViewController */ + AlibcURLActionResponseTypeObject, /**< 返回一个用户自定义的对象 */ +// AlibcURLActionResponseTypeAsync, /**< 异步response */ +}; + +NS_ASSUME_NONNULL_BEGIN + +@interface AlibcURLActionResponse : NSObject + +/** + * 若responseType=TBURLActionResponseTypeViewController,那么需返回viewController + */ +@property (nullable, nonatomic, strong) __kindof UIViewController *viewController; + +/** + * 若responseType=TBURLActionResponseTypeObject,那么需返回object + */ +@property (nullable, nonatomic, strong) id result; + +/** + * 响应类型 + */ +@property (nonatomic, assign) AlibcURLActionResponseType responseType; + + +- (instancetype)initAsNone; +- (instancetype)initWithViewController:(UIViewController *)viewController; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcURLHandleUtil.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcURLHandleUtil.h new file mode 100644 index 0000000..b0affeb --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcURLHandleUtil.h @@ -0,0 +1,31 @@ +/* + * AlibcURLHandleUtil.h + * + * 阿里百川电商 + * 项目名称:阿里巴巴电商 AlibcTradeCommonSDK + * 版本号:5.0.0.0 + * 发布时间:2020-01-03 + * 开发团队:阿里巴巴百川 + * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) + * Copyright (c) 2016-2020 阿里巴巴-淘宝-百川. All rights reserved. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface AlibcURLHandleUtil : NSObject + ++ (BOOL)matchUrl:(NSString *)url WithRules:(NSArray*)ruleList; ++ (BOOL)matchUrl:(NSString *)url ByRule:(NSString *)rule; ++ (NSMutableDictionary *)getURLParameters:(NSString *)urlStr; ++ (NSString *)addParamsToTriverUrl:(NSString *)url + WithAddParams:(NSDictionary *)params; + +/// @brief 返回的参数需要自行Decode ++ (NSDictionary *)getPageParamsFromTriverUrl:(NSString *)url; + + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcURLRouter.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcURLRouter.h new file mode 100644 index 0000000..85dbdb2 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcURLRouter.h @@ -0,0 +1,49 @@ +// +// AlibcURLRouter.h +// AlibcTradeCommonSDK +// +// Created by zhongweitao on 2020/11/30. +// + +#import +#import "AlibcURLActionRequest.h" +#import "AlibcURLActionResponse.h" +#import "AlibcURLActionHandlerProtocol.h" + +@interface AlibcURLRouter : NSObject + ++ (instancetype)sharedInstance; + +/** + 注册URL处理类 + @param handlerClass 处理类名 + @param host 处理的url.host + @param isSingleton 是否单例 + */ +- (void)registerURLHandler:(NSString *)handlerClass host:(NSString *)host isSingleton:(BOOL)isSingleton; + +/** + 判断是否能处理 + @param url 路由url + @return 是否能处理 + */ +- (BOOL)canHandleURL:(NSURL *)url; + +#pragma mark - Init + +/** + 路由处理函数 + @param urlActionRequest 路由Request + @param completion 回调 + */ +- (void)processURLActionRequest:(AlibcURLActionRequest *)urlActionRequest completion:(AlibcURLActionCompeltion)completion; + +#pragma mark - Init + +/** + 初始化所有模块 + @param params 初始化参数 + */ +- (void)setupAllModules:(NSDictionary *)params; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcURLRouterItem.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcURLRouterItem.h new file mode 100644 index 0000000..a3d81fd --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcURLRouterItem.h @@ -0,0 +1,31 @@ +// +// AlibcURLRouterItem.h +// AlibcTradeCommonSDK +// +// Created by zhongweitao on 2020/11/30. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + * @brief 接入方可通过 openByCode方法打开提供对应服务的功能模块。 + */ +@interface AlibcURLRouterItem : NSObject + +@property (nonatomic, readonly, copy) NSString *handlerClsName; +@property (nonatomic, readonly, copy) NSString *host; //处理协议的host + +@property (nonatomic, readonly, assign) BOOL isSingleton; + +- (instancetype)initWithHandler:(NSString *)handlerClsName + host:(NSString *)host + isSingleton:(BOOL)isSingleton NS_DESIGNATED_INITIALIZER; + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcUT.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcUT.h new file mode 100644 index 0000000..4ccbe85 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcUT.h @@ -0,0 +1,282 @@ +/* + * AlibcUT.h + * + * 阿里百川电商 + * 项目名称:阿里巴巴电商 AlibcTradeCommonSDK + * 版本号:5.0.0.0 + * 发布时间:2020-01-03 + * 开发团队:阿里巴巴百川 + * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) + * Copyright (c) 2016-2020 阿里巴巴-淘宝-百川. All rights reserved. + */ + +#import +#import + +UIKIT_EXTERN NSString * const kAlibcMonitorInitPoint; +UIKIT_EXTERN NSString * const kAlibcMonitorEntrancePoint; +UIKIT_EXTERN NSString * const kAlibcMonitorOpenURLPoint; +UIKIT_EXTERN NSString * const kAlibcMonitorOpenCodePoint; +UIKIT_EXTERN NSString * const kAlibcMonitorOpenComponentPoint; +UIKIT_EXTERN NSString * const kAlibcMonitorOpenInterceptPoint; +UIKIT_EXTERN NSString * const kAlibcMonitorContainerLoadPoint; +UIKIT_EXTERN NSString * const kAlibcMonitorBCConfigPoint; +UIKIT_EXTERN NSString * const kAlibcMonitorSuiteConfigPoint; +UIKIT_EXTERN NSString * const kAlibcMonitorApplinkPoint; +UIKIT_EXTERN NSString * const kAlibcMonitorTaokeBizPoint; +UIKIT_EXTERN NSString * const kAlibcMonitorLoginPoint; +UIKIT_EXTERN NSString * const kAlibcMonitorConvertUrlPoint; + +#define kAlibcRecoveryIdChange @"kAlibcRecoveryIdChange" +#define kAlibcRecoveryIdKey @"bcRecoveryId" + +#ifndef AlibcUT_h +#define AlibcUT_h + +#define ALiTRADE_TRACE_TRACKER_ID @"aliTradesdk" + +typedef NSString AlibcUTEventID; +@class UIViewController; + +FOUNDATION_EXTERN NSString *AlibcUTGlobalPropertySdkVersion; +FOUNDATION_EXTERN NSString *AlibcUTGlobalPropertyTTID; + + +/* + * @brief 用于透出事件埋点 + */ +FOUNDATION_EXTERN AlibcUTEventID *const AlibcUTEventID$2201; + +/* + * @brief 用于点击事件埋点 + */ +FOUNDATION_EXTERN AlibcUTEventID *const AlibcUTEventID$2101; + +FOUNDATION_EXTERN NSString *const AlibcUTArgsKeyYBHPSS; + +FOUNDATION_EXTERN NSString *const AlibcUTArgsKeyYBHPSS_LABEL; + +#define AlibcTradeSDKVersion @"5.0.0.11" + +@interface AlibcUT : NSObject + + +/** + 初始化 ALiUT + */ ++ (void)initUT; + + +/** + 功能是否可用, 是否有 adapter 支撑功能 + + @return 是否可用 + */ ++ (BOOL)isAvailable; + + +/** + 是否三方ut + + @return 是否三方ut + */ ++ (BOOL)isThird; + +/// @brief 更新用户信息 ++ (void)updateUserAccount:(NSString *)pNick userid:(NSString *)pUserId; ++ (void)updateUserCount:(NSString *)uid andUserNick:(NSString *)userNick andDigest:(NSString *)uidDigest; + +/** + 添加打点记录的便捷方法 + + @param page pageName + @param label arg1 + @param interval 无效兼容字段 + @param propertyDict args + */ ++ (void)addTraceLog:(NSString *)page + label:(NSString *)label + interval:(NSInteger)interval + propertys:(NSDictionary *)propertyDict; + +/** + 添加打点记录的便捷方法 + + @param label arg1 + @param customParams args +*/ ++ (void)addTraceLog:(NSString *)label customParams:(NSDictionary *)customParams; + +/** + 添加打点记录的便捷方法 + + @param label arg1 + @param propertyDict args + */ ++ (void)addTraceLog:(NSString *)label propertys:(NSDictionary *)propertyDict; + + +/** + 添加打点记录的便捷方法 + + @param label arg1 + */ ++ (void)addTraceLog:(NSString *)label; + + +/** + 添加打点记录的便捷方法 + + @param eventID eventID + @param arg1 arg1 + @param args args + */ ++ (void)addTradeLogWithEventID:(AlibcUTEventID *)eventID arg1:(NSString *)arg1 args:(NSDictionary *)args; + + +/** + 添加打点记录的便捷方法 + + @param trackerID trackerID + @param eventLabel arg1 + @param properties args + */ ++ (void)addTrackToTracker:(NSString *)trackerID eventLabel:(NSString *)eventLabel properties:(NSDictionary *)properties; + + +/** + 打点的标准实现 + + @param trackerID track id + @param eventID 事件 id + @param pageName pageName + @param arg1 arg1 == label + @param arg2 arg2 description + @param arg3 arg3 description + @param args args == propertirs + */ ++ (void)addTradeLog:(NSString *)trackerID + eventID:(NSString *)eventID + page:(NSString *)pageName + arg1:(NSString *)arg1 + arg2:(NSString *)arg2 + arg3:(NSString *)arg3 + args:(NSDictionary *)args; + + +/** + 供jsbridge打点 + + @param dataDict dataDict + @param pView webView + @param pViewController vc + @return return value + */ ++ (BOOL)h5UT:(NSDictionary *)dataDict view:(WKWebView *)pView viewController:(UIViewController *)pViewController; + + +/** + 设置 channel + + @param channel channel + */ ++ (void)setChannel:(NSString *)channel; + + +/** + 读取全局字段 + + @param key 字段名 + @return 值 + */ ++ (NSString *)globalPropertyForKey:(NSString *)key; + + +/** + 设置全局字段 + + @param property 值 + @param key 字段名 + */ ++ (void)setGlobalProperty:(NSString *)property forKey:(NSString *)key; + ++ (void)setKeySampling:(NSUInteger)sampling; ++ (void)setNormalSampling:(NSUInteger)sampling; + +#pragma mark - AppMonitor +/// @brief 计数埋点 ++ (void)commitCountWithPoint:(NSString *)monitorPoint value:(double)value args:(NSDictionary *)args; + +/// @brief 告警埋点 ++ (void)commitAlarmWithPoint:(NSString *)pointName args:(NSDictionary *)args success:(BOOL)success errorCode:(NSString *)errorCode errorMsg:(NSString *)errorMsg; + +/// @brief 性能埋点 ++ (void)commitStatWithPoint:(NSString *)monitorPoint dimensionValues:(NSDictionary *)dictDimensionValues measureValues:(NSDictionary *)dictMeasureValues; + +@end + +@protocol AlibcUTAdapter + +#pragma mark - Initialize + +@required + +- (void)initWithAppkey:(NSString *)appkey; + + +#pragma mark - Configure + +@required +- (void)setChannel:(NSString *)channel; + +@required +- (NSString *)globalPropertyForKey:(NSString *)key asTracker:(NSString *)trackerID; + +@required +- (void)setGlobalProperty:(NSString *)property forKey:(NSString *)key asTracker:(NSString *)trackerID; + + +#pragma mark - Commit + +@required +- (void)addTradeLog:(NSString *)trackerID + eventID:(NSString *)eventID + page:(NSString *)pageName + arg1:(NSString *)arg1 + arg2:(NSString *)arg2 + arg3:(NSString *)arg3 + args:(NSDictionary *)args; + +@optional +- (void)h5UT:(NSDictionary *)dataDict view:(WKWebView *)pView viewController:(UIViewController *)pViewController; + +@optional +- (void)setAppVersion:(NSString *)appVersin; + +@optional +- (void)updateUserAccount:(NSString *)pNick userid:(NSString *)pUserId; +@optional +- (void)updateUserCount:(NSString *)uid andUserNick:(NSString *)userNick andDigest:(NSString *)uidDigest; + +#pragma mark - Other + +@optional +- (BOOL)isThird; + +#pragma mark - AppMonitor +/// @brief 计数埋点 +- (void)commitCountWithPoint:(NSString *)monitorPoint value:(double)value args:(id)args; + +/// @brief 告警埋点 +- (void)commitAlarmWithPoint:(NSString *)pointName args:(id)args success:(BOOL)success errorCode:(NSString *)errorCode errorMsg:(NSString *)errorMsg; + +/// @brief 性能埋点 +- (void)commitStatWithPoint:(NSString *)monitorPoint dimensionValues:(NSDictionary *)dictDimensionValues measureValues:(NSDictionary *)dictMeasureValues; + +@end + + +#define AlibcNSStringify(a) @#a +#define AlibcAppendUTSuffixUtil AlibcNSStringify(_aliTradesdk_)AlibcTradeSDKVersion + +#endif diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcVCUtils.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcVCUtils.h new file mode 100644 index 0000000..e197358 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/AlibcVCUtils.h @@ -0,0 +1,31 @@ +/* + * AlibcVCUtils.h + * + * 阿里百川电商 + * 项目名称:阿里巴巴电商 AlibcTradeCommonSDK + * 版本号:5.0.0.0 + * 发布时间:2020-01-03 + * 开发团队:阿里巴巴百川 + * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) + * Copyright (c) 2016-2020 阿里巴巴-淘宝-百川. All rights reserved. + */ + +#import +#import + +#define Alibc_IsBangs() [AlibcVCUtils alibc_isIPhoneXSeries] +#define Alibc_StatusBarHeight (Alibc_IsBangs() ? 44.f : 20.f) + +NS_ASSUME_NONNULL_BEGIN + +@interface AlibcVCUtils : NSObject + ++ (UIViewController *)getTopViewController; + ++ (void)presentViewController:(UIViewController *)viewController; + ++ (BOOL)alibc_isIPhoneXSeries; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/NSArray+AlibcJSONModel.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/NSArray+AlibcJSONModel.h new file mode 100755 index 0000000..1ac200a --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/NSArray+AlibcJSONModel.h @@ -0,0 +1,34 @@ +/* + * NSArray+AlibcJSONModel.h + * + * 阿里百川电商 + * 项目名称:阿里巴巴电商 AlibcTradeCommonSDK + * 版本号:5.0.0.0 + * 发布时间:2020-01-03 + * 开发团队:阿里巴巴百川 + * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) + * Copyright (c) 2016-2020 阿里巴巴-淘宝-百川. All rights reserved. + */ + +#import + +@interface NSArray(AlibcJSONModel) + +/*! + 将JSON转过来的一个数组转换成相应的model类型的数组,支持多级内嵌的模式 + 简单的形式,字典的数组转换成model的数组: + [{},{},{}] ===> [m1,m2,m3] + + 也可能是nested的数组 + [[{},{}],[{},{}],[{}]] ===> [[m1,m2],[m3,m4],[m5]] + + 从上面也可以看出局限性,就是数组或者内嵌数组中的元素转换后的目标model类型必须是同种类型 + + strictMode 严格模式就是只有当每一个element能转成modelClass的对象的时候才会进行转换,否则会被忽略 + */ +- (NSArray *)modelArrayWithClass:(Class)modelClass; +- (NSArray *)modelArrayWithClass:(Class)modelClass strictMode:(BOOL)strictMode; + +- (NSArray *)toJSONArray; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/NSDictionary+AlibcJSONModel.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/NSDictionary+AlibcJSONModel.h new file mode 100755 index 0000000..392628f --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/NSDictionary+AlibcJSONModel.h @@ -0,0 +1,29 @@ +/* + * NSDictionary+AlibcJSONModel.h + * + * 阿里百川电商 + * 项目名称:阿里巴巴电商 AlibcTradeCommonSDK + * 版本号:5.0.0.0 + * 发布时间:2020-01-03 + * 开发团队:阿里巴巴百川 + * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) + * Copyright (c) 2016-2020 阿里巴巴-淘宝-百川. All rights reserved. + */ + +#import + +@interface NSDictionary(AlibcJSONModel) + +/*! + 将JSON转过来的一个字典中的每一个key都转换成相应类型的model对象,不支持嵌套 + 转换过程为: + {key1:{},key2:{}} ===> {key1:m1,key2:m2} + + 当然每一个key所对应的value转换后的model类型须为同一个类型 + */ +- (NSDictionary *)modelDictionaryWithClass:(Class)modelClass; +- (NSDictionary *)modelDictionaryWithClass:(Class)modelClass strictMode:(BOOL)strictMode; + +- (NSDictionary *)toJSONDictionary; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/NSDictionary+TrimNSNull.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/NSDictionary+TrimNSNull.h new file mode 100644 index 0000000..d43a5fa --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/NSDictionary+TrimNSNull.h @@ -0,0 +1,24 @@ +/* + * NSDictionary+TrimNSNull.h + * + * 阿里百川电商 + * 项目名称:阿里巴巴电商 AlibcTradeCommonSDK + * 版本号:5.0.0.0 + * 发布时间:2020-01-03 + * 开发团队:阿里巴巴百川 + * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) + * Copyright (c) 2016-2020 阿里巴巴-淘宝-百川. All rights reserved. + */ + +#import + +#ifndef NSDictionary_TrimNSNull_h +#define NSDictionary_TrimNSNull_h + +@interface NSDictionary (TrimNSNull) + +- (id)aliObjectForKey:(id)aKey; + +@end + +#endif diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/NSError+AlibcStr.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/NSError+AlibcStr.h new file mode 100644 index 0000000..0e572de --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/NSError+AlibcStr.h @@ -0,0 +1,14 @@ +// +// NSError+AlibcStr.h +// AlibcTradeCommonSDK +// +// Created by zhongweitao on 2020/6/30. +// + +#import + +@interface NSError (AlibcStr) + +- (NSString *)allDesStr; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/NSNumber+AlibcJSONModel.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/NSNumber+AlibcJSONModel.h new file mode 100755 index 0000000..e6fc332 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/NSNumber+AlibcJSONModel.h @@ -0,0 +1,40 @@ +/* + * NSNumber+AlibcJSONModel.h + * + * 阿里百川电商 + * 项目名称:阿里巴巴电商 AlibcTradeCommonSDK + * 版本号:5.0.0.0 + * 发布时间:2020-01-03 + * 开发团队:阿里巴巴百川 + * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) + * Copyright (c) 2016-2020 阿里巴巴-淘宝-百川. All rights reserved. + */ + +#define NS_ASSUME_NONNULL_BEGIN _Pragma("clang assume_nonnull begin") +#define NS_ASSUME_NONNULL_END _Pragma("clang assume_nonnull end") + + +#import +NS_ASSUME_NONNULL_BEGIN +/** + Provide a method to parse `NSString` for `NSNumber`. + */ +@interface NSNumber (AlibcJSONModel) + +/** + Creates and returns an NSNumber object from a string. + Valid format: @"12", @"12.345", @" -0xFF", @" .23e99 "... + + @param string The string described an number. + + @return an NSNumber when parse succeed, or nil if an error occurs. + */ ++ (nullable NSNumber *)AlibcJSONModel_numberWithString:(NSString *)string; + +@end + +NS_ASSUME_NONNULL_END + + + + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/NSString+AlibcURL.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/NSString+AlibcURL.h new file mode 100644 index 0000000..cc7661c --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/NSString+AlibcURL.h @@ -0,0 +1,70 @@ +/* + * NSString+AlibcURL.h + * + * 阿里百川电商 + * 项目名称:阿里巴巴电商 AlibcTradeCommonSDK + * 版本号:5.0.0.0 + * 发布时间:2020-01-03 + * 开发团队:阿里巴巴百川 + * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) + * Copyright (c) 2016-2020 阿里巴巴-淘宝-百川. All rights reserved. + */ + +#ifndef NSString_AlibcURL_h +#define NSString_AlibcURL_h + + + +#import + +@interface NSString (AlibcURL) + +- (id)valueForUrlQueryKey:(NSString *)key; +/*! + Parses a URL query string into a dictionary with auto encoding(UTF8 & GBK). + @returns query dictionary + */ +- (NSDictionary *)aliQueryDictionaryByAutoDecoding; + +/*! + Parses a URL query string into a dictionary without encoding. + @returns query dictionary + */ +- (NSDictionary *)aliQueryDictionary; + +- (NSString *)aliDeleteParameter:(NSString *)parameter + WithOriginUrl:(NSString *)originUrl; + +- (NSString *)aliStringByAddingURLEncodedQueryDictionary:(NSDictionary *)query; + +// 对于 URL 中已有的 key, 保持URL中原有的 key, 不覆盖 +- (NSString *)aliStringByAddingQueryDictionary:(NSDictionary *)query; + +- (id)aliUrlEncoded; + +- (NSString *)aliURLDecoding; + +- (NSString *)aliTrim; + +/** + * 将 k1=v1&k2=v2 形式的字符串 转换成 @{@"k1": @"v1", @"k2": @"v2"} + * 注意: k1=&k2=%k3=v3 会生成 @{@"k1": @"", @"k2": @"", @"k3": @"v3"} + * + * @return query params dictionary + */ +- (NSMutableDictionary *)aliURLQueryStringToDictionary; + +/** + * 根据 Dictionary 中的内容, 生成 k1=v1&k2=v2 形式的字符串 + * 注意: 允许 k1=&k2=%k3=v3 这种有 key 无 value 的情况 + * + * @param dictionary 如 @{@"k1": @"v1", @"k2": @"v2"} + * + * @return 转换生成的 dictionary 对象 + */ ++ (instancetype)aliURLQueryStringWithDictionary:(NSDictionary *)dictionary; + +@end + +#endif /* NSString_AlibcURL_h */ + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/NSURL+ALIURL.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/NSURL+ALIURL.h new file mode 100644 index 0000000..87138c9 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/NSURL+ALIURL.h @@ -0,0 +1,35 @@ +/* + * NSURL+ALIURL.h + * + * 阿里百川电商 + * 项目名称:阿里巴巴电商 AlibcTradeCommonSDK + * 版本号:5.0.0.0 + * 发布时间:2020-01-03 + * 开发团队:阿里巴巴百川 + * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) + * Copyright (c) 2016-2020 阿里巴巴-淘宝-百川. All rights reserved. + */ + +#ifndef NSURL_ALIURL_h +#define NSURL_ALIURL_h + + + +#import + +@interface NSURL (ALIURL) + +/* + * 判断是否相同url,会比较host,path,query 以及hash参数 + */ +- (BOOL)alibc_isSameUrl:(NSURL *)url; + + +/* + * 判断是否相同url,会比较host,path,忽略query 以及hash参数 + */ +- (BOOL)alibc_isSameTypeUrl:(NSURL *)url isMiniApp:(BOOL)isMiniApp; + +@end + +#endif /* NSURL_ALIURL_h */ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/UIColor+Alibc.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/UIColor+Alibc.h new file mode 100644 index 0000000..9daba3a --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Headers/UIColor+Alibc.h @@ -0,0 +1,31 @@ +// +// UIColor+Alibc.h +// AlibcTradeCommonSDK +// +// Created by zhongweitao on 2020/8/13. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface UIColor (Alibc) + ++ (UIColor*)alibc_colorWithHex:(NSInteger)hexValue; ++ (UIColor *)alibc_colorWithHex:(NSInteger)hexValue alpha:(CGFloat)alphaValue; + +/// @brief UIColor转ARGB十进制 ++ (NSInteger)alibc_hexValueFromColor:(UIColor *)color; + +/// @brief 处理形如'#RRGGBB'或'#AARRGGBB'的字符串格式 ++ (UIColor *)alibc_colorWithHexString:(NSString *)hexString; + +/// @brief 处理形如'#RRGGBB'的字符串格式 ++ (UIColor *)alibc_colorWithHexString:(NSString *)hexString alpha:(CGFloat)alpha; + +/// @brief 处理形如'#AARRGGBB'的字符串格式 ++ (CGFloat)alibc_alphaWithHexString:(NSString *)hexString; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Info.plist b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Info.plist new file mode 100644 index 0000000..647406d --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeCommonSDK.framework/Info.plist @@ -0,0 +1,51 @@ + + + + + BuildMachineOSBuild + 20D91 + CFBundleDevelopmentRegion + en + CFBundleExecutable + AlibcTradeCommonSDK + CFBundleIdentifier + com.aliTradeSDK.demoyishan.AlibcTradeCommonSDK + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + AlibcTradeCommonSDK + CFBundlePackageType + FMWK + CFBundleShortVersionString + 5.0.0.11 + CFBundleSupportedPlatforms + + iPhoneOS + + CFBundleVersion + 1 + DTCompiler + com.apple.compilers.llvm.clang.1_0 + DTPlatformBuild + 18B79 + DTPlatformName + iphoneos + DTPlatformVersion + 14.2 + DTSDKBuild + 18B79 + DTSDKName + iphoneos14.2 + DTXcode + 1220 + DTXcodeBuild + 12B45b + MinimumOSVersion + 9.0 + UIDeviceFamily + + 1 + 2 + + + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeContainer.framework/AlibcTradeContainer b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeContainer.framework/AlibcTradeContainer new file mode 100644 index 0000000..a1fb5e1 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeContainer.framework/AlibcTradeContainer differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeContainer.framework/Headers/AlibcSimpleWebViewController.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeContainer.framework/Headers/AlibcSimpleWebViewController.h new file mode 100644 index 0000000..05573c7 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeContainer.framework/Headers/AlibcSimpleWebViewController.h @@ -0,0 +1,22 @@ +// +// AlibcSimpleWebViewController.h +// AlibcTradeContainer +// +// Created by zhongweitao on 2020/4/11. +// + +#import +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface AlibcSimpleWebViewController : UIViewController + +@property (strong, nonatomic)WKWebView *webView; + +@property (nonatomic, copy) NSString *customTitle; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeContainer.framework/Headers/AlibcTradeContainer.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeContainer.framework/Headers/AlibcTradeContainer.h new file mode 100644 index 0000000..91977b9 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeContainer.framework/Headers/AlibcTradeContainer.h @@ -0,0 +1,25 @@ +/* + * AlibcTradeContainer.h + * + * 阿里百川电商 + * 项目名称:阿里巴巴电商 AlibcTradeContainer + * 版本号:5.0.0.0 + * 发布时间:2020-01-03 + * 开发团队:阿里巴巴百川 + * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) + * Copyright (c) 2016-2020 阿里巴巴-淘宝-百川. All rights reserved. + */ + +#import + +//! Project version number for AlibcTradeContainer. +FOUNDATION_EXPORT double AlibcTradeContainerVersionNumber; + +//! Project version string for AlibcTradeContainer. +FOUNDATION_EXPORT const unsigned char AlibcTradeContainerVersionString[]; + +// In this header, you should import all the public headers of your framework using statements like #import + +#import +#import +#import diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeContainer.framework/Headers/AlibcTradeContainerManager.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeContainer.framework/Headers/AlibcTradeContainerManager.h new file mode 100644 index 0000000..11f7c9c --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeContainer.framework/Headers/AlibcTradeContainerManager.h @@ -0,0 +1,77 @@ +/* + * AlibcTradeContainerManager.h + * + * 阿里百川电商 + * 项目名称:阿里巴巴电商 AlibcTradeContainer + * 版本号:5.0.0.0 + * 发布时间:2020-01-03 + * 开发团队:阿里巴巴百川 + * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) + * Copyright (c) 2016-2020 阿里巴巴-淘宝-百川. All rights reserved. + */ + +#import +#import +#import + +NS_ASSUME_NONNULL_BEGIN +@interface AlibcTradeContainerManager : NSObject + ++ (instancetype)sharedInstance; + +/** + 初始化容器 + */ +- (void)initConatinerWithData:(NSDictionary *)data; + +/** + 设置容器环境参数 + */ +- (void)setContainerEnv:(NSString *)env WithContainerTag:(NSString *)containerTag; + +/** + 设置SDK配置信息 + */ +- (void)setSDKSetting:(NSDictionary *)sdkSetting WithGroupName:(nonnull NSString *)groupName WithContainerTag:(NSString *)containerTag; + +/** + 加载内容 + */ +- (NSError *)loadUrlWithContext:(AlibcTradeContainerContextModel *)context; + +/* + 加载组件 + */ +- (NSError *)loadComponentWithContext:(AlibcTradeContainerContextModel *)context + callBack:(void (^)(NSError *error,UIViewController *componentVC))callBack; + +/** + 继续加载 + */ +- (NSError *)loadNewUrlInBeforeContainerWithContext:(AlibcTradeContainerContextModel *)context; + +/** + 刷新容器 + */ +- (void)reloadWithContainerTag:(NSString *)containerTag; + + +/** + goback + */ +- (void)goBackWithContainerTag:(NSString *)containerTag; + +/** + 关闭容器 + */ +- (void)closeContainerWithContainerTag:(NSString *)containerTag; + +/** + 设置AppInfo + */ +- (void)setAppInfo4Container:(AlibcTradeContainerAppInfoModel *)appInfoModel WithContainerTag:(NSString *)containerTag; + + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeContainer.framework/Headers/AlibcTradeMiniAppURLRouter.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeContainer.framework/Headers/AlibcTradeMiniAppURLRouter.h new file mode 100644 index 0000000..fa516db --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeContainer.framework/Headers/AlibcTradeMiniAppURLRouter.h @@ -0,0 +1,34 @@ +/* + * AlibcTradeMiniAppURLRouter.h + * + * 阿里百川电商 + * 项目名称:阿里巴巴电商 AlibcTradeContainer + * 版本号:5.0.0.0 + * 发布时间:2020-01-03 + * 开发团队:阿里巴巴百川 + * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) + * Copyright (c) 2016-2020 阿里巴巴-淘宝-百川. All rights reserved. + */ + +#import +#import +#import "AlibcTradeMiniAppURLRouterProtocol.h" + +NS_ASSUME_NONNULL_BEGIN + +@interface AlibcTradeMiniAppURLRouter : NSObject + +@property (nonatomic,strong) NSMutableArray > *handlList; + ++ (instancetype)sharedInstance; + +- (BOOL)handleMiniAppRouterURL:(NSString *)urlStr onViewController:(UIViewController *)vc withParam:(NSDictionary *)param animated:(BOOL)animated; + +/// @brief 只能注册一个 +- (void)addMiniAppRouterListener:(id)miniAppURLListener; + +- (void)removeMiniAppRouterListener:(id)miniAppURLListener; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeContainer.framework/Headers/AlibcTradeMiniAppURLRouterProtocol.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeContainer.framework/Headers/AlibcTradeMiniAppURLRouterProtocol.h new file mode 100644 index 0000000..4ba639e --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeContainer.framework/Headers/AlibcTradeMiniAppURLRouterProtocol.h @@ -0,0 +1,24 @@ +/* + * AlibcTradeMiniAppURLRouterProtocol.h + * + * 阿里百川电商 + * 项目名称:阿里巴巴电商 AlibcTradeContainer + * 版本号:5.0.0.0 + * 发布时间:2020-01-03 + * 开发团队:阿里巴巴百川 + * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) + * Copyright (c) 2016-2020 阿里巴巴-淘宝-百川. All rights reserved. + */ + +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +@protocol AlibcTradeMiniAppURLRouterProtocol + +- (BOOL)openURL:(NSString *)urlStr onViewController:(UIViewController *)vc withParam:(NSDictionary *)param animated:(BOOL)animated; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeContainer.framework/Headers/AlibcTradeOpenUrlContextModel.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeContainer.framework/Headers/AlibcTradeOpenUrlContextModel.h new file mode 100644 index 0000000..ee368cb --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeContainer.framework/Headers/AlibcTradeOpenUrlContextModel.h @@ -0,0 +1,46 @@ +/* + * AlibcTradeOpenUrlContextModel.h + * + * 阿里百川电商 + * 项目名称:阿里巴巴电商 AlibcTradeContainer + * 版本号:5.0.0.0 + * 发布时间:2020-01-03 + * 开发团队:阿里巴巴百川 + * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) + * Copyright (c) 2016-2020 阿里巴巴-淘宝-百川. All rights reserved. + */ + +#import +#import +#import +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface AlibcTradeOpenUrlContextModel : NSObject + +@property (nonatomic, weak) UIViewController *parentViewController; +@property (nonatomic, copy) NSString *url; +@property (nonatomic, copy) NSString *containerTag; +@property (nonatomic, copy) NSString *originalUrl; +@property (nonatomic, copy) NSString *code; + +// 用户传参透传 +/** 用户传入页面打开设置 */ +@property (nonatomic, strong) AlibcTradeShowParams *showParams; + +/** 用户传入的淘客参数 */ +@property (nonatomic, strong) AlibcTradeTaokeParams *taokeParams; + +@property (nonatomic, strong) NSDictionary *bizExtParams; + +/** 链路跟踪参数 */ +@property (nonatomic, copy) NSDictionary *trackParam; + +/** url 参数列表*/ +@property (nonatomic, copy) NSDictionary *paramDic; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeContainer.framework/Headers/AlibcTradeOpenUrlHandleCenter.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeContainer.framework/Headers/AlibcTradeOpenUrlHandleCenter.h new file mode 100644 index 0000000..a772baa --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeContainer.framework/Headers/AlibcTradeOpenUrlHandleCenter.h @@ -0,0 +1,32 @@ +/* + * AlibcTradeOpenUrlHandleCenter.h + * + * 阿里百川电商 + * 项目名称:阿里巴巴电商 AlibcTradeContainer + * 版本号:5.0.0.0 + * 发布时间:2020-01-03 + * 开发团队:阿里巴巴百川 + * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) + * Copyright (c) 2016-2020 阿里巴巴-淘宝-百川. All rights reserved. + */ + +#import +#import "AlibcTradeOpenUrlContextModel.h" + +NS_ASSUME_NONNULL_BEGIN + +@interface AlibcTradeOpenUrlHandleCenter : NSObject + +/** + * AlibcTradeOpenUrlHandleCenter 的单例对象 + */ ++ (instancetype)sharedInstance; + +- (void)openUrl:(nullable NSString *)url + WithContext:(AlibcTradeOpenUrlContextModel *)context + successCallBack:(nullable void (^)(NSDictionary *result))onSuccess + failedCallBack:(nullable void (^)(NSError *__nullable error))onFailure; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeContainer.framework/Info.plist b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeContainer.framework/Info.plist new file mode 100644 index 0000000..c115988 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeContainer.framework/Info.plist @@ -0,0 +1,51 @@ + + + + + BuildMachineOSBuild + 20D91 + CFBundleDevelopmentRegion + en + CFBundleExecutable + AlibcTradeContainer + CFBundleIdentifier + com.aliTradeSDK.demoyishan.AlibcTradeContainer + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + AlibcTradeContainer + CFBundlePackageType + FMWK + CFBundleShortVersionString + 5.0.0.11 + CFBundleSupportedPlatforms + + iPhoneOS + + CFBundleVersion + 1 + DTCompiler + com.apple.compilers.llvm.clang.1_0 + DTPlatformBuild + 18B79 + DTPlatformName + iphoneos + DTPlatformVersion + 14.2 + DTSDKBuild + 18B79 + DTSDKName + iphoneos14.2 + DTXcode + 1220 + DTXcodeBuild + 12B45b + MinimumOSVersion + 9.0 + UIDeviceFamily + + 1 + 2 + + + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeContainer.framework/Modules/module.modulemap b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeContainer.framework/Modules/module.modulemap new file mode 100644 index 0000000..2c56c25 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeContainer.framework/Modules/module.modulemap @@ -0,0 +1,6 @@ +framework module AlibcTradeContainer { + umbrella header "AlibcTradeContainer.h" + + export * + module * { export * } +} diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateBizSDK.framework/AlibcTradeUltimateBizSDK b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateBizSDK.framework/AlibcTradeUltimateBizSDK new file mode 100644 index 0000000..3da6e4b Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateBizSDK.framework/AlibcTradeUltimateBizSDK differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateBizSDK.framework/Headers/AlibcChannelModule.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateBizSDK.framework/Headers/AlibcChannelModule.h new file mode 100644 index 0000000..e5824c8 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateBizSDK.framework/Headers/AlibcChannelModule.h @@ -0,0 +1,28 @@ +/* + * AlibcChannelModule.h + * + * 阿里百川电商 + * 项目名称:阿里巴巴电商 AlibcTradeUltimateBizSDK + * 版本号:5.0.0.0 + * 发布时间:2020-01-03 + * 开发团队:阿里巴巴百川 + * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) + * Copyright (c) 2016-2020 阿里巴巴-淘宝-百川. All rights reserved. + */ + +#ifndef ALiChannelModule_h +#define ALiChannelModule_h + +#import + +//添加umpChannel u_channel isvCode,ybhpss,ttid参数 +@interface AlibcChannelModule : NSObject + ++ (void)addChannelParam:(NSMutableDictionary *)param; ++ (void)addChannelParamForMiniApp:(NSMutableDictionary *)param; + + + +@end + +#endif /* ALiChannelModule_h */ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateBizSDK.framework/Headers/AlibcChannelUrlUtils.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateBizSDK.framework/Headers/AlibcChannelUrlUtils.h new file mode 100644 index 0000000..ea9af33 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateBizSDK.framework/Headers/AlibcChannelUrlUtils.h @@ -0,0 +1,27 @@ +/* + * AlibcChannelUrlUtils.h + * + * 阿里百川电商 + * 项目名称:阿里巴巴电商 AlibcTradeUltimateBizSDK + * 版本号:5.0.0.0 + * 发布时间:2020-01-03 + * 开发团队:阿里巴巴百川 + * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) + * Copyright (c) 2016-2020 阿里巴巴-淘宝-百川. All rights reserved. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface AlibcChannelUrlUtils : NSObject + ++ (instancetype)shareInstance; + +- (NSString *)filterURL:(NSString *)url; + +- (NSString *)filterURL:(NSString *)url WithParms:(NSDictionary *)dic; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateBizSDK.framework/Headers/AlibcMtopCmdDef.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateBizSDK.framework/Headers/AlibcMtopCmdDef.h new file mode 100644 index 0000000..0eed64c --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateBizSDK.framework/Headers/AlibcMtopCmdDef.h @@ -0,0 +1,27 @@ +/* + * AlibcMtopCmdDef.h + * + * 阿里百川电商 + * 项目名称:阿里巴巴电商 AlibcTradeUltimateBizSDK + * 版本号:5.0.0.0 + * 发布时间:2020-01-03 + * 开发团队:阿里巴巴百川 + * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) + * Copyright (c) 2016-2020 阿里巴巴-淘宝-百川. All rights reserved. + */ + +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface AlibcMtopCmdDef : NSObject + +@end + +//授权 +@interface AlibcMtopAuthGetToken : AlibcMtopCmd + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateBizSDK.framework/Headers/AlibcTrackParams.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateBizSDK.framework/Headers/AlibcTrackParams.h new file mode 100644 index 0000000..41369d1 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateBizSDK.framework/Headers/AlibcTrackParams.h @@ -0,0 +1,46 @@ +/* + * AlibcTrackParams.h + * + * 阿里百川电商 + * 项目名称:阿里巴巴电商 AlibcTradeUltimateBizSDK + * 版本号:5.0.0.0 + * 发布时间:2020-01-03 + * 开发团队:阿里巴巴百川 + * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) + * Copyright (c) 2016-2020 阿里巴巴-淘宝-百川. All rights reserved. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface AlibcTrackParams : NSObject +/**必填: 供计算效果用,由推荐模块输出内容后,曝光埋点使用 */ +@property(nonatomic, strong) NSString *scm; +/**必填: 供计算效果用,由推荐模块输出内容后,曝光埋点使用 */ +@property(nonatomic, strong) NSString *pvid; +/**必填: 三方app的用户识别id,用于百川识别该用户行为并对推荐效果进行优化 */ +@property(nonatomic, strong) NSString *puid; +/** 三方app页面名称*/ +@property(nonatomic, strong) NSString *page; +/** 三方app控件名称 */ +@property(nonatomic, strong) NSString *label; + + +/* + * trackParam 参数key说明 + */ +#define track_scm @"scm" +#define track_pvid @"pvid" +#define track_isv_code @"isv_code" + +/** + * 生成Dictionary + */ +- (NSDictionary *)toDictionary; + ++ (NSString *)ybhpssStringForDictionary:(NSDictionary *)params; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateBizSDK.framework/Headers/AlibcTradeBizParamService.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateBizSDK.framework/Headers/AlibcTradeBizParamService.h new file mode 100644 index 0000000..e0c4655 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateBizSDK.framework/Headers/AlibcTradeBizParamService.h @@ -0,0 +1,28 @@ +/* + * AlibcTradeBizParamService.h + * + * 阿里百川电商 + * 项目名称:阿里巴巴电商 AlibcTradeUltimateBizSDK + * 版本号:5.0.0.0 + * 发布时间:2020-01-03 + * 开发团队:阿里巴巴百川 + * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) + * Copyright (c) 2016-2020 阿里巴巴-淘宝-百川. All rights reserved. + */ + +#import +#import "AlibcTradeTaokeParams.h" + +NS_ASSUME_NONNULL_BEGIN + +@interface AlibcTradeBizParamService : NSObject + ++ (instancetype)sharedInstance; + +// isv code +@property(nonatomic, copy) NSString *isvCode; + + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateBizSDK.framework/Headers/AlibcTradeBuildUrlRequestManager.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateBizSDK.framework/Headers/AlibcTradeBuildUrlRequestManager.h new file mode 100644 index 0000000..1acda37 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateBizSDK.framework/Headers/AlibcTradeBuildUrlRequestManager.h @@ -0,0 +1,30 @@ +/* + * AlibcTradeBuildUrlRequestManager.h + * + * 阿里百川电商 + * 项目名称:阿里巴巴电商 AlibcTradeUltimateBizSDK + * 版本号:5.0.0.0 + * 发布时间:2020-01-03 + * 开发团队:阿里巴巴百川 + * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) + * Copyright (c) 2016-2020 阿里巴巴-淘宝-百川. All rights reserved. + */ + +#import +#import "AlibcTradeUrlHandleModel.h" + +NS_ASSUME_NONNULL_BEGIN + +@interface AlibcTradeBuildUrlRequestManager : NSObject + ++ (instancetype)sharedInstance; + +// API 调用链路 URL拦截处理 +- (AlibcURLProcessResult *)processUrl4Api:(AlibcURLHandRequest *)request; + +// container 事件拦截 URL拦截处理 +- (AlibcURLProcessResult *)processUrl4Container:(AlibcURLHandRequest *)request; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateBizSDK.framework/Headers/AlibcTradeConfigService.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateBizSDK.framework/Headers/AlibcTradeConfigService.h new file mode 100644 index 0000000..d442529 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateBizSDK.framework/Headers/AlibcTradeConfigService.h @@ -0,0 +1,45 @@ +/* + * AlibcTradeConfigService.h + * + * 阿里百川电商 + * 项目名称:阿里巴巴电商 AlibcTradeUltimateBizSDK + * 版本号:5.0.0.0 + * 发布时间:2020-01-03 + * 开发团队:阿里巴巴百川 + * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) + * Copyright (c) 2016-2020 阿里巴巴-淘宝-百川. All rights reserved. + */ + +#import +#import "AlibcTradeSDKConfigModel.h" +#import +#import "AlibcTradeTaokeParams.h" + +NS_ASSUME_NONNULL_BEGIN + +@interface AlibcTradeConfigService : NSObject + ++ (instancetype)sharedConfig; + +- (void)updateConfig; + +- (void)updateESConfig; + +- (AlibcTradeSDKConfigModel *)getTradeSDKConfig; + +- (AlibcTradeESConfigModel *)getTradeESSDKConfig; + +- (NSError *)testSDKFunc:(NSString *)func; + +- (NSError *)testAppLinkFunc:(NSString *)appLinkFunc; + +- (void)logBCSuiteConfigInfo; + +@property(nonatomic, readonly) NSString *channel; + +@property(nonatomic, readonly) NSArray *allSuiteCodes; +@property(nonatomic, readonly) NSArray *allPageCodes; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateBizSDK.framework/Headers/AlibcTradeLoginBridge.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateBizSDK.framework/Headers/AlibcTradeLoginBridge.h new file mode 100644 index 0000000..2c9fca0 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateBizSDK.framework/Headers/AlibcTradeLoginBridge.h @@ -0,0 +1,92 @@ +/* + * AlibcTradeLoginBridge.h + * + * 阿里百川电商 + * 项目名称:阿里巴巴电商 AlibcTradeUltimateBizSDK + * 版本号:5.0.0.0 + * 发布时间:2020-01-03 + * 开发团队:阿里巴巴百川 + * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) + * Copyright (c) 2016-2020 阿里巴巴-淘宝-百川. All rights reserved. + */ + +#import +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface AlibcUser : NSObject + +/** 昵称 */ +@property (nonatomic, copy) NSString *nick; +/** 头像地址 */ +@property (nonatomic, copy) NSString *avatarUrl; + +@property (nonatomic, copy) NSString *openId; +@property (nonatomic, copy) NSString *openSid; + +@property (nonatomic, copy) NSString *topAccessToken; +@property (nonatomic, copy) NSString *topAuthCode; + +@end + +/** 回调定义 */ +typedef void (^AlibcLoginSuccessCallback)(NSString *userId, + NSString *userNick, + NSString *avatarUrl, + NSString *topAccessToken, + NSString *topAuthCode); +typedef void (^AlibcLoginFailureCallback)(NSError *error); + +@interface AlibcTradeLoginBridge : NSObject + +/** + 登录模块标准初始化接口 + */ ++ (void)initLogin; + +/** + 判断是否已经登录 + */ ++ (BOOL)isLogin; + +/** + 登录模块极简版初始化接口 + + @brief 极简版没有依赖安全模块, 需要手动传入 Appkey + + @param appkey appkey + */ ++ (void)initLoginWithAppkey:(NSString *)appkey; + ++ (BOOL)isLoginSvrAvaleable; + ++ (void)showLogin:(UIViewController *)parentController + successCallback:(AlibcLoginSuccessCallback)onSuccess + failedCallback:(AlibcLoginFailureCallback)onFailure; + ++ (NSDictionary *)getLoginUserInfo; + ++ (void)logout; + ++ (void)setEnvironment:(AlibcEnvironment)env; + +/** + 是否是登陆URL + */ ++ (BOOL)isLoginURL:(NSString *)url; + +/** + 是否是登出URL + */ ++ (BOOL)isLogoutUrl:(NSString *)url; + +/** + 手淘跳转回来,拿到url调用 + */ ++ (BOOL)loginByURL:(NSString *)url; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateBizSDK.framework/Headers/AlibcTradeMtopModels.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateBizSDK.framework/Headers/AlibcTradeMtopModels.h new file mode 100644 index 0000000..1a32d47 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateBizSDK.framework/Headers/AlibcTradeMtopModels.h @@ -0,0 +1,14 @@ +// +// AlibcTradeMtopModels.h +// AlibcTradeUltimateBizSDK +// +// Created by Jason Lee on 2020/3/12. +// Copyright © 2020 shan yi. All rights reserved. +// + +#import +#import + +@interface AlibcTradeGetAppSuiteConfigCmd : AlibcMtopCmd + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateBizSDK.framework/Headers/AlibcTradeRouterConfigModel.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateBizSDK.framework/Headers/AlibcTradeRouterConfigModel.h new file mode 100644 index 0000000..d949b87 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateBizSDK.framework/Headers/AlibcTradeRouterConfigModel.h @@ -0,0 +1,26 @@ +/* + * AlibcTradeRouterConfigModel.h + * + * 阿里百川电商 + * 项目名称:阿里巴巴电商 AlibcTradeUltimateBizSDK + * 版本号:5.0.0.0 + * 发布时间:2020-01-03 + * 开发团队:阿里巴巴百川 + * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) + * Copyright (c) 2016-2020 阿里巴巴-淘宝-百川. All rights reserved. + */ + +#import +#import "AlibcTradeSDKActionModel.h" +#import + +@interface AlibcTradeRouterConfigModel : AlibcJSONModel + +@property(nonatomic,copy)NSString *match; + +@property(nonatomic,copy)NSArray *index; + +@property(nonatomic,copy)NSArray*action; + +@end + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateBizSDK.framework/Headers/AlibcTradeSDKActionModel.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateBizSDK.framework/Headers/AlibcTradeSDKActionModel.h new file mode 100644 index 0000000..d3b3eea --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateBizSDK.framework/Headers/AlibcTradeSDKActionModel.h @@ -0,0 +1,37 @@ +/* + * AlibcTradeSDKActionModel.h + * + * 阿里百川电商 + * 项目名称:阿里巴巴电商 AlibcTradeUltimateBizSDK + * 版本号:5.0.0.0 + * 发布时间:2020-01-03 + * 开发团队:阿里巴巴百川 + * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) + * Copyright (c) 2016-2020 阿里巴巴-淘宝-百川. All rights reserved. + */ + +#import +#import +@interface AlibcTradeSDKActionParamModel : AlibcJSONModel + +// Native +@property(nonatomic,copy)NSString *clientType; +@property(nonatomic,copy)NSString *clientPage; +@property(nonatomic,copy)NSString *targetPath; +@property(nonatomic,strong) NSNumber *force; + +// h5 也需要clientPage + +// miniApp +@property(nonatomic,copy)NSString *basePath; + +@end + +@interface AlibcTradeSDKActionModel : AlibcJSONModel + +@property(nonatomic,copy)NSString *openType; +@property(nonatomic,strong)AlibcTradeSDKActionParamModel *param; + +@end + + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateBizSDK.framework/Headers/AlibcTradeSDKCodeConfigModel.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateBizSDK.framework/Headers/AlibcTradeSDKCodeConfigModel.h new file mode 100644 index 0000000..a681372 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateBizSDK.framework/Headers/AlibcTradeSDKCodeConfigModel.h @@ -0,0 +1,22 @@ +/* + * AlibcTradeSDKCodeConfigModel.h + * + * 阿里百川电商 + * 项目名称:阿里巴巴电商 AlibcTradeUltimateBizSDK + * 版本号:5.0.0.0 + * 发布时间:2020-01-03 + * 开发团队:阿里巴巴百川 + * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) + * Copyright (c) 2016-2020 阿里巴巴-淘宝-百川. All rights reserved. + */ + +#import +#import + +@interface AlibcTradeSDKCodeConfigModel : AlibcJSONModel + +@property(nonatomic,copy)NSString *name; +@property(nonatomic,copy)NSString *url; + +@end + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateBizSDK.framework/Headers/AlibcTradeSDKConfigModel.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateBizSDK.framework/Headers/AlibcTradeSDKConfigModel.h new file mode 100644 index 0000000..d32b10d --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateBizSDK.framework/Headers/AlibcTradeSDKConfigModel.h @@ -0,0 +1,53 @@ +/* + * AlibcTradeSDKConfigModel.h + * + * 阿里百川电商 + * 项目名称:阿里巴巴电商 AlibcTradeUltimateBizSDK + * 版本号:5.0.0.0 + * 发布时间:2020-01-03 + * 开发团队:阿里巴巴百川 + * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) + * Copyright (c) 2016-2020 阿里巴巴-淘宝-百川. All rights reserved. + */ + +#import +#import +#import "AlibcTradeSDKCodeConfigModel.h" +#import "AlibcTradeSDKUrlTypeConfigModel.h" +#import "AlibcTradeRouterConfigModel.h" +#import "AlibcTradeSDKUrlTypeConfigModel.h" +#import "AlibcTradeUrlBizModel.h" + +@interface AlibcTradeMiscConfigModel:AlibcJSONModel + +@property(nonatomic,copy)NSString* failMode; +@property(nonatomic,copy)NSString* isNeedAlizf; +@property(nonatomic,copy)NSString* sampling; +@property(nonatomic,copy)NSString* monitorSampling; +@property(nonatomic,copy)NSString* loginDegarade; +@property(nonatomic,copy)NSString* isSyncForTaoke; +@property(nonatomic,copy)NSString* urlApi; +@property(nonatomic,copy)NSString* miniConf; +@property(nonatomic,copy)NSString* al; +@property(nonatomic,copy)NSString* extConfigApi; +@property(nonatomic,copy)NSString* closeFileLog; // 老开关,目前线上全部为NO,新版本不在使用 +@property(nonatomic,copy)NSString* enableFileLog; // 没有值默认开启,可通过线上配置关闭日志写文件 + +@end + +@interface AlibcTradeSDKConfigModel : AlibcJSONModel + +@property(nonatomic,copy)NSString *version; +@property(nonatomic,copy)NSString *sign; +@property(nonatomic,assign)NSInteger st; +@property(nonatomic,copy)NSString *em; +@property(nonatomic,copy)NSArray *forbidByCode; +@property(nonatomic,copy)NSArray *addParamUrls; +@property(nonatomic,strong)AlibcTradeMiscConfigModel *misc; +@property(nonatomic,strong)NSArray*bizPattern; +@property(nonatomic,strong)NSArray*codeConfig; +@property(nonatomic,strong)NSArray*urlTypeConfig; +@property(nonatomic,strong)NSArray*routeConfig; + +@end + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateBizSDK.framework/Headers/AlibcTradeSDKUrlTypeConfigModel.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateBizSDK.framework/Headers/AlibcTradeSDKUrlTypeConfigModel.h new file mode 100644 index 0000000..7239377 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateBizSDK.framework/Headers/AlibcTradeSDKUrlTypeConfigModel.h @@ -0,0 +1,22 @@ +/* + * AlibcTradeSDKUrlTypeConfigModel.h + * + * 阿里百川电商 + * 项目名称:阿里巴巴电商 AlibcTradeUltimateBizSDK + * 版本号:5.0.0.0 + * 发布时间:2020-01-03 + * 开发团队:阿里巴巴百川 + * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) + * Copyright (c) 2016-2020 阿里巴巴-淘宝-百川. All rights reserved. + */ + +#import +#import + +@interface AlibcTradeSDKUrlTypeConfigModel : AlibcJSONModel + +@property (nonatomic,copy)NSString *type; +@property (nonatomic,copy)NSArray *pattern; + +@end + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateBizSDK.framework/Headers/AlibcTradeShowParams.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateBizSDK.framework/Headers/AlibcTradeShowParams.h new file mode 100644 index 0000000..a962e76 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateBizSDK.framework/Headers/AlibcTradeShowParams.h @@ -0,0 +1,49 @@ +/* + * AlibcTradeShowParams.h + * + * 阿里百川电商 + * 项目名称:阿里巴巴电商 AlibcTradeUltimateBizSDK + * 版本号:5.0.0.0 + * 发布时间:2020-01-03 + * 开发团队:阿里巴巴百川 + * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) + * Copyright (c) 2016-2020 阿里巴巴-淘宝-百川. All rights reserved. + */ + +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface AlibcTradeShowParams : NSObject + +/** + 是否需要用aliApp打开相关页面,目前支持 淘宝、天猫 + */ +@property(nonatomic, assign) BOOL isNeedOpenByAliApp; + +/** + * applink使用,优先拉起的linkKey,手淘:@"taobao" 天猫:@"tmall" + * 其中当设置天猫时发现未安装,如果安装手淘会拉起手淘 + */ +@property(nonatomic, strong) NSString *linkKey; + +/** + 唤起阿里App失败处理模式 默认唤端失败会拉起对应AliApp下载页 + */ +@property(nonatomic, assign) AlibcOpenByAliAppFailedMode failMode; + +/** + 媒体自定义降级url;注 failMode 需要设置 AlibcOpenInAppByCustomerDegradeUrl + */ +@property(nonatomic, copy)NSString *degradeUrl; + + +/** 使用百川webView支持push、present两种方式打开 默认为 present webView */ +@property(nonatomic, assign)BOOL isPushBCWebView; + +@property(nonatomic, copy) NSString *backUrl; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateBizSDK.framework/Headers/AlibcTradeTaokeParams.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateBizSDK.framework/Headers/AlibcTradeTaokeParams.h new file mode 100644 index 0000000..730cc55 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateBizSDK.framework/Headers/AlibcTradeTaokeParams.h @@ -0,0 +1,48 @@ +/* + * AlibcTradeTaokeParams.h + * + * 阿里百川电商 + * 项目名称:阿里巴巴电商 AlibcTradeUltimateBizSDK + * 版本号:5.0.0.0 + * 发布时间:2020-01-03 + * 开发团队:阿里巴巴百川 + * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) + * Copyright (c) 2016-2020 阿里巴巴-淘宝-百川. All rights reserved. + */ + +#import +#import + +#ifndef AlibcTradeTaokeParams_h +#define AlibcTradeTaokeParams_h + +/** + * 统一的 key 写法 + */ +static NSString *const AlibcTradeTaokeParamsPid = @"pid"; +static NSString *const AlibcTradeTaokeParamsUnionID = @"unionId"; +static NSString *const AlibcTradeTaokeParamsSubPid = @"subpid"; + +/** 淘客参数 */ +@interface AlibcTradeTaokeParams : AlibcJSONModel +/** 淘客ID */ +@property(nonatomic, copy) NSString *pid; + +@property(nonatomic, copy) NSString *unionId; + +// 三方pid +@property(nonatomic, copy) NSString *subPid; + +// 媒体物料来源url +@property(nonatomic, copy) NSString *materialSourceUrl; + +//渠道id +@property(nonatomic, copy) NSString *relationId; + +@property(nonatomic, strong) NSDictionary *extParams; + +- (NSDictionary *)taokeParamDictionary; + +@end + +#endif diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateBizSDK.framework/Headers/AlibcTradeUltimateBiz.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateBizSDK.framework/Headers/AlibcTradeUltimateBiz.h new file mode 100644 index 0000000..ca65b1c --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateBizSDK.framework/Headers/AlibcTradeUltimateBiz.h @@ -0,0 +1,34 @@ +/* + * AlibcTradeUltimateBiz.h + * + * 阿里百川电商 + * 项目名称:阿里巴巴电商 AlibcTradeUltimateBizSDK + * 版本号:5.0.0.0 + * 发布时间:2020-01-03 + * 开发团队:阿里巴巴百川 + * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) + * Copyright (c) 2016-2020 阿里巴巴-淘宝-百川. All rights reserved. + */ + +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface AlibcTradeUltimateBiz : NSObject + +/** + * 初始化函数,初始化成功后方可正常使用SDK中的功能 + * + * @param onSuccess 初始化成功的回调 + * @param onFailure 初始化失败的回调 + */ ++ (void)asyncInitWithSuccess:(void (^)(void))onSuccess + failure:(void (^)(NSError *error))onFailure; + + ++ (void)setEnvironment:(AlibcEnvironment)env; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateBizSDK.framework/Headers/AlibcTradeUltimateBizSDK.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateBizSDK.framework/Headers/AlibcTradeUltimateBizSDK.h new file mode 100644 index 0000000..3e4efeb --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateBizSDK.framework/Headers/AlibcTradeUltimateBizSDK.h @@ -0,0 +1,43 @@ +/* + * AlibcTradeUltimateBizSDK.h + * + * 阿里百川电商 + * 项目名称:阿里巴巴电商 AlibcTradeUltimateBizSDK + * 版本号:5.0.0.0 + * 发布时间:2020-01-03 + * 开发团队:阿里巴巴百川 + * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) + * Copyright (c) 2016-2020 阿里巴巴-淘宝-百川. All rights reserved. + */ + +#import + +//! Project version number for AlibcTradeUltimateBizSDK. +FOUNDATION_EXPORT double AlibcTradeUltimateBizSDKVersionNumber; + +//! Project version string for AlibcTradeUltimateBizSDK. +FOUNDATION_EXPORT const unsigned char AlibcTradeUltimateBizSDKVersionString[]; + +// In this header, you should import all the public headers of your framework using statements like #import + +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import + + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateBizSDK.framework/Headers/AlibcTradeUrlBizModel.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateBizSDK.framework/Headers/AlibcTradeUrlBizModel.h new file mode 100644 index 0000000..b49a9e6 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateBizSDK.framework/Headers/AlibcTradeUrlBizModel.h @@ -0,0 +1,25 @@ +/* + * AlibcTradeUrlBizModel.h + * + * 阿里百川电商 + * 项目名称:阿里巴巴电商 AlibcTradeUltimateBizSDK + * 版本号:5.0.0.0 + * 发布时间:2020-01-03 + * 开发团队:阿里巴巴百川 + * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) + * Copyright (c) 2016-2020 阿里巴巴-淘宝-百川. All rights reserved. + */ + +#import +#import + +#define kAlibcTradeUrlBizCodeDetail @"detail" +#define kAlibcTradeUrlBizCodeShop @"shop" +#define kAlibcTradeUrlBizCodeTaobaoLite @"taobaolite" + +@interface AlibcTradeUrlBizModel : AlibcJSONModel + +@property(nonatomic,copy)NSArray*pattern; +@property(nonatomic,copy)NSString *bizCode; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateBizSDK.framework/Headers/AlibcTradeUrlHandleModel.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateBizSDK.framework/Headers/AlibcTradeUrlHandleModel.h new file mode 100644 index 0000000..b863794 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateBizSDK.framework/Headers/AlibcTradeUrlHandleModel.h @@ -0,0 +1,159 @@ +/* + * AlibcTradeUrlHandleModel.h + * + * 阿里百川电商 + * 项目名称:阿里巴巴电商 AlibcTradeUltimateBizSDK + * 版本号:5.0.0.0 + * 发布时间:2020-01-03 + * 开发团队:阿里巴巴百川 + * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) + * Copyright (c) 2016-2020 阿里巴巴-淘宝-百川. All rights reserved. + */ + +#import +#import +#import "AlibcTradeShowParams.h" +#import "AlibcTradeTaokeParams.h" +#import "AlibcTradeUrlParams.h" + +#define kAlibcInnerNativeScheme @"bcnative" + +/** + * 原始页面类型 + */ +typedef NS_ENUM(NSUInteger, AlibcPageType) { + /** h5 */ + AlibcH5Page, + /** 小程序 */ + AlibcMiniAppPage, + /* Native*/ + AlibcNative +}; + + +NS_ASSUME_NONNULL_BEGIN +@interface AlibcURLHandRequest : NSObject + +/** 父页面VC */ +@property(nonatomic,weak)UIViewController *parentViewController; + +/** 待处理URL */ +@property (nonatomic,strong)NSURL *URL; + +/** 待匹配URL */ +@property (nonatomic,strong)NSURL *matchURL; + +/** 用户传入页面打开设置 */ +@property (nonatomic,strong)AlibcTradeShowParams *showParams; + +/** 用户传入的淘客参数 */ +@property(nonatomic,strong)AlibcTradeTaokeParams *taokeParams; + +@property (nonatomic,strong) NSDictionary *bizExtParams; + +/** code */ +@property (nonatomic,copy)NSString *code; + +/** code url 参数列表*/ +@property (nonatomic,copy)NSDictionary *paramDic; + +/** trackParam 链路跟踪参数*/ +@property (nonatomic,copy)NSDictionary *trackParam; + +/// @brief 构建Reqeust如果传入recoveryId,就不会重新创建recoveryId +@property (nonatomic,copy)NSString *recoveryId; + +@end + +@interface AlibcURLOpenAction : NSObject + +/** 处理业务容器标识 */ +@property(nonatomic,copy) NSString *containerTag; + +/** 打开目标URL */ +@property(nonatomic,strong)NSURL *url; + +/** 打开页面 URL 业务属性 */ +@property(nonatomic,copy) NSString *bizCode; + +/** 唤端module 业务参数 detail 为 itemId, shop 时 为 shopId*/ +@property(nonatomic,copy)NSString *bizParam; + +/** 唤端参数 */ +@property(nonatomic,copy) NSString *linkKey; + +/** + 唤起阿里App失败处理模式 默认唤端失败会拉起对应AliApp下载页 + */ +@property(nonatomic, assign) AlibcOpenByAliAppFailedMode failMode; + +/** + 媒体自定义降级url;注 failMode 需要设置 AlibcOpenInAppByCustomerDegradeUrl + */ +@property(nonatomic, copy)NSString *degradeUrl; + +/** 使用百川webView支持push、present两种方式打开 默认为 present webView */ +@property(nonatomic, assign)BOOL isPushBCWebView; + +@end + +@interface AlibcURLProcessResult : NSObject + +/** 原始URL */ +@property(strong,nonatomic) NSURL *originalURL; + +/** URL 页面类型 */ +@property(nonatomic,assign) AlibcPageType urlType; +@property (nonatomic,copy) NSString *urlTypeStr; + +/** 父页面VC */ +@property(nonatomic,weak)UIViewController *parentViewController; + +/** URL 打开方式集合 */ +@property(nonatomic,copy)NSArray*actions; + +/** 上层媒体打开设置参数 */ +@property(nonatomic,strong)AlibcTradeShowParams *showParams; + +/** 上层媒体传入的淘客参数 */ +@property(nonatomic,strong)AlibcTradeTaokeParams *taokeParams; + +@property (nonatomic,strong) NSDictionary *bizExtParams; + +/** 上层媒体传入的业务参数 */ +@property(nonatomic,strong)NSDictionary *urlParams; + +/** 链路跟踪参数 */ +@property(nonatomic,strong)NSDictionary *trackParam; + +/** request 处理过程中 逻辑错误 直接返回上层 */ +@property (nonatomic,strong)NSError *error; + +/** sourceType(二跳) :web / miniapp*/ +@property (nonatomic,copy)NSString *sourceType; + +/** 是否是iframe */ +@property (nonatomic,assign)BOOL isiFrame; + +/** + 扩展参数 + */ +@property(nonatomic,strong)NSDictionary *extParam; + +/** 套件类型 */ +@property (nonatomic,copy)NSString *suitType; +@property (nonatomic,copy)NSString *suiteCode; +/** 页面类型 */ +@property (nonatomic,copy)NSString *pageType; +@property (nonatomic,copy)NSString *pageCode; + +@property (nonatomic,copy)NSString *recoveryId; + +@end + + +@interface AlibcTradeUrlHandleModel : NSObject + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateBizSDK.framework/Headers/AlibcTradeUrlParams.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateBizSDK.framework/Headers/AlibcTradeUrlParams.h new file mode 100644 index 0000000..7dc70cb --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateBizSDK.framework/Headers/AlibcTradeUrlParams.h @@ -0,0 +1,30 @@ +/* + * AlibcTradeUrlParams.h + * + * 阿里百川电商 + * 项目名称:阿里巴巴电商 AlibcTradeUltimateBizSDK + * 版本号:5.0.0.0 + * 发布时间:2020-01-03 + * 开发团队:阿里巴巴百川 + * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) + * Copyright (c) 2016-2020 阿里巴巴-淘宝-百川. All rights reserved. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface AlibcTradeUrlParams : NSObject + +// 商品id +@property (nonatomic,copy)NSString *id; + +// 店铺id +@property (nonatomic,copy)NSString *shopId; + +// 业务扩展传参 +@property (nonatomic,copy)NSDictionary *bizExtMap; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateBizSDK.framework/Info.plist b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateBizSDK.framework/Info.plist new file mode 100644 index 0000000..635f0c5 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateBizSDK.framework/Info.plist @@ -0,0 +1,51 @@ + + + + + BuildMachineOSBuild + 20D91 + CFBundleDevelopmentRegion + en + CFBundleExecutable + AlibcTradeUltimateBizSDK + CFBundleIdentifier + com.aliTradeSDK.demoyishan.AlibcTradeUltimateBizSDK + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + AlibcTradeUltimateBizSDK + CFBundlePackageType + FMWK + CFBundleShortVersionString + 5.0.0.11 + CFBundleSupportedPlatforms + + iPhoneOS + + CFBundleVersion + 1 + DTCompiler + com.apple.compilers.llvm.clang.1_0 + DTPlatformBuild + 18B79 + DTPlatformName + iphoneos + DTPlatformVersion + 14.2 + DTSDKBuild + 18B79 + DTSDKName + iphoneos14.2 + DTXcode + 1220 + DTXcodeBuild + 12B45b + MinimumOSVersion + 9.0 + UIDeviceFamily + + 1 + 2 + + + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateBizSDK.framework/NBBizResource.bundle/Root.plist b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateBizSDK.framework/NBBizResource.bundle/Root.plist new file mode 100644 index 0000000..b1b6fea --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateBizSDK.framework/NBBizResource.bundle/Root.plist @@ -0,0 +1,61 @@ + + + + + StringsTable + Root + PreferenceSpecifiers + + + Type + PSGroupSpecifier + Title + Group + + + Type + PSTextFieldSpecifier + Title + Name + Key + name_preference + DefaultValue + + IsSecure + + KeyboardType + Alphabet + AutocapitalizationType + None + AutocorrectionType + No + + + Type + PSToggleSwitchSpecifier + Title + Enabled + Key + enabled_preference + DefaultValue + + + + Type + PSSliderSpecifier + Key + slider_preference + DefaultValue + 0.5 + MinimumValue + 0 + MaximumValue + 1 + MinimumValueImage + + MaximumValueImage + + + + + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateBizSDK.framework/NBBizResource.bundle/auth_selected@2x.png b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateBizSDK.framework/NBBizResource.bundle/auth_selected@2x.png new file mode 100644 index 0000000..1d550d6 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateBizSDK.framework/NBBizResource.bundle/auth_selected@2x.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateBizSDK.framework/NBBizResource.bundle/auth_selected@3x.png b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateBizSDK.framework/NBBizResource.bundle/auth_selected@3x.png new file mode 100644 index 0000000..fbd7137 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateBizSDK.framework/NBBizResource.bundle/auth_selected@3x.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateBizSDK.framework/NBBizResource.bundle/back@2x.png b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateBizSDK.framework/NBBizResource.bundle/back@2x.png new file mode 100644 index 0000000..df11be4 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateBizSDK.framework/NBBizResource.bundle/back@2x.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateBizSDK.framework/NBBizResource.bundle/back@3x.png b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateBizSDK.framework/NBBizResource.bundle/back@3x.png new file mode 100644 index 0000000..dbec282 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateBizSDK.framework/NBBizResource.bundle/back@3x.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateBizSDK.framework/NBBizResource.bundle/close@2x.png b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateBizSDK.framework/NBBizResource.bundle/close@2x.png new file mode 100644 index 0000000..df92118 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateBizSDK.framework/NBBizResource.bundle/close@2x.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateBizSDK.framework/NBBizResource.bundle/close@3x.png b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateBizSDK.framework/NBBizResource.bundle/close@3x.png new file mode 100644 index 0000000..2f19382 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateBizSDK.framework/NBBizResource.bundle/close@3x.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateBizSDK.framework/NBBizResource.bundle/en.lproj/Root.strings b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateBizSDK.framework/NBBizResource.bundle/en.lproj/Root.strings new file mode 100644 index 0000000..8cd87b9 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateBizSDK.framework/NBBizResource.bundle/en.lproj/Root.strings differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateBizSDK.framework/NBBizResource.bundle/whiteClose@2x.png b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateBizSDK.framework/NBBizResource.bundle/whiteClose@2x.png new file mode 100644 index 0000000..955e85c Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateBizSDK.framework/NBBizResource.bundle/whiteClose@2x.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateBizSDK.framework/NBBizResource.bundle/whiteClose@3x.png b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateBizSDK.framework/NBBizResource.bundle/whiteClose@3x.png new file mode 100644 index 0000000..e92580f Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateBizSDK.framework/NBBizResource.bundle/whiteClose@3x.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateSDK.framework/AlibcTradeUltimateSDK b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateSDK.framework/AlibcTradeUltimateSDK new file mode 100644 index 0000000..a0aae8f Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateSDK.framework/AlibcTradeUltimateSDK differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateSDK.framework/Headers/AlibcTradeUltimateLoginService.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateSDK.framework/Headers/AlibcTradeUltimateLoginService.h new file mode 100644 index 0000000..9b8c88e --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateSDK.framework/Headers/AlibcTradeUltimateLoginService.h @@ -0,0 +1,37 @@ +// +// AlibcTradeUltimateLoginService.h +// AlibcTradeUltimateSDK +// +// Created by zhongweitao on 2020/7/29. +// Copyright © 2020 shan yi. All rights reserved. +// + +#import +#import +#import + +/// @brief 登录通知 +extern NSString *const ALBCTradeNotificationUserLoggedIn; +/// @brief 登出通知 +extern NSString *const ALBCTradeNotificationUserLoggedOut; + +typedef void (^AlibcLoginSuccess)(AlibcUser *user); +typedef void (^AlibcLoginFailure)(NSError *error); + +@protocol AlibcTradeUltimateLoginService + +/// @brief 是否登录 +- (BOOL)isLogin; + +/// @brief 登录 +- (void)auth:(UIViewController *)parentController success:(AlibcLoginSuccess)success failure:(AlibcLoginFailure)failture; + +/// @brief 退出登录 +- (void)logout; + +- (void)setH5Only:(BOOL)h5Only; + +/// @brief 获取登录用户信息 +- (AlibcUser *)getUser; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateSDK.framework/Headers/AlibcTradeUltimateSDK.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateSDK.framework/Headers/AlibcTradeUltimateSDK.h new file mode 100644 index 0000000..9925ad7 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateSDK.framework/Headers/AlibcTradeUltimateSDK.h @@ -0,0 +1,102 @@ +/* + * AlibcTradeUltimateSDK.h + * + * 阿里百川电商 + * 项目名称:阿里巴巴电商 AlibcTradeUltimateSDK + * 版本号:5.0.0.0 + * 发布时间:2020-01-03 + * 开发团队:阿里巴巴百川 + * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) + * Copyright (c) 2016-2020 阿里巴巴-淘宝-百川. All rights reserved. + */ + +#import +#import "AlibcTradeUltimateSDKService.h" +#import "AlibcTradeUltimateLoginService.h" +#import + +NS_ASSUME_NONNULL_BEGIN + +@class UIApplication; +@interface AlibcTradeUltimateSDK : NSObject + +/** + * AlibcTradeUltimateSDK 的单例对象 + */ ++ (instancetype)sharedInstance; + +/** + * 初始化函数,初始化成功后方可正常使用SDK中的功能 + * @param success 初始化成功的回调 + * @param failure 初始化失败的回调 + */ + +- (void)asyncInitWithSuccess:(void (^)(void))success + failure:(void (^)(NSError *error))failure; + +/** + * App 回跳处理, 适用于 iOS 9 起的回调接口 + + @param url url + @param options options + @return handled or nor + */ +- (BOOL)application:(UIApplication *)application + openURL:(NSURL *)url + options:(NSDictionary *)options; + +/** + 获取service对象,该对象包含大部分Trade相关的方法 + */ +- (id)tradeService; + +/// @brief 获取登录服务 +- (id)loginService; + +@end + +@interface AlibcTradeUltimateSDK (DevSetting) + +#pragma mark - 开发配置 +- (void)setDebugLogOpen:(BOOL)isDebugLogOpen; + +/// @brief 是否关闭自检工具(默认开启) +- (void)enableLocalDebug:(BOOL)enable; + +/// @brief 是否开启自动显示自检工具入口(默认关闭) +- (void)enableAutoShowDebug:(BOOL)enable; + +/// @brief 手动显示自检工具 +- (void)showLocalDebugTool:(UIViewController *)parentViewController; + +@end + +@interface AlibcTradeUltimateSDK (BizSetting) + +#pragma mark - 业务参数 + +/** + * 设置App标识字段,和isvcode同义,可用于区分使用本SDK的具体三方App + * + * @param code isv code 字段 + */ +- (void)setISVCode:(NSString *)code; + +/** + * 设置渠道信息,渠道专享价专用. + * + * @param type 渠道类型,必须由数字和字母组成,否则无效 + * @param name 渠道名,必须由数字和字母组成,否则无效 + */ +- (void)setChannel:(NSString *)type name:(NSString *)name; + +/** + * 开启接口免授权模式, + * 请不要随便设置,没有在后台申请相关的权限的,开启后会导致网络请求失败 + * + */ +- (void)enableAuthVipMode; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateSDK.framework/Headers/AlibcTradeUltimateSDKService.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateSDK.framework/Headers/AlibcTradeUltimateSDKService.h new file mode 100644 index 0000000..d630bf8 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateSDK.framework/Headers/AlibcTradeUltimateSDKService.h @@ -0,0 +1,82 @@ +/* + * AlibcTradeUltimateSDKService.h + * + * 阿里百川电商 + * 项目名称:阿里巴巴电商 AlibcTradeUltimateSDK + * 版本号:5.0.0.0 + * 发布时间:2020-01-03 + * 开发团队:阿里巴巴百川 + * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) + * Copyright (c) 2016-2020 阿里巴巴-淘宝-百川. All rights reserved. + */ + +#import +#import + +#import +#import +#import + +/* + * trackParam 参数key说明 + */ +#define track_scm @"scm" +#define track_pvid @"pvid" +#define track_isv_code @"isv_code" + +extern NSString * const kAlibcTradeEventNotificaion; +extern NSString * const kAlibcTradeEventNotificaionName; // notificaion userInfo 事件名字 +extern NSString * const kAlibcTradeEventNotificaionContent; // notificaion userInfo 事件内容 + +@protocol AlibcTradeUltimateSDKService + +/** + @param url 电商页面地址 + @param parentController 父视图 + @param showParams 页面打开方式自定义参数 + @param taoKeParams 淘客参数 + @param trackParam 链路跟踪参数 + @param openUrlCallBack 打开页面事件回调 + */ + +- (void)openTradeUrl:(NSString *)url + parentController:(UIViewController *)parentController + showParams:(AlibcTradeShowParams *)showParams + taoKeParams:(AlibcTradeTaokeParams *)taoKeParams + trackParam:(NSDictionary *)trackParam + openUrlCallBack:(void (^)(NSError *error,NSDictionary *result))openUrlCallBack; + +/** + @param code 电商套件code + @param parentController 父视图 + @param urlParams 电商套件业务传参 + @param showParams 页面打开方式自定义参数 + @param taoKeParams 淘客参数 + @param trackParam 链路跟踪参数 + @param openUrlCallBack 打开页面事件回调 + */ + +- (void)openTradePageByCode:(NSString *)code + parentController:(UIViewController *)parentController + urlParams:(AlibcTradeUrlParams *)urlParams + showParams:(AlibcTradeShowParams *)showParams + taoKeParams:(AlibcTradeTaokeParams *)taoKeParams + trackParam:(NSDictionary *)trackParam + openUrlCallBack:(void (^)(NSError *error,NSDictionary *result))openUrlCallBack; + +/** + @brief TOP 授权。 + @param appKey 要授权的appKey,可选参数,默认会取当前应用的appkey + @param appName 授权给当前客户端的名字 + @param appLogo 授权给当前客户端的图标 + @param currentVC 授权页面显示的当前VC (当前页面在tabbar上最好用tabbarController) + @param callBack 授权信息回调 expires 单位秒 +*/ +- (void)authorize4AppKey:(NSString *)appKey + appName:(NSString *)appName + appLogo:(UIImage *)appLogo + currentVC:(UIViewController *)currentVC + callBack:(void (^)(NSError *error,NSString *accessToken,NSString *expire))callBack; + + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateSDK.framework/Info.plist b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateSDK.framework/Info.plist new file mode 100644 index 0000000..0c91f8f --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeUltimateSDK.framework/Info.plist @@ -0,0 +1,51 @@ + + + + + BuildMachineOSBuild + 20D91 + CFBundleDevelopmentRegion + en + CFBundleExecutable + AlibcTradeUltimateSDK + CFBundleIdentifier + com.aliTradeSDK.demoyishan.AlibcTradeUltimateSDK + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + AlibcTradeUltimateSDK + CFBundlePackageType + FMWK + CFBundleShortVersionString + 5.0.0.11 + CFBundleSupportedPlatforms + + iPhoneOS + + CFBundleVersion + 1 + DTCompiler + com.apple.compilers.llvm.clang.1_0 + DTPlatformBuild + 18B79 + DTPlatformName + iphoneos + DTPlatformVersion + 14.2 + DTSDKBuild + 18B79 + DTSDKName + iphoneos14.2 + DTXcode + 1220 + DTXcodeBuild + 12B45b + MinimumOSVersion + 9.0 + UIDeviceFamily + + 1 + 2 + + + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeWebViewContainer.framework/AlibcTradeWebViewContainer b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeWebViewContainer.framework/AlibcTradeWebViewContainer new file mode 100644 index 0000000..15d0f98 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeWebViewContainer.framework/AlibcTradeWebViewContainer differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeWebViewContainer.framework/Headers/AlibcTradeWebViewContainer.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeWebViewContainer.framework/Headers/AlibcTradeWebViewContainer.h new file mode 100644 index 0000000..75ab4fc --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeWebViewContainer.framework/Headers/AlibcTradeWebViewContainer.h @@ -0,0 +1,23 @@ +/* + * AlibcTradeWebViewContainer.h + * + * 阿里百川电商 + * 项目名称:阿里巴巴电商 AlibcTradeWebViewContainer + * 版本号:5.0.0.0 + * 发布时间:2020-01-03 + * 开发团队:阿里巴巴百川 + * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺) + * Copyright (c) 2016-2020 阿里巴巴-淘宝-百川. All rights reserved. + */ + +#import + +//! Project version number for AlibcTradeWebViewContainer. +FOUNDATION_EXPORT double AlibcTradeWebViewContainerVersionNumber; + +//! Project version string for AlibcTradeWebViewContainer. +FOUNDATION_EXPORT const unsigned char AlibcTradeWebViewContainerVersionString[]; + +// In this header, you should import all the public headers of your framework using statements like #import + + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeWebViewContainer.framework/Info.plist b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeWebViewContainer.framework/Info.plist new file mode 100644 index 0000000..af0c19e --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeWebViewContainer.framework/Info.plist @@ -0,0 +1,51 @@ + + + + + BuildMachineOSBuild + 20D91 + CFBundleDevelopmentRegion + en + CFBundleExecutable + AlibcTradeWebViewContainer + CFBundleIdentifier + com.aliTradeSDK.demoyishan.AlibcTradeWebViewContainer + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + AlibcTradeWebViewContainer + CFBundlePackageType + FMWK + CFBundleShortVersionString + 5.0.0.11 + CFBundleSupportedPlatforms + + iPhoneOS + + CFBundleVersion + 1 + DTCompiler + com.apple.compilers.llvm.clang.1_0 + DTPlatformBuild + 18B79 + DTPlatformName + iphoneos + DTPlatformVersion + 14.2 + DTSDKBuild + 18B79 + DTSDKName + iphoneos14.2 + DTXcode + 1220 + DTXcodeBuild + 12B45b + MinimumOSVersion + 9.0 + UIDeviceFamily + + 1 + 2 + + + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeWebViewContainer.framework/Modules/module.modulemap b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeWebViewContainer.framework/Modules/module.modulemap new file mode 100644 index 0000000..be666e9 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeWebViewContainer.framework/Modules/module.modulemap @@ -0,0 +1,6 @@ +framework module AlibcTradeWebViewContainer { + umbrella header "AlibcTradeWebViewContainer.h" + + export * + module * { export * } +} diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeWebViewContainer.framework/NBWebResource.bundle/Root.plist b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeWebViewContainer.framework/NBWebResource.bundle/Root.plist new file mode 100644 index 0000000..b1b6fea --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeWebViewContainer.framework/NBWebResource.bundle/Root.plist @@ -0,0 +1,61 @@ + + + + + StringsTable + Root + PreferenceSpecifiers + + + Type + PSGroupSpecifier + Title + Group + + + Type + PSTextFieldSpecifier + Title + Name + Key + name_preference + DefaultValue + + IsSecure + + KeyboardType + Alphabet + AutocapitalizationType + None + AutocorrectionType + No + + + Type + PSToggleSwitchSpecifier + Title + Enabled + Key + enabled_preference + DefaultValue + + + + Type + PSSliderSpecifier + Key + slider_preference + DefaultValue + 0.5 + MinimumValue + 0 + MaximumValue + 1 + MinimumValueImage + + MaximumValueImage + + + + + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeWebViewContainer.framework/NBWebResource.bundle/back@2x.png b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeWebViewContainer.framework/NBWebResource.bundle/back@2x.png new file mode 100644 index 0000000..df11be4 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeWebViewContainer.framework/NBWebResource.bundle/back@2x.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeWebViewContainer.framework/NBWebResource.bundle/back@3x.png b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeWebViewContainer.framework/NBWebResource.bundle/back@3x.png new file mode 100644 index 0000000..dbec282 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeWebViewContainer.framework/NBWebResource.bundle/back@3x.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeWebViewContainer.framework/NBWebResource.bundle/close@2x.png b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeWebViewContainer.framework/NBWebResource.bundle/close@2x.png new file mode 100644 index 0000000..df92118 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeWebViewContainer.framework/NBWebResource.bundle/close@2x.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeWebViewContainer.framework/NBWebResource.bundle/close@3x.png b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeWebViewContainer.framework/NBWebResource.bundle/close@3x.png new file mode 100644 index 0000000..2f19382 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeWebViewContainer.framework/NBWebResource.bundle/close@3x.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeWebViewContainer.framework/NBWebResource.bundle/en.lproj/Root.strings b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeWebViewContainer.framework/NBWebResource.bundle/en.lproj/Root.strings new file mode 100644 index 0000000..8cd87b9 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeWebViewContainer.framework/NBWebResource.bundle/en.lproj/Root.strings differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeWebViewContainer.framework/NBWebResource.bundle/whiteClose@2x.png b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeWebViewContainer.framework/NBWebResource.bundle/whiteClose@2x.png new file mode 100644 index 0000000..955e85c Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeWebViewContainer.framework/NBWebResource.bundle/whiteClose@2x.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeWebViewContainer.framework/NBWebResource.bundle/whiteClose@3x.png b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeWebViewContainer.framework/NBWebResource.bundle/whiteClose@3x.png new file mode 100644 index 0000000..e92580f Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTradeWebViewContainer.framework/NBWebResource.bundle/whiteClose@3x.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTrademiniAppContainer.framework/AlibcBusiness_triverApi.json b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTrademiniAppContainer.framework/AlibcBusiness_triverApi.json new file mode 100644 index 0000000..dbe48fd --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTrademiniAppContainer.framework/AlibcBusiness_triverApi.json @@ -0,0 +1,36 @@ +{ + "version": "0.0.1", + "registerApiExtension": [ + {} + ], + "registerDsl": { + "scope": "bc", + "apis": [ + { + "apiName": "bcGetClickId", + "dslApiName": "getClickId", + "type": "invoke" + }, + { + "apiName": "bcConvertUrl", + "dslApiName": "convertUrl", + "type": "invoke" + }, + { + "apiName": "bcGetPageUrl", + "dslApiName": "getPageUrl", + "type": "invoke" + }, + { + "apiName": "bcNotify", + "dslApiName": "notify", + "type": "invoke" + }, + { + "apiName": "bcNavigateToOutside", + "dslApiName": "navigateToOutside", + "type": "invoke" + } + ] + } +} diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTrademiniAppContainer.framework/AlibcTrademiniAppContainer b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTrademiniAppContainer.framework/AlibcTrademiniAppContainer new file mode 100644 index 0000000..6528e5c Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTrademiniAppContainer.framework/AlibcTrademiniAppContainer differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTrademiniAppContainer.framework/AlibcTradetrvContainer_triverApi.json b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTrademiniAppContainer.framework/AlibcTradetrvContainer_triverApi.json new file mode 100644 index 0000000..65191b0 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTrademiniAppContainer.framework/AlibcTradetrvContainer_triverApi.json @@ -0,0 +1,61 @@ +{ + "version": "0.0.1", + "registerApiExtension": [ + {} + ], + "registerDsl": { + "scope": "tb", + "apis": [ + { + "apiName": "tbGetBizParam", + "dslApiName": "getBizParam", + "type": "invoke" + }, + { + "apiName": "tbIsLogin", + "dslApiName": "isLogin", + "type": "invoke" + }, + { + "apiName": "tbLogin", + "dslApiName": "login", + "type": "invoke" + }, + { + "apiName": "tbLogout", + "dslApiName": "logout", + "type": "invoke" + }, + { + "apiName": "tbRebate", + "dslApiName": "rebate", + "type": "invoke" + }, + { + "apiName": "tbJumpNative", + "dslApiName": "jumpNative", + "type": "invoke" + }, + { + "apiName": "getAlibcSuiteConfig", + "dslApiName": "getAlibcSuiteConfig", + "type": "invoke" + }, + { + "apiName": "tbSetBizParam", + "dslApiName": "setBizParam", + "type": "invoke" + }, + { + "apiName": "getDeviceId", + "dslApiName": "getDeviceId", + "type": "invoke" + }, + { + "apiName": "getApplinkKey", + "dslApiName": "getApplinkKey", + "type": "invoke" + } + ] + } +} diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTrademiniAppContainer.framework/Headers/AlibcTrademiniAppContainer.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTrademiniAppContainer.framework/Headers/AlibcTrademiniAppContainer.h new file mode 100644 index 0000000..ffd6fb6 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTrademiniAppContainer.framework/Headers/AlibcTrademiniAppContainer.h @@ -0,0 +1,19 @@ +// +// AlibcTrademiniAppContainer.h +// AlibcTrademiniAppContainer +// +// Created by shan yi on 2019/10/31. +// Copyright © 2019 shan yi. All rights reserved. +// + +#import + +//! Project version number for AlibcTrademiniAppContainer. +FOUNDATION_EXPORT double AlibcTrademiniAppContainerVersionNumber; + +//! Project version string for AlibcTrademiniAppContainer. +FOUNDATION_EXPORT const unsigned char AlibcTrademiniAppContainerVersionString[]; + +// In this header, you should import all the public headers of your framework using statements like #import + + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTrademiniAppContainer.framework/Info.plist b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTrademiniAppContainer.framework/Info.plist new file mode 100644 index 0000000..9bd556e --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTrademiniAppContainer.framework/Info.plist @@ -0,0 +1,51 @@ + + + + + BuildMachineOSBuild + 20D91 + CFBundleDevelopmentRegion + en + CFBundleExecutable + AlibcTrademiniAppContainer + CFBundleIdentifier + com.aliTradeSDK.demoyishan.AlibcTrademiniAppContainer + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + AlibcTrademiniAppContainer + CFBundlePackageType + FMWK + CFBundleShortVersionString + 5.0.0.11 + CFBundleSupportedPlatforms + + iPhoneOS + + CFBundleVersion + 1 + DTCompiler + com.apple.compilers.llvm.clang.1_0 + DTPlatformBuild + 18B79 + DTPlatformName + iphoneos + DTPlatformVersion + 14.2 + DTSDKBuild + 18B79 + DTSDKName + iphoneos14.2 + DTXcode + 1220 + DTXcodeBuild + 12B45b + MinimumOSVersion + 9.0 + UIDeviceFamily + + 1 + 2 + + + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTrademiniAppContainer.framework/Modules/module.modulemap b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTrademiniAppContainer.framework/Modules/module.modulemap new file mode 100644 index 0000000..94ed7b0 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/AlibcTradeUltimateSDK/AlibcTrademiniAppContainer.framework/Modules/module.modulemap @@ -0,0 +1,6 @@ +framework module AlibcTrademiniAppContainer { + umbrella header "AlibcTrademiniAppContainer.h" + + export * + module * { export * } +} diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/AriverApi b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/AriverApi new file mode 100644 index 0000000..34f81a2 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/AriverApi differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/AriverApi.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/AriverApi.h new file mode 100644 index 0000000..6c8901a --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/AriverApi.h @@ -0,0 +1,21 @@ +// +// AriverApi.h +// AriverApi +// +// Created by xuyouyang on 2019/4/12. +// Copyright © 2019 Alipay. All rights reserved. +// + +#ifndef AriverApi_h +#define AriverApi_h + +#import +#import +#import +#import +#import +#import +#import +#import + +#endif /* AriverApi_h */ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPAccountInfoProtocol.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPAccountInfoProtocol.h new file mode 100644 index 0000000..9a75b0b --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPAccountInfoProtocol.h @@ -0,0 +1,22 @@ +// +// RVPAccountInfoProtocol.h +// AriverApi +// +// Created by hua.lu on 2019/6/5. +// Copyright © 2019 Alipay. All rights reserved. +// + +#ifndef RVPAccountInfoProtocol_h +#define RVPAccountInfoProtocol_h + +@protocol RVPAccountInfoProtocol +- (NSString *)loginUserToken; +@end + +@protocol RVPAppInfoProtocol +- (NSArray *)AppSchemes; +- (NSString *)AppName; +- (NSString *)AppVer; +@end + +#endif /* RVPAccountInfoProtocol_h */ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPAccountService.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPAccountService.h new file mode 100644 index 0000000..1a89367 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPAccountService.h @@ -0,0 +1,29 @@ +// +// RVPAccountService.h +// AriverApi +// +// Created by nico on 2019/5/29. +// Copyright © 2019 Alipay. All rights reserved. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +@protocol RVPAccountService + +@optional + +/** + * 当前登录用户 token + */ +- (NSString *)currentUserToken; + +/** + * 当前登录 session id。用于 tradePay 中,淘系中从 [[ALBBLoginCenter sharedInstance] currentSession]; 中获取 + */ +- (NSString *)currentSessionId; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPBaseAuthGuideManager.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPBaseAuthGuideManager.h new file mode 100644 index 0000000..ca96591 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPBaseAuthGuideManager.h @@ -0,0 +1,46 @@ +// +// RVPAuthGuideManagerProtocol.h +// AriverApi +// +// Created by 张光宇 on 2019/5/5. +// Copyright © 2019 Alipay. All rights reserved. +// + +#import + +typedef NS_ENUM(NSInteger, RVPAuthGuideManagerAuthType) { + RVPAuthGuideManagerAuthTypeNone = 0, + RVPAuthGuideManagerAuthTypePush, + RVPAuthGuideManagerAuthTypeLocation, + RVPAuthGuideManagerAuthTypeCamera, + RVPAuthGuideManagerAuthTypePhotos, + RVPAuthGuideManagerAuthTypeAddressBook, + RVPAuthGuideManagerAuthTypeMicroPhone +}; + +extern NSString * const kRVPAuthGuideShowOptionKeyScene ; + +NS_ASSUME_NONNULL_BEGIN + +@interface RVPBaseAuthGuideManager : NSObject +/** + * 子类必须需重写此方法 + * + * 尝试提示用户设置定位授权,此方法会结合配置规则和实际情况决定是否展示浮层弹框给用户。 + * + * @param authType 业务定制参数,枚举量,授权权限类型,相机、定位等。 + * @param biz 业务场景标识,必须传入有意义的值,不能为空。 + * @param options 其他参数。尚未用到,留日后使用使用。 + * + * @return 是否符合展示条件,最终真正展示。 + */ +-(BOOL)tryToShowGuideWithAuthType:(RVPAuthGuideManagerAuthType)authType + business:(NSString *)biz + options:(NSDictionary* _Nullable)options; + +-(RVPAuthGuideManagerAuthType)typeForAuthCode:(NSString*)authCode; + + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPBaseShareDataManager+SubClass.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPBaseShareDataManager+SubClass.h new file mode 100644 index 0000000..317027a --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPBaseShareDataManager+SubClass.h @@ -0,0 +1,32 @@ +// +// 需要子类重载的方法 +// RVBaseShareDataManager+SubClass.h +// AriverApi +// +// Created by 张光宇 on 2019/5/5. +// Copyright © 2019 Alipay. All rights reserved. +// + +#import "RVPBaseShareDataManager.h" + +NS_ASSUME_NONNULL_BEGIN + +@interface RVPBaseShareDataManager(SubClass) + +//! 字符串加密,默认返回原始String +- (NSString *)stringWithAESEncrypt:(NSString *)string; + +//! 字符串解密,默认返回原始String +- (NSString *)stringWithAESDecrypt:(NSString *)string; + +//! 写数据 +// [APCommonPreferences setObject:sharedDataDic forKey:SHARED_DATA_KEY business:SHARED_DATA_BIZ]; +- (void)doWriteSharedData:(NSDictionary *)sharedDataDic; + +//! 读数据 +// [APCommonPreferences objectForKey:SHARED_DATA_KEY business:SHARED_DATA_BIZ]; +- (NSDictionary *)doReadSharedData; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPBaseShareDataManager.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPBaseShareDataManager.h new file mode 100644 index 0000000..1abec88 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPBaseShareDataManager.h @@ -0,0 +1,23 @@ +// +// RVPBaseShareDataManager.h +// AriverApi +// +// Created by 张光宇 on 2019/5/5. +// Copyright © 2019 Alipay. All rights reserved. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface RVPBaseShareDataManager : NSObject + +- (void)setSharedData:(NSDictionary *)sharedData; + +- (NSString *)sharedDataForKey:(NSString *)key readFromFile:(BOOL)readFromFile; + +- (void)removeSharedDataForKey:(NSString *)key; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiReq4Modal.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiReq4Modal.h new file mode 100644 index 0000000..aa0dd48 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiReq4Modal.h @@ -0,0 +1,40 @@ +// +// RVPJSApiReq4Modal.h +// AriverApi +// +// Created by lanyao on 2019/4/15. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface RVPJSApiReqAlert : RVKJSApiRequestBase + +@property (nonatomic, strong) NSString *title; // alert框标题 +@property (nonatomic, strong) NSString *message; // alert框文本 +@property (nonatomic, strong) NSString *button; // 按钮文字 + +@end + +@interface RVPJSApiReqConfirm : RVKJSApiRequestBase + +@property (nonatomic, strong) NSString *title; // confirm 框的标题 +@property (nonatomic, strong) NSString *message; // confirm 框的内容 +@property (nonatomic, strong) NSString *okButton; // 确定按钮文字,默认’确定’ +@property (nonatomic, strong) NSString *cancelButton; // 取消按钮文字,默认’取消’ + +@end + +@interface RVPJSApiReqPrompt : RVKJSApiRequestBase + +@property (nonatomic, strong) NSString *title; // prompt框标题 +@property (nonatomic, strong) NSString *message; // prompt框文本 +@property (nonatomic, strong) NSString *okButton; // 确定按钮文字,默认’确定’ +@property (nonatomic, strong) NSString *cancelButton; // 取消按钮文字,默认’取消’ +@property (nonatomic, strong) NSString *placeholder; // 输入框内的提示文案 +@property (nonatomic, strong) NSString *align; // message对齐方式,可用枚举left/center/right + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiReqActionSheet.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiReqActionSheet.h new file mode 100644 index 0000000..ce1343c --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiReqActionSheet.h @@ -0,0 +1,29 @@ +// +// RVPJSApiReqActionSheet.h +// AriverApi +// +// Created by lanyao on 2019/4/15. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface RVPJSApiReqActionSheet : RVKJSApiRequestBase + +@property (nonatomic, strong) NSString *title; // 标题 +@property (nonatomic, strong, nonnull) NSArray *btns; // 一组按钮,item类型是string +@property (nonatomic, strong) NSString *cancelBtn; // 设置取消按钮及文字 +@property (nonatomic, strong) NSNumber *destructiveBtnIndex; // 指定按钮的索引号,从0开始,使用场景:需要删除或清除数据等类似场景,默认红色 + +/** + index: NSNumber : 需要飘红的选项的索引,从0开始 + type: NSString : 飘红类型,支持 none(无红点)/ point(纯红点) / num(数字红点)/ text(文案红点)/ more(...) + text: NSString : 自定义飘红文案:1、type为none/point/more时本文案可不填 2、type为num时本文案为小数或<=0均不显示, >100 显示"..." + */ +@property (nonatomic, strong) NSArray *badges; // 需飘红选项的数组 + + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiReqChooseImage.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiReqChooseImage.h new file mode 100644 index 0000000..0295746 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiReqChooseImage.h @@ -0,0 +1,17 @@ +// +// RVPJSApiReqChooseImage.h +// AriverApi +// +// Created by quankai on 2019/4/28. +// Copyright © 2019 Alipay. All rights reserved. +// + +#import + +@interface RVPJSApiReqChooseImage : RVKJSApiRequestBase + +@property (nonatomic, copy) NSNumber *count; +@property (nonatomic, copy) NSArray *sizeType; +@property (nonatomic, copy) NSArray *sourceType; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiReqChooseVideo.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiReqChooseVideo.h new file mode 100644 index 0000000..55d1dd7 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiReqChooseVideo.h @@ -0,0 +1,18 @@ +// +// RVPJSApiReqChooseVideo.h +// AriverApi +// +// Created by quankai on 2019/5/6. +// Copyright © 2019 Alipay. All rights reserved. +// + +#import + +@interface RVPJSApiReqChooseVideo : RVKJSApiRequestBase + +@property (nonatomic, copy) NSArray *sourceType; +@property (nonatomic, copy) NSArray *camera; +@property (nonatomic, copy) NSNumber *maxDuration; +@property (nonatomic, copy) NSNumber *compressed; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiReqCityPicker.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiReqCityPicker.h new file mode 100644 index 0000000..716bc75 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiReqCityPicker.h @@ -0,0 +1,32 @@ +// +// RVPJSApiReqCityPicker.h +// AriverApi +// +// Created by 百喻 on 2019/4/28. +// Copyright © 2019 Alipay. All rights reserved. +// + +#import + +@interface RVPJSApiReqCityPicker : RVKJSApiRequestBase + +@property (nonatomic,copy) NSString *currentCity; +@property (nonatomic,copy) NSString *adcode; +@property (nonatomic,strong) NSArray *customCities; +@property (nonatomic,strong) NSArray *customHotCities; +@property (nonatomic,strong) NSArray *customHistoryCities; +@property (nonatomic,strong) NSNumber *setLocatedCity; // 只有显示当前定位城市,才判断是否要业务来修改当前城市 +@property (nonatomic,strong) NSNumber *setLocatedCityTimeout; // 业务获取城市名时的超时时间 +// ui Config +@property (nonatomic,strong) NSNumber *needHotCity; +@property (nonatomic,copy) NSString *searchbarhint; +@property (nonatomic,copy) NSString *hotcitytitle; +@property (nonatomic,copy) NSString *cityselect_hot_city_section; +@property (nonatomic,copy) NSString *title; +@property (nonatomic,copy) NSString *recommendlinktitle_oversea; +@property (nonatomic,copy) NSString *recommendlinkname_oversea; +@property (nonatomic,copy) NSString *recommendlinkurl_oversea; +@property (nonatomic,copy) NSString *recommendlinksection_oversea; + +@end + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiReqCompressImage.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiReqCompressImage.h new file mode 100644 index 0000000..816db1b --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiReqCompressImage.h @@ -0,0 +1,16 @@ +// +// RVPJSApiReqCompressImage.h +// AriverApi +// +// Created by quankai on 2019/5/6. +// Copyright © 2019 Alipay. All rights reserved. +// + +#import + +@interface RVPJSApiReqCompressImage : RVKJSApiRequestBase + +@property (nonatomic, copy) NSNumber *compressLevel; +@property (nonatomic, copy) NSArray *apFilePaths; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiReqDatePicker.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiReqDatePicker.h new file mode 100644 index 0000000..18c5f31 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiReqDatePicker.h @@ -0,0 +1,32 @@ +// +// RVPJSApiReqDatePicker.h +// AriverApi +// +// Created by lanyao on 2019/4/15. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface RVPJSApiReqDatePicker : RVKJSApiRequestBase + +/** + 返回的日期格式 + + HH:mm + yyyy-MM-dd (默认) + yyyy-MM-dd HH:mm + yyyy-MM + yyyy + + */ +@property (nonatomic, strong) NSNumber *mode; + +@property (nonatomic, strong) NSString *beginDate; // 初始选择的日期时间,默认当前时间 +@property (nonatomic, strong) NSString *minDate; // 最小日期时间 +@property (nonatomic, strong) NSString *maxDate; // 最大日期时间 + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiReqDevice.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiReqDevice.h new file mode 100644 index 0000000..52bddea --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiReqDevice.h @@ -0,0 +1,47 @@ +// +// RVPJSApiReqDevice.h +// AriverApi +// +// Created by lanyao on 2019/4/26. +// Copyright © 2019 Alipay. All rights reserved. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface RVPJSApiReqScan : RVKJSApiRequestBase +/** + 扫码样式(默认 qr): + 1. qr,扫码框样式为二维码扫码框 + 2. bar,扫码样式为条形码扫码框 + */ +@property (nonatomic, strong) NSString *type; +@property (nonatomic, strong) NSNumber *hideAlbum; // 是否隐藏相册(不允许从相册选择图片),只能从相机扫码 + +@end + +@interface RVPJSApiReqSnapshot : RVKJSApiRequestBase +/** + 快照范围: + screen: 当前客户端整个屏幕 + viewport: 网页可见区域 + document: 整个网页 注意: document会截取全部网页,在安卓手机上,网页很大的时候会浏览器内存溢出,请使用screen + */ +@property (nonatomic, strong) NSString *range; +@property (nonatomic, strong) NSNumber *saveToGallery; // 是否保存到相册 +/** + 结果数据格式: + dataURL: base64编码的图片数据 + fileURL: 图片在文件系统中的url(图片存放于临时目录中,钱包退出时被清除) + none: 不返回数据(用于保存到相册的情况) + */ +@property (nonatomic, strong) NSString *dataType; +@property (nonatomic, strong) NSString *imageFormat; // jpg / png +@property (nonatomic, strong) NSNumber *quality; // jpg的图片质量, 取值1到100 +@property (nonatomic, strong) NSNumber *maxWidth; // 图片的最大宽度. 过大将被等比缩小 +@property (nonatomic, strong) NSNumber *maxHeight; // 图片的最大高度. 过大将被等比缩小 + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiReqFile.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiReqFile.h new file mode 100644 index 0000000..1dfb4e1 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiReqFile.h @@ -0,0 +1,67 @@ +// +// RVPJSApiReqFile.h +// AriverApi +// +// Created by lanyao on 2019/4/19. +// Copyright © 2019 Alipay. All rights reserved. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface RVPJSApiReqSaveFile : RVKJSApiRequestBase + +@property (nonatomic, strong) NSString *apFilePath; // 文件临时路径,H5和小程序传 +@property (nonatomic, strong) NSString *tempFilePath;//用于native调用 + +@end + +@interface RVPJSApiReqGetFileInfo : RVKJSApiRequestBase + +@property (nonatomic, strong) NSString *apFilePath; // 文件路径 +@property (nonatomic, strong) NSString *digestAlgorithm; // 摘要算法,支持md5和sha1,默认为md5 + +@end + +@interface RVPJSApiReqGetSavedFileInfo : RVKJSApiRequestBase + +@property (nonatomic, strong) NSString *apFilePath; // 文件路径 + +@end + +@interface RVPJSApiReqGetSavedFileList : RVKJSApiRequestBase +@end + +@interface RVPJSApiReqRemoveSavedFile : RVKJSApiRequestBase + +@property (nonatomic, strong) NSString *apFilePath; + +@end + + +@interface RVPJSApiReqUploadFile : RVKJSApiRequestBase + +@property (nonatomic, strong) NSString *url; // 开发者服务器地址 +@property (nonatomic, strong) NSString *filePath; // 要上传文件资源的本地定位符 +@property (nonatomic, strong) NSString *name; // 文件名,即对应的 key, 开发者在服务器端通过这个 key 可以获取到文件二进制内容 +@property (nonatomic, strong) NSString *type; // 文件类型,image / video / audio +@property (nonatomic, strong) NSDictionary *header; // HTTP 请求 Header +@property (nonatomic, strong) NSDictionary *formData; // HTTP 请求中其他额外的 form 数据 + +@end + + + +@interface RVPJSApiReqDownloadFile : RVKJSApiRequestBase + +@property (nonatomic, strong) NSString *url; // 下载文件地址 +@property (nonatomic, strong) NSDictionary *header; // HTTP 请求 Header + +@end + +@interface RVPJSApiReqChooseFileFromDisk : RVKJSApiRequestBase + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiReqGetAppToken.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiReqGetAppToken.h new file mode 100644 index 0000000..bb1580d --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiReqGetAppToken.h @@ -0,0 +1,22 @@ +// +// RVPJSApiReqGetAppToken.h +// AriverApi +// +// Created by xuyouyang on 2019/4/16. +// Copyright © 2019 Alipay. All rights reserved. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface RVPJSApiReqGetAppToken : RVKJSApiRequestBase + +// app名称 +@property (nonatomic, strong) NSString *appName; +// app key +@property (nonatomic, strong) NSString *appKey; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiReqGetClientInfo.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiReqGetClientInfo.h new file mode 100644 index 0000000..cb2496b --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiReqGetClientInfo.h @@ -0,0 +1,17 @@ +// +// RVPJSApiReqGetClientInfo.h +// AriverApi +// +// Created by xuyouyang on 2019/4/15. +// Copyright © 2019 Alipay. All rights reserved. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface RVPJSApiReqGetClientInfo : RVKJSApiRequestBase + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiReqGetImageInfo.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiReqGetImageInfo.h new file mode 100644 index 0000000..3fc390c --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiReqGetImageInfo.h @@ -0,0 +1,15 @@ +// +// RVPJSApiReqGetImageInfo.h +// AriverApi +// +// Created by quankai on 2019/5/6. +// Copyright © 2019 Alipay. All rights reserved. +// + +#import + +@interface RVPJSApiReqGetImageInfo : RVKJSApiRequestBase + +@property (nonatomic, copy) NSString *src; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiReqHttpRequest.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiReqHttpRequest.h new file mode 100644 index 0000000..8ed4e24 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiReqHttpRequest.h @@ -0,0 +1,23 @@ +// +// RVPJSApiReqHttpRequest.h +// AriverApi +// +// Created by lanyao on 2019/4/15. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface RVPJSApiReqHttpRequest : RVKJSApiRequestBase + +@property (nonatomic, strong) NSString *url; // 目标服务器url +@property (nonatomic, strong) NSDictionary *headers; // 设置请求的 HTTP 头,默认 {'content-type': 'application/json'} +@property (nonatomic, strong) NSString *method; // 默认GET,目前支持GET/POST +@property (nonatomic, strong) NSString *data; // 用于POST的请求数据,需要调用方自己编码 +@property (nonatomic, strong) NSNumber *timeout; // 超时,单位为毫秒,默认 30000 +@property (nonatomic, strong) NSString *responseType; // 期望返回的数据格式,默认json,支持json,text,base64 + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiReqLocalStorage.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiReqLocalStorage.h new file mode 100644 index 0000000..850b28a --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiReqLocalStorage.h @@ -0,0 +1,41 @@ +// +// RVPJsApiReqLocalStorage.h +// AriverDemo +// +// Created by xuyouyang on 2019/4/10. +// Copyright © 2019 alipay.com. All rights reserved. +// + +#import + +#pragma mark - LocalStorageGet +@interface RVPJSApiReqLocalStorageGet : RVKJSApiRequestBase +@property (nonatomic, strong) NSString *key; +@property (nonatomic, strong) NSString *type; +@property (nonatomic, strong) NSString *business; +@end + +#pragma mark - LocalStorageSet +@interface RVPJSApiReqLocalStorageSet : RVKJSApiRequestBase +@property (nonatomic, strong) NSString *data; +@property (nonatomic, strong) NSString *key; +@property (nonatomic, strong) NSString *value; +@property (nonatomic, strong) NSString *type; +@property (nonatomic, strong) NSString *business; +@end + +#pragma mark - LocalStorageRemove +@interface RVPJSApiReqLocalStorageRemove : RVKJSApiRequestBase +@property (nonatomic, strong) NSString *key; +@property (nonatomic, strong) NSString *type; +@property (nonatomic, strong) NSString *business; +@end + +#pragma mark - LocalStorageClear +@interface RVPJSApiReqLocalStorageClear : RVKJSApiRequestBase +@property (nonatomic, strong) NSString *business; +@end + +#pragma mark - LocalStorageGetInfo +@interface RVPJSApiReqLocalStorageGetInfo : RVKJSApiRequestBase +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiReqLocation.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiReqLocation.h new file mode 100644 index 0000000..fbd1b67 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiReqLocation.h @@ -0,0 +1,25 @@ +// +// RVPJSApiReqLocation.H +// AriverApi +// +// Created by lanyao on 2019/4/17. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface RVPJSApiReqLocation : RVKJSApiRequestBase + +/** + 0:默认,获取经纬度 + 1:获取经纬度和详细到区县级别的逆地理编码数据 + 2:获取经纬度和详细到街道级别的逆地理编码数据,不推荐使用 + 3:获取经纬度和详细到POI级别的逆地理编码数据,不推荐使用 + */ +@property (nonatomic, strong) NSNumber *requestType; +@property (nonatomic, strong) NSNumber *cacheTimeout; // 可接受的缓存时间,单位秒 + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiReqLocationPicker.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiReqLocationPicker.h new file mode 100644 index 0000000..fe3bf6f --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiReqLocationPicker.h @@ -0,0 +1,44 @@ +// +// RVPJSApiReqLocationPicker.h +// AriverApi +// +// Created by 百喻 on 2019/4/28. +// Copyright © 2019 Alipay. All rights reserved. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface RVPJSApiReqLocationPicker : RVKJSApiRequestBase + +@property (nonatomic,copy) NSString *title; +@property (nonatomic,strong) NSString *sendBtnText; +@property (nonatomic,strong) NSNumber *latitude; +@property (nonatomic,strong) NSNumber *longitude; +@property (nonatomic,copy) NSString *mode; +@property (nonatomic,strong) NSNumber *showTab; +@property (nonatomic,strong) NSNumber *coordinateHasConverted; +@property (nonatomic,strong) NSNumber *horizontalAccuracy; +@property (nonatomic,strong) NSDictionary *presetPOI; +@property (nonatomic,strong) NSDictionary *locatePOI; +@property (nonatomic,strong) NSNumber *showHideLocation; +@property (nonatomic,strong) NSNumber *showLocatedCity; +@property (nonatomic,copy) NSString *appKey; +@property (nonatomic,copy) NSString *keyword; +@property (nonatomic,copy) NSString *city; +@property (nonatomic,strong) NSNumber *needReGeocode; +@property (nonatomic,strong) NSNumber *isOversea; +@property (nonatomic,copy) NSString *searchHint; +@property (nonatomic,strong) NSNumber *showPoiDistance; +@property (nonatomic,strong) NSNumber *showPoiActions; +@property (nonatomic,copy) NSString *poiType; +@property (nonatomic,strong) NSNumber *isShowConfirmSelectBtn; +@property (nonatomic,strong) NSNumber *scale; +@property (nonatomic,strong) NSNumber *fullMap; +@property (nonatomic,strong) NSNumber *hideSearch; +@property (nonatomic,copy) NSString *markerTitle; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiReqOpenLocation.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiReqOpenLocation.h new file mode 100644 index 0000000..6e99994 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiReqOpenLocation.h @@ -0,0 +1,46 @@ +// +// RVPJSApiReqOpenLocation.h +// AriverApi +// +// Created by xuyouyang on 2019/7/9. +// Copyright © 2019 Alipay. All rights reserved. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +/** + my.openLocation API 入参模型 + (钱包内还有一个业务属性,hidden,需要从 originParam 中获取) + */ +@interface RVPJSApiReqOpenLocation : RVKJSApiRequestBase + +/** + * 经度 + */ +@property (nonatomic, strong) NSString *longitude; + +/** + * 纬度 + */ +@property (nonatomic, strong) NSString *latitude; + +/** + * 位置名称 + */ +@property (nonatomic, strong) NSString *name; + +/** + * 地址的详细说明 + */ +@property (nonatomic, strong) NSString *address; + +/** + * 缩放比例,范围 3~19,默认为 15 + */ +@property (nonatomic, strong) NSNumber *scale; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiReqPreviewImage.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiReqPreviewImage.h new file mode 100644 index 0000000..941f39d --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiReqPreviewImage.h @@ -0,0 +1,19 @@ +// +// RVPJSApiReqPreviewImage.h +// AriverApi +// +// Created by quankai on 2019/5/6. +// Copyright © 2019 Alipay. All rights reserved. +// + +#import + +@interface RVPJSApiReqPreviewImage : RVKJSApiRequestBase + +@property (nonatomic, copy) NSArray *images; +// 为兼容 appx 和 jsapi,init参数从originParams 中获取 +// @property (nonatomic, copy) NSNumber *init; +@property (nonatomic, assign) BOOL enablesavephoto; +@property (nonatomic, assign) BOOL enableShowPhotoDownload; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiReqSaveImageToPhotosAlbum.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiReqSaveImageToPhotosAlbum.h new file mode 100644 index 0000000..624688a --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiReqSaveImageToPhotosAlbum.h @@ -0,0 +1,15 @@ +// +// RVPJSApiReqSaveImageToPhotosAlbum.h +// AriverApi +// +// Created by quankai on 2019/5/6. +// Copyright © 2019 Alipay. All rights reserved. +// + +#import + +@interface RVPJSApiReqSaveImageToPhotosAlbum : RVKJSApiRequestBase + +@property (nonatomic, copy) NSString *filePath; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiReqSaveVideoToPhotosAlbum.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiReqSaveVideoToPhotosAlbum.h new file mode 100644 index 0000000..e644db2 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiReqSaveVideoToPhotosAlbum.h @@ -0,0 +1,15 @@ +// +// RVPJSApiReqSaveVideoToPhotosAlbum.h +// AriverApi +// +// Created by quankai on 2019/5/6. +// Copyright © 2019 Alipay. All rights reserved. +// + +#import + +@interface RVPJSApiReqSaveVideoToPhotosAlbum : RVKJSApiRequestBase + +@property (nonatomic, copy) NSString *src; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiReqShowLoading.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiReqShowLoading.h new file mode 100644 index 0000000..219765f --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiReqShowLoading.h @@ -0,0 +1,26 @@ +// +// RVPJSApiReqShowLoading.h +// AriverApi +// +// Created by lanyao on 2019/4/15. +// + +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface RVPJSApiReqShowLoading : RVKJSApiRequestBase + +@property (nonatomic, strong) NSString *text; // 文本内容;如需设为无文案,需传入一个空格,默认值:‘加载中’ +@property (nonatomic, strong) NSNumber *delay; // 延迟显示,单位 ms,默认 0。如果在此时间之前调用了 my.hideLoading 则不会显示 + +@end + +@interface RVPJSApiReqHideLoading : RVKJSApiRequestBase + +@property (nonatomic, strong) RVKPage *page; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiReqTitleView.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiReqTitleView.h new file mode 100644 index 0000000..ac5f7ef --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiReqTitleView.h @@ -0,0 +1,49 @@ +// +// RVPJSApiReqTitleView.h +// Ariver +// +// Created by zhongweitao on 2019/4/20. +// + +#import + +@interface RVPJSApiReqTitleViewSetTitle : RVKJSApiRequestBase + +@property (nonatomic, strong) NSString *title; +@property (nonatomic, strong) NSString *subtitle; +@property (nonatomic, strong) NSString *image; + +@end + +@interface RVPJSApiReqTitleViewSetTitleColor : RVKJSApiRequestBase + +@property (nonatomic, strong) NSNumber *color; //设置标题颜色 +@property (nonatomic, strong) NSNumber *reset; //重置标题颜色 +@property (nonatomic, strong) NSNumber *resetTransparent; //重置为白色透明标题 + +@end + +@interface RVPJSApiReqTitleViewSetBarBottomLineColor : RVKJSApiRequestBase + +@property (nonatomic, strong) NSNumber *color; //设置标题颜色 + +@end + +@interface RVPJSApiReqTitleViewSetTransparentTitle : RVKJSApiRequestBase + +@property (nonatomic, strong) NSString *transparentTitle; //always:永久透明 none:不透明 auto:自动变化模式 + +@end + +@interface RVPJSApiReqTitleViewSetBackButton : RVKJSApiRequestBase + +@property (nonatomic, strong) NSString *color; + +@end + + + + + + + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiReqToast.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiReqToast.h new file mode 100644 index 0000000..ae12606 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiReqToast.h @@ -0,0 +1,24 @@ +// +// RVPJSApiReqToast.h +// AriverApi +// +// Created by lanyao on 2019/4/15. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface RVPJSApiReqToast : RVKJSApiRequestBase + +@property (nonatomic, strong) NSString *content; // 文字内容 +@property (nonatomic, strong) NSString *type; // none / success / fail / exception。 excption类型必须传文案。 +@property (nonatomic, strong) NSNumber *duration; // 显示时长,单位为毫秒。 + +@end + +@interface RVPJSApiReqHideToast : RVKJSApiRequestBase + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiReqTradePay.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiReqTradePay.h new file mode 100644 index 0000000..c7c9c03 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiReqTradePay.h @@ -0,0 +1,29 @@ +// +// RVPJSApiReqTradePay.h +// AriverApi +// +// Created by xuyouyang on 2019/4/22. +// Copyright © 2019 Alipay. All rights reserved. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface RVPJSApiReqTradePay : RVKJSApiRequestBase +/** + 对应 http://jsapi.alipay.net/jsapi/native/trade-pay.html 中的“使用方法1” + */ +@property (nonatomic, strong) NSString *tradeNO; +@property (nonatomic, strong) NSString *bizType; +@property (nonatomic, strong) NSString *bizSubType; +@property (nonatomic, strong) NSString *bizContext; + +/** + 对应 http://jsapi.alipay.net/jsapi/native/trade-pay.html 中的“使用方法2” + */ +@property (nonatomic, strong) NSString *orderStr; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiReqVerifyIdentity.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiReqVerifyIdentity.h new file mode 100644 index 0000000..4c653ad --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiReqVerifyIdentity.h @@ -0,0 +1,23 @@ +// +// RVPJSApiReqVerifyIdentity.h +// AriverApi +// +// Created by xuyouyang on 2019/5/9. +// Copyright © 2019 Alipay. All rights reserved. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface RVPJSApiReqVerifyIdentity : RVKJSApiRequestBase + +@property (nonatomic, strong) NSString *verifyId; + +@property (nonatomic, strong) NSString *verifyData; + +@property (nonatomic, strong) NSDictionary *extParams; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiRes4Modal.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiRes4Modal.h new file mode 100644 index 0000000..486e726 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiRes4Modal.h @@ -0,0 +1,29 @@ +// +// RVPJSApiRes4Modal.h +// AriverApi +// +// Created by lanyao on 2019/4/15. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface RVPJSApiResAlert : RVKJSApiResponseBase + +@end + +@interface RVPJSApiResConfirm : RVKJSApiResponseBase + +@property (nonatomic, strong) NSNumber *confirm; // 点击 confirm 返回 true,点击 cancel 返回false + +@end + +@interface RVPJSApiResPrompt : RVKJSApiResponseBase + +@property (nonatomic, strong) NSNumber *ok; // 点击 ok 返回 true,点击 cancel 返回false +@property (nonatomic, strong) NSString *inputValue; // 当ok为true时,返回用户输入的内容 + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiResActionSheet.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiResActionSheet.h new file mode 100644 index 0000000..9fd9535 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiResActionSheet.h @@ -0,0 +1,18 @@ +// +// RVPJSApiResActionSheet.h +// AriverApi +// +// Created by lanyao on 2019/4/15. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface RVPJSApiResActionSheet : RVKJSApiResponseBase + +@property (nonatomic, strong) NSNumber *index; // index是用户点击的按钮在actionSheet中的位置,从0开始 + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiResChooseImage.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiResChooseImage.h new file mode 100644 index 0000000..04da8d9 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiResChooseImage.h @@ -0,0 +1,16 @@ +// +// RVPJSApiResChooseImage.h +// AriverApi +// +// Created by quankai on 2019/4/28. +// Copyright © 2019 Alipay. All rights reserved. +// + +#import + +@interface RVPJSApiResChooseImage : RVKJSApiResponseBase + +@property (nonatomic, copy) NSArray *apFilePaths; + +@end + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiResChooseVideo.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiResChooseVideo.h new file mode 100644 index 0000000..f8254f9 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiResChooseVideo.h @@ -0,0 +1,20 @@ +// +// RVPJSApiResChooseVideo.h +// AriverApi +// +// Created by quankai on 2019/5/6. +// Copyright © 2019 Alipay. All rights reserved. +// + +#import + +@interface RVPJSApiResChooseVideo : RVKJSApiResponseBase + +@property (nonatomic, copy) NSString *tempFilePath; +@property (nonatomic, copy) NSNumber *duration; +@property (nonatomic, copy) NSNumber *size; +@property (nonatomic, copy) NSNumber *width; +@property (nonatomic, copy) NSNumber *height; + + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiResCityPicker.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiResCityPicker.h new file mode 100644 index 0000000..3dba84e --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiResCityPicker.h @@ -0,0 +1,18 @@ +// +// RVPJSApiResCityPicker.h +// AriverApi +// +// Created by 百喻 on 2019/4/28. +// Copyright © 2019 Alipay. All rights reserved. +// + +#import + + +@interface RVPJSApiResCityPicker : RVKJSApiResponseBase + +@property (nonatomic,copy) NSString *city; +@property (nonatomic,copy) NSString *adCode; + +@end + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiResCompressImage.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiResCompressImage.h new file mode 100644 index 0000000..ddf78ac --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiResCompressImage.h @@ -0,0 +1,15 @@ +// +// RVPJSApiResCompressImage.h +// AriverApi +// +// Created by quankai on 2019/5/6. +// Copyright © 2019 Alipay. All rights reserved. +// + +#import + +@interface RVPJSApiResCompressImage : RVKJSApiResponseBase + +@property (nonatomic, copy) NSArray *apFilePaths; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiResDatePicker.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiResDatePicker.h new file mode 100644 index 0000000..98ca651 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiResDatePicker.h @@ -0,0 +1,18 @@ +// +// RVPJSApiResDatePicker.h +// AriverApi +// +// Created by lanyao on 2019/4/15. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface RVPJSApiResDatePicker : RVKJSApiResponseBase + +@property (nonatomic, strong) NSString *date; // 选择的日期 + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiResDevice.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiResDevice.h new file mode 100644 index 0000000..f016a53 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiResDevice.h @@ -0,0 +1,29 @@ +// +// RVPJSApiResDevice.h +// AriverApi +// +// Created by lanyao on 2019/4/26. +// Copyright © 2019 Alipay. All rights reserved. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface RVPJSApiResScan : RVKJSApiResponseBase + +@property (nonatomic, strong) NSString *code; // 扫码所得数据 +@property (nonatomic, strong) NSString *qrCode; // 扫描二维码时返回二维码数据 +@property (nonatomic, strong) NSString *barCode; // 扫描条形码时返回条形码数据 + +@end + +@interface RVPJSApiResSnapshot : RVKJSApiResponseBase + +@property (nonatomic, strong) NSNumber *success; // 是否处理成功 +@property (nonatomic, strong) NSString *fileUrl; // 图片在文件系统中的url +@property (nonatomic, strong) NSString *dataUrl; // base64编码的图片数据 + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiResFile.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiResFile.h new file mode 100644 index 0000000..ec33ba3 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiResFile.h @@ -0,0 +1,75 @@ +// +// RVPJSApiResFile.h +// AriverApi +// +// Created by lanyao on 2019/4/19. +// Copyright © 2019 Alipay. All rights reserved. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface RVPJSApiResSaveFile : RVKJSApiResponseBase + +@property (nonatomic, strong) NSString *apFilePath; // 文件保存路径 + +@end + +@interface RVPJSApiResGetFileInfo : RVKJSApiResponseBase + +@property (nonatomic, strong) NSNumber *size; // 文件大小 +@property (nonatomic, strong) NSString *digest; // 摘要结果 + +@end + +/** + 10 无权限访问 + 12 文件不存在 + 15 文件IO操作失败 + **/ +@interface RVPJSApiResGetSavedFileInfo : RVKJSApiResponseBase + +@property (nonatomic, strong) NSNumber *size; // 文件大小 +@property (nonatomic, strong) NSNumber *createTime; // 创建时间 + +@end + +@interface RVPJSApiResGetSavedFileList : RVKJSApiResponseBase + +@property (nonatomic, strong) NSArray *fileList; // 文件列表 +@property (nonatomic, assign) BOOL success; + +@end + +/* + 10 无权限操作 + 12 文件不存在 + 15 删除文件失败 + */ +@interface RVPJSApiResRemoveSavedFile : RVKJSApiResponseBase +@property (nonatomic, assign) BOOL success; //移除文件是否成功 +@end + + +@interface RVPJSApiResUploadFile : RVKJSApiResponseBase + +@property (nonatomic, strong) NSString *data; // 服务器返回的数据 +@property (nonatomic, strong) NSString *statusCode; // HTTP 状态码 +@property (nonatomic, strong) NSDictionary *header; // 服务器返回的 header + +@end + +@interface RVPJSApiResDownloadFile : RVKJSApiResponseBase + +@property (nonatomic, strong) NSString *apFilePath; // 文件临时存放的位置 + +@end + +@interface RVPJSApiResChooseFileFromDisk : RVKJSApiResponseBase + +@property (nonatomic, strong) NSString *apFilePath; // 文件临时存放的位置 + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiResGetAppToken.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiResGetAppToken.h new file mode 100644 index 0000000..4d7ebcf --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiResGetAppToken.h @@ -0,0 +1,27 @@ +// +// RVPJSApiResGetAppToken.h +// AriverApi +// +// Created by xuyouyang on 2019/4/16. +// Copyright © 2019 Alipay. All rights reserved. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +typedef NS_ENUM(NSUInteger, RVPJSApiGetAppTokenError) { + // 获取token的时候网络出错 + RVPJSApiGetAppTokenConnectionError = 11, + // 传入的appName或者appKey无效 + RVPJSApiGetAppTokenInvalidParamError = 12, +}; + +@interface RVPJSApiResGetAppToken : RVKJSApiResponseBase + +// app名称 +@property (nonatomic, strong) NSString *appToken; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiResGetClientInfo.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiResGetClientInfo.h new file mode 100644 index 0000000..f2d3bad --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiResGetClientInfo.h @@ -0,0 +1,22 @@ +// +// RVPJSApiResGetClientInfo.h +// AriverApi +// +// Created by xuyouyang on 2019/4/15. +// Copyright © 2019 Alipay. All rights reserved. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface RVPJSApiResGetClientInfo : RVKJSApiResponseBase + +@property (nonatomic, strong) NSString *client_version; +@property (nonatomic, strong) NSString *os_name; +@property (nonatomic, strong) NSString *os_version; +@property (nonatomic, strong) NSString *device_id; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiResGetImageInfo.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiResGetImageInfo.h new file mode 100644 index 0000000..c610b5c --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiResGetImageInfo.h @@ -0,0 +1,20 @@ +// +// RVPJSApiResGetImageInfo.h +// AriverApi +// +// Created by quankai on 2019/5/6. +// Copyright © 2019 Alipay. All rights reserved. +// + +#import + +@interface RVPJSApiResGetImageInfo : RVKJSApiResponseBase + +@property (nonatomic, copy) NSNumber *width; +@property (nonatomic, copy) NSNumber *height; +@property (nonatomic, copy) NSString *path; +@property (nonatomic, copy) NSString *orientation; +@property (nonatomic, copy) NSString *type; + + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiResGetServerTime.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiResGetServerTime.h new file mode 100644 index 0000000..486d992 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiResGetServerTime.h @@ -0,0 +1,22 @@ +// +// RVPJSApiResGetServerTime.h +// AriverApi +// +// Created by xuyouyang on 2019/5/10. +// Copyright © 2019 Alipay. All rights reserved. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface RVPJSApiResGetServerTime : RVKJSApiResponseBase + +/** + * 服务器时间,毫秒数 + */ +@property (nonatomic, strong) NSString *time; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiResGetUserInfo.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiResGetUserInfo.h new file mode 100644 index 0000000..ef4f0b4 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiResGetUserInfo.h @@ -0,0 +1,42 @@ +// +// RVPJSApiResGetUserInfo.h +// AriverApi +// +// Created by xuyouyang on 2019/5/10. +// Copyright © 2019 Alipay. All rights reserved. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface RVPJSApiResGetUserInfo : RVKJSApiResponseBase + +/** + * 用户的avatar + */ +@property (nonatomic, strong) NSString *iconUrl; + +/** + * 用户的昵称 + */ +@property (nonatomic, strong) NSString *nick; + +/** + * 用户id + */ +@property (nonatomic, strong) NSString *userId; + +/** + * 用户的脱敏登录账号 + */ +@property (nonatomic, strong) NSString *loginId; + +/** + * 用户的脱敏真实姓名 + */ +@property (nonatomic, strong) NSString *userName; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiResHttpRequest.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiResHttpRequest.h new file mode 100644 index 0000000..a415150 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiResHttpRequest.h @@ -0,0 +1,20 @@ +// +// RVPJSApiResHttpRequest.h +// AriverApi +// +// Created by lanyao on 2019/4/15. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface RVPJSApiResHttpRequest : RVKJSApiResponseBase + +@property (nonatomic, strong) NSString *data; // 响应数据,包含响应文本或者响应体的base64表示(取决于请求时的responseType参数) +@property (nonatomic, strong) NSNumber *status; // 响应码 +@property (nonatomic, strong) NSDictionary *headers; // 响应头 + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiResLocalStorage.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiResLocalStorage.h new file mode 100644 index 0000000..76310be --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiResLocalStorage.h @@ -0,0 +1,28 @@ +// +// RVPJsApiResLocalStorage.h +// AriverDemo +// +// Created by xuyouyang on 2019/4/10. +// Copyright © 2019 alipay.com. All rights reserved. +// + +#import + +@interface RVPJSApiResLocalStorageGet : RVKJSApiResponseBase +@property (nonatomic, strong) NSString *data; +@end + +@interface RVPJSApiResLocalStorageSet : RVKJSApiResponseBase +@end + +@interface RVPJSApiResLocalStorageRemove : RVKJSApiResponseBase +@end + +@interface RVPJSApiResLocalStorageClear : RVKJSApiResponseBase +@end + +@interface RVPJSApiResLocalStorageGetInfo : RVKJSApiResponseBase +@property (nonatomic, strong) NSArray *keys; +@property (nonatomic, strong) NSNumber *currentSize; +@property (nonatomic, strong) NSNumber *limitSize; +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiResLocation.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiResLocation.h new file mode 100644 index 0000000..e902b75 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiResLocation.h @@ -0,0 +1,30 @@ +// +// RVPJSApiResLocation.h +// AriverApi +// +// Created by lanyao on 2019/4/17. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface RVPJSApiResLocation : RVKJSApiResponseBase + +@property (nonatomic, strong) NSNumber *longitude; // 经度 +@property (nonatomic, strong) NSNumber *latitude; // 纬度 +@property (nonatomic, strong) NSNumber *accuracy; // 精确度,单位m +@property (nonatomic, strong) NSNumber *horizontalAccuracy; // 水平精确度,单位m +@property (nonatomic, strong) NSString *country; // 国家(type>0生效) +@property (nonatomic, strong) NSString *countryCode; // 国家编号 (type>0生效) +@property (nonatomic, strong) NSString *province; // 省份(type>0生效) +@property (nonatomic, strong) NSString *city; // 城市(type>0生效) +@property (nonatomic, strong) NSString *cityAdcode; // 城市级别的地区代码(type>0生效) +@property (nonatomic, strong) NSString *district; // 区县(type>0生效) +@property (nonatomic, strong) NSString *districtAdcode; // 区县级别的地区代码(type>0生效) +@property (nonatomic, strong) NSDictionary *streetNumber; // 需要街道级别逆地理的才会有的字段,街道门牌信息,结构是:{street, number} (type>1生效) +@property (nonatomic, strong) NSArray *pois; // 需要POI级别逆地理的才会有的字段,定位点附近的 POI 信息,结构是:{name, address}(type>2生效) + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiResLocationPicker.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiResLocationPicker.h new file mode 100644 index 0000000..501ed31 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiResLocationPicker.h @@ -0,0 +1,44 @@ +// +// RVPJSApiResLocationPicker.h +// AriverApi +// +// Created by 百喻 on 2019/4/28. +// Copyright © 2019 Alipay. All rights reserved. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface RVPJSApiResLocationPicker : RVKJSApiResponseBase + +@property (nonatomic,copy) NSString *poiId; // 兴趣点id +@property (nonatomic,copy) NSString *shopID; // 商铺id +@property (nonatomic,copy) NSString *snippet; // 简要地址信息 +@property (nonatomic,copy) NSString *title; // 兴趣点名称 +@property (nonatomic,copy) NSString *tel; // 联系电话 +@property (nonatomic,strong) NSDictionary *latLonPoint; // 经纬度信息 +@property (nonatomic,copy) NSString *adCode; // 区域编码 +@property (nonatomic,copy) NSString *adName; // 区域名称 +@property (nonatomic,copy) NSString *cityCode; // 城市编码 +@property (nonatomic,copy) NSString *cityName; // 城市名称 +@property (nonatomic,copy) NSString *provinceCode; // 省编码 +@property (nonatomic,copy) NSString *provinceName; // 省 +@property (nonatomic,copy) NSString *gridcode; // 地理格id +@property (nonatomic,strong) NSNumber *hasIndoorMap; // 是否有室内地图 +@property (nonatomic,copy) NSDictionary *indoorData; // 室内信息 +@property (nonatomic,copy) NSString *businessArea; // 商圈 +@property (nonatomic,copy) NSString *parkingType; // 停车场类型:地下,地上,路边 +@property (nonatomic,strong) NSDictionary *enter; // 入口经纬度 +@property (nonatomic,strong) NSDictionary *exit; // 出口经纬度 +@property (nonatomic,strong) NSString *subPOIs; // 子POI列表 +@property (nonatomic,copy) NSString *website; // 网站 +@property (nonatomic,copy) NSString *email; // email信息 +@property (nonatomic,strong) NSNumber *distance; // 距中心点的距离,单位米,在周边搜索时有效 +@property (nonatomic,copy) NSString *direction; // 兴趣点所在方向 +@property (nonatomic,copy) NSString *typeDes; // 兴趣点类型 +@property (nonatomic,copy) NSString *postcode; // 邮编 + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiResPreviewImage.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiResPreviewImage.h new file mode 100644 index 0000000..bfecd11 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiResPreviewImage.h @@ -0,0 +1,15 @@ +// +// RVPJSApiResPreviewImage.h +// AriverApi +// +// Created by quankai on 2019/5/6. +// Copyright © 2019 Alipay. All rights reserved. +// + +#import + +@interface RVPJSApiResPreviewImage : RVKJSApiResponseBase + +@property (nonatomic, copy) NSNumber *success; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiResSaveImageToPhotosAlbum.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiResSaveImageToPhotosAlbum.h new file mode 100644 index 0000000..b5b5533 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiResSaveImageToPhotosAlbum.h @@ -0,0 +1,15 @@ +// +// RVPJSApiResSaveImageToPhotosAlbum.h +// AriverApi +// +// Created by quankai on 2019/5/6. +// Copyright © 2019 Alipay. All rights reserved. +// + +#import + +@interface RVPJSApiResSaveImageToPhotosAlbum : RVKJSApiResponseBase + +@property (nonatomic, copy) NSNumber *success; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiResSaveVideoToPhotosAlbum.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiResSaveVideoToPhotosAlbum.h new file mode 100644 index 0000000..e8052ce --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiResSaveVideoToPhotosAlbum.h @@ -0,0 +1,15 @@ +// +// RVPJSApiResSaveVideoToPhotosAlbum.h +// AriverApi +// +// Created by quankai on 2019/5/6. +// Copyright © 2019 Alipay. All rights reserved. +// + +#import + +@interface RVPJSApiResSaveVideoToPhotosAlbum : RVKJSApiResponseBase + +@property (nonatomic, copy) NSNumber *success; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiResShowLoading.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiResShowLoading.h new file mode 100644 index 0000000..b9d1ee2 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiResShowLoading.h @@ -0,0 +1,20 @@ +// +// RVPJSApiResShowLoading.h +// AriverApi +// +// Created by lanyao on 2019/4/15. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface RVPJSApiResShowLoading : RVKJSApiResponseBase + +@end + +@interface RVPJSApiResHideLoading : RVKJSApiResponseBase + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiResTitleView.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiResTitleView.h new file mode 100644 index 0000000..a08b0d1 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiResTitleView.h @@ -0,0 +1,26 @@ +// +// RVPJSApiResTitleView.h +// Ariver +// +// Created by zhongweitao on 2019/4/20. +// + +#import + +@interface RVPJSApiResTitleViewGetHeight : RVKJSApiResponseBase + +@property (nonatomic, strong) NSNumber *density; +@property (nonatomic, strong) NSNumber *titleBarHeight; +@property (nonatomic, strong) NSNumber *statusBarHeight; + +@end + +@interface RVPJSApiResTitleViewGetTitleColor: RVKJSApiResponseBase + +@property (nonatomic, strong) NSNumber *color; + +@end + + + + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiResToast.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiResToast.h new file mode 100644 index 0000000..d146120 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiResToast.h @@ -0,0 +1,20 @@ +// +// RVPJSApiResToast.h +// AriverApi +// +// Created by lanyao on 2019/4/15. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface RVPJSApiResToast : RVKJSApiResponseBase + +@end + +@interface RVPJSApiResHideToast : RVKJSApiResponseBase + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiResTradePay.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiResTradePay.h new file mode 100644 index 0000000..42c8a0b --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiResTradePay.h @@ -0,0 +1,22 @@ +// +// RVPJSApiResTradePay.h +// AriverApi +// +// Created by xuyouyang on 2019/4/22. +// Copyright © 2019 Alipay. All rights reserved. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface RVPJSApiResTradePay : RVKJSApiResponseBase + +@property (nonatomic, strong) NSString *resultCode; +@property (nonatomic, strong) NSNumber *result; +@property (nonatomic, strong) NSString *callbackUrl; +@property (nonatomic, strong) NSString *memo; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiResVerifyIdentity.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiResVerifyIdentity.h new file mode 100644 index 0000000..ca43b03 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPJSApiResVerifyIdentity.h @@ -0,0 +1,19 @@ +// +// RVPJSApiResVerifyIdentity.h +// AriverApi +// +// Created by xuyouyang on 2019/5/9. +// Copyright © 2019 Alipay. All rights reserved. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +// 返回值直接取 [[VIEngine engine] startWithVerifyId:] 里面的返回值 + +@interface RVPJSApiResVerifyIdentity : RVKJSApiResponseBase + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPNetworkImpl.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPNetworkImpl.h new file mode 100644 index 0000000..c924f1c --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPNetworkImpl.h @@ -0,0 +1,37 @@ +// +// RVPNetworkImpl.h +// AriverApi +// +// Created by hua.lu on 2019/5/9. +// Copyright © 2019 Alipay. All rights reserved. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +typedef enum +{ + // Apple NetworkStatus Compatible Names. + RVPNotReachable = 0, + RVPReachableViaWWAN = 1, + RVPReachableViaWiFi = 2, +}RVPNetworkStatus; + +@protocol RVPNetworkImplProtocol +-(RVPNetworkStatus )networkStatus; //[DTReachability sharedDTReachability].networkStatus +-(BOOL)isReachableVia3G; //[DTReachability sharedDTReachability].isReachableVia3G +-(BOOL)isReachableVia2G; //[DTReachability sharedDTReachability].isReachableVia2G +@end + +@interface RVPNetworkImpl : NSObject + ++ (NSString *)H5RVPNetWorkName; + ++ (NSString *)H5RVPNetWorkType; + ++ (id)rvpNetwork; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPPushWindowAdvisor+SubClass.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPPushWindowAdvisor+SubClass.h new file mode 100644 index 0000000..c932ab0 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPPushWindowAdvisor+SubClass.h @@ -0,0 +1,75 @@ +// +// RVPPushWindowAdvisor+SubClass.h +// AriverApi +// +// Created by 张光宇 on 2019/4/29. +// Copyright © 2019 Alipay. All rights reserved. +// + +#import "RVPPushWindowAdvisor.h" + +@interface RVPPushWindowAdvisor(Protected) + +/** + * 创建 RVKScene + * 默认实现会通过 + * + * [RVKServicecreateSceneWithSceneParam:sceneParam parentObject:session]; + * + * 创建Scene + * + * 若要实现预渲染,可重载此方法 + * + * Optional + */ +- (RVKScene *)createSceneWithParams:(RVKSceneParam *)sceneParam + request:(RVPPushWindowReq *)request + currentScene:(RVKScene *)currentScene + createResult:(RVPSceneCreateResult *)createResult; + +/** + * 组装参数类RVKSceneParam + * + * Optional + */ +- (RVKSceneParam *)composeSceneParams:(RVAOptions *)options request:(RVPPushWindowReq *)request; + + +/** + * 检查navigationController的视图栈,是否执行当前操作 + * + * Optional + */ +- (void)checkNavigationState:(UIViewController *)vc sceneResult:(RVPSceneCreateResult *)sceneResult; + + +/** + * 创建RVAOptions前, 可通过重写此方法修改创建参数 + * + * Optional + */ +- (void)modifyParamsBeforeCreateOptions:(UIViewController *)vc + request:(RVPPushWindowReq *)request + url:(NSString *)url; + +/** + * 处理CloseCurrentWindow + * + * Required + */ +- (void)handleCloseCurrentWindow:(UIViewController *)currentVC + createResult:(RVPSceneCreateResult *)createResult; + + +/** + * 处理abnormal push + * 有以下参数时,会被当成abnormal push处理: + * closeAllWindow/closeCurrentWindow/PopToIndex + * + * Required + */ +- (void)processAbnormalPush:(UIViewController *)currentVC_ + scene:(RVKScene *)currentScene + viewControllers:(NSMutableArray *)viewControllers + animated:(BOOL)animated; +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPPushWindowAdvisor.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPPushWindowAdvisor.h new file mode 100644 index 0000000..157c41f --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPPushWindowAdvisor.h @@ -0,0 +1,101 @@ +// +// RVPPushWindowAdvisor.h +// AriverApi +// +// Created by 张光宇 on 2019/4/28. +// Copyright © 2019 Alipay. All rights reserved. +// + +#import +#import +#import +#import "RVPPushWindowReq.h" +#import "RVPPushWindowTask.h" + +NS_ASSUME_NONNULL_BEGIN +@class RVPSceneCreateResult; +@interface RVPPushWindowAdvisor : NSObject + +- (RVPSceneCreateResult *)createScene:(UIViewController *)currentVC + currentScene:(RVKScene *)currentScene + data:(RVPPushWindowReq *)data; + +- (void)processRequestParams:(RVPPushWindowReq *)data scene:(RVKScene *)currentScene; + +- (BOOL)shouldStartApp:(NSString *)url scene:(RVKScene *)currentScene; + +- (void)handleCloseCurrentWindow:(UIViewController *)currentVC + createResult:(RVPSceneCreateResult *)createResult; + +//!vc是否被标记为Evicted +- (BOOL)isViewControllerTagEvicted:(UIViewController *)vc; + +//!vc包含的view 是否是内嵌webview +- (BOOL)isSubViewMode:(UIViewController *)vc; + +////////////////////////////////////// +// 以下为TabBar相关实现 +// 默认实现,请参考 +//https://codesearch.alipay.com/source/xref/iOS_wallet_master/ios-phone-nebulabiz-git/Sources/UI/Controllers/H5WebViewController+TabBar.m +/** + 是否持有多Tab的其它子Tab + */ +- (BOOL)hasChildTab:(UIViewController *)vc; + +/** + 持有的子Tab的数目 + */ +- (NSUInteger)childTabCount:(UIViewController *)vc; + +/** + * 是否为多Tab的子Tab + */ + +- (BOOL)isChildTab:(UIViewController *)vc; + +/** + 多Tab时,是否不可见 + */ +- (BOOL)isNotVisibleWhenMultiTab:(UIViewController *)vc; + +/** + * 处理非常规pushWindow + * + */ +- (void)processAbnormalPush:(UIViewController *)currentVC + scene:(RVKScene *)currentScene + viewControllers:(NSMutableArray *)viewControllers + animated:(BOOL)animated; + +/** + * 在pushWindowTask.run 之前,提供扩展点 + */ + +- (void)willRunPushWindowTask:(RVPPushWindowTask *)task + requestData:(RVPPushWindowReq *)data + paramsObj:(RVPPushWindowParamObj *)paramObj; + +/// @brief 是否要 +- (BOOL)forbidPushWindowForPage:(NSString *)page currentVC:(UIViewController *)currentVC; + +/// @brief 公开创建Options方法(不需要重新实现) +- (RVAOptions *)createOptions:(UIViewController *)currentVC data:(RVPPushWindowReq *)data; + +@end + + + +@interface RVPSceneCreateResult : NSObject +@property(nonatomic,strong) RVKScene *sceneCreated; +@property(nonatomic,assign) BOOL transparent; +@property(nonatomic,assign) BOOL isNormalPush; +@property(nonatomic,assign) BOOL isHit; +@property(nonatomic,strong) NSMutableArray *viewControllers; + +@property(nonatomic,strong) NSDictionary *errorInfo; + + +@property(nonatomic,assign) BOOL stopAndRunInDelayBlock; + +@end +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPPushWindowReq.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPPushWindowReq.h new file mode 100644 index 0000000..8e3a886 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPPushWindowReq.h @@ -0,0 +1,57 @@ +// +// RVPPushWindowReq.h +// AriverApi +// +// Created by 张光宇 on 2019/4/28. +// Copyright © 2019 Alipay. All rights reserved. +// + +#import + +typedef NS_ENUM(NSUInteger, RVPPushWindowAnimationType) +{ + RVPPushWindowAnimationPush, + RVPPushWindowAnimationNone +}; +@class RVPPushWindowParamObj; + +NS_ASSUME_NONNULL_BEGIN + +@interface RVPPushWindowReq : NSObject + +- (instancetype)initWithDictionary:(NSDictionary *)dictionary; + +@property(nonatomic,strong)NSString *url; + +@property(nonatomic,strong)NSMutableDictionary *param; + +@property(nonatomic,readonly)NSNumber *popToIndex; + +@property(nonatomic,readonly)NSString *launchParamsTag; + +@property(nonatomic,readonly)NSTimeInterval waitRender; + +@property(nonatomic,readonly)BOOL isRequestValid; + + +- (RVPPushWindowParamObj *)parseParmObj; + +- (NSDictionary *)writeToDictionary; + + +@end + + + +@interface RVPPushWindowParamObj : NSObject +@property(nonatomic,readonly)BOOL closeAllWindow; +@property(nonatomic,readonly)BOOL closeCurrentWindow; +@property(nonatomic,readonly)RVPPushWindowAnimationType animationType; + +//支付宝自有 +@property(nonatomic,readonly)NSString *endJS; + +- (instancetype)initWithDictionary:(NSDictionary *)dictionary; + +@end +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPPushWindowTask.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPPushWindowTask.h new file mode 100644 index 0000000..99fc432 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPPushWindowTask.h @@ -0,0 +1,35 @@ +// +// RVPPushWindowTask.h +// AriverApi +// +// Created by 张光宇 on 2019/4/24. +// Copyright © 2019 Alipay. All rights reserved. +// + +#import +#import "RVPPushWindowReq.h" +//NS_ASSUME_NONNULL_BEGIN +//NS_ASSUME_NONNULL_END +@class RVKScene; + +@interface RVPPushWindowTask : NSObject + +@property(nonatomic, strong) NSTimer *timer; +@property(nonatomic, assign) double waitRender; +@property(nonatomic, assign) BOOL isFinished; +/** + 是否不需处理原有导航栈内容,只操作新VC + */ +@property(nonatomic, assign) BOOL isNormalPush; +@property(nonatomic, assign) BOOL transparent; +@property(nonatomic, strong) UIViewController *currentVC; +@property(nonatomic, strong) RVKScene *scene; +/** + 在VC切换操作时,导航栈中保留的VC数组(未包含新VC) + */ +@property(nonatomic, strong) NSMutableArray *viewControllers; +@property(nonatomic, strong) UIWindow *keyWindow; +@property(nonatomic, assign) RVPPushWindowAnimationType animationType; + +- (void)run; +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPScreenOrientationAdvisor.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPScreenOrientationAdvisor.h new file mode 100644 index 0000000..3f58220 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPScreenOrientationAdvisor.h @@ -0,0 +1,27 @@ +// +// RVPScreenOrientationAdvisor.h +// AriverApi +// +// Created by lyusheng on 2019/7/1. +// Copyright © 2019 Alipay. All rights reserved. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +typedef NS_ENUM(NSInteger, RVPScreenOrientationType) { + RVPScreenOrientationTypePortrait, + RVPScreenOrientationTypeLandscape, + RVPScreenOrientationTypeOther +}; + +@interface RVPScreenOrientationAdvisor : NSObject + +- (void)setOrientationTo:(RVPScreenOrientationType)orientation fullParam:(NSDictionary *)params page:(RVKScene *)page; + +- (RVPScreenOrientationType)getCurrentOrientationType:(RVKScene *)page; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPSystemInfoConfigService.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPSystemInfoConfigService.h new file mode 100644 index 0000000..51244f8 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPSystemInfoConfigService.h @@ -0,0 +1,23 @@ +// +// RVPSystemInfoConfigService.h +// AriverApi +// +// Created by zhongweitao on 2019/8/12. +// Copyright © 2019 Alipay. All rights reserved. +// + +#import +#import + +@protocol RVPSystemInfoConfigService + +@optional +- (NSString *)clientName; +- (NSString *)clientVersion; +- (NSString *)currentLanguage; +- (NSNumber *)fontSize; + +- (NSNumber *)customTitleBarHeightForScene:(RVKScene *)scene; + +@end + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPTabBar.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPTabBar.h new file mode 100644 index 0000000..15c0272 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPTabBar.h @@ -0,0 +1,18 @@ +// +// RVPTabBar.h +// NebulaBiz +// +// Created by lyusheng on 2018/11/26. +// Copyright © 2018 Alipay. All rights reserved. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface RVPTabBar : UITabBar +@property (nonatomic,copy) void(^tabbarShouldSelectItem)(RVPTabBar *tabBar,NSInteger idx, UITabBarItem *item); +@property (nonatomic, assign)BOOL needResetPosition; +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPTabBarItem.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPTabBarItem.h new file mode 100644 index 0000000..aa377f2 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPTabBarItem.h @@ -0,0 +1,32 @@ +// +// RVPTabBarItem.h +// NebulaBiz +// +// Created by Glance on 17/2/10. +// Copyright © 2017年 Alipay. All rights reserved. +// + +#import + +@interface RVPTabBarItem : UITabBarItem + +@property(nonatomic, strong) NSString *identifier; +@property(nonatomic, assign) BOOL selectedFromApi; +@property(nonatomic, assign) BOOL cancelOrigIcon; + +- (instancetype)initWithTitle:(NSString *)title + identifier:(NSString *)identifier + color:(NSNumber *)color + selectedColor:(NSNumber *)selectedColor; + +@end + + +@interface UITabBar(smallRedDot) + +@property(nonatomic, assign) CGFloat nbZeroBadgeSize; +@property(nonatomic, strong) UIColor *nbBadgeColor; + +- (void)setRvpBadgeValue:(NSString *)badgeValue atTabBarItem:(RVPTabBarItem *)item; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPTabBarItemData.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPTabBarItemData.h new file mode 100644 index 0000000..44d368f --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPTabBarItemData.h @@ -0,0 +1,65 @@ +// +// RVPTabBarItemData.h +// NebulaBiz +// +// Created by Glance on 17/2/10. +// Copyright © 2017年 Alipay. All rights reserved. +// + +#import + +@interface RVPTabBarItemColorSchemeData : NSObject + +@property (nonatomic, strong) NSString *icon; +@property (nonatomic, strong) NSString *activeIcon; + +- (instancetype) initWithDictionary:(NSDictionary *)dict; + +@end + + +@interface RVPTabBarColorSchemeData : NSObject + +@property (nonatomic, strong) NSNumber *textColor; +@property (nonatomic, strong) NSNumber *selectedColor; +@property (nonatomic, strong) NSNumber *backgroundColor; +@property (nonatomic, strong) NSArray *itemColorSchemeData; + +- (instancetype)initWithDictionary:(NSDictionary *)dict; + +@end + + +@interface RVPTabBarItemData : NSObject + +//"url": "https://www.baidu.com",//兼容魔法参数 +//"launchParams":{canPullDown:true}, +//"name": "tab1", +//"tag": "tab11", +//"icon": "https://zos.alipayobjects.com/rmsportal/IOwBUWsFOQyNYhhAxDgb.png", +//"activeIcon": "https://zos.alipayobjects.com/rmsportal/KdyZNLUKgFfAAHreQzoj.png", +//"redDot": -1 + + +@property (nonatomic, strong) NSString *url; +@property (nonatomic, copy) NSString *launchParamsTag; +@property (nonatomic, copy) NSDictionary *launchParams; +@property (nonatomic, strong) NSString *name; +@property (nonatomic, strong) NSString *tag; +@property (nonatomic, strong) NSNumber *textColor; +@property (nonatomic, strong) NSNumber *selectedColor; +@property (nonatomic, strong) NSString *icon; +@property (nonatomic, strong) NSString *activeIcon; +@property (nonatomic, strong) NSString *redDot; +@property (nonatomic, assign) BOOL isSelected; +@property (nonatomic, assign) float waitRender; +@property (nonatomic, assign) float transDuration; +@property(nonatomic, assign) float unselectedScale; // 非选中状态的放大值, 最大1.5倍,暂时不支持缩小 +@property(nonatomic, assign) float selectedScale; // 选中状态的放大值, 最大1.5倍,暂时不支持缩小 + + + +- (instancetype) initWithDictionary:(NSDictionary *)dict; + + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPTabbarManager+Private.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPTabbarManager+Private.h new file mode 100644 index 0000000..0d11ad0 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPTabbarManager+Private.h @@ -0,0 +1,118 @@ +// +// RVPTabBarManager+Private.h +// NebulaBiz +// +// Created by lyusheng on 2019/1/17. +// Copyright © 2019 Alipay. All rights reserved. +// + +#ifndef RVPTabBarManager_Private_h +#define RVPTabBarManager_Private_h +#import "RVPVCTabBarProtocol.h" + +@class RVPTabBarItem; + +@interface RVPTabBarManager(PrivateDeclare) + + +/** + 缓存tabBar未创建前的tabBar操作指令 + */ +@property(nonatomic, readwrite, strong) NSMutableArray* delayTabBarTasks; + +/** + 是否是在切换Tab过程中 + */ +@property(nonatomic, assign) BOOL isSwitching; + +/** + 使用大icon图标 + */ +@property(nonatomic, assign) BOOL isLargeIconSize; + +/** + 用于占位的tabBar + */ +//@property(nonatomic, strong) UITabBar *placeholderTabBar; + +/** + 主Tab的导航栏用于显示各当前选中Tab + 新建变量用于持有主Tab的原有导航栏 + */ +@property(nonatomic, strong) UINavigationItem *origNavigationItem; + +/** + 各TabItem的创建参数 + */ +@property(nonatomic, strong) NSMutableArray *arrItemData; + + +@property(nonatomic, weak) NSLayoutConstraint *cstTabBarBottom; +@property(nonatomic, weak) NSLayoutConstraint *cstPlaceholdTabBarBottom; +@property(nonatomic, weak) NSLayoutConstraint *cstTabBarHeight; + +/** + 创建UITabBar + + @param items UITabBarItem数组 + @param backgroundImage TabBar的背景色 + @param shadowImage TabBar分隔线的背景色 + @param selectedIndex 创建时的初始选中项 + */ +- (void)p_createTabBarWithItems:(NSArray *)items backgroundImage:(UIImage *)backgroundImage shadowImage:(UIImage *)shadowImage selectedIndex:(NSUInteger)selectedIndex disableOnInit:(BOOL)disableOnInit; + +/** + 设置UITabBarItem的图标 + + @param icon 图标的base64或者url + @param defaultColor 没有图标时默认方块的颜色 + @param item 所设置的UITabBarItem + @param is4Selected 设置选中状态或不选中 + */ +- (void)p_displayIcon:(NSString *)icon defaultColor:(NSNumber *)color scale:(float)scale atBarItem:(RVPTabBarItem *)item forSelected:(BOOL)is4Selected; + +/** + 用颜色方块设置UITabBarItem的图标 + + @param dict 设置参数 + */ +- (void)p_placeholdTabBarImage:(NSDictionary *)dict; + + +/** + 新建或取出缓存的子VC + + @param tag VC对应的TabBarItem的identifier + @return 新建或查询结果 + */ +- (UIViewController *)p_viewController4Tag:(NSString *)tag; + +/** + 转换对应identifier的下标序号 + + @param tag TabBarItem的identifier + @return 转换结果 + */ +- (NSInteger)index4TabBarItemTag:(NSString *)tag; + + +/** + 转换对应下标号的identifier + + @param index TabBarItem的下标 + @return 转换结果 + */ +- (NSString *)p_tag4TabBarIndex:(NSUInteger)index; + +// 组装 sceneParam 的默认实现,支付宝端这个逻辑代理出去由外部实现 +- (RVKSceneParam *)defaultSceneParamWithParams:(NSDictionary *)launchParams + url:(NSString *)url + vc:(UIViewController *)vc; + +// newAdded +@property(nonatomic) NSString *tagAtTabBarController; +@property(nonatomic,weak) id nxTabDelegate; + +@end + +#endif /* RVPTabBarManager_Private_h */ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPTabbarManager.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPTabbarManager.h new file mode 100644 index 0000000..adba2eb --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPTabbarManager.h @@ -0,0 +1,104 @@ +// +// RVPTabBarManager.h +// NebulaBiz +// +// Created by lyusheng on 2019/1/16. +// Copyright © 2019 Alipay. All rights reserved. +// + +#import +#import "RVPVCTabBarProtocol.h" +#import + +NS_ASSUME_NONNULL_BEGIN + +#define kH5TabBarJsonConfigDict @"kH5TabBarJsonConfigDict" +#define kH5TabBarShouldCreateTabAfterSession @"kH5TabBarShouldCreateTabAfterSession" +#define kH5TabBarSelectTabIndexAfterSession @"kH5TabBarSelectTabIndexAfterSession" +#define kH5TabBarShouldCreateFakeTabAfterSession @"kH5TabBarShouldCreateFakeTabAfterSession" +#define kH5TabBarShouldCreateFakeTabItemCount @"kH5TabBarShouldCreateFakeTabItemCount" +#define kDefaultTabBarHeight 49 + +@interface RVPTabBarManager : NSObject + +@property (nonatomic, assign) BOOL associated; + +// implementation of RVATabBarProtocol +/*---------------------------------------------------------------*/ + /** + 用于占位的tabBar + */ +@property(nonatomic, strong, nullable) UITabBar *placeholderTabBar; +/** + 自定义TabBarController, tabBar控件 + */ +@property(nonatomic) UITabBar *tabBar; + +/** + 缓存tabBar未创建前的tabBar操作指令 + */ +@property(nonatomic, readonly) NSMutableArray* delayTabBarTasks; + +/** + 是否持有多Tab的其它子Tab + */ +@property(nonatomic, readonly) BOOL hasChildTab; + +/** + 是否为多Tab的子Tab + */ +@property(nonatomic) BOOL isChildTab; + +/** + 多Tab时,是否可见 + */ +@property(nonatomic, readonly) BOOL isNotVisibleWhenMultiTab; + +/** + 是否需要停止手动补齐appearance事件 + */ +@property(nonatomic, assign) BOOL stopConstructAppearance; + +/** + 持有的子Tab的数目 + */ +@property(nonatomic, readonly) NSUInteger childTabCount; + +/** + 设置/读取选中tag + */ +@property(nonatomic) NSString *selectedTag; + +/** + 作为子Tab被执有的H5WebViewController + */ +@property(nonatomic, weak) UIViewController *cachedParentViewController; + +/** + 多tab模式时,返回兄弟tab里选中的的H5WebViewController + 非tab模式时,直接返回调用的H5WebViewController + */ +@property(nonatomic, readonly) UIViewController *selectedViewController; + +/** + 持有创建的子Tab对应的H5WebViewController + 键值对中,键名为对应Tab的identifier + */ +@property(nonatomic, strong) NSDictionary *cachedChildViewControllers; + +@property(nonatomic, assign) BOOL hasAlphaBackgroundColor; +/*---------------------------------------------------------------*/ + + +// vc safearea 变更回调,同步给 tabbar +- (void)viewSafeAreaInsetsDidChange; +@end + +@interface RVPTabBarManager(apis) + +- (UIViewController *)childTabViewController; +- (instancetype)initWithViewController:(UIViewController *)vc; +- (void)associateToViewController:(UIViewController *)vc; +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPUtils.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPUtils.h new file mode 100644 index 0000000..7b8d345 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPUtils.h @@ -0,0 +1,32 @@ +// +// RVPUtils.h +// AriverApi +// +// Created by nico on 2019/4/24. +// Copyright © 2019 Alipay. All rights reserved. +// + + +#import +#import "RVPViewControllerProtocol.h" + +#define kRVP_Error @"error" +#define kRVP_Error_Msg @"errorMessage" + +@class RVPPushWindowAdvisor; +@protocol RVPVCTabBarProtocol; + +@interface RVPUtils: NSObject + ++ (NSString *)convertAlipayRunSceneToAppX:(NSString *)sourceScene; + ++ (NSString *)getAlipayRunSceneWithAppId:(NSString *)appId; + ++ (RVPPushWindowAdvisor *)pushWindowAdvisor; + ++ (id)rvpViewControllerProtocolImp; + ++ (id)vcTabbarProtocolImp; + +@end + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPVCTabBarProtocol.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPVCTabBarProtocol.h new file mode 100644 index 0000000..9775ed6 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPVCTabBarProtocol.h @@ -0,0 +1,114 @@ +// +// RVPVCTabBarProtocol.h +// AriverApp +// +// Created by hua.lu on 2019/5/30. +// Copyright © 2019 Alipay. All rights reserved. +// + +#ifndef RVAViewControllerTabBarProtocol_h +#define RVAViewControllerTabBarProtocol_h + +#import +#import +#import "RVPTabBarItemData.h" + +@class RVPTabBarManager; +@protocol RVPVCTabBarProtocol + +- (BOOL)isWebviewController:(UIViewController *)vc; + +// 获取当前 webview 的 insets 属性 +- (UIEdgeInsets)getContentEdgeInsets:(UIViewController *)vc; + +// 设置 webview 的 insets 属性 +// 注意:这里仅设置属性值,不做 UI 变更(区别于下面的 adjustWebviewContentInsets) +- (void)setContentEdgeInsets:(UIEdgeInsets)contentEdgeInsets forVC:(UIViewController *)vc; + +// 根据 insets 修改 webview 的 ui +- (void)adjustWebviewContentInsets:(UIViewController *)vc; + +// 解析 tabbar.json 文件错误时,showAlert==YES表示需要阻断流程(弹 alert) +- (void)tabbarDicParseError:(NSString *)errorLog withVC:(UIViewController *)vc showAlert:(BOOL)showAlert; + +// switchTab jsapi +// -------------- +// 异步拉去 tabbar.json 之前先显示 toast +// 这里需要返回 toast 实例 +- (id)showToastBeforeReadTabDic:(RVKScene *)scene; + +// 拉去到 tabbar.json 后隐藏 toast +- (void)hideToastAfterReadTabDic:(id)toast; + +// relaunch 时,重建 tabvc +// 注意:调用 setViewControllers 最好放到下一个 runloop,防止乱栈 +- (void)setNewViewController:(UIViewController *)newVC withCurrentVC:(UIViewController *)currentVC; + +@optional + +/// @brief 切换tab拦截 +- (BOOL)forbidChangeToTabForPage:(NSString *)page currentVC:(UIViewController *)currentVC; + +// optional +// 默认返回 NO +- (BOOL)shouldDisableTabBarWhenShare:(NSString *)url withVC:(UIViewController *)vc; + +// 创建 tab 对应的 scene +// 可选,有默认实现 +// optional +- (RVKScene *)createScene:(RVKSceneParam *)sceneParam selectedIndex:(NSInteger)index withVC:(UIViewController *)vc; + +// 组装创建 scene 的参数 +// 可选,有默认实现 +// optional +- (RVKSceneParam *)sceneParamWithParams:(NSDictionary *)launchParams url:(NSString *)url vc:(UIViewController *)vc; + +// 解析 tabBarJson 之后找到匹配 url 的 tab 之后的回调,主要做动态合并启动参数 +// 无默认实现 +// optional +- (void)tabDidMatch:(NSDictionary *)mergedLaunchParam withVC:(UIViewController *)vc; + +// 未找到匹配的 tab 的回调,主要是记录一下埋点 +// 无默认实现 +// optional +- (void)tabDidMismatchWithVC:(UIViewController *)vc; + +// autoPreRender +// 无默认实现 +// optional +- (void)handleAutoPreRender:(RVPTabBarItemData *)itemData preRenderParams:(NSDictionary *)params withVC:(UIViewController *)vc; + +// 获取当前 vc 所在 app 的 rootVC(alipay only) +// 无默认实现 +// optional +- (UIViewController *)getRootVCWithFirstVC:(UIViewController *)firstVC currentVC:(UIViewController *)currentVC; + +// config 开关 +// -------------- +// 默认 NO +// optional +- (BOOL)enableAutoRender; + +// optional +// 默认 NO +- (BOOL)enableProxyOnceForAll; + +// optional +// 默认 NO +- (BOOL)shouldTabChangeSupportWaitRender; + +// 扩展方法 +// -------------- +// tabbar 切换时的回调 +- (void)tabBar:(UITabBar *)tabBar willSwitchFromVC:(UIViewController *)fromVC toVC:(UIViewController *)toVC; + +// tab 切换时,是否忽略每个 tab 的 navigationItem 变化 +- (BOOL)tabBarShouldIgnoreNaviBarChange:(UITabBar *)tabBar; + +//当前应用是否为暗黑模式 +- (RVATabBarColorMode)currentColorMode:(UIViewController *)vc; + +@end + + +#endif /* RVAViewControllerTabBarProtocol_h */ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPViewControllerProtocol.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPViewControllerProtocol.h new file mode 100644 index 0000000..93b605d --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPViewControllerProtocol.h @@ -0,0 +1,20 @@ +// +// RVPViewControllerProtocol.h +// AriverApi +// +// Created by hua.lu on 2019/5/15. +// Copyright © 2019 Alipay. All rights reserved. +// + +#import + +#ifndef RVPViewControllerProtocol_h +#define RVPViewControllerProtocol_h + +@protocol RVPViewControllerProtocol + +- (BOOL)isWebviewController:(UIViewController *)vc; + +@end + +#endif /* RVPViewControllerProtocol_h */ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPi18nEnvService.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPi18nEnvService.h new file mode 100644 index 0000000..d73539d --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/RVPi18nEnvService.h @@ -0,0 +1,66 @@ +// +// RVPi18nEnvService.h +// AriverApi +// +// Created by Klueze on 2020/2/20. +// Copyright © 2020 Alipay. All rights reserved. +// + +#ifndef RVPi18nEnvService_h +#define RVPi18nEnvService_h + +#import +#import + +typedef NS_ENUM(NSUInteger, RVPLayoutDirection) { + RVPLayoutDirectionLTR = 0, + RVPLayoutDirectionRTL +}; + +@protocol RVPi18nEnvService + +@optional +/* +* 获取App应用当前的Region设置 +* https://yuque.antfin-inc.com/kizfbk/dkxa22/he6c78#jx8uC +* @return 由接入方按ISO标准实现,不实现该接口,默认系统设置Locale区域码 +* @see [[NSLocale currentLocale] objectForKey:NSLocaleCountryCode]; +* +* ISO 3166-1 alha-2 code. eg. 'CN', 'HK', 'IN' +*/ +- (NSString *)regionCode; +/* +* 获取App应用当前的Region设置 +* https://yuque.antfin-inc.com/kizfbk/dkxa22/he6c78#jx8uC +* @return 由接入方按ISO标准实现,不实现该接口,默认APP最优语言 +* @see [[NSBundle mainBundle] preferredLocalizations] 第一个语言 +* +* Follow BCP 47 language tag, consisting of a language code(ISO639) and optional region code(ISO6133-1 alpha-2) . eg. 'en', 'th-TH', 'zh-CN' +*/ +- (NSString *)languageTag; +/* +* 获取App应用当前的货币设置 +* https://yuque.antfin-inc.com/kizfbk/dkxa22/he6c78#jx8uC +* @return 由接入方按ISO标准实现,不实现该接口,默认系统设置Locale币种 +* @see [[NSLocale currentLocale] objectForKey:NSLocaleCurrencyCode]; +* +* iso-4217-currency-codes eg. 'RUB', 'USD' +*/ +- (NSString *)currencyCode; + +/* +* 获取App应用当前的屏幕方向 +* Get the layout direction for current language +* https://yuque.antfin-inc.com/kizfbk/dkxa22/he6c78#jx8uC +* @return 由接入方按目前APP屏幕方向实现,不实现该接口,默认系统读取App方向 +* @see [UIApplication sharedApplication].userInterfaceLayoutDirection +* +* Layout direction of text, table columns, and horizontal overflow for current language. +* The valid value is 'RVPLayoutDirectionRTL' or 'RVPLayoutDirectionLTR'. +* Commonly used for 'direction' in stylesheet. +*/ +- (RVPLayoutDirection)layoutDirection; + +@end + +#endif /* Header_h */ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/UIViewController+RVPTabbar.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/UIViewController+RVPTabbar.h new file mode 100644 index 0000000..7292794 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Headers/UIViewController+RVPTabbar.h @@ -0,0 +1,20 @@ +// +// UIViewController+RVPTabbar.h +// AriverApi +// +// Created by hua.lu on 2019/5/30. +// Copyright © 2019 Alipay. All rights reserved. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +@class RVPTabBarManager; +@interface UIViewController (RVPTabbar) + +@property (nonatomic, strong) RVPTabBarManager *rvpTabBarManager; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Info.plist b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Info.plist new file mode 100644 index 0000000..f92554e --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApi.framework/Info.plist @@ -0,0 +1,73 @@ + + + + + BuildMachineOSBuild + 20E241 + CFBundleDevelopmentRegion + English + CFBundleExecutable + AriverApi + CFBundleIdentifier + com.alipay.AriverApi + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + AriverApi + CFBundlePackageType + BNDL + CFBundleShortVersionString + 2.0.0.1-SNAPSHOT + CFBundleSignature + ???? + CFBundleSupportedPlatforms + + iPhoneOS + + CFBundleVersion + 1 + CFPlugInDynamicRegisterFunction + + CFPlugInDynamicRegistration + NO + CFPlugInFactories + + 00000000-0000-0000-0000-000000000000 + MyFactoryFunction + + CFPlugInTypes + + 00000000-0000-0000-0000-000000000000 + + 00000000-0000-0000-0000-000000000000 + + + CFPlugInUnloadFunction + + DTCompiler + com.apple.compilers.llvm.clang.1_0 + DTPlatformBuild + 18B79 + DTPlatformName + iphoneos + DTPlatformVersion + 14.2 + DTSDKBuild + 18B79 + DTSDKName + iphoneos14.2 + DTXcode + 1220 + DTXcodeBuild + 12B45b + MinimumOSVersion + 8.0 + NSHumanReadableCopyright + Copyright © 2013年 Alipay. All rights reserved. + UIDeviceFamily + + 1 + 2 + + + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/AriverApp b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/AriverApp new file mode 100644 index 0000000..7130885 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/AriverApp differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/AriverApp.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/AriverApp.h new file mode 100644 index 0000000..1483bd8 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/AriverApp.h @@ -0,0 +1,46 @@ +// +// AriverApp.h +// AriverApp +// +// Created by chenwenhong on 15/9/1. +// Copyright (c) 2015年 Alipay. All rights reserved. +// + +#ifndef Ariver_App_h +#define Ariver_App_h + +//#import + +#import +#import +#import +#import +#import +#import + +#import +#import + +#import +#import +#import +#import + +#import +#import +#import + +#import +#import +#import +#import +#import +//#import + +#import + +#import +#import +#import + +#endif diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/NSArray+RVAPrivate.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/NSArray+RVAPrivate.h new file mode 100644 index 0000000..889414f --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/NSArray+RVAPrivate.h @@ -0,0 +1,15 @@ +// +// NSArray+RVAPrivate.h +// AriverApp +// +// Created by chenwenhong on 15/9/9. +// Copyright (c) 2015年 Alipay. All rights reserved. +// + +#import + +@interface NSArray (RVAPrivate) + +- (id)rva_objectAtIndex:(NSUInteger)index defaultValue:(id)defaultValue; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/NSDictionary+RVAPrivate.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/NSDictionary+RVAPrivate.h new file mode 100644 index 0000000..9f1fcc9 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/NSDictionary+RVAPrivate.h @@ -0,0 +1,15 @@ +// +// NSDictionary+RVAPrivate.h +// AriverApp +// +// Created by chenwenhong on 15/9/2. +// Copyright (c) 2015年 Alipay. All rights reserved. +// + +#import + +@interface NSDictionary (RVAPrivate) + +- (id)rva_objectForKey:(id)aKey defaultValue:(id)defaultValue; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAAppConfigManager.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAAppConfigManager.h new file mode 100644 index 0000000..98e6156 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAAppConfigManager.h @@ -0,0 +1,42 @@ +// +// RVAAppConfigManager.h +// AriverApp +// +// Created by theone on 17/3/6. +// Copyright © 2017年 Alipay. All rights reserved. +// + +#import + +@interface RVAAppConfigManager : NSObject +@property(nonatomic, strong, readonly) NSDictionary *config; + +- (instancetype)initWithConfig:(NSDictionary *)config; + +/** + * 合并配置文件中的参数到context中 + * + * @date 2017-03-07 + * + */ +- (void)mergeAppConfigParamsToContextParams:(RVASessionContext *)context; + + +/** + * 依据Tag来合并的为最终参数 + * + * @date 2017-03-07 + * + */ +- (NSDictionary *)mergeParams:(NSDictionary *)params withTag:(NSString*)tag; + + +/** + * 依据page来合并参数 + * + * @date 2017-03-07 + * + */ +- (void)addPluginPageParams:(NSDictionary *)params page:(NSString *)page; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAButton.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAButton.h new file mode 100644 index 0000000..3f04068 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAButton.h @@ -0,0 +1,25 @@ +// +// RVAButton.h +// AriverApp +// +// Created by chenwenhong on 15/9/30. +// Copyright © 2015年 Alipay. All rights reserved. +// + +#import + +typedef void(^RVADownloadImageComplete)(UIImage *image); + +@interface RVAButton : UIButton + +@property(nonatomic, assign) int redDot; + +- (void)setBackgroundImageUrl:(NSString *)imageUrlString forState:(UIControlState)state; + +- (void)setBackgroundImageUrl:(NSString *)imageUrlString forState:(UIControlState)state complete:(RVADownloadImageComplete)complete; + +- (void)setImageUrl:(NSString *)imageUrlString forState:(UIControlState)state; + +- (void)setImageUrl:(NSString *)imageUrlString forState:(UIControlState)state complete:(RVADownloadImageComplete)complete; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAComponentProtocol.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAComponentProtocol.h new file mode 100644 index 0000000..0720e0f --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAComponentProtocol.h @@ -0,0 +1,205 @@ +// +// RVAComponentProtocol.h +// AriverApp +// +// Created by theone on 17/3/13. +// Copyright © 2017年 Alipay. All rights reserved. +// + +#import + +NS_ASSUME_NONNULL_BEGIN +typedef void (^RVAComponentCallback)(NSDictionary *data); + +typedef enum +{ + RVAComponentVisibilityVisibility, + RVAComponentVisibilityHidden, +} RVAComponentVisibilityState; + +@class RVAComponentContext; +@protocol RVAComponentProtocol; + + +@protocol RVAComponentMessageDelegate + +@required +/** + * 组件主动发送消息给页面(Native->Page) + * + * @param message 消息名称 + * @param component 要发送消息的组件 + * @param data 消息内容 + * @param callback 页面处理完消息后的回调 + * + * @return void + */ +- (void)sendMessage:(NSString *)message + component:(id)component + data:(NSDictionary *)data + callback:(RVAComponentCallback)callback; +@optional + +/** + * 组件可以在执行环境中直接执行JS + * + * @param javaScriptString 需要执行的JS + * @param completionHandler 执行回调函数 + * + * @return void + */ +- (void)evaluateJavaScript:(NSString *)javaScriptString completionHandler:(void (^ _Nullable)(_Nullable id, NSError * _Nullable error))completionHandler; + +@end + +@protocol RVAComponentLifeCycleProtocol + +- (void)componentWillAppear; +- (void)componentDidAppear; +/** + * 组件将要销毁 + * + * @return void + */ +- (void)componentWillDestory; +/** + * 组件销毁之后 + * + * @return void + */ +- (void)componentDidDestory; +- (void)componentWillResume; +- (void)componentDidResume; +- (void)componentWillPause; +- (void)componentDidPause; + +//fullscreen +/** + component即将进入全屏的回调 + */ +- (void)componentWillEnterFullScreen; +/** + component进入全屏的回调 + */ +- (void)componentWillExitFullScreen; +/** + component即将退出全屏的回调 + */ +- (void)componentDidEnterFullScreen; +/** + component退出全屏的回调 + */ +- (void)componentDidExitFullScreen; + +//visiblity +/** + component即将退出全屏的回调 + */ +- (void)componentDidHidden; +/** + component退出全屏的回调 + */ +- (void)componentDidVisiblity; +@end + + +@protocol RVAComponentDataProtocol +/** + * 组件数据将要更新 + * + * @param data 数据内容 + * + * @return void + */ +- (void)componentDataWillChangeWithData:(NSDictionary *)data; +/** + * 组件数据已经更新,这时候一般是要作界面更新,或者组件的其他操作 + * + * @param data 数据内容 + * + * @return void + */ +- (void)componentDataDidChangeWithData:(NSDictionary *)data; +@end + +@protocol RVAComponentFullScreenProtocol +/** + 是否处于全屏模式 + + @return 是否处于全屏模式 + */ +- (BOOL)isFullScreen; + +/** + @return 是否需要进入全屏模 + */ +- (BOOL)shouldEnterFullScreen; + +/** + 设置ContentView是否需要全屏幕,业务通过换个来切换全屏模式 + + @param fullScreen 是否需要全屏幕 + @param shouldRotate 是否需要旋转屏幕 + + */ +- (void)setContentViewFullScreen:(BOOL)fullScreen shouldRotate:(BOOL)shouldRotate; +@end + +@protocol RVAComponentVisibilityProtocol + +/** + visibilityState状态 + @return VisibilityState状态 + */ +- (RVAComponentVisibilityState)visibilityState; + +/** + 设置VisibilityState状态 + + @param state VisibilityState + @return 是否设置成功 + */ +- (BOOL)setVisibilityState:(RVAComponentVisibilityState)state; + +/** + 业务重写此方法给出是否需要监听visibility变化,默认是NO + + @return 是否需要监听visibility变化 + */ +- (BOOL)shouldObServerVisibilityStateChange; +@end + + +@protocol RVAComponentViewControllerProtocol +@property(nonatomic, assign) BOOL contentViewFullScreen; +@end + +@protocol RVAComponentProtocol +@required +@property(nonatomic, weak) id rvaComponentMessageDelegate; +@property(nonatomic, strong) RVAComponentContext *context; +@property(nonatomic, copy) NSString *type; +@property(nonatomic, strong) NSDictionary *data; +@property(nonatomic, copy) NSString *componentId; + +/** + * RVAComponent需要返回一个UIView对象 + * @return void + */ +- (UIView *)contentView; + +/** + * 组件收到页面发送过来的消息(Page->Native) + * + * @param message 消息名称 + * @param data 消息内容 + * @param callback 将Native处理后的结果返回给页面的回调函数 + * + * @return void + */ +- (void)componentReceiveMessage:(NSString *)message + data:(NSDictionary *)data + callback:(RVAComponentCallback)callback; +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAConfig+RVAPrivate.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAConfig+RVAPrivate.h new file mode 100644 index 0000000..c5bccb7 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAConfig+RVAPrivate.h @@ -0,0 +1,15 @@ +// +// RVAConfiguration+RVAPrivate.h +// AriverApp +// +// Created by chenwenhong on 15/10/10. +// Copyright © 2015年 Alipay. All rights reserved. +// + +#import + +@interface RVAConfig (RVAPrivate) + +- (void)requestUpdateConfiguration; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAConfig.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAConfig.h new file mode 100644 index 0000000..5121bd4 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAConfig.h @@ -0,0 +1,205 @@ +// +// RVAServiceConfiguration.h +// RVAService +// +// Created by chenwenhong on 15/8/21. +// Copyright (c) 2015年 Alipay. All rights reserved. +// + +#import + +// 服务器环境 +typedef NS_ENUM(NSUInteger, RVAEnvironment) { + RVAEnvironment_Online = 0, // 线上 + RVAEnvironment_Pre, // 预发 + RVAEnvironment_Test, // 测试 + RVAEnvironment_Dev, // 开发 + RVAEnvironment_Custom,//自定义 +}; + +// 渠道 +typedef NS_ENUM(NSUInteger, RVAChannel) { + RVAChannel_Offical = 0, + RVAChannel_RC, +}; + +@interface RVAConfig : NSObject + +// common +@property(nonatomic, assign) RVAEnvironment environment; // default is `NAMEnvironment_Online`,服务器环境 +@property(nonatomic, assign) RVAChannel channel; // default is `NAMChannel_Offical`,应用渠道 +@property(nonatomic, copy) NSString *clientBundleId; // defult is empty,请填写客户端id(bundleId) +@property(nonatomic, readonly, copy) NSString *platform; // default is ios +@property(nonatomic, readonly, copy) NSString *sdkVersion; +@property(nonatomic, copy) NSString *clientVersion; // default is 1.0.0.0,请填写 +@property(nonatomic, readonly, copy) NSString *systemVersion; +@property(nonatomic, readonly, copy) NSString *clientName; // ua 里设置的 clientName + +// inside 应用唤起支付宝 app 操作之后,返回回去的 app scheme,具体场景比如收银台唤起支付宝支付,支付成功后返回 +@property(nonatomic, copy) NSString *clientScheme; + +// ui class +@property(nonatomic, strong) Class viewControllerClass; // default is RVAViewController +@property(nonatomic, strong) Class contentViewClass; // default is WKWebView +@property(nonatomic, strong) Class optionsClass; // default is RVAOptions. the class must be conforms `RVAOptionsProtocol` +@property(nonatomic, readonly, copy) NSString *defaultUserAgent; +@property(nonatomic, copy) NSString *userAgent; // default is defaultUserAgent + common + +//// app manager +//@property(nonatomic, copy) NSString *documentDirectoryPath; // default is document path +//@property(nonatomic, strong) NSArray *commonResourceAppList; // app_id列表,公共资源包,每个session打开都会有一份公共资源包, default is nil + +// urls +//@property(nonatomic, copy) NSString *serverURLString4UpdateApps; // 服务器地址:更新app,default is empty +//@property(nonatomic, readonly, copy) NSString *serverURLString4UpdateConfigs; // 服务器地址:更新配置信息,default is empty + +@property(nonatomic, assign) BOOL isNeed2VerifyApp; // 是否需要验签,default is YES +@property(nonatomic, assign) BOOL canIgnoreSSLError; //是否忽略SSL证书错误,default is NO +//@property(nonatomic, assign) BOOL shouldCacheFallback; //是否会保存fallback缓存,default is NO sdk内部使用,目前已经不需要此属性 + + +//monitor class +@property(nonatomic, strong) Class contentViewPageProfileClass; +@property(nonatomic, strong) Class pvReportClass; + +//plugins +@property(nonatomic, copy) NSString *pluginsBundleName; +@property(nonatomic, copy) NSString *extraPluginsFilePath; + +//WK +@property(nonatomic, assign) int WKRetryTimes; + +//check +@property(nonatomic, assign) BOOL shouldCheckJsApiArguments; +@property(nonatomic, copy) NSArray *skipJsApiCheckBlackList; +//@property(nonatomic, assign) BOOL shouldCheckTabBarJsonVersion; +@property(nonatomic, assign) BOOL shouldCheckMainurlDegrade; +@property(nonatomic, assign) BOOL shouldCheckRVASession; + +//cache +@property(nonatomic, assign) BOOL shouldUseConditionalResponse; +@property(nonatomic, assign) BOOL shouldLogResponse; + +@property(nonatomic, assign) BOOL shouldWKWebViewForceFreshResponse; + +//URL +@property(nonatomic, assign) BOOL shouldGetURLWithNewMethod; + +//Swizzle +@property(nonatomic, assign) BOOL shouldSwizzleMethod; + +//禁用showTitleBar启动参数 +@property(nonatomic, assign) BOOL shouldeDeprecateShowTitleBar; + +//小程序内嵌h5全局资源匹配开关 +@property (nonatomic, strong) NSDictionary *tinyAppPublicURL; + +//WKWebView是否需要针对非http请求派发事件 +@property(nonatomic, assign) BOOL shouldWKDispatchStartEvent; + +//WKWebView不自己弹出提示 +@property(nonatomic, assign) BOOL skipCustomPrompt; + +@property(nonatomic, assign) BOOL enableItunesLinkCensor; + +//容器subview是否派发appResume/appPause事件 +@property(nonatomic, assign) BOOL shouldSubViewDispatchAppEvent; + +//修复外部url打开h5应用时触发resume事件的问题 +@property (nonatomic, assign) BOOL fixPageResumeAtStart; + +//透明弹窗时是否派发事件 +@property(nonatomic, assign) BOOL shouldDipatchContextPresentEvent; + +@property(nonatomic, copy) NSArray *embedWebViewSetOptionMenuWhiteList; + +//桌面快捷方式 renderURL +@property(nonatomic, copy) NSString *shotCutRenderURL; + +// extension支持scope +@property(nonatomic, assign)BOOL useExtensionScope; + +//容器服务配置#http://gitlab.alipay-inc.com/Ariver/projectManager/issues/2 +@property(nonatomic, strong) NSArray *> *servicesConfigs; + +//@property(nonatomic, assign) BOOL supportAutoFocus; + +@property(nonatomic, assign) BOOL autoUnregisterSync; + ++ (instancetype)alloc UNAVAILABLE_ATTRIBUTE; + +- (instancetype)init UNAVAILABLE_ATTRIBUTE; + +- (id)copy UNAVAILABLE_ATTRIBUTE; + ++ (instancetype)allocWithZone:(struct _NSZone *)zone UNAVAILABLE_ATTRIBUTE; + ++ (instancetype)new UNAVAILABLE_ATTRIBUTE; + +/** + * @brief 获取默认service配置 + * + * @date 2015-08-21 + * + * @return 返回默认的配置 + */ ++ (instancetype)defaultConfiguration; + +/*! + * 应用信息相关配置 + */ +//- (NAMConfiguration *)appConfig; + +/** + * @brief 根据key值获取配置内容 + * + * @date 2015-10-08 + * + * @param aKey 配置的key + * + * @return 返回字符串类型的配置,若类型不匹配,返回nil + */ +- (NSString *)stringValueForKey:(NSString *)aKey; + +/** + * @brief 根据key值获取配置内容 + * + * @date 2015-10-08 + * + * @param aKey 配置的key + * + * @return 返回数组类型的配置,若类型不匹配,返回nil + */ +- (NSArray *)arrayValueForKey:(NSString *)aKey; + +/** + * @brief 根据key值获取配置内容 + * + * @date 2015-10-08 + * + * @param aKey 配置的key + * + * @return 返回字典类型的配置,若类型不匹配,返回nil + */ +- (NSDictionary *)dictionaryValueForKey:(NSString *)aKey; + +/** + * 设置 UA 的宿主信息 + * https://yuque.antfin-inc.com/docs/share/aaee0c4b-82a7-4c1b-9af7-8a28ba3ffdf0 + */ +- (void)setClientName:(NSString *)clientName + clientVersion:(NSString *)clientVersion + isAliApp:(BOOL)isAliapp + customUserAgent:(NSString *)customUserAgent; + +@end + +#ifdef __cplusplus +extern "C" { +#endif // __cplusplus + + RVAConfig * RVAServiceConfigGet(); + +#ifdef __cplusplus +} +#endif // __cplusplus diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAContentViewPageProfile+Private.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAContentViewPageProfile+Private.h new file mode 100644 index 0000000..95b13f0 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAContentViewPageProfile+Private.h @@ -0,0 +1,17 @@ +// +// RVAContentViewPageProfile+Private.h +// AriverApp +// +// Created by chenwenhong on 15/12/29. +// Copyright © 2015年 Alipay. All rights reserved. +// + +#import + +@interface RVAContentViewPageProfile (Private) + +- (void)reportJSMonitor:(NSArray *)monitorData; + +- (void)reportCreateDate:(NSDate *)date; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAContentViewPageProfile.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAContentViewPageProfile.h new file mode 100644 index 0000000..617ef2a --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAContentViewPageProfile.h @@ -0,0 +1,116 @@ +// +// RVAWebPageProfile.h +// AriverApp +// +// Created by chenwenhong on 15/10/8. +// Copyright © 2015年 Alipay. All rights reserved. +// + +#import +#import +#import + +#define kReportErrorRequest @"errorRequest" +#define kReportErrorResponse @"errorResponse" +#define kReportLongRender @"longRender" +#define kReportErrorRender @"errorRender" +#define kReportByUser @"userReport" +#define kReportByJS @"jsReport" + +#pragma mark - Page状态定义 +/// +typedef enum { + RVAContentViewPageProfileState_INITIAL = 0, + RVAContentViewPageProfileState_START, + RVAContentViewPageProfileState_COMPLETE, + RVAContentViewPageProfileState_END, +} RVAContentViewPageProfileState; + +@interface RVAContentViewPageProfile : NSObject + +@property(nonatomic, copy) NSString *url; +@property(nonatomic, weak) RVKPage *psdPage; +@property(nonatomic, copy) NSString *performanceId; // nbl_id +@property(nonatomic, strong) NSURLRequest *baseRequest; // webView请求的对象 +@property(nonatomic, strong) NSURLRequest *finalRequest;//webView最终的请求对象 +@property(nonatomic, strong) NSURLRequest *request; // 当前请求对象 +@property(nonatomic, assign) WKNavigationType navigationType; // 跳转类型 +@property(nonatomic, readonly) RVAContentViewPageProfileState state; +@property(nonatomic, copy) NSString *title; // 页面标题 +@property(nonatomic, strong) NSError *error; // 错误 +@property(nonatomic, copy) NSString *referer; +@property(nonatomic, assign) BOOL visible; +@property(nonatomic, assign) BOOL isLast; +@property(nonatomic, copy) NSString *pushingURLString;//pushwindow传递过来的url作为refer + +@property(nonatomic, strong) NSDate *createDate; +@property(nonatomic, strong) NSDate *startDate; // 请求加载时间 +@property(nonatomic, assign) NSTimeInterval startTime; // 开始请求时间 +@property(nonatomic, assign) NSTimeInterval firstAsyncRequestTime; // 统计页面第一个异步请求花费时间(验证服务器性能) +@property(nonatomic, strong) NSDate *renderDate; // webview改变contentSize的时间点,这个时间点开始渲染界面,由此大概推测首屏时间(非缓存页面一般是+0.4s,否则使用MIN(finishLoad的时间,该时间)) +@property(nonatomic, strong) NSDate *firstScreenDate; // 最后一次稳定不变化时间(暂时为0) +@property(nonatomic, assign) NSTimeInterval domReadyTime; // DOM ready时间(js配合统计),从startDate偏移的时间 +@property(nonatomic, assign) NSTimeInterval pageLoadTime; // page onload时间时间(js配合统计),从startDate偏移的时间 +@property(nonatomic, strong) NSDate *completeDate; // 请求完成时间 +@property(nonatomic, strong) NSDate *endDate; // 页面结束时间(返回、关闭) +@property(nonatomic, strong) NSDate *stopLoadingDate; // page onload之后,网络请求在一定时间内(2s内)不再发送,用于监测异步页面的性能 +@property(nonatomic, strong) NSDate *didFinishedLoadDate; +@property(nonatomic, assign) NSTimeInterval dnsTime; // timingAPI指标相关,不一定能统计到,需要看 +@property(nonatomic, assign) float resourceCacheRate; // timingAPI的支持度,通过js注入统计 +@property(nonatomic, assign) int jsErrorNumber; // 异常监控指标相关,js error监控 +@property(nonatomic, readonly) RVKConnectionProfile *profile; +@property(nonatomic, copy) NSString *telMCC; +@property(nonatomic, copy) NSString *telMNC; + +@property(nonatomic, assign) int jsApiNum; // JSAPI调用数量 +@property(nonatomic, copy) NSString *jsApiNames; // JSAPI名称,格式是xxx|xxx|xxx +@property(nonatomic, assign) NSTimeInterval containerVisibleTime; // 当前VC 第一次didAppear的时间 + + +@property(nonatomic, strong) NSMutableDictionary *extraJSReport; +@property(nonatomic, assign) BOOL isLocal; +@property(nonatomic, assign) BOOL fromHrefChange; //href切换 +@property(nonatomic, assign) BOOL didPreRender; //经过预渲染标识 +@property(nonatomic, assign) BOOL forceEnd; //因wk crash强制结束 + +@property(nonatomic, assign) BOOL canReportProfile; + +@property(nonatomic, assign) BOOL isReport; +@property(nonatomic, copy) NSString *fromType; // 页面打开类型 startApp/pushWindow/hrefChange + + +//PageLoad后统计 +@property(nonatomic) int cssLoadNum; +@property(nonatomic) int jsLoadNum; +@property(nonatomic) int imgLoadNum; +@property(nonatomic) int otherLoadNum; +@property(nonatomic) int requestLoadNum; +@property(nonatomic) float mainDocHtmlLoadSize; +@property(nonatomic) float cssLoadSize; +@property(nonatomic) float jsLoadSize; +@property(nonatomic) float imgLoadSize; +@property(nonatomic) float otherLoadSize; +@property(nonatomic) float pageLoadSize; +@property(nonatomic) int sizeLoadLimit50; +@property(nonatomic) int sizeLoadLimit200; +@property(nonatomic) int imageSizeLoadLimit60; + +- (BOOL)setState:(RVAContentViewPageProfileState)state; + +- (void)mergeProfile:(RVKConnectionProfile *)profile; + +- (void)reportJSMonitor:(NSArray *)monitorData; +- (void)reportJSReport:(NSArray *)monitorData; + +- (void)reportValue:(id)value forKey:(NSString *) key; +- (id)getValueForKey:(NSString *) key; + + +// 由SDK内部在页面离开时上报 +- (void)reportPerformance; +- (void)reportPageAbnormal; +- (void)reportPageAbnormalWithErrorType:(NSString *)errorType andErrorCode:(NSString *)errorCode; +- (void)reportPageAbnormalWithErrorType:(NSString *)errorType errorCode:(NSString *)errorCode errorMsg:(NSString *)errorMsg; +- (void)reportPageAbnormalWithErrorType:(NSString *)errorType withError:(NSError *)error; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAContext.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAContext.h new file mode 100644 index 0000000..5d6a074 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAContext.h @@ -0,0 +1,93 @@ +// +// RVAContext.h +// RVAService +// +// Created by chenwenhong on 15/8/21. +// Copyright (c) 2015年 Alipay. All rights reserved. +// + +#import +#import "RVASession.h" +#import "RVASessionManager.h" + +@class RVAServiceManager; + +//容器Service协议 +@protocol RVAServiceProtocol + +@optional +- (void)start; + +@end + +@class RVASessionContext; + +@interface RVAContext : NSObject + +@property(nonatomic, weak) UIWindow *window; +@property(nonatomic, weak) UINavigationController *navigationController; +@property(nonatomic, strong) RVASessionManager *sessionManager; +@property(nonatomic, strong) RVAServiceManager *serviceManager; + ++ (instancetype)alloc UNAVAILABLE_ATTRIBUTE; + +- (instancetype)init UNAVAILABLE_ATTRIBUTE; + +- (id)copy UNAVAILABLE_ATTRIBUTE; + ++ (instancetype)allocWithZone:(struct _NSZone *)zone UNAVAILABLE_ATTRIBUTE; + ++ (instancetype)new UNAVAILABLE_ATTRIBUTE; + ++ (instancetype)sharedContext; + +- (RVASession *)createSession:(RVASessionContext *)context; + +- (BOOL)startSession:(NSDictionary *)params animated:(BOOL)animated; + +- (void)exitSession:(RVASession *)session animated:(BOOL)animated; + +- (void)pushSession:(RVASession *)session; + +- (void)popSession:(RVASession *)session; + +/** + * 显示栈中添加session + * @param session + */ +- (void)showSession:(RVASession *)session; + +/** + * 从session的显示栈中移除session + * @param session + */ +- (void)hideSession:(RVASession *)session; + +- (NSArray *)sessions; + +/** + * 获取当前正在运行的应用对象。 + */ +- (RVASession *)currentSession; + + +/** + * 根据指定的名称查到一个服务。 + * + * @param name 服务名 + * + * @return 如果找到指定名称的服务,则返回一个服务对象,否则返回空。 + */ +- (id)findServiceByName:(NSString *)name; + +@end + +#ifdef __cplusplus +extern "C" { +#endif // __cplusplus + + RVAContext * RVAContextGet(); + +#ifdef __cplusplus +} +#endif // __cplusplus diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVADefines.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVADefines.h new file mode 100644 index 0000000..33a02e9 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVADefines.h @@ -0,0 +1,256 @@ +// +// RVAServiceDefines.h +// RVAService +// +// Created by chenwenhong on 15/8/21. +// Copyright (c) 2015年 Alipay. All rights reserved. +// + +#ifndef RVAService_RVAServiceDefines_h +#define RVAService_RVAServiceDefines_h + +#define kRVABundleName @"AriverApp.bundle" + +// session expando +#define kRVASessionPopData @"kNBSessionPopData" +#define kRVASessionResumeParams @"kNBSessionResumeParams" +#define kRVASessionOriginalParams @"kNBSessionOriginalParams" + +//*******************************Notification***************************// +#pragma mark - Notification +// 配置信息更新 +#define kRVANotif_Configuration_Update @"kRVANotif_Configuration_Update" +#define kRVANotif_Configuration_Update_Key_Status @"status" +// app列表状态 +typedef NS_ENUM(NSUInteger, RVAConfigurationUpdateStatus) { + RVAConfigurationUpdateStatus_Updating = 0, // 更新中 + RVAConfigurationUpdateStatus_Success, // 更新成功 + RVAConfigurationUpdateStatus_Fail, // 更新失败 +}; + + +//*******************************Function***************************// +#pragma mark - Function + +#define RVA_DEFINE_FUNCTION(returnType, var) \ +- (id)var \ +{ \ +if (_##var == nil) { \ +_##var = [[returnType alloc] init]; \ +} \ +return _##var; \ +} + +#define RVA_ASSERT(condition) \ +if (!condition) {\ +NSString *reason = [NSString stringWithFormat:@"\n\n***********************************************************\nNebula抛出的断言(Kernel Assert):\n函数:%s-%d \ncondition=%s\n\n", __FUNCTION__, __LINE__, #condition];\ +NSAssert(condition, reason);\ +} + +#define RVA_ASSERT2(condition, desc) \ +if (!condition) {\ +NSString *reason = [NSString stringWithFormat:@"\n\n***********************************************************\nNebula抛出的断言(Kernel Assert):\n函数:%s-%d \ncondition=%s desc=%@\n\n", __FUNCTION__, __LINE__, #condition, desc];\ +NSAssert(condition, reason);\ +} + + +#define kRVAWebView_Options @"__webview_options__" + +//*******************************Options***************************// +#pragma mark - Options + +#define kRVAOptions_RVALId @"nbl_id" +#define kRVAOptions_RVALId2 @"appId" +#define kRVAOptions_Url @"url" +#define kRVAOptions_DefaultTitle @"defaultTitle" +#define kRVAOptions_ShowTitleBar @"showTitleBar" +#define kRVAOptions_ShowStatusBar @"showStatusBar" +#define kRVAOptions_ShowLoading @"showLoading" +#define kRVAOptions_CloseButtonText @"closeButtonText" +#define kRVAOptions_ReadTitle @"readTitle" +#define kRVAOptions_BizScenario @"bizScenario" +#define kRVAOptions_BackBehavior @"backBehavior" +#define kRVAOptions_PullRefresh @"pullRefresh" +#define kRVAOptions_ToolbarMenu @"toolbarMenu" +#define kRVAOptions_ShowProgress @"showProgress" +#define kRVAOptions_DefaultSubtitle @"defaultSubtitle" +#define kRVAOptions_BackgroundColor @"backgroundColor" +#define kRVAOptions_GestureBack @"gestureBack" +#define kRVAOptions_CanPullDown @"canPullDown" +#define kRVAOptions_ShowOptionMenu @"showOptionMenu" +#define kRVAOptions_ShowTitleLoading @"showTitleLoading" +#define kRVAOptions_ShowDomain @"showDomain" +#define kRVAOptions_PushingURLString @"pushingURLString" +#define kRVAOptions_Transparent @"transparent" + +#define kRVAOptions_UrlShort @"u" +#define kRVAOptions_DefaultTitleShort @"dt" +#define kRVAOptions_ShowTitleBarShort @"st" +#define kRVAOptions_ShowStatusBarShort @"ss" +#define kRVAOptions_ShowLoadingShort @"sl" +#define kRVAOptions_CloseButtonTextShort @"cb" +#define kRVAOptions_ReadTitleShort @"rt" +#define kRVAOptions_BizScenarioShort @"bz" +#define kRVAOptions_BackBehaviorShort @"bb" +#define kRVAOptions_PullRefreshShort @"pr" +#define kRVAOptions_ToolbarMenuShort @"tm" +#define kRVAOptions_ShowProgressShort @"sp" +#define kRVAOptions_DefaultSubtitleShort @"ds" +#define kRVAOptions_BackgroundColorShort @"bc" +#define kRVAOptions_GestureBackShort @"gb" +#define kRVAOptions_CanPullDownShort @"pd" +#define kRVAOptions_ShowOptionMenuShort @"so" +#define kRVAOptions_ShowTitleLoadingShort @"tl" +#define kRVAOptions_ShowDomainShort @"sd" +#define kRVAOptions_TransparentShort @"tt" + +// back behavior +#define kRVABackBehaviorPop @"pop" +#define kRVABackBehaviorBack @"back" + +//*******************************Session Events***************************// +#pragma mark - Session Events + +#define kRVAEvent_Session_Pause @"session.pause" // 保活功能,退出使用,到后台保活 +#define kRVAEvent_Session_Resume @"session.resume" // 保活功能,从后台保活恢复使用 + +//*******************************Scene Events***************************// +#pragma mark - Scene Events + +// title View +#define kRVAEvent_Scene_TitleView_Create_Before @"scene.titleView.create.before" // 监听该事件,可以调用preventDefault阻止默认行为(创建默认的titleView),若要自定义titleView,则设置其`titleView`,自定义的titleView要实现协议RVANavigationTitleViewProtocol +#define kRVAEvent_Scene_TitleView_Create_After @"scene.titleView.create.after" // 监听该事件,可以获取titleView,并可以改变它的属性 +#define kRVAEvent_Scene_TitleView_Title_Set @"scene.titleView.title.set" // 监听该事件,可以获取或设置title +#define kRVAEvent_Scene_TitleView_Title_Click @"scene.titleView.title.click" // 监听该事件,可以调用preventDefault阻止默认行为(默认是向h5页面发送事件kRVAPageJSApi_TitleClick) +#define kRVAEvent_Scene_TitleView_Subtitle_Click @"scene.titleView.subtitle.click" // 监听该事件,可以调用preventDefault阻止默认行为(默认是向h5页面发送事件kRVAPageJSApi_SubtitleClick) +#define kRVAEvent_Scene_TitleView_RightIcon_Click @"scene.titleView.righticon.click" // 监听该事件,可以调用preventDefault阻止默认行为(默认是向h5页面发送事件kRVAEvent_Scene_TitleView_RightIcon_Click) +#define kRVAEvent_Scene_TitleView_All @"scene.titleView.*" + + +// navitaion item btn +#define kRVAEvent_Scene_NavigationItem_Left_Back_Create_Before @"scene.navigationItem.left.back.create.before" // 监听该事件,可以调用preventDefault阻止默认行为(创建默认的返回按钮),若要自定义返回按钮,则设置其`customView` +#define kRVAEvent_Scene_NavigationItem_Left_Back_Create_After @"scene.navigationItem.left.back.create.after" // 监听该事件,可以获取返回按钮,并设置它的属性 +#define kRVAEvent_Scene_NavigationItem_Left_Back_Click @"scene.navigationItem.left.back.click" // 监听该事件,可以调用preventDefault阻止默认行为(默认是返回行为),并自己实现返回逻辑 +#define kRVAEvent_Scene_NavigationItem_Left_Back_All @"scene.navigationItem.left.back.*" + + +#define kRVAEvent_Scene_NavigationItem_Left_Close_Create_Before @"scene.navigationItem.left.close.create.before" // 监听该事件,可以调用preventDefault阻止默认行为(创建默认的关闭按钮),若要自定义关闭按钮,则设置其`customView` +#define kRVAEvent_Scene_NavigationItem_Left_Close_Create_After @"scene.navigationItem.left.close.create.after" // 监听该事件,可以获取关闭按钮,并设置其属性 +#define kRVAEvent_Scene_NavigationItem_Left_Close_Click @"scene.navigationItem.left.close.click" // 监听该事件,可以调用preventDefault阻止默认行为(默认是关闭行为),并自己实现关闭行为 +#define kRVAEvent_Scene_NavigationItem_Left_Close_All @"scene.navigationItem.left.close.*" + + +#define kRVAEvent_Scene_NavigationItem_Right_Setting_Create_Before @"scene.navigationItem.right.setting.create.before" // 监听该事件,可以调用preventDefault阻止默认行为(默认是创建设置按钮),若要自定义设置按钮,则设置其`customView`,自定义的customView要实现协议RVASettingButtonProtocol +#define kRVAEvent_Scene_NavigationItem_Right_Setting_Create_After @"scene.navigationItem.right.setting.create.after" // 监听该事件,可以获取设置按钮,并设置其属性 + +#define kRVAEvent_Scene_NavigationItem_Right_Setting_Click @"scene.navigationItem.right.setting.click" // 监听该事件,可以调用preventDefault阻止默认行为(默认是打开分享等控制面板),并自己实现设置行为 + +#define kRVAEvent_Scene_NavigationItem_Right_Setting_Change @"scene.navigationItem.right.setting.change" // + +#define kRVAEvent_Scene_NavigationItem_Right_Setting_All @"scene.navigationItem.right.setting.*" + + +#define kRVAEvent_Scene_NavigationItem_Right_SubSetting_Create_Before @"scene.navigationItem.right.subsetting.create.before" +#define kRVAEvent_Scene_NavigationItem_Right_SubSetting_Create_After @"scene.navigationItem.right.subsetting.create.after" +#define kRVAEvent_Scene_NavigationItem_Right_SubSetting_Click @"scene.navigationItem.right.subsetting.click" + + +// toolbar Menu +#define kRVAEvent_Scene_ToolbarMenu_Create_Before @"scene.toolbarMenu.create.before" // 监听该事件,可以调用preventDefault阻止默认行为(默认是创建toolbarMenu),若要自定义toolbarMenu,则设置其`toolbarMenu`,自定义的toolbarMenu要实现协议RVAToolbarMenuProtocol +#define kRVAEvent_Scene_ToolbarMenu_Create_After @"scene.toolbarMenu.create.after" // 监听该事件,可以获取toolbarMenu,并设置其属性 +#define kRVAEvent_Scene_ToolbarMenu_Select @"scene.toolbarMenu.select" +#define kRVAEvent_Scene_ToolbarMenu_Create_All @"scene.toolbarMenu.*" + + +// progress View +#define kRVAEvent_Scene_ProgressView_Create_Before @"scene.progressView.create.before" // 监听该事件,可以调用preventDefault阻止默认行为(默认是创建进度条),若要自定义进度条,则设置其`progressView`,自定义的progressView需要实现协议RVAProgressViewProtocol +#define kRVAEvent_Scene_ProgressView_Create_After @"scene.progressView.create.after" // 监听该事件,可以获取进度条progressView,并设置其属性 +#define kRVAEvent_Scene_ProgressView_Create_All @"scene.progressView.create.*" + +// request +#define kRVAEvent_Scene_LoadRequest_First @"scene.loadRequest.first" // +#define kRVAEvent_Scene_LoadRequest_All @"scene.loadRequest.*" // + + +// layout +#define kRVAEvent_Scene_Layout_WebView_Before @"scene.layout.webview.before" +#define kRVAEvent_Scene_Layout_WebView_After @"scene.layout.webview.after" +#define kRVAEvent_Scene_Layout_WebView_All @"scene.layout.webview.*" + +// service发出的事件:scene create event +#define kRVAEvent_Scene_Create_Before @"scene.create.before" // 监听该事件,可以获取context +#define kRVAEvent_Scene_ContentView_Fallback @"scene.ContentView.Fallback" // 监听该事件,可以获取context + +//scrollView +#define kRVAEvent_Scene_ScrollView_DidScroll @"scene.scrollview.didscroll" + +//component +#define kRVAEvent_Scene_Component_FullScreen @"scene.component.fullScreen" +//**********************************JSApis******************************// +#pragma mark - JSApis + +// titlebar +#define kRVAJSApi_ShowTitleBar @"showTitlebar" +#define kRVAJSApi_HideTitleBar @"hideTitlebar" +#define kRVAJSApi_ShowStatusBar @"showStatusBar" +#define kRVAJSApi_HideStatusBar @"hideStatusBar" + +// navigation title view +#define kRVAJSApi_SetTitle @"setTitle" +#define kRVAJSApi_ShowTitleLoading @"showTitleLoading" +#define kRVAJSApi_HideTitleLoading @"hideTitleLoading" + +// loadingView +#define kRVAJSApi_ShowLoading @"showLoading" +#define kRVAJSApi_HideLoading @"hideLoading" + +// option Menu +#define kRVAJSApi_SetOptionMenu @"setOptionMenu" +#define kRVAJSApi_ShowOptionMenu @"showOptionMenu" +#define kRVAJSApi_HideOptionMenu @"hideOptionMenu" + +// toolbar Menu +#define kRVAJSApi_ShowToolbar @"showToolbar" +#define kRVAJSApi_HideToolbar @"hideToolbar" +#define kRVAJSApi_SetToolbarMenu @"setToolbarMenu" + +// monitor +#define kRVAJSApi_H5Monitor @"h5Monitor" +#define kRVAJsApi_H5Report @"h5Report" + +//**********************************Page JSApis******************************// +#define kRVAPageJSApi_OptionMenu @"optionMenu" +#define kRVAPageJSApi_TitleClick @"titleClick" +#define kRVAPageJSApi_SubtitleClick @"subtitleClick" +#define kRVAPageJSApi_AppDidReceiveMemoryWarning @"appDidReceiveMemoryWarning" +#define kRVAPageJSApi_AppWillResignActive @"appWillResignActive" +#define kRVAPageJSApi_AppDidBecomeActive @"appDidBecomeActive" +#define kRVAPageJSApi_ToolbarMenuClick @"toolbarMenuClick" + +//**********************************Dom Event******************************// +#define kRVADomEvent_AppPause @"appPause" +#define kRVADomEvent_AppResume @"appResume" +#define kRVADomEvent_PagePause @"pagePause" +#define kRVADomEvent_PageResume @"pageResume" +#define kRVADomEvent_Pause @"pause" +#define kRVADomEvent_Resume @"resume" + + +//**********************************Monitor******************************// +#define kRVAMonitor_LogId_PagePerformance @"monitor.logId.pagePerformance" +#define kRVAMonitor_PagePerformance_Key_ContentViewPage @"contentViewPage" // value RVAContentViewPageProfile + +//**********************************expandProperty******************************// +#define kRVAViewControllerReadTitle @"readTitle" +#define kRVAViewControllerProxyPassData @"kRVAViewControllerProxyPassData" + + +//**********************************Other**************************************// +#pragma mark - Other + + + + +#endif + + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAExternalSupport.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAExternalSupport.h new file mode 100644 index 0000000..6fb5b99 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAExternalSupport.h @@ -0,0 +1,117 @@ +// +// ExternalSupport.h +// ThreadMgrDemo +// +// Created by myy on 16/10/10. +// Copyright © 2016年 myy. All rights reserved. +// + +#import + + +// 该文件主要用来做解耦适配。 +// 情况:一些底层OC调用,框架底层需要监控起来,但是有些模块要独立输出,不依赖框架的库,不能直接调用框架的接口。 +// 方法:这些模块集成这个.h和.m文件,替换下面宏里ThisModuleName字符串为自己的模块名(区分大小写)。 +// 影响:没什么影响,这些模块还是独立输出,不需要任何改动。 +// 可能的疑问:这个文件的引入也算一定程度的耦合,但现实就是框架底层的任何接口修改都会导致大量依赖修改。 +#ifndef EX_MAIN_CALL +#define EX_MAIN_CALL +#ifdef __cplusplus +extern "C" { +#endif + +typedef void (*ExMainCallFuncType)(int bizType, const char* tag, double delayTime, enum NSOperationQueuePriority priority, dispatch_block_t block); + +#define EX_MAIN_CALL_DECLARE(module) \ + extern ExMainCallFuncType gExMainCallFunc_##module; \ + extern ExMainCallFuncType gExMainACallFunc_##module; \ + extern int gExMainCallBizType_##module; \ + extern void ExMainCall_##module(const char* tag, double delayTime, enum NSOperationQueuePriority priority, dispatch_block_t block); \ + extern void ExMainACall_##module(const char* tag, double delayTime, enum NSOperationQueuePriority priority, dispatch_block_t block); + + +#define EX_MAIN_CALL_DEFINE(module) \ + ExMainCallFuncType gExMainCallFunc_##module = 0; \ + ExMainCallFuncType gExMainACallFunc_##module = 0; \ + int gExMainCallBizType_##module = 0; \ + void ExMainCall_##module(const char* tag, double delayTime, enum NSOperationQueuePriority priority, dispatch_block_t block) \ + { \ + if(gExMainCallFunc_##module) \ + { \ + gExMainCallFunc_##module(gExMainCallBizType_##module, tag, delayTime, priority, block); \ + } \ + else if(delayTime <= 0) \ + { \ + if ([NSThread isMainThread]) \ + { \ + block(); \ + return; \ + } \ + dispatch_async(dispatch_get_main_queue(), block); \ + } \ + else \ + { \ + if(delayTime >= 1000000) delayTime /= NSEC_PER_SEC; \ + dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(delayTime * NSEC_PER_SEC)), dispatch_get_main_queue(), block); \ + } \ + } \ + void ExMainACall_##module(const char* tag, double delayTime, enum NSOperationQueuePriority priority, dispatch_block_t block) \ + { \ + if(gExMainACallFunc_##module) \ + { \ + gExMainACallFunc_##module(gExMainCallBizType_##module, tag, delayTime, priority, block); \ + } \ + else if(delayTime <= 0) \ + { \ + dispatch_async(dispatch_get_main_queue(), block); \ + } \ + else \ + { \ + if(delayTime >= 1000000) delayTime /= NSEC_PER_SEC; \ + dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(delayTime * NSEC_PER_SEC)), dispatch_get_main_queue(), block); \ + } \ + } + + +#define EX_MAIN_CALL_SETTING(module, func, funcA, bizType) \ + gExMainCallFunc_##module = (ExMainCallFuncType)func; \ + gExMainACallFunc_##module = (ExMainCallFuncType)funcA; \ + gExMainCallBizType_##module = (int)bizType; + +#ifdef __cplusplus +} +#endif +#endif // EX_MAIN_CALL + + +#ifdef __cplusplus +extern "C" { +#endif +// 模块相关主线程函数声明。 +//#error ThisModuleName需要替换为自己模块名(区分大小写),替换后注释该错误提示。------ (第1个替换)------ (20161012注:共4个替换) +EX_MAIN_CALL_DECLARE(AriverApp) +#ifdef __cplusplus +} +#endif + + +// ------------------ 调用函数:模块内统一使用该接口切换主线程。------------------ +// +// 功能:需要主线程执行block时调用。 +// 原理:如果外部设置了主线程切换替换函数,则调用外部函数;否则,还走系统默认的API调用。 +// 说明:主要做主线程使用的统一接管,监控和主线程性能分析定位问题使用,对使用者无性能等影响;使用模块,依然独立输出,不需要因为这个接口改动代码。 +// MAIN_CALL 和 MAINA_CALL的区别:(业务需要) +// MAIN_CALL - 如果主线程调用,block是同步调用的,不会异步;等同if([NSThread isMainThread])block(); +// MAINA_CALL - 如果主线程调用,block是异步调用的;等同dispatch_async(dispatch_get_main_queue(), block); +// 参数: +// tag 统一填__FUNCTION__ +// delayTime 延迟执行时间,单位:秒。不延迟填0即可。------- !!! 注意:单位是秒,精度为浮点数。 +// priority 优先级 同NSOperationQueuePriority定义默认填0优先级。 +// +//#error ThisModuleName需要替换为自己模块名(区分大小写),替换后注释该错误提示。------ (第2个替换)------ +#define MAIN_CALL ExMainCall_AriverApp // MAIN_CALL(tag, delayTime, priority, block) +//#error ThisModuleName需要替换为自己模块名(区分大小写),替换后注释该错误提示。------ (第3个替换)------ +#define MAINA_CALL ExMainACall_AriverApp // MAINA_CALL(tag, delayTime, priority, block) + + + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAFileManager.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAFileManager.h new file mode 100644 index 0000000..c5718dc --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAFileManager.h @@ -0,0 +1,27 @@ +// +// RVAFileManager.h +// AriverApp +// +// Created by chenwenhong on 15/9/21. +// Copyright © 2015年 Alipay. All rights reserved. +// + +#import + +@interface RVAFileManager : NSObject + ++ (NSString *)jsPerformanceFileContentString; + ++ (NSString *)jsGeoFileContentString; + ++ (NSString *)jsBridgeFileContentString; + ++ (NSString *)jsShareFileContentString; + ++ (NSString *)errorHtmlFileContentString; + ++ (void)registerImage:(UIImage *)image forName:(NSString *)name; + ++ (UIImage *)cachedImageNamed:(NSString *)named; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVALayoutEvent.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVALayoutEvent.h new file mode 100644 index 0000000..59b6c27 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVALayoutEvent.h @@ -0,0 +1,20 @@ +// +// RVALayoutEvent.h +// AriverApp +// +// Created by chenwenhong on 15/9/29. +// Copyright © 2015年 Alipay. All rights reserved. +// + +#import + +@interface RVALayoutEvent : RVKEvent + +@property(nonatomic, readonly, strong) UIView *layoutView; +@property(nonatomic, assign) CGRect newFrame; + ++ (instancetype)webViewLayoutBefore:(UIView *)layoutView newFrame:(CGRect)newFrame; + ++ (instancetype)webViewLayoutAfter:(UIView *)layoutView newFrame:(CGRect)newFrame; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVALifecycleProtocols.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVALifecycleProtocols.h new file mode 100644 index 0000000..f528086 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVALifecycleProtocols.h @@ -0,0 +1,36 @@ +// +// Header.h +// RVAService +// +// Created by chenwenhong on 15/8/21. +// Copyright (c) 2015年 Alipay. All rights reserved. +// + +#ifndef RVAService_Header_h +#define RVAService_Header_h + +@class RVKSession; +@class RVKScene; +@class RVKView; + +@protocol RVAViewControllerLifecycleProtocol + +- (void)lifecycle_loadView; +- (void)lifecycle_viewDidLoad; +- (void)lifecycle_viewWillAppear:(BOOL)animated; +- (void)lifecycle_viewDidAppear:(BOOL)animated; +- (void)lifecycle_viewWillDisappear:(BOOL)animated; +- (void)lifecycle_viewDidDisappear:(BOOL)animated; +- (void)lifecycle_viewDidLayoutSubviews; +- (void)lifecycle_viewWillDestroy; + +@end + +@protocol RVANavigationControllerLifecycleProtocol + +@required +- (NSMutableArray *)lifecycle_currentViewControllers; + +@end + +#endif diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVALoadRequestEvent.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVALoadRequestEvent.h new file mode 100644 index 0000000..5eb1627 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVALoadRequestEvent.h @@ -0,0 +1,20 @@ +// +// RVALoadRequestEvent.h +// AriverApp +// +// Created by chenwenhong on 15/9/23. +// Copyright © 2015年 Alipay. All rights reserved. +// + +//#import + +@interface RVALoadRequestEvent : RVKEvent + +@property(nonatomic, strong) NSURLRequest *request; +@property(nonatomic, assign) BOOL runAutoLoginLogic; + ++ (instancetype)allEvent:(NSURLRequest *)request; + ++ (instancetype)firstLoadRequstEvent:(NSURLRequest *)request; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVALocalizationService.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVALocalizationService.h new file mode 100644 index 0000000..4669c10 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVALocalizationService.h @@ -0,0 +1,23 @@ +// +// RVALocalizationService.h +// AriverApi +// +// Created by guobing.sgb on 2020/2/20. +// Copyright © 2020 Alipay. All rights reserved. +// + +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +@protocol RVALocalizationService + +@optional + +- (nullable NSString *)localizedStringForKey:(nonnull NSString *)key + defaultValue:(nullable NSString *)defaultValue; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVALogger.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVALogger.h new file mode 100644 index 0000000..ea1691c --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVALogger.h @@ -0,0 +1,80 @@ +// +// RVMonitor.h +// AriverApp +// +// Created by 章海滨 on 2019/4/15. +// + +#import +#import + +@protocol RVALoggerDelegate; + +@interface RVALogger : NSObject + +@property(nonatomic, weak) id delegate; + ++ (instancetype)sharedInstance; + +//TODO 缺少小程序框架版本号 ++ (NSDictionary *)getCommonDatasFromPage:(RVKScene *)page; + ++ (NSDictionary * _Nullable)formateDictionaryFromConcatedLoag:(NSString * _Nullable)log; + +- (void)errorWithType:(NSString *)type code:(NSString *)code msg:(NSString *) msg commonDatas:(NSDictionary *)commonDatas extDatas:(NSDictionary *)extDatas; + +- (void)performanceWithType:(NSString *)type commonDatas:(NSDictionary *)commonDatas properties:(NSDictionary *)properties stages:(NSDictionary *)stages events:(NSDictionary *)events; + +- (void)behaviorWithType:(NSString *)type commonDatas:(NSDictionary *)commonDatas extDatas:(NSDictionary *)extDatas currentVC:(id)currentVC; + +- (void)behaviorWithData:(NSDictionary *)data contentView:(id)contentView callback:(RVKJsApiResponseCallbackBlock)callback; + +@end + + + + +@protocol RVALoggerDelegate +@optional +/** + * 异常类的数据通知 + * @param type 异常类型,如appx的异常、前端开发者代码异常、jsapi异常、容器异常 + * @param code 错误code + * @param msg 错误概述 + * @param extDatas 扩展参数,根据不同类型进行扩展。比如url、jsapi的req请求、errorstack + */ +- (void)errorWithType:(NSString *)type code:(NSString *)code msg:(NSString *) msg commonDatas:(NSDictionary *)commonDatas extDatas:(NSDictionary *)extDatas; + +/** + * 性能模型的数据通知 + * @param type 性能类型,如启动、页面 + * @param commonDatas 通用的数据参数 + * @param properties 属性 + * @param stages 模型标准的时间点 + * @param events 额外的事件时间点 + */ +- (void)performanceWithType:(NSString *)type commonDatas:(NSDictionary *)commonDatas properties:(NSDictionary *)properties stages:(NSDictionary *)stages events:(NSDictionary *)events; + + +/** + * 行为类的数据通知 + * @param type 行为类型,如页面、点击、曝光、启动、前后台 + * @param commonDatas 通用的数据参数,由前端传入 + * @param extDatas 扩展的数据参数 + */ +- (void)behaviorWithType:(NSString *)type commonDatas:(NSDictionary *)commonDatas extDatas:(NSDictionary *)extDatas currentVC:(id)currentVC; + +- (void)behaviorWithData:(NSDictionary *)data contentView:(id)contentView callback:(RVKJsApiResponseCallbackBlock)callback; + +@end + +#ifdef __cplusplus +extern "C" { +#endif // __cplusplus + + RVALogger *RVALoggerGet(); + +#ifdef __cplusplus +} +#endif // __cplusplus + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAMenuItem.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAMenuItem.h new file mode 100644 index 0000000..787688f --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAMenuItem.h @@ -0,0 +1,21 @@ +// +// RVAMenuItem.h +// AriverApp +// +// Created by chenwenhong on 15/9/6. +// Copyright (c) 2015年 Alipay. All rights reserved. +// +#if INDEPENDENT + +#import + +@interface RVAMenuItem : UIView + +@property(nonatomic, strong) UIButton *button; +@property(nonatomic, strong) UILabel *label; + +- (instancetype)initWithIcon:(NSString *)icon title:(NSString *)title; + +@end + +#endif diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAMenuPad.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAMenuPad.h new file mode 100644 index 0000000..dfbecbc --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAMenuPad.h @@ -0,0 +1,48 @@ +// +// RVAMenuPad.h +// AriverApp +// +// Created by chenwenhong on 15/9/6. +// Copyright (c) 2015年 Alipay. All rights reserved. +// +#if INDEPENDENT + +#import + +@protocol RVAMenuPadDataSource; + +@interface RVAMenuPad : NSObject + +@property(nonatomic, weak) id dataSource; +@property(nonatomic, readonly) BOOL isShowing; + +- (void)show; + +- (void)dismiss; + +- (void)reload; + +- (BOOL)isShowing; + +- (void)setViewInsets:(UIEdgeInsets)insets; + +- (void)setBackgroundColor:(UIColor *)color; + +- (void)setContentViewBgColor:(UIColor *)color; + +- (UILabel *)tipsLabel; + +- (UIButton *)cancelButton; + +@end + + +@protocol RVAMenuPadDataSource + +- (NSUInteger)numberOfLines; + +- (NSArray *)menuPad:(RVAMenuPad *)menuPad itemsAtLineIndex:(NSInteger)index; + +@end + +#endif diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAMonitor.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAMonitor.h new file mode 100644 index 0000000..eb60600 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAMonitor.h @@ -0,0 +1,67 @@ +// +// RVAMonitor.h +// AriverApp +// +// Created by chenwenhong on 15/10/8. +// Copyright © 2015年 Alipay. All rights reserved. +// + +#import +#import +#import + +//#define RVAMonitorParamsAppId @"appId" +//#define RVAMonitorParamsUrl @"url" +//#define RVAMonitorParamsVersion @"version" +//#define RVAMonitorParamsLogStr @"logStr" + +@protocol RVKLoggerProtocol; + +@protocol RVAMonitorDelegate; + +@protocol RVRLogManagerDelegate; + +@protocol RVALocalLogDelegate; + +@interface RVAMonitor : NSObject + +@property(nonatomic, weak) id delegate; +@property(nonatomic, weak) id localLogDelegate; + ++ (instancetype)defaultMonitor; + +// 上报给后台的埋点日志 +- (void)logWithLogId:(NSString *)logId params:(NSDictionary *)params; +- (void)logWithLogId:(NSString *)logId params:(NSDictionary *)params target:(RVKKernel *)target; + +// 写在本地的日志 +- (void)localLog:(NSString *)logString; + +//禁止创建实例 ++ (instancetype)alloc UNAVAILABLE_ATTRIBUTE; + +- (instancetype)init UNAVAILABLE_ATTRIBUTE; + +- (id)copy UNAVAILABLE_ATTRIBUTE; + ++ (instancetype)allocWithZone:(struct _NSZone *)zone UNAVAILABLE_ATTRIBUTE; + ++ (instancetype)new UNAVAILABLE_ATTRIBUTE; + +@end + +@protocol RVALocalLogDelegate +@optional +- (void)monitor:(RVAMonitor *)monitor localLog:(NSString *)logString; +@end + + +@protocol RVAMonitorDelegate + +- (void)monitor:(RVAMonitor *)monitor logWithLogId:(NSString *)logId params:(NSDictionary *)params; + +@optional +- (void)monitor:(RVAMonitor *)monitor logWithLogId:(NSString *)logId params:(NSDictionary *)params target:(RVKKernel *)target; + + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVANavigationItem.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVANavigationItem.h new file mode 100644 index 0000000..2b8b843 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVANavigationItem.h @@ -0,0 +1,21 @@ +// +// RVANavigationItem.h +// AriverApp +// +// Created by chenwenhong on 15/9/9. +// Copyright (c) 2015年 Alipay. All rights reserved. +// + +@interface RVANavigationItem : NSObject + +@property(nonatomic, strong) UIButton *customView; + ++ (instancetype)normalNavigationItem; + ++ (instancetype)backNavigationItem; + ++ (instancetype)closeNavigationItem; + ++ (instancetype)settingNavigationItem; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVANavigationItemEvent.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVANavigationItemEvent.h new file mode 100644 index 0000000..12a045d --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVANavigationItemEvent.h @@ -0,0 +1,47 @@ +// +// RVANavigationItemEvent.h +// AriverApp +// +// Created by chenwenhong on 15/9/9. +// Copyright (c) 2015年 Alipay. All rights reserved. +// + +@interface RVANavigationItemEvent : RVKEvent + +@property(nonatomic, strong) UIButton *customView; + ++ (instancetype)allEvent:(UIButton *)customView; + ++ (instancetype)createBeforeEvent:(UIButton *)customView; + ++ (instancetype)createAfterEvent:(UIButton *)customView; + ++ (instancetype)clickEvent:(UIButton *)customView; + +@end + + +@interface RVANavigationItemLeftBackEvent : RVANavigationItemEvent + +@end + +@interface RVANavigationItemLeftCloseEvent : RVANavigationItemEvent + +@end + +@interface RVANavigationItemRightSettingEvent : RVANavigationItemEvent + +@property(nonatomic, assign) BOOL adjustsWidthToFitText; // default is NO +@property(nonatomic, assign) CGFloat maxWidth; // default is +@property(nonatomic, strong) NSString *defaultImageName; +@property(nonatomic, strong) UIColor *defaultColor; +@property(nonatomic, strong) NSDictionary *data; +@property(nonatomic, strong) UIImage *iconTypeImage; ++ (instancetype)changeRightSettingEvent:(NSDictionary *)data; +@end + +@interface RVANavigationItemRightSubSettingEvent : RVANavigationItemEvent +@property(nonatomic, assign) BOOL adjustsWidthToFitText; // default is NO +@property(nonatomic, assign) CGFloat maxWidth; // default is +@end + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVANavigationTitleView.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVANavigationTitleView.h new file mode 100644 index 0000000..076076a --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVANavigationTitleView.h @@ -0,0 +1,24 @@ +// +// RVANavigationTitleView.h +// AriverApp +// +// Created by chenwenhong on 15/9/1. +// Copyright (c) 2015年 Alipay. All rights reserved. +// + +#import +#import "RVANavigationTitleViewProtocol.h" + +@protocol RVANavigationTitleViewDelegate; + +@interface RVANavigationTitleView : UIView + +@property(nonatomic, weak) id delegate; + +- (void)startLoading; // 开始转菊花,frame.size.width = 30 + +- (void)stopLoading; // 结束 + +- (void)doAnimationRightIcon:(BOOL)isDown; // 右边icon向上、下动画 + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVANavigationTitleViewEvent.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVANavigationTitleViewEvent.h new file mode 100644 index 0000000..ce775df --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVANavigationTitleViewEvent.h @@ -0,0 +1,32 @@ +// +// RVATitleViewEvent.h +// AriverApp +// +// Created by chenwenhong on 15/9/1. +// Copyright (c) 2015年 Alipay. All rights reserved. +// + +#import "RVANavigationTitleViewProtocol.h" + +@interface RVANavigationTitleViewEvent : RVKEvent + +@property(nonatomic, strong) id titleView; +@property(nonatomic, copy) NSString *mainTitle; +@property(nonatomic, copy) NSString *subtitle; + ++ (instancetype)allEvent:(id)titleView; + ++ (instancetype)createBeforeEvent; + ++ (instancetype)createAfterEvent:(id)titleView; + ++ (instancetype)setTitleEvent:(NSString *)mainTitle subtitle:(NSString *)subtitle; + ++ (instancetype)titleClickEvent:(id)titleView; + ++ (instancetype)subtitleClickEvent:(id)titleView; + ++ (instancetype)rightIconClickEvent:(id)titleView; + + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVANavigationTitleViewProtocol.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVANavigationTitleViewProtocol.h new file mode 100644 index 0000000..4fe0c53 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVANavigationTitleViewProtocol.h @@ -0,0 +1,65 @@ +// +// RVANavigationTitleViewProtocol.h +// AriverApp +// +// Created by chenwenhong on 15/9/1. +// Copyright (c) 2015年 Alipay. All rights reserved. +// + +#import + +@protocol RVANavigationTitleViewDelegate; + +@protocol RVANavigationTitleViewProtocol + +@required +// mainTitle +- (void)setMainTitle:(NSString *)mainTitle subtitle:(NSString *)subtitle; + +// titleLoading +- (void)showTitleLoading; + +- (void)hideTitleLoading; + +@optional +// mainTitleLabel +- (UILabel *)mainTitleLabel; + +// subtitleLabel +- (UILabel *)subtitleLabel; + +// padding +- (void)setPaddingLeft:(CGFloat)paddingLeft; + +- (void)setPaddingRight:(CGFloat)paddingRight; + +// right icon +- (void)setRightIconImage:(UIImage *)image; + +- (void)setRightIconWidth:(CGFloat)width; + +- (void)setCanShowRightIconWhenSubTitleIsWhitespace:(BOOL)canShow; // defult is NO + +// delegate +- (void)setDelegate:(id)delegate; + +- (id)delegate; + +- (void)doAnimationRightIcon:(BOOL)isDown; + +// rightIconImageView +- (UIImageView *)rightIconImageView; +@end + + +@protocol RVANavigationTitleViewDelegate + +@optional +// 点击了主标题 +- (void)navigationTitleView:(id)navigationTitleView didClickedMainTitleView:(UIView *)mainTitleView; +// 点击了副标题 +- (void)navigationTitleView:(id)navigationTitleView didClickedSubTitleView:(UIView *)subtitleView; +// 点击了右边图标 +- (void)navigationTitleView:(id)navigationTitleView didClickedRightIconView:(UIView *)rightIconView; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVANebulaViewProtocol.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVANebulaViewProtocol.h new file mode 100644 index 0000000..c7fcec3 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVANebulaViewProtocol.h @@ -0,0 +1,145 @@ +// +// RVANebulaViewProtocol.h +// AriverApp +// +// Created by chenwenhong on 15/12/28. +// Copyright © 2015年 Alipay. All rights reserved. +// + +#import +#import + +@class RVAContentViewPageProfile; + +NS_ASSUME_NONNULL_BEGIN + +@protocol RVAContentViewPageDelegate; + +// 默认继承自WKWebView不需要实现,也不要实现 +@protocol RVAContentViewProtocol + +@property(nonatomic) UIViewAutoresizing autoresizingMask; +@property(nonatomic, copy) NSString *channelId; +@property(nonatomic, copy) NSString *nbl_id; +@property(nonatomic, weak) id pageDelegate; + +- (void)contentViewDidLoad; + +- (void)contentViewDidPause; + +- (void)contentViewDidResume; + +- (void)contentViewDidClose; + +@end + +@protocol RVAWKLifeCycleDelegate +//frame +- (void)rva_setFrame:(CGRect)frame; +- (void)rva_willMoveToSuperview:(UIView *)view; + +//scroll +- (void)rva_scrollViewDidScroll:(UIScrollView *)scrollView; + + +//NavigationDelegate +- (id)rvaAssginNavigationDelegate; +- (void)setRvaAssginNavigationDelegate:(id)delegate; +@optional + +- (void)rva_webView:(WKWebView *)webView decidePolicyForNavigationAction:(WKNavigationAction *)navigationAction decisionHandler:(void (^)(WKNavigationActionPolicy))decisionHandler; + +/*! @abstract Decides whether to allow or cancel a navigation after its + response is known. + @param webView The web view invoking the delegate method. + @param navigationResponse Descriptive information about the navigation + response. + @param decisionHandler The decision handler to call to allow or cancel the + navigation. The argument is one of the constants of the enumerated type WKNavigationResponsePolicy. + @discussion If you do not implement this method, the web view will allow the response, if the web view can show it. + */ +- (void)rva_webView:(WKWebView *)webView decidePolicyForNavigationResponse:(WKNavigationResponse *)navigationResponse decisionHandler:(void (^)(WKNavigationResponsePolicy))decisionHandler; + +/*! @abstract Invoked when a main frame navigation starts. + @param webView The web view invoking the delegate method. + @param navigation The navigation. + */ +- (void)rva_webView:(WKWebView *)webView didStartProvisionalNavigation:(null_unspecified WKNavigation *)navigation; + +/*! @abstract Invoked when a server redirect is received for the main + frame. + @param webView The web view invoking the delegate method. + @param navigation The navigation. + */ +- (void)rva_webView:(WKWebView *)webView didReceiveServerRedirectForProvisionalNavigation:(null_unspecified WKNavigation *)navigation; + +/*! @abstract Invoked when an error occurs while starting to load data for + the main frame. + @param webView The web view invoking the delegate method. + @param navigation The navigation. + @param error The error that occurred. + */ +- (void)rva_webView:(WKWebView *)webView didFailProvisionalNavigation:(null_unspecified WKNavigation *)navigation withError:(NSError *)error; + +/*! @abstract Invoked when content starts arriving for the main frame. + @param webView The web view invoking the delegate method. + @param navigation The navigation. + */ +- (void)rva_webView:(WKWebView *)webView didCommitNavigation:(null_unspecified WKNavigation *)navigation; + +/*! @abstract Invoked when a main frame navigation completes. + @param webView The web view invoking the delegate method. + @param navigation The navigation. + */ +- (void)rva_webView:(WKWebView *)webView didFinishNavigation:(null_unspecified WKNavigation *)navigation; + +/*! @abstract Invoked when an error occurs during a committed main frame + navigation. + @param webView The web view invoking the delegate method. + @param navigation The navigation. + @param error The error that occurred. + */ +- (void)rva_webView:(WKWebView *)webView didFailNavigation:(null_unspecified WKNavigation *)navigation withError:(NSError *)error; + +/*! @abstract Invoked when the web view needs to respond to an authentication challenge. + @param webView The web view that received the authentication challenge. + @param challenge The authentication challenge. + @param completionHandler The completion handler you must invoke to respond to the challenge. The + disposition argument is one of the constants of the enumerated type + NSURLSessionAuthChallengeDisposition. When disposition is NSURLSessionAuthChallengeUseCredential, + the credential argument is the credential to use, or nil to indicate continuing without a + credential. + @discussion If you do not implement this method, the web view will respond to the authentication challenge with the NSURLSessionAuthChallengeRejectProtectionSpace disposition. + */ +- (void)rva_webView:(WKWebView *)webView didReceiveAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge completionHandler:(void (^)(NSURLSessionAuthChallengeDisposition disposition, NSURLCredential * _Nullable credential))completionHandler; + +/*! @abstract Invoked when the web view's web content process is terminated. + @param webView The web view whose underlying web content process was terminated. + */ +- (void)rva_webViewWebContentProcessDidTerminate:(WKWebView *)webView API_AVAILABLE(macosx(10.11), ios(9.0)); + +@end + + +@protocol RVAWKNavigationDelegate + + +@end + + +@protocol RVAContentViewPageDelegate + +- (void)contentViewPageStart:(RVAContentViewPageProfile *)page; + +- (void)contentViewPageComplete:(RVAContentViewPageProfile *)page; + +- (void)contentViewPagePaused:(RVAContentViewPageProfile *)page; + +- (void)contentViewPageResume:(RVAContentViewPageProfile *)page; + +- (void)contentViewPageEnd:(RVAContentViewPageProfile *)page; + +@end + +NS_ASSUME_NONNULL_END + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAOptions.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAOptions.h new file mode 100644 index 0000000..fcbd272 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAOptions.h @@ -0,0 +1,80 @@ +// +// RVAOptions.h +// RVAService +// +// Created by chenwenhong on 15/8/25. +// Copyright (c) 2015年 Alipay. All rights reserved. +// + +#import +@class RVAViewControllerProxy; + +// 如果需要添加新的属性,请指定RVAServiceConfiguration的OptionsClass + +@protocol RVAOptionsProtocol + +@property(nonatomic, copy) NSString *nbl_id; +@property(nonatomic, copy) NSString *url; +@property(nonatomic, copy) NSString *defaultTitle; +@property(nonatomic) BOOL showTitleBar; // default is YES +@property(nonatomic) BOOL showToolBar; // default is YES +@property(nonatomic) BOOL showLoading; // default is NO +@property(nonatomic, copy) NSString *closeButtonText; // default is "关闭" +@property(nonatomic) BOOL readTitle; // default is YES +@property(nonatomic, copy) NSString *bizScenario; +@property(nonatomic, copy) NSString *backBehavior; // default is kRVABackBehaviorBack, kRVABackBehaviorBack or kRVABackBehaviorPop +@property(nonatomic) BOOL pullRefresh; // default is NO +@property(nonatomic, copy) NSString *toolbarMenu; +@property(nonatomic) BOOL showProgress; // default is YES +@property(nonatomic, copy) NSString *defaultSubtitle; +@property(nonatomic) long long backgroundColor; // default is 0xFFFFFFFF (10.0.20 extend from int to longlong) +@property(nonatomic) BOOL gestureBack; // default is YES +@property(nonatomic) BOOL canPullDown; // default is YES +@property(nonatomic) BOOL showOptionMenu; // default is YES +@property(nonatomic) BOOL showTitleLoading; // default is NO +@property(nonatomic, assign) BOOL showDomain; // default is YES +@property(nonatomic, assign) BOOL showStatusBar; // default is YES +@property(nonatomic, copy) NSString *titleImage; //not implementation +@property(nonatomic, copy) NSString *landscape; //not implementation +@property(nonatomic) BOOL fullscreen; //not implementation +@property(nonatomic) BOOL enableJSC; //not implementation +@property(nonatomic, strong) NSObject *customParams; +@property(nonatomic, copy) NSString *pushingURLString; +@property(nonatomic, weak) RVAViewControllerProxy *viewControllerProxy; + +@property(nonatomic, assign) BOOL transparent; // 是否背景透明 + + + +/** + * @brief 实例化options,并从dict上解析对应的字段到属性中。创建session的第一个viewController时调用 + * + * @date 2015-12-31 + * + * @param dict 字段的字典 + * + * @return 返回options + */ +- (instancetype)initWithDictionary:(NSDictionary *)dict; + +/** + * @brief 实例化options,将other上的字段同步到options,并将dict上的字段覆盖对应的属性,其中bizScenario和nbl_id不能覆盖。session的非第一个viewController创建时调用 + * + * @date 2015-12-31 + * + * @param other 上一个viewController的options,以便继承 + * @param dict 字段的字典 + * + * @return 返回options + */ +- (id)initWithOptions:(id)other overrides:(NSDictionary *)dict; + +@end + + +@interface RVAOptions : NSObject + +// dynamicMergeWithDictionary +- (void)mergeWithDictionary:(NSDictionary *)dict; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAPVReporter.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAPVReporter.h new file mode 100644 index 0000000..55c381c --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAPVReporter.h @@ -0,0 +1,25 @@ +// +// RVAPVReporter.h +// AriverApp +// +// Created by chenwenhong on 15/10/8. +// Copyright © 2015年 Alipay. All rights reserved. +// + +#import +#import "RVAContentViewPageProfile.h" +#import "RVANebulaViewProtocol.h" + +@interface RVAPVReporter : NSObject + +@property(nonatomic, copy) NSString *nbl_id; +@property(nonatomic, copy) NSString *entranceUrl; +@property(nonatomic, strong) RVAContentViewPageProfile *lastPage; + +- (void)viewWillAppear; + +- (void)viewWillDisappear; + +- (void)viewWillDestroy; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAPerformanceMonitor.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAPerformanceMonitor.h new file mode 100644 index 0000000..e5d3846 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAPerformanceMonitor.h @@ -0,0 +1,15 @@ +// +// RVAPerformanceMonitor.h +// AriverApp +// +// Created by yemingyu on 2018/9/29. +// Copyright © 2018 Alipay. All rights reserved. +// + +#import + +@interface RVAPerformanceMonitor : NSObject + ++ (void)nbthirdParty_startUpPerformanceLog:(NSString*)type; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAPluginBase.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAPluginBase.h new file mode 100644 index 0000000..1470ee6 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAPluginBase.h @@ -0,0 +1,36 @@ +// +// RVAPluginBase.h +// AriverApp +// +// Created by chenwenhong on 15/9/1. +// Copyright (c) 2015年 Alipay. All rights reserved. +// + +#import +#import + +@interface RVAPluginBase : NSObject + +@property(nonatomic, readonly, weak) RVKKernel *target; +@property(nonatomic, copy) NSString *scope; + +- (void)pluginDidLoad; // will call `addPlugins` and `addJSApis`. If this method is overridden then the super implementation must be called. + +- (void)addJSApis; // add your JSApis. If this method is overridden then the super implementation must be called. + +- (void)addPlugins; // add your Plugins. If this method is overridden then the super implementation must be called. + +- (RVKPluginConfig *)pluginConfigWithName:(NSString *)name + scope:(NSString *)scope + eventNames:(NSArray *)eventNames + useCapture:(BOOL)useCapture; + +- (void)registerJsApi2Target:(RVKJsApi *)jsApi; + +- (void)registerPlugin2Target:(RVKPluginConfig *)pluginCfg; + +- (BOOL)dispatchEvent:(RVKEvent *)event; + +- (void)addDelayJSApiCallWithName:(NSString *)name data:(NSDictionary *)data; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAPrivateDefines.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAPrivateDefines.h new file mode 100644 index 0000000..b170da4 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAPrivateDefines.h @@ -0,0 +1,38 @@ +// +// RVAServicePrivateDefines.h +// RVAService +// +// Created by chenwenhong on 15/8/25. +// Copyright (c) 2015年 Alipay. All rights reserved. +// + +#ifndef RVAService_RVAServicePrivateDefines_h +#define RVAService_RVAServicePrivateDefines_h + +#define kRVADefaultSDKVersion @"1.0.0.0" + +#define kRVAService_ChannelId @"ChannelId" + +// jsapi +#define kRVAError_JSApi_Error @"error" +#define kRVAError_JSApi_ErrorMessage @"errorMessage" +#define kRVASuccess_JSApi_Success @"success" + +#define kRVAErrorCode_JSApi_InvalidApi 1 +#define kRVAErrorCode_JSApi_InvalidParams 2 +#define kRVAErrorCode_JSApi_UnknowError 3 +#define KRVAErrorCode_JSApi_Cancel 11 + +// session expando +#define kRVASessionExpando_AssociateRVASession @"kRVASessionExpando_AssociateRVASession" + +// scene expando +#define kRVASceneOptionsParam @"kNBSceneOptionsParam" + + +//*******************************Scene Events***************************// +// toolbar Menu +#define kRVAPrivateEvent_Scene_ToolbarMenu_Show @"private.scene.toolbarMenu.show" +#define kRVAPrivateEvent_Scene_ToolbarMenu_Hide @"private.scene.toolbarMenu.hide" + +#endif diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAProgressView.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAProgressView.h new file mode 100644 index 0000000..530da55 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAProgressView.h @@ -0,0 +1,18 @@ +// +// RVAProgressView.h +// AriverApp +// +// Created by chenwenhong on 15/10/13. +// Copyright © 2015年 Alipay. All rights reserved. +// + +#import +#import "RVAProgressViewProtocol.h" + +@interface RVAProgressView : UIView + +@property(nonatomic) float progress; // 0.0 .. 1.0, default is 0.0. values outside are pinned. +@property(nonatomic, strong, nullable) UIColor* progressTintColor; // 0xFF00aaff +@property(nonatomic, strong, nullable) UIColor* trackTintColor; // clearColor + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAProgressViewEvent.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAProgressViewEvent.h new file mode 100644 index 0000000..50d0ea2 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAProgressViewEvent.h @@ -0,0 +1,23 @@ +// +// RVAProgressViewEvent.h +// AriverApp +// +// Created by chenwenhong on 15/10/13. +// Copyright © 2015年 Alipay. All rights reserved. +// + +//#import +#import "RVAProgressViewProtocol.h" + +@interface RVAProgressViewEvent : RVKEvent + +@property(nonatomic, strong) id progressView; + ++ (instancetype)allEvent:(id)progressView; + ++ (instancetype)createBeforeEvent:(id)progressView; + ++ (instancetype)createAfterEvent:(id)progressView; + +@end + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAProgressViewProtocol.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAProgressViewProtocol.h new file mode 100644 index 0000000..27fe568 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAProgressViewProtocol.h @@ -0,0 +1,29 @@ +// +// RVAProgressViewProtocol.h +// AriverApp +// +// Created by chenwenhong on 15/10/13. +// Copyright © 2015年 Alipay. All rights reserved. +// + +#import + +@protocol RVAProgressViewProtocol + +@required +- (void)setProgress:(float)progress animated:(BOOL)animated; + +- (void)startProgress; + +- (void)completeProgress; + +- (void)reset; + +- (void)cancel; + +@optional +- (void)setProgressTintColor:(nullable UIColor *)tintColor; + +- (void)setTrackTintColor:(nullable UIColor *)trackTintColor; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVASceneEvent.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVASceneEvent.h new file mode 100644 index 0000000..3d6a8ec --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVASceneEvent.h @@ -0,0 +1,21 @@ +// +// RVASceneEvent.h +// AriverApp +// +// Created by chenwenhong on 15/12/28. +// Copyright © 2015年 Alipay. All rights reserved. +// + +//#import + +@interface RVASceneEvent : RVKEvent + +// create before +@property(nonatomic, copy) NSString *url; +@property(nonatomic, strong) RVASessionContext *sessionContext; +@property(nonatomic, strong) Class viewControllerCls; // 可以设置 +@property(nonatomic, strong) Class contentViewCls; // 可以设置 + ++ (instancetype)createBeforeEvent:(NSString *)url sessionContext:(RVASessionContext *)sessionContext; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAScrollPadView.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAScrollPadView.h new file mode 100644 index 0000000..60a1ec4 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAScrollPadView.h @@ -0,0 +1,51 @@ +// +// RVAScrollPadView.h +// AriverApp +// +// Created by chenwenhong on 15/9/6. +// Copyright (c) 2015年 Alipay. All rights reserved. +// +#if INDEPENDENT + +#import + +@protocol RVAScrollPadViewDataSource; +@protocol RVAScrollPadViewDelegate; + +@interface RVAScrollPadView : UIView + +@property(nonatomic, assign) UIEdgeInsets viewInsets; +@property(nonatomic, weak) id dataSource; +@property(nonatomic, weak) id delegate; +@property(nonatomic, assign) BOOL isShowing; +@property(nonatomic, strong) UIColor *contentViewBgColor; +@property(nonatomic, strong) UILabel *tipsLabel; +@property(nonatomic, strong) UIButton *cancelBtn; + +- (void)reload; + +- (void)show; + +- (void)dismiss; + +@end + + +// datasource +@protocol RVAScrollPadViewDataSource + +- (NSUInteger)numberOfLines; + +- (NSArray *)scrollPadView:(RVAScrollPadView *)scrollPadView viewsAtLineIndex:(NSUInteger)index; + +@end + + +// delegate +@protocol RVAScrollPadViewDelegate + +- (CGFloat)scrollPadView:(RVAScrollPadView *)scrollPadView heightAtLineIndex:(NSUInteger)index; + +@end + +#endif diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAService+RVAPrivate.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAService+RVAPrivate.h new file mode 100644 index 0000000..cdc491f --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAService+RVAPrivate.h @@ -0,0 +1,17 @@ +// +// RVAService+RVAPrivate.h +// AriverApp +// +// Created by chenwenhong on 15/10/22. +// Copyright © 2015年 Alipay. All rights reserved. +// + +#import + +@interface RVAService (RVAPrivate) + +- (id)createRVAViewController:(NSDictionary *)params + currentPsdSession:(RVKSession *)currentPsdSession + currentPsdScene:(RVKScene *)currentPsdScene; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAService.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAService.h new file mode 100644 index 0000000..160fd45 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAService.h @@ -0,0 +1,373 @@ +// +// RVAService.h +// RVAService +// +// Created by chenwenhong on 15/8/21. +// Copyright (c) 2015年 Alipay. All rights reserved. +// + +#import +//#import +#import + +@interface RVAService : NSObject + ++ (instancetype)alloc UNAVAILABLE_ATTRIBUTE; + +- (instancetype)init UNAVAILABLE_ATTRIBUTE; + +- (id)copy UNAVAILABLE_ATTRIBUTE; + ++ (instancetype)allocWithZone:(struct _NSZone *)zone UNAVAILABLE_ATTRIBUTE; + ++ (instancetype)new UNAVAILABLE_ATTRIBUTE; + +/** + * @brief 获取service + * + * @date 2015-08-21 + * + * @return 返回service + */ ++ (instancetype)sharedService; + +/** + * @brief 启动service + * + * @date 2015-08-21 + * + * @return 无 + */ +- (void)start; + +//- (id)appCenter; + +/** + * 根据指定的名称启动另一个应用。 + * + * @param name 要启动的应用名。 + * @param params 应动应用时,需要转递给另一个应用的参数。key为kRVAOptions_xxx + * @param animated 指定启动应用时,是否显示动画。 + * + * @return 应用启动成功返回YES,否则返回NO。 + */ +- (BOOL)startSession:(NSDictionary *)params animated:(BOOL)animated; + +/** + * @brief 创建一个VC + * + * @date 2015-09-23 + * + * @param params 启动参数 + * + * @return 返回一个vc实例 + */ +- (id)createRVAViewController:(NSDictionary *)params; + +/** + * @brief 创建一个VC + * + * @date 2015-09-23 + * + * @param params 启动参数 + * @param viewControllerClass vc类名,若是是nil,则根据配置获取默认 + * @param contentViewClass 一般是WKWebView子类,若是是nil,则根据配置获取默认 + * + * @return 返回一个vc实例 + */ +- (id)createRVAViewController:(NSDictionary *)params + viewControllerClass:(Class)viewControllerClass + contentViewClass:(Class)contentViewClass; + +/** + * @brief 创建一个VC + * + * @date 2015-09-23 + * + * @param params 启动参数 + * @param withExpando 主要是用来传递给VC一初始化就需要使用到的一些扩展属性 + * + * @return 返回一个vc实例 + */ +- (id)createRVAViewController:(NSDictionary *)params + withExpando:(NSDictionary *)expando; +/** + * @brief 创建一个VC + * + * @date 2015-09-23 + * + * @param params 启动参数 + * @param viewControllerClass vc类名,若是是nil,则根据配置获取默认 + * @param contentViewClass 一般是WKWebView子类,若是是nil,则根据配置获取默认 + * @param withExpando 主要是用来传递给VC一初始化就需要使用到的一些扩展属性 + * @return 返回一个vc实例 + */ +- (id)createRVAViewController:(NSDictionary *)params + viewControllerClass:(Class)viewControllerClass + contentViewClass:(Class)contentViewClass + withExpando:(NSDictionary *)expando; + +#pragma mark - service jsapi + +/** + * @brief 注册一个JsApi,在特定分组下 + * + * @date 2014-09-03 + * + * @param jsApi jsApi对象 + * @param groupId 分组id + * + * @return 无 + */ +- (void)registerJSApi:(RVKJsApi *)jsApi groupId:(NSString *)groupId; + +/** + * @brief 注册一组JsApi,在特定分组下 + * + * @date 2014-09-03 + * + * @param jsApis jsApi对象的数组 + * @param groupId 分组id + * + * @return 无 + */ +- (void)registerJSApis:(NSArray *)jsApis groupId:(NSString *)groupId; // RVKJsApi + +/** + * @brief 注册一个JSApi + * + * @date 2015-09-23 + * + * @param jsApi jsApi对象 + * + * @return 无 + */ +- (void)registerJSApi:(RVKJsApi *)jsApi; + +/** + * @brief 注册一组JsApi,在默认分组下 + * + * @date 2014-09-03 + * + * @param jsApis jsApi对象的数组 + * + * @return 无 + */ +- (void)registerJSApis:(NSArray *)jsApis; // RVKJsApi 默认分组kSharedJsApiGroupId + +/** + * @brief 反注册一个JsApi,在默认分组下 + * + * @date 2014-09-03 + * + * @param jsApi jsApi对象 + * + * @return 无 + */ +- (void)unregisterJSApi:(RVKJsApi *)jsApi; + +/** + * @brief 反注册一组JsApi,在特定分组下 + * + * @date 2014-09-03 + * + * @param jsApis jsApi对象的数组 + * @param groupId 分组id + * + * @return 无 + */ +- (void)unRegisterJsApis:(NSString *)groupId; + +/** + * @brief 获取指定分组和名字的JsApi对象 + * + * @date 2014-09-03 + * + * @param name JsApi名字 + * @param groupId 分组id + * + * @return 返回指定分组和名称的JsApi对象 + */ +- (RVKJsApi *)jsApi:(NSString *)name groupId:(NSString *)groupId; + +/** + * @brief 获取默认分组和名字的JsApi对象 + * + * @date 2014-09-03 + * + * @param name JsApi名字 + * + * @return 返回默认分组和名称的JsApi对象 + */ +- (RVKJsApi *)jsApi:(NSString *)name; + +/** + * @brief 获取指定分组下所有JsApi对象 + * + * @date 2014-09-03 + * + * @param groupId 分组id + * + * @return 返回指定分组下所有的JsApi对象 + */ +- (NSArray *)jsApis:(NSString *)groupId; + +/** + * @brief 获取默认分组下所有JsApi对象 + * + * @date 2014-09-03 + * + * @return 返回默认分组下所有的JsApi对象 + */ +- (NSArray *)jsApis; + +#pragma mark - service plugin + +/** + * @brief 获取特定分组下的所有插件 + * + * @date 2014-09-03 + * + * @param groupId 分组id + * + * @return 返回特定分组下的所有插件 + */ +- (NSArray *)plugins:(NSString *)groupId; + +/** + * @brief 获取默认分组下的所有插件 + * + * @date 2014-09-03 + * + * @return 返回默认分组下的所有插件 + */ +- (NSArray *)plugins; + +/** + * @brief 根据分组id和插件名称,获取插件 + * + * @date 2014-09-03 + * + * @param name 插件名称 + * @param groupId 分组id + * + * @return 返回找到的插件 + */ +- (id)plugin:(NSString *)name groupId:(NSString *)groupId; + +/** + * @brief 查找(默认分组和)插件名称,获取插件 + * + * @date 2014-09-03 + * + * @param name 插件名称 + * + * @return 返回找到的插件 + */ +- (id)plugin:(NSString *)name; + +/********************************************Config JSApi*****************************************************/ +#pragma mark - Config JSApi +/** + * @brief 注册一个JSApi(注:对于scope是kRVKScope_Service,直接作用到service上。否则,只能作用于到新创建的内核实例上) + * + * @date 2015-09-23 + * + * @param jsApiCfg jsApiCfg对象 + * + * @return 无 + */ +- (void)registerJSApiCfg:(RVKJsApiConfig *)jsApiCfg; + +/** + * @brief 注册一组JSApi(注:对于scope是kRVKScope_Service,直接作用到service上。否则,只能作用于到新创建的内核实例上) + * + * @date 2015-09-23 + * + * @param jsApiCfgs jsApiCfg对象数组 + * + * @return 无 + */ +- (void)registerJSApiCfgs:(NSArray *)jsApiCfgs; // RVKJsApiConfig + +/** + * @brief 反注册一个jsApi(注:对于scope是kRVKScope_Service,直接作用到service上。否则,只能作用于到新创建的内核实例上) + * + * @date 2015-09-23 + * + * @param jsApiCfg jsApiCfg对象 + * + * @return 无 + */ +- (void)unregisterJSApiCfg:(RVKJsApiConfig *)jsApiCfg; + +/** + * @brief 反注册一组jsApi(注:对于scope是kRVKScope_Service,直接作用到service上。否则,只能作用于到新创建的内核实例上) + * + * @date 2015-09-23 + * + * @param jsApiCfgs jsApiCfg对象数组 + * + * @return 无 + */ +- (void)unregisterJSApiCfgs:(NSArray *)jsApiCfgs; + +/********************************************Config Plugin*****************************************************/ +#pragma mark - Config Plugin + +/** + * @brief 注册一个插件,并赋予默认的分组(注:对于scope是kRVKScope_Service,直接作用到service上。否则,只能作用于到新创建的内核实例上) + * + * @date 2015-09-30 + * + * @param pluginCfg 插件配置对象 + * + * @return 无 + */ +- (void)registerPluginCfg:(RVKPluginConfig *)pluginCfg; + +/** + * @brief 注册一组插件,并赋予默认的分组(注:对于scope是kRVKScope_Service,直接作用到service上。否则,只能作用于到新创建的内核实例上) + * + * @date 2015-09-30 + * + * @param pluginCfgs 插件配置对象的数组 + * + * @return 无 + */ +- (void)registerPluginCfgs:(NSArray *)pluginCfgs; // RVKPluginConfig + +/** + * @brief 在特定分组下,反注册一个插件(注:对于scope是kRVKScope_Service,直接作用到service上。否则,只能作用于到新创建的内核实例上) + * + * @date 2015-09-30 + * + * @param pluginCfg 插件配置对象 + * + * @return 无 + */ +- (void)unregisterPluginCfg:(RVKPluginConfig *)pluginCfg; + +/** + * @brief 在特定分组下,反注册一组插件(注:对于scope是kRVKScope_Service,直接作用到service上。否则,只能作用于到新创建的内核实例上) + * + * @date 2015-09-30 + * + * @param pluginCfgs 插件配置对象的数组 + * @param groupId 分组id + * + * @return 无 + */ +- (void)unregisterPluginCfgs:(NSArray *)pluginCfgs; // RVKPluginConfig + +@end + +#ifdef __cplusplus +extern "C" { +#endif // __cplusplus + + RVAService * RVAServiceGet(); + +#ifdef __cplusplus +} +#endif // __cplusplus diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAServiceManager.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAServiceManager.h new file mode 100644 index 0000000..fcc41fa --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAServiceManager.h @@ -0,0 +1,17 @@ +// +// RVAServiceManager.h +// AriverApp +// +// Created by theone on 2019/4/8. +// Copyright © 2019 Alipay. All rights reserved. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface RVAServiceManager : NSObject +- (id)findServiceByName:(NSString *)name; +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVASession+RVAPrivate.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVASession+RVAPrivate.h new file mode 100644 index 0000000..4b919a8 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVASession+RVAPrivate.h @@ -0,0 +1,15 @@ +// +// RVASession+RVAPrivate.h +// RVAService +// +// Created by chenwenhong on 15/8/26. +// Copyright (c) 2015年 Alipay. All rights reserved. +// + +#import "RVASession.h" + +@interface RVASession (RVAPrivate) + +- (instancetype)initWithContext:(RVASessionContext *)context; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVASession.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVASession.h new file mode 100644 index 0000000..3df5c69 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVASession.h @@ -0,0 +1,25 @@ +// +// RVASession.h +// RVAService +// +// Created by chenwenhong on 15/8/25. +// Copyright (c) 2015年 Alipay. All rights reserved. +// + +#import +#import "RVASessionContext.h" + +@class RVASessionDelegate; +@protocol RVRAppResponseProtocol; + +@interface RVASession : NSObject + +@property(nonatomic, strong) RVASessionDelegate *delegate; +@property(nonatomic, readonly, strong) RVASessionContext *context; + +/** + * @brief 返回当前资源管理中指定url的离线缓存 + * @return 自定义离线数据源(子类重写该方法,返回新容器的离线数据) + */ +- (id)appResponseForUrl:(NSString *)url; +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVASessionContext.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVASessionContext.h new file mode 100644 index 0000000..a4d6057 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVASessionContext.h @@ -0,0 +1,33 @@ +// +// RVASessionParam.h +// RVAService +// +// Created by chenwenhong on 15/8/26. +// Copyright (c) 2015年 Alipay. All rights reserved. +// + +#import +#import + +@class RVRDataSourceManager; +@class RVAAppConfigManager; + +typedef enum : NSUInteger { + RVASessionType_Online = 0, + RVASessionType_Offline, +} RVASessionType; + +@interface RVASessionContext : NSObject + +@property(nonatomic, copy) NSString *nbl_id; +@property(nonatomic, assign) RVASessionType sessionType; +@property(nonatomic, strong) Class viewControllerClass; +@property(nonatomic, strong) Class contentViewClass; +@property(nonatomic, strong) NSDictionary *params; +@property(nonatomic, weak) UIViewController *rootViewController; // 根vc +@property(nonatomic, weak) RVKSession *rvkSession; // 对应的session +@property(nonatomic, strong) RVRDataSourceManager *appDataSourceManager; // app离线资源包数据源 +@property(nonatomic, strong) RVAAppConfigManager *appConfigManager; //app配置源 +@property(nonatomic, strong) NSDictionary *expando; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVASessionDelegate.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVASessionDelegate.h new file mode 100644 index 0000000..d511029 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVASessionDelegate.h @@ -0,0 +1,14 @@ +// +// RVASessionLifecycleProxy.h +// RVAService +// +// Created by chenwenhong on 15/8/26. +// Copyright (c) 2015年 Alipay. All rights reserved. +// + +#import +#import + +@interface RVASessionDelegate : NSObject + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVASessionDelegateProtocol.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVASessionDelegateProtocol.h new file mode 100644 index 0000000..3cdf6f0 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVASessionDelegateProtocol.h @@ -0,0 +1,108 @@ +// +// RVASessionDelegate.h +// RVAService +// +// Created by chenwenhong on 15/8/26. +// Copyright (c) 2015年 Alipay. All rights reserved. +// + +#import + +@class RVASession; + +@protocol RVASessionDelegateProtocol + +@required + +/** + * 请求应用对象的代理返回根视图控制器。 + * + * @param session 应用对象。 + * + * @return 应用的根视图控制器。 + */ +- (UIViewController *)rootViewControllerInSession:(RVASession *)session; + +@optional + +/** + * 通知应用代理,应用对象已经对经被实例化。 + * + * @param session 应用对象。 + */ +- (void)sessionDidCreate:(RVASession *)session; + +/** + * 通知应用代理,应用将要启动。 + * + * @param session 启动的应用对象。 + * @param options 应用运行参数。 + */ +- (void)session:(RVASession *)session willStartLaunchingWithOptions:(NSDictionary *)options; + +/** + * 通知应用代理,应用已启动。 + * + * @param session 启动的应用对象。 + */ +- (void)sessionDidFinishLaunching:(RVASession *)session; + +/** + * 通知应用代理,应用即将暂停进入后台运行。 + * + * @param session 启动的应用对象。 + */ +- (void)sessionWillPause:(RVASession *)session; + +/** + * 通知应用代理,应用暂停进入后台运行。 + * + * @param session 启动的应用对象。 + */ +- (void)sessionDidPause:(RVASession *)session; + +/** + * 通知应用代理,应用将被重新激活。 + * + * @param session 要激活的应用对象。 + */ +- (void)session:(RVASession *)session willResumeWithOptions:(NSDictionary *)options; + +/** + * 通知应用代理,应用已经被激活。 + * + * @param session 要激活的应用对,带上参数的版本。 + */ +- (void)session:(RVASession *)session didResumeWithOptions:(NSDictionary *)options; + +/** + * 通知应用的代理,应用将要退出。 + * + * @param session 应用对象。 + * @param animated 是否以动画方式退出。 + */ +- (void)sessionWillTerminate:(RVASession *)session animated:(BOOL)animated; + +/** + * 询问应用的代理,应用是否可以启动。 + * 注意:只用特殊情况返回:NO,要保证默认是YES才可以启动的。 + * + * @param session 应用对象。 + * @param params 启动参数。 + * @param launchMode 启动方式。 + * + * @return 是否可以启动 + */ +- (BOOL)sessionShouldStart:(RVASession *)session params:(NSDictionary *)params; + +/** + * 询问应用的代理,应用是否可以退出。 + * 注意:只用特殊情况返回:NO,要保证默认是YES才可以退出的。 + * + * @param session 应用对象。 + * + * @return 是否可以退出 + */ +- (BOOL)sessionShouldTerminate:(RVASession *)session; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVASessionFactory.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVASessionFactory.h new file mode 100644 index 0000000..d43242f --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVASessionFactory.h @@ -0,0 +1,18 @@ +// +// RVASessionFactory.h +// RVAService +// +// Created by chenwenhong on 15/8/26. +// Copyright (c) 2015年 Alipay. All rights reserved. +// + +#import + +@class RVASession; +@class RVASessionContext; + +@interface RVASessionFactory : NSObject + +- (RVASession *)createSession:(RVASessionContext *)context; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVASessionManager.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVASessionManager.h new file mode 100644 index 0000000..d05480f --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVASessionManager.h @@ -0,0 +1,50 @@ +// +// RVASessionManager.h +// RVAService +// +// Created by chenwenhong on 15/8/25. +// Copyright (c) 2015年 Alipay. All rights reserved. +// + +#import + +@class RVASession; +@class RVASessionContext; + +@interface RVASessionManager : NSObject + +// 使用Nebula的startSession模式 + +- (RVASession *)session4Context:(RVASessionContext *)context createIfNoExist:(BOOL)createIfNoExist; + +- (BOOL)startSession:(RVASession *)session params:(NSDictionary *)params animated:(BOOL)animated; + +- (void)exitSession:(RVASession *)session animated:(BOOL)animated; + +// 使用session + +- (RVASession *)createSession:(RVASessionContext *)context; + +- (void)pushSession:(RVASession *)session; + +- (void)popSession:(RVASession *)session; + +/** + * 显示栈中添加session + * @param session + */ +- (void)showSession:(RVASession *)session; + +/** + * 从session的显示栈中移除session + * @param session + */ +- (void)hideSession:(RVASession *)session; + +// + +- (RVASession *)currentSession; + +- (NSArray *)sessions; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVASettingButtonProtocol.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVASettingButtonProtocol.h new file mode 100644 index 0000000..cdc75ed --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVASettingButtonProtocol.h @@ -0,0 +1,15 @@ +// +// RVASettingButtonProtocol.h +// AriverApp +// +// Created by chenwenhong on 15/9/30. +// Copyright © 2015年 Alipay. All rights reserved. +// + +#import + +@protocol RVASettingButtonProtocol + +- (void)setRedDot:(int)redDot; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVATabBarProtocol.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVATabBarProtocol.h new file mode 100644 index 0000000..9aa7802 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVATabBarProtocol.h @@ -0,0 +1,174 @@ +// +// TabBarProtocol.h +// NebulaApp +// +// Created by lyusheng on 2018/8/13. +// Copyright © 2018年 Alipay. All rights reserved. +// + +#import + +typedef NS_ENUM(NSUInteger, RVATabBarColorMode) { + RVATabBarColorModeLight = 0, + RVATabBarColorModeDark +}; + +@protocol RVATabBarProtocol + +/** + 用于占位的tabBar + */ +@property(nonatomic, strong) UITabBar *placeholderTabBar; +/** + 自定义TabBarController, tabBar控件 + */ +@property(nonatomic, readonly) UITabBar *tabBar; + +/** + 缓存tabBar未创建前的tabBar操作指令 + */ +@property(nonatomic, readonly) NSMutableArray* delayTabBarTasks; + +/** + 是否持有多Tab的其它子Tab + */ +@property(nonatomic, readonly) BOOL hasChildTab; + +/** + 是否为多Tab的子Tab + */ +@property(nonatomic) BOOL isChildTab; + +/** + 多Tab时,是否可见 + */ +@property(nonatomic, readonly) BOOL isNotVisibleWhenMultiTab; + +/** + 是否需要停止手动补齐appearance事件 + */ +@property(nonatomic, assign) BOOL stopConstructAppearance; + +/** + 持有的子Tab的数目 + */ +@property(nonatomic, readonly) NSUInteger childTabCount; + +/** + 设置/读取选中tag + */ +@property(nonatomic) NSString *selectedTag; + +/** + 作为子Tab被执有的H5WebViewController + */ +@property(nonatomic, weak) UIViewController *cachedParentViewController; + +/** + 多tab模式时,返回兄弟tab里选中的的H5WebViewController + 非tab模式时,直接返回调用的H5WebViewController + */ +@property(nonatomic, readonly) UIViewController *selectedViewController; + +/** + 持有创建的子Tab对应的H5WebViewController + 键值对中,键名为对应Tab的identifier + */ +@property(nonatomic, strong) NSDictionary *cachedChildViewControllers; + +@property(nonatomic, assign) BOOL hasAlphaBackgroundColor; + +/** + 创建UITab对象 + + @param createConfig 创建参数 + @param index 初始选中Tab的下标 + */ +- (void)createTabBarWithConfig:(NSDictionary *)createConfig selectedIndex:(NSUInteger)index; + +// 适配VC类中的gapHeight +- (void)setTabBarGapHeight:(CGFloat)gapHeight; + +// 适配iphonex +- (void)setTabBarHeight:(CGFloat)height; + +- (void)adjustTabBarContentEdgeInsetsBottom:(CGFloat)bottom; + +// 10.1.35 小程序显示tabBar +- (void)showTabBarWithAnimationType:(NSString *)animationType + animated:(BOOL)animated; + +// 10.1.35 小程序隐藏tabBar +- (void)hideTabBarWithAnimationType:(NSString *)animationType + animated:(BOOL)animated; + +/** + 入口url与tabBar配置的匹配算法 + + @param createURLStr 入口url + @param configDict tabBar配置 + @param isTinyApp 小程序区别编码 + @return 匹配结果,失败时为NSNotFound + */ ++ (NSInteger)indexWithUrl:(NSString *)createURLStr tabConfigDict:(NSDictionary *)configDict isTinyApp:(BOOL)isTinyApp; + + +/** + 在发起分享或收藏,生成的链接是否应加上enableTabBar=NO + */ +- (BOOL)shouldDisableTabBarWhenShare:(NSString *)url; + +/** + 创建占位的UITab对象 + + @param itemCount Tab上的icon个数 + */ +- (void)placeholdTabBarWithItemCount:(NSUInteger)itemCount; + +/** + 清除占位的UITab并调整WebView布局 + */ +- (void)destroyPlaceholderTabBarIfExist; + +/** + 设置tab的红点 + + @param badgeValue -1隐藏红点,否则作为红圈中的字符串 + @param tag 要设置红点Tab的identifier + */ +- (void)setTabBarBadge:(NSString *)badgeValue tag:(NSString *)tag; + + +/** + 动态设置icon图标 + + @param icon 图标的base64或者url + @param tag 要设置红点Tab的identifier + @param is4Selected 设置选中或普通状态 + */ +- (void)setIcon:(NSString *)icon scale:(float)scale atTag:(NSString *)tag forSelected:(BOOL)is4Selected; + +/** + 通过tag判断index是否存在 + + @param tag 要设置红点Tab的identifier + */ +- (NSInteger)index4TabBarItemTag:(NSString *)tag; + +- (NSString *)p_tag4TabBarIndex:(NSUInteger)index; + +- (void)updateChildTabNavigationItems; + +- (UIViewController *)childTabViewController; +- (BOOL)isSwitching; + +- (void)tabBarColorModeWillChange:(RVATabBarColorMode)colorMode; + +@optional +// 生命周期 +- (void)rvptab_childViewWillDestroy; +//- (void)rvptab_childViewWillAppear:(BOOL)animated; +//- (void)rvptab_childViewDidAppear:(BOOL)animated; +//- (void)rvptab_childViewWillDisappear:(BOOL)animated; +//- (void)rvptab_childViewDidDisappear:(BOOL)animated; +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAToolbarMenu.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAToolbarMenu.h new file mode 100644 index 0000000..2b44397 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAToolbarMenu.h @@ -0,0 +1,17 @@ +// +// RVAToolbarMenu.h +// AriverApp +// +// Created by chenwenhong on 15/9/9. +// Copyright (c) 2015年 Alipay. All rights reserved. +// +#if INDEPENDENT + +#import +#import "RVAToolbarMenuProtocol.h" + +@interface RVAToolbarMenu : NSObject + +@end + +#endif diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAToolbarMenuEvent+RVAPrivate.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAToolbarMenuEvent+RVAPrivate.h new file mode 100644 index 0000000..3977150 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAToolbarMenuEvent+RVAPrivate.h @@ -0,0 +1,17 @@ +// +// RVAToolbarMenuEvent+RVAPrivate.h +// AriverApp +// +// Created by chenwenhong on 15/9/10. +// Copyright (c) 2015年 Alipay. All rights reserved. +// + +#import "RVAToolbarMenuEvent.h" + +@interface RVAToolbarMenuEvent (RVAPrivate) + ++ (instancetype)showEvent; + ++ (instancetype)hideEvent; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAToolbarMenuEvent.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAToolbarMenuEvent.h new file mode 100644 index 0000000..8e5a39e --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAToolbarMenuEvent.h @@ -0,0 +1,27 @@ +// +// RVAToolbarMenuEvent.h +// AriverApp +// +// Created by chenwenhong on 15/9/9. +// Copyright (c) 2015年 Alipay. All rights reserved. +// + +#import "RVAToolbarMenuProtocol.h" + +@interface RVAToolbarMenuEvent : RVKEvent + +@property(nonatomic, strong) id toolbarMenu; +@property(nonatomic, readonly, copy) NSString *selectedRowTag; +@property(nonatomic, readonly, copy) NSString *selectedTag; + ++ (instancetype)allEvent:(id)toolbarMenu; + ++ (instancetype)createBeforeEvent:(id)toolbarMenu; + ++ (instancetype)createAfterEvent:(id)toolbarMenu; + ++ (instancetype)selectEvent:(id)toolbarMenu selectedTag:(NSString *)selectedTag selectedRowTag:(NSString *)selectedRowTag; + ++ (instancetype)selectCancelEvent:(id)toolbarMenu selectedTag:(NSString *)selectedTag selectedRowTag:(NSString *)selectedRowTag; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAToolbarMenuProtocol.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAToolbarMenuProtocol.h new file mode 100644 index 0000000..0dfa334 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAToolbarMenuProtocol.h @@ -0,0 +1,51 @@ +// +// RVAToolbarMenuProtocol.h +// AriverApp +// +// Created by chenwenhong on 15/9/9. +// Copyright (c) 2015年 Alipay. All rights reserved. +// + +#import + +@protocol RVAToolbarMenuDelegate; + +@protocol RVAToolbarMenuProtocol + +@required +- (void)show; + +- (void)dismiss; + +- (void)reload; + +- (UILabel *)tipsLabel; + +- (BOOL)isShowing; + +- (void)setToolbarMenu:(NSDictionary *)data asDefault:(BOOL)asDefault; + +@optional +- (void)setViewInsets:(UIEdgeInsets)insets; + +- (void)setBackgroundColor:(UIColor *)color; + +- (void)setContentViewBgColor:(UIColor *)color; + +- (void)setMenuItemImageViewInsets:(UIEdgeInsets)insets; + +// cancel btn +- (UIButton *)cancelButton; + +- (void)setDelegate:(id)delegate; // 若外部设置了,则kRVAEvent_Scene_ToolbarMenu_Select事件无法发出 +- (id)delegate; + +@end + + +@protocol RVAToolbarMenuDelegate + +@optional +- (void)toolbarMenu:(id)toolbarMenu didSelectedItem:(id)item; // 必须实现.tag方法 + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAUtils.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAUtils.h new file mode 100644 index 0000000..5108d62 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAUtils.h @@ -0,0 +1,160 @@ +// +// RVAUtils.h +// RVAService +// +// Created by chenwenhong on 15/8/21. +// Copyright (c) 2015年 Alipay. All rights reserved. +// + +#import +#import +#import "RVAMonitor.h" +#import +#import +#import + +#define RVALocalizedString(key, value) [RVAUtils localizedStringForKey:key defaultValue:value] + +@interface RVAUtils: NSObject + ++ (BOOL)isRVKNode:(RVKKernel *)node targetList:(NSArray *)targetList; ++ (BOOL)isTinyAppWithSession:(RVKSession*)session; + +#pragma mark - Localization + ++ (nullable NSString *)localizedStringForKey:(nonnull NSString *)key + defaultValue:(nullable NSString *)defaultValue; + +@end + +#pragma mark - Runtime +/************************************** Runtime ******************************************/ + +void RVASwizzle(Class c, SEL orig, SEL newSelector); + +#pragma mark - URL +/************************************** URL **********************************************/ + +NSString *RVAURLEncode(NSString *str); +NSString *RVAURLURLDecode(NSString *string); + +BOOL RVAURLIsEqualsIgnoreHash(NSString *orig, NSString *dest); + +BOOL RVAURLIsValidateUrl(NSString *str); // http、https、file + +BOOL RVAURLIsOnlineUrl(NSString *str); // http、https + +BOOL RVAURLIsFileUrl(NSString *str); // file + +BOOL RVAHostIsAppStore(NSString *host); + +NSString *RVAURLString(NSString *urlString, NSURL *baseURL); + +NSDictionary *RVAURLGetQuery(NSString *queryString); + +#pragma mark - UIImage +/************************************* UIImage ******************************************/ + +UIImage *RVAImageNamed(NSString *imageName); +UIImage *RVACacheableImageNamed(NSString *imageName); + +UIImage *RVAReSizeImage(UIImage *image, CGSize reSize); +UIImage *RVAImageFromColor(UIColor *color, CGSize size); +#pragma mark - Class +/************************************ Class ********************************************/ + + +#pragma mark - NSString +/*********************************** NSString ******************************************/ +NSString *RVAString(NSString *str, NSString *defaultValue); + +CGRect RVARectForString(NSString * string, UIFont * font, CGRect boundingRect); + +#pragma mark - UIColor +/************************************** UIColor ****************************************/ +UIColor *RVAColorWithHex(NSInteger hex); // 0xAARRGGBB、0xRRGGBB + +UIColor *RVAColorWithWebString(NSString *colorString); // #aarrggbb 、 #rrggbb 、 rgb(rr,gg,bb) 、 argb(aa,rr,gg,bb) + +#pragma mark - NSDictionary +/*********************************** NSDictionary **************************************/ +NSDictionary *RVAMergeDict(NSDictionary *origDict, NSDictionary *newDict); + +//CGFloat RVAFloatValue(id obj, CGFloat defaultValue); + +int RVAIntValue(id obj, int defaultValue); + +//NSInteger RVAIntegerValue(id obj, NSInteger defaultValue); + +BOOL RVABoolValue(id obj, BOOL defaultValue); + +NSArray *RVAArray(id obj, NSArray *defaultValue); + +NSDictionary *RVADictionary(id obj, NSDictionary *defaultValue); + +NSDictionary *RVAOptionsWithURL(NSString *url); + +#pragma mark - Device +/************************************** Device ****************************************/ +CGFloat RVADeviceSystemVersion(); + +#pragma mark - Environment +/*********************************** Environment *************************************/ +//NSString *RVAEnvironmentName(const NSInteger environment); + +//NSString *RVAChannelName(const NSInteger channel); + +#pragma mark - Log +/************************************** Log *****************************************/ +void RVALog(NSString *logId, NSDictionary *params); + +void RVALocalLog(NSString* format,...); + +#pragma mark - Encrypt & Decrypt +/********************************** Encrypt & Decrypt ********************************/ +NSString *RVAMD5(NSString *string); + +//NSString *RVAMD5OfData(NSData *data); + +NSString *RVABase64Encode(NSData *data); + +NSData *RVABase64Decode(NSString *string); + +UIImage *RVABase64Decode2Image(NSString *string); + +BOOL RVAIsBase64(NSString *string); + +NSString *RVACalculateDigest(NSString *string); +NSString *RVACalculateDigestFromData(NSData *data); + +#pragma mark - Other +/************************************** Other *****************************************/ +CTTelephonyNetworkInfo *RVATelephonyInfo(); +NSString *RVATrimTailingWhiteSpace(NSString *str); +NSURL *RVAURLWithFixedString(NSString *URLString); +BOOL RVARegexTest(NSString *target, NSArray *rules); +//void RVALogInfo(NSString *message); + + + +/************************************** Env *****************************************/ +BOOL RVAIsUrlInAliWhitelist(NSURL *url); +BOOL RVAIsUrlInAlipayWhitelist(NSURL *url); +BOOL RVAIsUrlInSeriousAliWhitelist(NSURL *url); +int RVAWKRetryTimes(); +BOOL RVAEnableWKFGRefresh(); + +NSString *RVAUString(id string); +NSNumber *RVAUNumber(id number); +NSArray *RVAUArray(id array); +NSDictionary *RVAUDictionary(id dic); +NSString *RVAUJsonStr(NSDictionary * dic); +NSDictionary *RVAUJsonDic(NSString * jsonStr); +NSDictionary *RVAUJsonDicWithData(NSData *data); + +BOOL RVAIsInnerTinyAppWithAppId(NSString *appId); +BOOL RVAIsTinyAppWithSession(RVKSession *session); +BOOL RVAIsTinyAppDebugMode(RVKSession *session, RVRApp *app); + +BOOL RVAIsConfigOn(NSString* switchKey, NSString *appId, BOOL defaultValue); +NSString *RAVAppIdGet(RVKSession *session); diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAViewController.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAViewController.h new file mode 100644 index 0000000..44423bc --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAViewController.h @@ -0,0 +1,13 @@ +// +// RVAViewController.h +// RVAService +// +// Created by chenwenhong on 15/8/21. +// Copyright (c) 2015年 Alipay. All rights reserved. +// + +#import + +@interface RVAViewController : UIViewController + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAViewControllerProxy+Private.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAViewControllerProxy+Private.h new file mode 100644 index 0000000..935feb5 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAViewControllerProxy+Private.h @@ -0,0 +1,15 @@ +// +// RVAViewControllerProxy+Private.h +// AriverApp +// +// Created by chenwenhong on 16/1/19. +// Copyright © 2016年 Alipay. All rights reserved. +// + +#import + +@interface RVAViewControllerProxy (Private) + +- (void)sendCreateRightItemsEvent; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAViewControllerProxy.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAViewControllerProxy.h new file mode 100644 index 0000000..505fd94 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAViewControllerProxy.h @@ -0,0 +1,73 @@ +// +// RVAViewControllerLifecycleDispatcher.h +// RVAService +// +// Created by chenwenhong on 15/8/21. +// Copyright (c) 2015年 Alipay. All rights reserved. +// + +#import +#import "RVAOptions.h" +#import "RVANavigationTitleViewProtocol.h" +#import "RVAPVReporter.h" + +@class RVAViewControllerStatus; + +typedef void(^RVADelayCallback)(); + + +@interface RVAViewControllerProxy : NSObject + +// 通用属性 +@property(nonatomic, readonly, strong) id navigationTitleView; +@property(nonatomic, readonly, strong) id options; +@property(nonatomic, readonly, copy) NSString *channelId; +@property(nonatomic, readonly, copy) NSString *customUserAgent; +@property(nonatomic, readonly, strong) RVAViewControllerStatus *myFlags; +@property(nonatomic, strong) RVAPVReporter *pvReporter; + +- (instancetype)initWithTarget:(UIViewController *)target; + +- (void)back; + +- (void)clearAndBack; + +- (void)close; + +- (void)popToViewController:(UIViewController *)vc animated:(BOOL)animated; + +- (void)popToWindowOfIndex:(NSInteger)indexPopTo; + +- (void)popViewControllerAnimated:(BOOL)animated; + +- (void)pushViewController:(UIViewController *)viewController animated:(BOOL)animated; + +- (void)addDelayCallback:(RVADelayCallback)callback; + +- (void)showCloseItemIfNeeded; + +- (void)doShowCloseItemIfNeeded:(BOOL)needed; + +/** + * 重新设置整个options,业务谨慎使用 + * + * @date 2017-06-07 + * + */ +- (void)resetOptions:(id)options; + +/** + 设置MainTitle的事件 + + @param mainTitle + @param subtitle + */ +- (void)sendSetMainTitleEvent:(NSString *)mainTitle subtitle:(NSString *)subtitle; + +/** + 重置返回状态 + + */ +- (void)resetBackStatus; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAViewControllerStatus.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAViewControllerStatus.h new file mode 100644 index 0000000..2138f32 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAViewControllerStatus.h @@ -0,0 +1,17 @@ +// +// RVAViewControllerStatus.h +// AriverApp +// +// Created by theone on 16/2/22. +// Copyright © 2016年 Alipay. All rights reserved. +// + +#import + +@interface RVAViewControllerStatus : NSObject +@property(nonatomic, assign) int isInited; +@property(nonatomic, assign) int didShowCloseBtn; +@property(nonatomic, assign) int isViewReady; +@property(nonatomic, assign) BOOL isViewWillDisappear; +@property(nonatomic, assign) BOOL didDidEnterBackground; +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAWeakObject.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAWeakObject.h new file mode 100644 index 0000000..c8f99b3 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAWeakObject.h @@ -0,0 +1,17 @@ +// +// RVAWeakObject.h +// RVAService +// +// Created by chenwenhong on 15/8/24. +// Copyright (c) 2015年 Alipay. All rights reserved. +// + +#import + +@interface RVAWeakObject : NSObject + +@property(nonatomic, weak) id weakValue; + ++ (instancetype)weakObject:(id)weakValue; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAWebView.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAWebView.h new file mode 100644 index 0000000..802f596 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVAWebView.h @@ -0,0 +1,13 @@ +// +// RVAWebView.h +// RVAService +// +// Created by chenwenhong on 15/8/21. +// Copyright (c) 2015年 Alipay. All rights reserved. +// + +#import + +@interface RVAWebView : WKWebView + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVEvent4App.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVEvent4App.h new file mode 100644 index 0000000..6ebb59e --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVEvent4App.h @@ -0,0 +1,22 @@ +// +// RVEvent4App.h +// AriverApp +// +// Created by hua.lu on 2019/5/1. +// Copyright © 2019 Alipay. All rights reserved. +// + +#ifndef RVEvent4App_h +#define RVEvent4App_h + +@class RVKEvent; +@class RVKSession; + +@protocol RVEvent4App +@optional +- (void)appPause:(RVKEvent *)event; +- (void)appResume:(RVKEvent *)event; +- (void)appCreated:(RVKSession *)app; +@end + +#endif /* RVEvent4App_h */ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVEvent4Invocation.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVEvent4Invocation.h new file mode 100644 index 0000000..cfcfbb2 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVEvent4Invocation.h @@ -0,0 +1,28 @@ +// +// RVEvent4Invocation.h +// AriverApp +// +// Created by hua.lu on 2019/8/26. +// Copyright © 2019 Alipay. All rights reserved. +// + +#ifndef RVEvent4Invocation_h +#define RVEvent4Invocation_h + +#import "RVKJsApi.h" + +@protocol RVEvent4Invocation + +@optional +// kEvent_Invocation_Invoke +- (void)scene:(RVKScene *)scene + invokeData:(NSDictionary *)data + name:(NSString *)name + callback:(RVKJsApiResponseCallbackBlock)callback + url:(NSString *)url + jsApi:(RVKJsApi *)jsApi; + +@end + + +#endif /* RVEvent4Invocation_h */ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVEvent4Navigation.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVEvent4Navigation.h new file mode 100644 index 0000000..8efa19d --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVEvent4Navigation.h @@ -0,0 +1,24 @@ +// +// RVEvent4Navigation.h +// AriverApp +// +// Created by theone on 2019/5/10. +// Copyright © 2019 Alipay. All rights reserved. +// + +#import +#import + +@protocol RVKContentViewProtocol; + +NS_ASSUME_NONNULL_BEGIN + +@protocol RVEvent4Navigation +@optional +- (NSNumber *)webView:(id)webView shouldStartLoadRequest:(NSURLRequest *)request navigationType:(WKNavigationType)navigationType; +- (void)webViewLoadStart:(id)webView; +- (void)webView:(id)webView loadcomplete:(NSURLRequest *)request; +- (void)webView:(id)webView loadError:(NSURLRequest *)request error:(NSError *)error; +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVEvent4Operation.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVEvent4Operation.h new file mode 100644 index 0000000..20aedb2 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVEvent4Operation.h @@ -0,0 +1,21 @@ + +// +// RVEvent4Operation.h +// AriverApp +// +// Created by 浪浪 on 2020/2/20. +// Copyright © 2020 Alipay. All rights reserved. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +@class RVKSessionEvent; + +@protocol RVEvent4Operation +@optional +- (void)appClickedClose:(RVKSessionEvent *)app; +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVEvent4Page.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVEvent4Page.h new file mode 100644 index 0000000..1094f66 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVEvent4Page.h @@ -0,0 +1,32 @@ +// +// RVKScenePreRenderProtocol.h +// NebulaKernel +// +// Created by theone on 2018/9/12. +// Copyright © 2018年 Alipay. All rights reserved. +// + +#import + +@class RVKScene; +@class RVKSceneEvent; +@class RVKEvent; + +/** + Extension体系 + 由Nebula中的Event衍化来,Extension是Nebula中相关实践的组合,Extension的每个方法对应了以前的一个事件 + Plugin-> Extension + EventName -> ExtensionDefine中protocol的方法 + */ +@protocol RVEvent4Page +@optional +- (void)sceneWillAppear:(RVKScene *)scene; +- (void)sceneDidAppear:(RVKScene *)scene; +- (void)sceneDidCreate:(RVKSceneEvent *)event; +- (void)sceneDidReady:(RVKEvent *)event; +- (void)sceneWillDisappear:(RVKScene *)scene; +- (void)sceneWillDestroy:(RVKScene *)scene; +- (void)sceneDidUnload:(RVKEvent *)event; +- (void)securityTipViewDidShow; +- (void)sceneContentViewFallback:(RVKScene *)scene; +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVEvent4PreRender.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVEvent4PreRender.h new file mode 100644 index 0000000..f01c4fa --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVEvent4PreRender.h @@ -0,0 +1,14 @@ +// +// RVKScenePreRenderProtocol.h +// NebulaKernel +// +// Created by theone on 2018/9/12. +// Copyright © 2018年 Alipay. All rights reserved. +// + +#import + +@protocol RVEvent4PreRender +- (RVKScene *)createPreRenderSceneWithSceneParam:(RVKSceneParam *)sceneParam + data:(NSDictionary *)data; +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVEvent4ProgressView.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVEvent4ProgressView.h new file mode 100644 index 0000000..1d77ca4 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVEvent4ProgressView.h @@ -0,0 +1,20 @@ +// +// RVEvent4ProgressView.h +// NebulaApp +// +// Created by lyusheng on 2018/9/29. +// Copyright © 2018年 Alipay. All rights reserved. +// + +#ifndef RVEvent4ProgressView_h +#define RVEvent4ProgressView_h + +#import + +@protocol RVEvent4ProgressView +@optional +- (void)pageCreateProgressViewBefore:(RVKPage *)page; +- (void)page:(RVKPage *)page progressViewCreateAfter:(id)progressView; +@end + +#endif /* RVEvent4ProgressView_h */ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVEvent4Request.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVEvent4Request.h new file mode 100644 index 0000000..7818b52 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVEvent4Request.h @@ -0,0 +1,76 @@ +// +// RVEvent4Request.h +// NebulaApp +// +// Created by lyusheng on 2018/9/29. +// Copyright © 2018年 Alipay. All rights reserved. +// + +#ifndef RVEvent4Request_h +#define RVEvent4Request_h + +@class RVKScene; +@class RVKResponse; + +@protocol RVEvent4Request + +@optional + +// kEvent_Proxy_Request_Start_Handler +// scene:requestHandler:requestDate:customResponse:channelId: +- (void)scene:(RVKScene *)scene +requestHandler:(NSURLRequest *)request + requestDate:(NSDate *)requestDate +customResponse:(RVKResponse *)customResponse + channelId:(NSString *)channelId; + +// kEvent_Proxy_Request_Response_Handler +// scene:responseHandler:response:requestDate:responseDate:channelId: +- (void)scene:(RVKScene *)scene +responseHandler:(NSURLRequest *)request + response:(NSURLResponse *)response + requestDate:(NSDate *)requestDate + responseDate:(NSDate *)responseDate + channelId:(NSString *)channelId; + + +// kEvent_Proxy_Request_Cancel +// scene:requestCancel:error:requestDate:uniqueId:channelId: +- (void)scene:(RVKScene *)scene +requestCancel:(NSURLRequest *)request + error:(NSError *)error + requestDate:(NSDate *)requestDate + uniqueId:(NSString *)uniqueId + channelId:(NSString *)channelId; + + +// kEvent_Proxy_Request_ReceiveResponse +// scene:receiveResponse:request:requestDate:responseDate:uniqueId:channelId: +- (void)scene:(RVKScene *)scene +receiveResponse:(NSURLResponse *)response + request:(NSURLRequest *)request + requestDate:(NSDate *)requestDate + responseDate:(NSDate *)responseDate + uniqueId:(NSString *)uniqueId + channelId:(NSString *)channelId; + + +// kEvent_Proxy_Request_Finish +// scene:finishLoad:response:requestDate:responseDate:receiveData:receiveDataLength:error:uniqueId:channelId: +- (void)scene:(RVKScene *)scene + finishLoad:(NSURLRequest *)request + response:(NSURLResponse *)response + requestDate:(NSDate *)requestDate + responseDate:(NSDate *)responseDate + receiveData:(NSData *)receiveData +receiveDataLength:(NSUInteger)receiveDataLength + error:(NSError *)error + uniqueId:(NSString *)uniqueId + channelId:(NSString *)channelId; + + + + +@end + +#endif /* RVEvent4Request_h */ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVEvent4SceneNavigationBar.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVEvent4SceneNavigationBar.h new file mode 100644 index 0000000..6f06482 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVEvent4SceneNavigationBar.h @@ -0,0 +1,20 @@ +// +// RVKScenePreRenderProtocol.h +// NebulaKernel +// +// Created by theone on 2018/9/12. +// Copyright © 2018年 Alipay. All rights reserved. +// + +#import + +/** + Extension体系 + 由Nebula中的Event衍化来,Extension是Nebula中相关实践的组合,Extension的每个方法对应了以前的一个事件 + Plugin-> Extension + EventName -> ExtensionDefine中protocol的方法 + */ +@protocol RVEvent4SceneNavigationBar +@optional +- (void)changeColor:(BOOL )shouldSetDefaultColor; +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVEvent4SceneNavigationItem.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVEvent4SceneNavigationItem.h new file mode 100644 index 0000000..2f4035f --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVEvent4SceneNavigationItem.h @@ -0,0 +1,40 @@ +// +// RVKScenePreRenderProtocol.h +// NebulaKernel +// +// Created by theone on 2018/9/12. +// Copyright © 2018年 Alipay. All rights reserved. +// + +#import + +/** + Extension体系 + 由Nebula中的Event衍化来,Extension是Nebula中相关实践的组合,Extension的每个方法对应了以前的一个事件 + Plugin-> Extension + EventName -> ExtensionDefine中protocol的方法 + */ +@protocol RVEvent4SceneNavigationItem +@optional +- (void)rightSettingClick:(UIButton *)customView; + +- (void)leftBackCreateBefore:(UIButton *)customView; +- (void)leftBackCreateAfter:(UIButton *)customView; +- (void)leftCloseCreateAfter:(UIButton *)customView; +- (void)leftCloseAll; +- (void)rightSettingCreateAfter:(UIButton *)customView; +- (void)leftBackClick:(UIButton *)customView; +- (void)leftBackAll; +- (void)leftCloseClick:(UIButton *)customView; +- (void)rightSettingChange:(UIButton *)customView; +- (void)rightSettingAll; +- (void)rightSubSettingCreateAfter:(UIButton *)customView; +- (void)rightSubSettingClick:(UIButton *)customView; +- (void)leftCloseCreateBefore:(UIButton *)customView; +- (void)rightSettingCreateBefore:(UIButton *)customView; +- (void)rightSubSettingCreateBefore:(UIButton *)customView; +@end + + + + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVEvent4SceneNavigationTitleView.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVEvent4SceneNavigationTitleView.h new file mode 100644 index 0000000..71a8aec --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVEvent4SceneNavigationTitleView.h @@ -0,0 +1,26 @@ +// +// RVKScenePreRenderProtocol.h +// NebulaKernel +// +// Created by theone on 2018/9/12. +// Copyright © 2018年 Alipay. All rights reserved. +// + +#import + +/** + Extension体系 + 由Nebula中的Event衍化来,Extension是Nebula中相关实践的组合,Extension的每个方法对应了以前的一个事件 + Plugin-> Extension + EventName -> ExtensionDefine中protocol的方法 + */ +@protocol RVEvent4SceneNavigationTitleView +@optional +- (void)createBefore; +- (void)createAfter; +- (void)titleSet; +- (void)titleClick; +- (void)subTitleClick; +- (void)rightIconClick; +- (void)allEvent; +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVEvent4ToolBar.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVEvent4ToolBar.h new file mode 100644 index 0000000..6bce373 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVEvent4ToolBar.h @@ -0,0 +1,23 @@ +// +// RVEvent4ToolBar.h +// NebulaApp +// +// Created by lyusheng on 2018/9/29. +// Copyright © 2018年 Alipay. All rights reserved. +// + +#ifndef RVEvent4ToolBar_h +#define RVEvent4ToolBar_h + +@protocol RVEvent4ToolBar + +@optional +- (void)pageCreateToolbarBefore:(RVKPage *)page; +- (void)page:(RVKPage *)page toolbarCreateAfter:(id)toolbar; +- (void)page:(RVKPage *)page toolbarDidSelect:(id)toolbar; +- (void)pageShowToolbar:(RVKPage *)page; +- (void)pageHideToolbar:(RVKPage *)page; + +@end + +#endif /* RVEvent4ToolBar_h */ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVEvent4Worker.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVEvent4Worker.h new file mode 100644 index 0000000..c665c47 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVEvent4Worker.h @@ -0,0 +1,20 @@ +// +// RVEvent4Worker.h +// AriverApp +// +// Created by xuyouyang on 2019/5/14. +// Copyright © 2019 Alipay. All rights reserved. +// + +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +@protocol RVEvent4Worker + +- (void)workerWillLoadJS:(RVKSession *)session; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVKContext+RVA.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVKContext+RVA.h new file mode 100644 index 0000000..1c1ba28 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVKContext+RVA.h @@ -0,0 +1,24 @@ +// +// RVKContext+RVAService.h +// RVAService +// +// Created by chenwenhong on 15/8/25. +// Copyright (c) 2015年 Alipay. All rights reserved. +// + +//#import +#import + +@class RVAViewControllerProxy; + +@interface RVKContext (RVA) + +- (UIViewController *)currentViewController; + +- (RVAViewControllerProxy *)currentViewControllerProxy; + +- (RVKSession *)currentSession; + +- (RVKScene *)currentScene; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVKEvent+RVAAdaptar.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVKEvent+RVAAdaptar.h new file mode 100644 index 0000000..67d9083 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVKEvent+RVAAdaptar.h @@ -0,0 +1,23 @@ +// +// RVKEvent+RVAAdaptar.h +// AriverApp +// +// Created by hua.lu on 2019/4/23. +// Copyright © 2019 Alipay. All rights reserved. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface RVKEvent (RVAAdapter) + +@property(nonatomic, assign) BOOL isDispatchFromExtension; + +- (void)setValue:(id)value forUndefinedKey:(NSString *)key; +- (id)valueForUndefinedKey:(NSString *)key; + +@end + + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVKScene+RVA.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVKScene+RVA.h new file mode 100644 index 0000000..a7fc348 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVKScene+RVA.h @@ -0,0 +1,13 @@ +// +// RVKScene+RVA.h +// AriverApp +// +// Created by chenwenhong on 15/9/21. +// Copyright © 2015年 Alipay. All rights reserved. +// + +@interface RVKScene (RVA) + +@property(nonatomic, copy) NSString *channelId; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVKSession+JSEvent.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVKSession+JSEvent.h new file mode 100644 index 0000000..da7dd01 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVKSession+JSEvent.h @@ -0,0 +1,26 @@ +// +// RVKSession+JSEvent.h +// AriverApp +// +// Created by runfeng.crf on 2020/2/7. +// Copyright © 2020 Alipay. All rights reserved. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface RVKSession (JSEvent) + +/** +* 从Native调用当前栈顶的h5页面的JS函数,避免使用vc的callhandler发生前一个vc被销毁而发送失败的场景 +* +* @param handlerName 函数名 +* @param data 函数参数 +* @param callback JS端执行完后回调处理block +*/ +- (void)callHandler:(NSString *)handlerName data:(id)data responseCallback:(void(^)(id responseData))callback; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVKSession+RVA.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVKSession+RVA.h new file mode 100644 index 0000000..a19913b --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/RVKSession+RVA.h @@ -0,0 +1,13 @@ +// +// RVKSession+RVAService.h +// RVAService +// +// Created by chenwenhong on 15/8/26. +// Copyright (c) 2015年 Alipay. All rights reserved. +// +#import "RVASession.h" +@interface RVKSession (RVA) + +- (RVASession *)session; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/UINavigationController+RVALifecycle.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/UINavigationController+RVALifecycle.h new file mode 100644 index 0000000..31c6921 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/UINavigationController+RVALifecycle.h @@ -0,0 +1,29 @@ +// +// UINavigationController+RVALifecycle.h +// RVAService +// +// Created by chenwenhong on 15/8/21. +// Copyright (c) 2015年 Alipay. All rights reserved. +// + +#import + +@protocol RVAUINavigationControllerProtocol +- (void)rva_willShowViewController:(UIViewController *)viewController; + +- (void)rva_didShowViewController:(UIViewController *)viewController; + +- (void)rva_setViewControllers:(NSArray *)viewControllers animated:(BOOL)animated; + +- (void)rva_setViewControllers:(NSArray *)viewControllers; + +- (void)rva_popToViewController:(UIViewController *)viewController animated:(BOOL)animated; + +- (void)rva_popViewControllerAnimated:(BOOL)animated; + +- (void)rva_popToRootViewControllerAnimated:(BOOL)animated; +@end + +@interface UINavigationController (RVALifecycle) + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/UIViewController+RVALifecycle.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/UIViewController+RVALifecycle.h new file mode 100644 index 0000000..a806c91 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/UIViewController+RVALifecycle.h @@ -0,0 +1,58 @@ +// +// UIViewController+RVALifecycle.h +// RVAService +// +// Created by chenwenhong on 15/8/21. +// Copyright (c) 2015年 Alipay. All rights reserved. +// + +#import +#import "UINavigationController+RVALifecycle.h" + +@class RVAViewControllerProxy; +@class RVKScene; +@protocol RVKViewControllerProtocol; + +@interface UIViewController (RVALifecycle) + +/** + * @brief 得到proxy + * + * @date 2015-12-14 + * + * @return 返回proxy + */ +- (RVAViewControllerProxy *)viewControllerProxy; + +/** + * @brief Nebula的VC被创建 + * + * @date 2016-01-08 + * + * @return 无 + */ +- (void)nbViewControllerInit; + +/** + * @brief 自定义UA的后缀 + * + * @date 2016-01-08 + * + * @return 返回自定义的UA后缀 + */ +- (NSString *)nbUserAgentSuffix; + +/** + * @brief Nebula的View被加载,通常这里是您的初始化界面时机 + * + * @date 2015-12-14 + * + * @return 无 + */ +- (void)nbViewDidLoad; + +- (UINavigationController *)rva_navigationController; +- (UIView *)rva_navigationBar; + +@end + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/WKWebView+lifeCycle.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/WKWebView+lifeCycle.h new file mode 100644 index 0000000..813c96e --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Headers/WKWebView+lifeCycle.h @@ -0,0 +1,13 @@ +// +// WKWebView+lifeCycle.h +// TestWebKit +// +// Created by theone on 16/9/15. +// Copyright © 2016年 theone. All rights reserved. +// + +#import +#import + +@interface WKWebView (RVAlifeCycle) +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Info.plist b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Info.plist new file mode 100644 index 0000000..d8c5630 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverApp.framework/Info.plist @@ -0,0 +1,73 @@ + + + + + BuildMachineOSBuild + 20E241 + CFBundleDevelopmentRegion + English + CFBundleExecutable + AriverApp + CFBundleIdentifier + com.alipay.AriverApp + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + AriverApp + CFBundlePackageType + BNDL + CFBundleShortVersionString + 2.0.0.1-SNAPSHOT + CFBundleSignature + ???? + CFBundleSupportedPlatforms + + iPhoneOS + + CFBundleVersion + 1 + CFPlugInDynamicRegisterFunction + + CFPlugInDynamicRegistration + NO + CFPlugInFactories + + 00000000-0000-0000-0000-000000000000 + MyFactoryFunction + + CFPlugInTypes + + 00000000-0000-0000-0000-000000000000 + + 00000000-0000-0000-0000-000000000000 + + + CFPlugInUnloadFunction + + DTCompiler + com.apple.compilers.llvm.clang.1_0 + DTPlatformBuild + 18B79 + DTPlatformName + iphoneos + DTPlatformVersion + 14.2 + DTSDKBuild + 18B79 + DTSDKName + iphoneos14.2 + DTXcode + 1220 + DTXcodeBuild + 12B45b + MinimumOSVersion + 8.0 + NSHumanReadableCopyright + Copyright © 2013年 Alipay. All rights reserved. + UIDeviceFamily + + 1 + 2 + + + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverAuth.framework/AriverAuth b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverAuth.framework/AriverAuth new file mode 100644 index 0000000..df7449a Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverAuth.framework/AriverAuth differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverAuth.framework/Headers/RVPOpenAuthExtensionProtocol.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverAuth.framework/Headers/RVPOpenAuthExtensionProtocol.h new file mode 100644 index 0000000..ebe1f74 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverAuth.framework/Headers/RVPOpenAuthExtensionProtocol.h @@ -0,0 +1,32 @@ +// +// RVPOpenAuthExtensionProtocol.h +// AriverAuth +// +// Created by Klueze on 2020/2/18. +// Copyright © 2020 Alipay. All rights reserved. +// + +#ifndef RVPAuthProtocol_h +#define RVPAuthProtocol_h + +@class RVKContext; + +typedef void(^RVPAuthCompleteBlock)(BOOL authProcessed, id responseData); + +// Auth相关API的协议 +// 国际化小程序引入 +@protocol RVPOpenAuthExtensionProtocol + +/** +Auth方法统一入口 +所有授权 JSAPI 都会进入改方法调用,用于各接入方注入实现Auth流程的自定义 + +@param data JSAPI 调用传入的参数 +@param context JSAPI 调用的上下文 +@param completion 外部处理的回调,请务必将 authProcessed 设为 YES,并返回有效的 responseData,否则将进入默认授权流程 +*/ +- (void)authorizeWithData:(NSDictionary *)data context:(RVKContext *)context completion:(RVPAuthCompleteBlock)completion; + +@end + +#endif diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverAuth.framework/Headers/RVSAuthorizeService.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverAuth.framework/Headers/RVSAuthorizeService.h new file mode 100644 index 0000000..908a06e --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverAuth.framework/Headers/RVSAuthorizeService.h @@ -0,0 +1,106 @@ +// +// RVSAuthorizeService.h +// AriverDemo +// +// Created by theone on 2019/4/12. +// Copyright © 2019 alipay.com. All rights reserved. +// + +#import +#import + +@class openauthWalletAuthSkipResultPB; + +NS_ASSUME_NONNULL_BEGIN +@protocol RVSAuthorizeDialog +@required +- (void)addButton:(NSString *)buttonTitle actionBlock:(void(^)())actionBlock; +- (void)show; +@end + +@protocol RVSDialogDelegate +@required +- (void)dialogView:(UIView *)dialogView clickedButtonAtIndex:(NSInteger)buttonIndex; +@end + +@protocol RVSAuthView +@property(nonatomic, assign) BOOL isShowing; +- (void)dismiss; +- (void)setActionButtonDidClickBlock:(void (^)(void))block; +- (void)setCloseButtonDidDissmissBlock:(void (^)(void))block; +@end + +@protocol RVSAuthorizeService + +@required +/** + 带按钮标题的初始化方法。 + 注意 弹框视觉要求,当title和message中一个不存在时,必须设置为title,但不推荐只传title或message的情况,建议所有弹窗都带title和message + + @param title 标题 + @param message 消息内容 + @param delegate 协议对象 + @param buttonTitle 按钮标题列表 + @return AUNoticeDialog 实例 + */ +- (id)getDialogWithTitle:(NSString *)title + message:(NSString *)message + delegate:(id)delegate + cancelTitle:(NSString *)cancelTitle + confimTitle:(NSString *)confimTitle; + +- (id)getDialogWithTitle:(NSString *)title + message:(NSString *)message + appName:(NSString *)app + logo:(NSString *)logo + delegate:(id)delegate + cancelTitle:(NSString *)cancelTitle + confimTitle:(NSString *)confimTitle; + +//必须实现需要用来显示界面 +- (id)showInSuperview:(UIView *)superview + title:(NSString *)title + data:(NSDictionary *)data; + +@optional +- (BOOL)ta_use_native_share_config; +- (NSArray *)authorizationWhiteList; +//曝光埋点 +- (void)exposureLogWithSpmId:(NSString *)spmId bizCode:(NSString *)bizCode extParams4:(nullable NSDictionary *)param4 view:(NSObject *)view; +- (void)clickedLogWithSpmId:(NSString *)spmId bizCode:(NSString *)bizCode extParams4:(nullable NSDictionary *)param4 view:(NSObject *)view ; + +- (UIViewController *)currentVisibleViewController; + +- (NSArray *)ta_appx_rpc_white_cfg; +- (NSDictionary *)rpcAppKeyConfig; +- (void)dispatchRpcEventWithSession:(RVKSession *)session responseHeader:(NSDictionary *)responseHeader; + +//支付宝必须实现 +- (BOOL)isMiniServer; +- (NSString *)parentIdWithMiniServer; +- (BOOL)shouldUseNewGetAuthCode; + +// 当前VC是否可见,退出保活状态会出现不可见情况 +- (BOOL)isCurrentVCVisible:(UIViewController *)vc; + +- (void)authWithH5ModeParams:(openauthWalletAuthSkipResultPB *)params + extraParams:(NSDictionary *)extra // 需要透传更多的参数多业务实现方,两端对齐 + session:(RVKSession *)session + viewController:(UIViewController *)viewController + callback:(void(^)(id data))callback; + +- (id)currentApplication; +- (UINavigationController *)currentNavigationController; +- (BOOL)didSupportNewGetAuthCode; +- (void)prepareForNewAuthCode:(RVKContext *)context + session:(RVKSession *)session + callback:(void (^)(id responseData))callback; +- (void)showErrorViewWithParams:(NSDictionary *)params; +- (NSDictionary *)getTracerInfoFromScene:(RVKScene *)scene; +//当前地域标识,作为多语言判断标记 +- (NSString *)currentRegion; +- (NSString *)regionTypeMO;//澳门版静态地域标识 + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverAuth.framework/Headers/RVSOpenSettingProtocol.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverAuth.framework/Headers/RVSOpenSettingProtocol.h new file mode 100644 index 0000000..bcad3ed --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverAuth.framework/Headers/RVSOpenSettingProtocol.h @@ -0,0 +1,19 @@ +// +// TRVSOpenSettingProtocol.h +// AriverAuth +// +// Created by AllenHan on 2019/5/1. +// Copyright © 2019年 Alipay. All rights reserved. +// + +#import +#import +#import + +@protocol RVSOpenSettingProtocol +@required +- (void)openAuthSettingPage:(UIViewController *)currentPage + params:(NSDictionary *)params + callback:(RVKJsApiResponseCallbackBlock)callback; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverAuth.framework/Headers/RVSSandBoxService.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverAuth.framework/Headers/RVSSandBoxService.h new file mode 100644 index 0000000..acfef7f --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverAuth.framework/Headers/RVSSandBoxService.h @@ -0,0 +1,117 @@ +// +// RVSSandBoxService.h +// AriverDemo +// +// Created by theone on 2019/4/12. +// Copyright © 2019 alipay.com. All rights reserved. +// + +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +#define RVASandBoxAppIDKey @"_RVA_APPID" + +@protocol RVSStorageManagerDelegate + +@required + +/** + 存储数据,如果有登陆态概念请区分uid维度进行存储 + + @param obj + @param key + @return 是否成功 + */ +-(BOOL)setObject:(id)obj forKey:(NSString *)key; + + +/** + 读取数据,如果有登陆态概念请区分uid维度进行存储 + + @param key + @return obj支持数据类型NSNumber、NSString、NSData、NSDate、NSArray、NSDictionary,NSArray和NSDictionary + */ +-(id)objectForKey:(NSString*)key; + +/** + remove缓存,如果有登陆态概念请区分uid维度进行存储 + + @param key + @return 是否成功 + */ +-(BOOL)removeObject:(NSString *)key; + +/** + 清空缓存,如果有登陆态概念请区分uid维度进行存储 + + @return 是否成功 + */ +-(BOOL)clearStorage; + +/** + 返回所有缓存的key,如果有登陆态概念请区分uid维度进行存储 + + @return 返回所有缓存的key + */ +-(NSArray*)allStorageKeys; + +/** + 缓存已用的大小,如果有登陆态概念请区分uid维度进行存储 + + @return 缓存已用的大小 + */ +-(NSUInteger)storageSize; + +/** + path为小程序缓存的路径,缓存实现类必须支持在指定文件目录下存储数据,从而保证数据隔离 + + @param path path为小程序缓存的路径 + @return + */ +-(instancetype)initWithPath:(NSString*)path; + +@optional + +/** + 限制单条数据存储大小上限 + + @return + */ +- (NSUInteger)itemLimitSize; + +/** + 限制整体存储数据大小上限 + + @return + */ +- (NSUInteger)storageLimitSize; + +@end + + +@protocol RVSSandBox +@property (nonatomic,strong) NSString * appId; +@property (nonatomic,strong) NSArray * allStorageKeys; +@property (nonatomic,assign) NSUInteger storageSize; +@property (nonatomic,assign) NSUInteger itemLimitSize; +@property (nonatomic,assign) NSUInteger storageLimitSize; + +-(instancetype)initWith:(NSString*)appId storageManager:(id)storageManager; +-(BOOL)setObject:(id)obj forKey:(NSString *)key checkSize:(BOOL)checkSize; +-(id)objectForKey:(NSString*)key; +-(BOOL)removeObject:(NSString*)key; +-(BOOL)clearStorage; + +@end + + +#define RVS_TINY_APP_AUTHORIZE_STORAGE @"TINY_APP_AUTHORIZE_STORAGE" + +@protocol RVSSandBoxService +-(id)sandBox4AppId:(NSString*)appId; +@end + + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverAuth.framework/Headers/RVUAuthRpcService.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverAuth.framework/Headers/RVUAuthRpcService.h new file mode 100644 index 0000000..a7c3ba4 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverAuth.framework/Headers/RVUAuthRpcService.h @@ -0,0 +1,22 @@ +// +// RVUAuthRpcService.h +// AriverAuth +// +// Created by CaiXiaomin on 2019/5/28. +// Copyright © 2019 Alipay. All rights reserved. +// + +#ifndef RVUAuthRpcService_h +#define RVUAuthRpcService_h + +@class RVKContext; +typedef void(^rvsAuthcodeCallback)(id data); + +@protocol RVUAuthRpcService + +- (void)authWithParams:(NSDictionary *)params callback:(rvsAuthcodeCallback)callback; +- (void)auth:(RVKContext *)context withParams:(NSDictionary *)params callback:(rvsAuthcodeCallback)callback supportH5Mode:(BOOL)supportH5Mode; + +@end + +#endif /* RVUAuthRpcService_h */ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverAuth.framework/Headers/RVUExternalSupport.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverAuth.framework/Headers/RVUExternalSupport.h new file mode 100644 index 0000000..a092fb0 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverAuth.framework/Headers/RVUExternalSupport.h @@ -0,0 +1,117 @@ +// +// ExternalSupport.h +// ThreadMgrDemo +// +// Created by myy on 16/10/10. +// Copyright © 2016年 myy. All rights reserved. +// + +#import + + +// 该文件主要用来做解耦适配。 +// 情况:一些底层OC调用,框架底层需要监控起来,但是有些模块要独立输出,不依赖框架的库,不能直接调用框架的接口。 +// 方法:这些模块集成这个.h和.m文件,替换下面宏里ThisModuleName字符串为自己的模块名(区分大小写)。 +// 影响:没什么影响,这些模块还是独立输出,不需要任何改动。 +// 可能的疑问:这个文件的引入也算一定程度的耦合,但现实就是框架底层的任何接口修改都会导致大量依赖修改。 +#ifndef EX_MAIN_CALL +#define EX_MAIN_CALL +#ifdef __cplusplus +extern "C" { +#endif + +typedef void (*ExMainCallFuncType)(int bizType, const char* tag, double delayTime, enum NSOperationQueuePriority priority, dispatch_block_t block); + +#define EX_MAIN_CALL_DECLARE(module) \ + extern ExMainCallFuncType gExMainCallFunc_##module; \ + extern ExMainCallFuncType gExMainACallFunc_##module; \ + extern int gExMainCallBizType_##module; \ + extern void ExMainCall_##module(const char* tag, double delayTime, enum NSOperationQueuePriority priority, dispatch_block_t block); \ + extern void ExMainACall_##module(const char* tag, double delayTime, enum NSOperationQueuePriority priority, dispatch_block_t block); + + +#define EX_MAIN_CALL_DEFINE(module) \ + ExMainCallFuncType gExMainCallFunc_##module = 0; \ + ExMainCallFuncType gExMainACallFunc_##module = 0; \ + int gExMainCallBizType_##module = 0; \ + void ExMainCall_##module(const char* tag, double delayTime, enum NSOperationQueuePriority priority, dispatch_block_t block) \ + { \ + if(gExMainCallFunc_##module) \ + { \ + gExMainCallFunc_##module(gExMainCallBizType_##module, tag, delayTime, priority, block); \ + } \ + else if(delayTime <= 0) \ + { \ + if ([NSThread isMainThread]) \ + { \ + block(); \ + return; \ + } \ + dispatch_async(dispatch_get_main_queue(), block); \ + } \ + else \ + { \ + if(delayTime >= 1000000) delayTime /= NSEC_PER_SEC; \ + dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(delayTime * NSEC_PER_SEC)), dispatch_get_main_queue(), block); \ + } \ + } \ + void ExMainACall_##module(const char* tag, double delayTime, enum NSOperationQueuePriority priority, dispatch_block_t block) \ + { \ + if(gExMainACallFunc_##module) \ + { \ + gExMainACallFunc_##module(gExMainCallBizType_##module, tag, delayTime, priority, block); \ + } \ + else if(delayTime <= 0) \ + { \ + dispatch_async(dispatch_get_main_queue(), block); \ + } \ + else \ + { \ + if(delayTime >= 1000000) delayTime /= NSEC_PER_SEC; \ + dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(delayTime * NSEC_PER_SEC)), dispatch_get_main_queue(), block); \ + } \ + } + + +#define EX_MAIN_CALL_SETTING(module, func, funcA, bizType) \ + gExMainCallFunc_##module = (ExMainCallFuncType)func; \ + gExMainACallFunc_##module = (ExMainCallFuncType)funcA; \ + gExMainCallBizType_##module = (int)bizType; + +#ifdef __cplusplus +} +#endif +#endif // EX_MAIN_CALL + + +#ifdef __cplusplus +extern "C" { +#endif +// 模块相关主线程函数声明。 +//#error ThisModuleName需要替换为自己模块名(区分大小写),替换后注释该错误提示。------ (第1个替换)------ (20161012注:共4个替换) +EX_MAIN_CALL_DECLARE(ArviverAuth) +#ifdef __cplusplus +} +#endif + + +// ------------------ 调用函数:模块内统一使用该接口切换主线程。------------------ +// +// 功能:需要主线程执行block时调用。 +// 原理:如果外部设置了主线程切换替换函数,则调用外部函数;否则,还走系统默认的API调用。 +// 说明:主要做主线程使用的统一接管,监控和主线程性能分析定位问题使用,对使用者无性能等影响;使用模块,依然独立输出,不需要因为这个接口改动代码。 +// MAIN_CALL 和 MAINA_CALL的区别:(业务需要) +// MAIN_CALL - 如果主线程调用,block是同步调用的,不会异步;等同if([NSThread isMainThread])block(); +// MAINA_CALL - 如果主线程调用,block是异步调用的;等同dispatch_async(dispatch_get_main_queue(), block); +// 参数: +// tag 统一填__FUNCTION__ +// delayTime 延迟执行时间,单位:秒。不延迟填0即可。------- !!! 注意:单位是秒,精度为浮点数。 +// priority 优先级 同NSOperationQueuePriority定义默认填0优先级。 +// +//#error ThisModuleName需要替换为自己模块名(区分大小写),替换后注释该错误提示。------ (第2个替换)------ +#define MAIN_CALL ExMainCall_ArviverAuth // MAIN_CALL(tag, delayTime, priority, block) +//#error ThisModuleName需要替换为自己模块名(区分大小写),替换后注释该错误提示。------ (第3个替换)------ +#define MAINA_CALL ExMainACall_ArviverAuth // MAINA_CALL(tag, delayTime, priority, block) + + + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverAuth.framework/Headers/TRVSAuthCacheManager.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverAuth.framework/Headers/TRVSAuthCacheManager.h new file mode 100644 index 0000000..a2d2362 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverAuth.framework/Headers/TRVSAuthCacheManager.h @@ -0,0 +1,27 @@ +// +// TRVSAuthCacheManager.h +// AriverDemo +// +// Created by AllenHan on 2019/4/23. +// Copyright © 2019年 alipay.com. All rights reserved. +// + +#import + + +@interface TRVSAuthCacheManager : NSObject + ++ (TRVSAuthCacheManager *)sharedManager; + +#pragma mark - AccessToken ++ (void)cacheAccessTokenInfo:(NSString *)accessToken withKey:(NSString *)key; ++ (NSString *)getAccessTokenInfoWithKey:(NSString *)key; ++ (void)removeAccessTokenInfoWithKey:(NSString*)key; + +#pragma mark - Scope ++ (void)cacheScopeInfo:(NSArray *)scopes withKey:(NSString *)key; ++ (NSArray*)getScopesInfoWithKey:(NSString *)key; ++ (void)removeScopeInfoWithKey:(NSString *)key; + +@end + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverAuth.framework/Headers/TRVSAuthContext.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverAuth.framework/Headers/TRVSAuthContext.h new file mode 100644 index 0000000..459eb44 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverAuth.framework/Headers/TRVSAuthContext.h @@ -0,0 +1,80 @@ +// +// TRVSAuthContext.h +// AriverDemo +// +// Created by AllenHan on 2019/4/23. +// Copyright © 2019年 alipay.com. All rights reserved. +// + +#import +#import + +#define AliWML_PC_LICENSE_NET_ERROR @"PC_LICENSE_NET_ERROR" +#define AliWML_PC_UNSUPPORTED_API @"PC_UNSUPPORTED_API" +#define AliWML_PC_NO_LICENSE @"PC_NO_LICENSE" +#define AliWML_PC_PARAM_ERROR @"PC_PARAM_ERROR" +#define AliWML_PC_NO_APP_KEY @"PC_NO_APP_KEY" +#define AliWML_PC_SYS_ERROR @"PC_SYS_ERROR" +#define AliWML_PC_TOKEN_EXPIRED @"PC_TOKEN_EXPIRED" +#define AliWML_PC_USER_CANCEL @"PC_USER_CANCEL" +#define AliWML_PC_AUTHINFO_NET_ERROR @"PC_AUTHINFO_NET_ERROR" +#define AliWML_PC_TOKEN_NET_ERROR @"PC_TOKEN_NET_ERROR" + +// errorType +typedef NS_ENUM(NSUInteger, TRVSAuthErrorType) +{ + PC_ERROR_TYPE_SUCCESS = 0, // 调用成功 + PC_ERROR_TYPE_PARAM_ERROR = 1, // 参数错误 + PC_ERROR_TYPE_UNKNOWN = 2, // 未知错误 +}; + +typedef NS_ENUM(NSInteger, TRVSAuthStatus) { + TRVSAuthStatusNoAuth, + TRVSAuthStatusAuth, + TRVSAuthStatusUserCancle +}; + +typedef NS_ENUM(NSInteger, TRVSAuthRange) { + TRVSAuthRangeAccount, + TRVSAuthRangeDevice, + TRVSAuthRangeAll +}; + +@class TRVSAuthResult; +typedef void(^TRVSAuthCompleteBlock)(TRVSAuthResult *result); + +@interface TRVSAuthError : NSObject +// 错误类型 +@property (nonatomic, assign) TRVSAuthErrorType type; +// 错误码 (和具体操作相关) +@property (nonatomic, strong) NSString *code; +// 错误消息提示 +@property (nonatomic, strong) NSString *message; + ++ (TRVSAuthError *)errorWithType:(TRVSAuthErrorType)type code:(NSString *)code message:(NSString *)message; ++ (TRVSAuthError *)errorWithCode:(NSString *)code message:(NSString *)message; +@end + +@interface TRVSAuthResult : NSObject +@property (nonatomic, assign) BOOL isSuccess; +@property (nonatomic, strong) id responseData; +@property (nonatomic, strong) TRVSAuthError *error; +@property (nonatomic, copy) NSString *scopeName; +@end + + +@interface TRVSAuthContext : NSObject +@property (nonatomic, copy) NSString *mainAppId; +@property (nonatomic, copy) NSString *invokerAppId; +@property (nonatomic, copy) NSString *appKey; +@property (nonatomic, copy) NSString *accessToken; +@property (nonatomic, copy) NSString *authChannel; +@property (nonatomic, copy) NSString *scopeName; +@property (nonatomic, copy) NSString *scopeDisplayName; +@property (nonatomic, copy) NSString *pageName; +@property (nonatomic, assign) TRVSAuthRange authRange; +@property (nonatomic, weak) UIViewController *viewController; + +@property (nonatomic, assign) BOOL needSilenceAuth;//是否需要静默授权 +@end + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverAuth.framework/Headers/TRVSAuthManager.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverAuth.framework/Headers/TRVSAuthManager.h new file mode 100644 index 0000000..1d61ace --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverAuth.framework/Headers/TRVSAuthManager.h @@ -0,0 +1,50 @@ +// +// RVSAuthManager4TB.h +// AriverDemo +// +// Created by AllenHan on 2019/4/23. +// Copyright © 2019年 alipay.com. All rights reserved. +// + +#import +#import "TRVSAuthContext.h" +#import "TRVSScopeModel.h" + +#import + +#define TRVSAuthViewControllerKey @"TRVSAuthViewControllerKey" + +@interface TRVSAuthStorageInstance : NSObject +@property (nonatomic, copy) NSString *appId; +@property (nonatomic, copy) NSString *invokerAppId; +@property (nonatomic, copy) NSString *appKey; +@end + +typedef void(^TRVSGetAuthSettingComplete)(NSArray* models, NSError *error); +@interface TRVSAuthManager : NSObject + ++ (instancetype)sharedManager; + +#pragma mark - 授权主流程 ++ (void)startAuthorizeWithData:(NSDictionary *)data context:(RVKContext *)context callBack:(RVKJsApiResponseCallbackBlock)callBack completion:(TRVSAuthCompleteBlock)completion; ++ (void)userAuth:(TRVSAuthContext *)context invokeParams:(NSDictionary *)invokeParams completion:(TRVSAuthCompleteBlock)completion; + +#pragma mark - 授权信息 + +/** + 获取当前本地存储的授权状态,不会和服务端进行同步 + */ ++ (NSArray *)getLocalAuthSettingWithInstance:(TRVSAuthStorageInstance *)instance; + +/** + 获取当前的授权状态,会和服务端进行同步 + */ ++ (void)getCurrentAuthSettingWithInstance:(TRVSAuthStorageInstance *)instance completionBlock:(TRVSGetAuthSettingComplete)completion; + +/** + 更新当前的授权状态 + */ ++ (void)updateAuthInfo:(NSArray*)scopes forInstance:(TRVSAuthStorageInstance *)instance; + +@end + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverAuth.framework/Headers/TRVSAuthMtopError.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverAuth.framework/Headers/TRVSAuthMtopError.h new file mode 100644 index 0000000..fa7c3da --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverAuth.framework/Headers/TRVSAuthMtopError.h @@ -0,0 +1,18 @@ +// +// TRVSAuthMtopError.h +// AriverAuth +// +// Created by AllenHan on 2019/5/8. +// Copyright © 2019年 Alipay. All rights reserved. +// + +#import + + +@interface TRVSAuthMtopError : NSObject +@property (nonatomic, strong) NSError *oriError; +@property (nonatomic, copy) NSString *mtopErrorMsg; +@property (nonatomic, copy) NSString *mtopOriginalMsg; +@property (nonatomic, copy) NSString *mtopErrorCode; +@end + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverAuth.framework/Headers/TRVSAuthService.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverAuth.framework/Headers/TRVSAuthService.h new file mode 100644 index 0000000..dac4268 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverAuth.framework/Headers/TRVSAuthService.h @@ -0,0 +1,41 @@ +// +// TRVSAuthService.h +// AriverDemo +// +// Created by AllenHan on 2019/4/23. +// Copyright © 2019年 alipay.com. All rights reserved. +// + +#import + +typedef void(^TRVSAuthHandler)(NSDictionary *resultBizJson, NSError *error); +typedef void(^TRVSRequestCompletion)(NSDictionary *result, NSError *error); + +@class TRVSScopeModel; +@interface TRVSAuthService : NSObject + ++ (void)requestUserAuthSettingWithScopes:(NSArray*)scopes + appKey:(NSString *)appKey + completion:(TRVSRequestCompletion)completionBlock; + ++ (void)createNewAccessTokenWithMainAppId:(NSString *)mainAppId + invokerAppId:(NSString *)invokerAppId + scopeNames:(NSArray *)scopeNames + completion:(TRVSRequestCompletion)completionBlock; + ++ (void)updateAccessTokenWithAccessToken:(NSString *)accessToken + scopeDiffs:(NSDictionary*)diffs + appId:(NSString *)appId + appKey:(NSString *)appKey + invokerAppId:(NSString *)invokerAppId + completion:(TRVSRequestCompletion)completionBlock; + ++ (void)invalidAccessToken:(NSString *)accessToken + appKey:(NSString *)appKey + completion:(TRVSRequestCompletion)completionBlock; + ++ (void)checkValidAuthScope:(NSString *)scopeName + appKey:(NSString *)appKey + completion:(TRVSRequestCompletion)completionBlock; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverAuth.framework/Headers/TRVSAuthUtils.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverAuth.framework/Headers/TRVSAuthUtils.h new file mode 100644 index 0000000..a32eb46 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverAuth.framework/Headers/TRVSAuthUtils.h @@ -0,0 +1,50 @@ +// +// TRVSAuthUtils.h +// AriverDemo +// +// Created by AllenHan on 2019/4/23. +// Copyright © 2019年 alipay.com. All rights reserved. +// + +#import +#import "TRVSAuthContext.h" +#import + +#pragma mark - Monitor +#define TRVS_PageName @"Triver" +#define TRVS_MonitorPoint_Auth @"auth" +#define TRVS_MonitorPoint_AuthInfo @"auth_info" +#define TRVS_MonitorPoint_AuthToken @"auth_token" +#define TRVS_MonitorMsg_Server_Error @"服务端返回格式出错" + +@class TRVSScopeModel; +@interface TRVSAuthUtils : NSObject + +#pragma mark - UserID ++ (NSString *)getCurrentUserId; + +#pragma mark - AccessToken ++ (NSString *)getValidAccessTokenWithAppKey:(NSString *)appKey; ++ (TRVSAuthStatus)getScopeAuthStatuWithContext:(TRVSAuthContext *)context; ++ (NSString *)buildNewAccessTokenInfo:(NSString *)accessToken period:(NSString *)period; ++ (NSString *)getAuthTokenSavedKeyWithAppKey:(NSString *)appKey; ++ (NSString *)getValidAccessToken:(NSString *)accessTokenInfo; ++ (void)removeAccessTokenWithAppKey:(NSString *)appKey; + +#pragma mark - Scope; ++ (void)updateScope:(TRVSScopeModel *)scope appKey:(NSString *)appKey; ++ (void)saveScopes:(NSArray *)scopes appKey:(NSString *)appKey; ++ (NSArray *)getSavedScopeModelsForAppKey:(NSString *)appKey userId:(NSString *)userId authRange:(TRVSAuthRange)authRange; + +#pragma mark - Permission ++ (BOOL)needAuthForApp:(RVRApp *)app pluginId:(NSString *)pluginId; +/// @brief 判断是否是官方小程序 ++ (BOOL)offical4App:(RVRApp *)app pluginId:(NSString *)pluginId; +/// @brief 判断是否需要静默授权 ++ (BOOL)needSilenceAuth4App:(RVRApp *)app pluginId:(NSString *)pluginId; + +#pragma mark - downgrade ++ (BOOL)downgradePluginInfo; + +@end + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverAuth.framework/Headers/TRVSMtopServiceProtocol.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverAuth.framework/Headers/TRVSMtopServiceProtocol.h new file mode 100644 index 0000000..739db9f --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverAuth.framework/Headers/TRVSMtopServiceProtocol.h @@ -0,0 +1,55 @@ +// +// TRVSMtopServiceProtocol.h +// AriverDemo +// +// Created by AllenHan on 2019/4/30. +// Copyright © 2019年 alipay.com. All rights reserved. +// + +#import +#import "TRVSAuthMtopError.h" + +#define RVSMtopApiKeyName @"mtopApi" +#define RVSMtopVersionKeyName @"mtopVersion" +#define RVSMtopAppIdKeyName @"appId" +#define RVSMtopAppKeyKeyName @"appKey" +#define RVSMtopAccessTokenKeyName @"accessToken" +#define RVSMtopNeedLoginKeyName @"needLogin" +#define RVSMtopAppKeyName @"RVRApp" +#define RVSMtopPluginIdKeyName @"pluginId" + + +typedef void(^RVSMTOPRequestComplete)(BOOL success, NSDictionary *respJsons, TRVSAuthMtopError *error); +// 新的AuthCode失效错误码,在subCode中 +#define RVSTokenExpiredErrorNew @"TOPAUTH_ACCESSTOKEN_EXPIRED" +// 旧的AuthCode失效错误码,在Code中 +#define RVSTokenExpiredErrorOld @"FAIL_SYS_TOPAUTH_ACCESSTOKENEXPIRED_ERROR" + + +@protocol RVSMTOPServiceProtocol + +@required + +/** + 发起MTOP请求 + + @param basicParams 基础参数 + @param bizParams 业务参数 + @param isFramework 是否是框架发出 + @param completeBlock 完成回调 + */ +- (void)requestWithBasicParams:(NSDictionary *)basicParams + bizParams:(NSDictionary *)bizParams + isFramework:(BOOL)isFramework + completion:(RVSMTOPRequestComplete)completeBlock; + +@optional + +/** + 获取服务端当前时间戳 + */ +- (NSTimeInterval)currentServerTimeInterval; + +- (NSString *)getCurrentUserId; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverAuth.framework/Headers/TRVSScopeModel.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverAuth.framework/Headers/TRVSScopeModel.h new file mode 100644 index 0000000..a5457dd --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverAuth.framework/Headers/TRVSScopeModel.h @@ -0,0 +1,39 @@ +// +// TRVSScopeModel.h +// AriverDemo +// +// Created by AllenHan on 2019/4/24. +// Copyright © 2019年 alipay.com. All rights reserved. +// + +#import +#import "TRVSAuthContext.h" + + +#define TRVSScopeNameKey @"scopeName" +#define TRVSScopeDisplayNameKey @"displayName" +#define TRVSScopeAuthRangeKey @"authRange" +#define TRVSScopeAuthStatuKey @"authStatu" +#define TRVSScopeAuthDescKey @"authDesc" + +#define TRVSScopeAuth @"auth" +#define TRVSScopeNoAuth @"noAuth" +#define TRVSScopeUserCancle @"userCancle" + +#define TRVSAuthRangeDeviceType @"device" +#define TRVSAuthRangeAccountType @"taobaoAccount" + + +@interface TRVSScopeModel : NSObject + +@property (nonatomic, copy) NSString *displayName; +@property (nonatomic, copy) NSString *scopeName; +@property (nonatomic, copy) NSString *authDesc; +@property (nonatomic, assign) TRVSAuthRange authRange; +@property (nonatomic, assign) TRVSAuthStatus authStatus; + +- (instancetype)initWithDictionary:(NSDictionary *)dict; +- (NSDictionary *)toDictionary; + +@end + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverAuth.framework/Headers/TRVSSecurityStorageProtocol.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverAuth.framework/Headers/TRVSSecurityStorageProtocol.h new file mode 100644 index 0000000..7562a5d --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverAuth.framework/Headers/TRVSSecurityStorageProtocol.h @@ -0,0 +1,18 @@ +// +// TRVSSecurityStorageProtocol.h +// AriverDemo +// +// Created by AllenHan on 2019/4/30. +// Copyright © 2019年 alipay.com. All rights reserved. +// + +#import + +@protocol TRVSSecurityStorageProtocol + +@required +- (id)getContentWithKey:(NSString *)key baseType:(Class)baseType; +- (void)putContent:(id)content withKey:(NSString *)key baseType:(Class)baseType; +- (void)removeContentWithKey:(NSString *)key baseType:(Class)baseType; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverAuth.framework/Info.plist b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverAuth.framework/Info.plist new file mode 100644 index 0000000..8721d34 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverAuth.framework/Info.plist @@ -0,0 +1,73 @@ + + + + + BuildMachineOSBuild + 20E241 + CFBundleDevelopmentRegion + English + CFBundleExecutable + AriverAuth + CFBundleIdentifier + com.alipay.AriverAuth + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + AriverAuth + CFBundlePackageType + BNDL + CFBundleShortVersionString + 2.0.0.1-SNAPSHOT + CFBundleSignature + ???? + CFBundleSupportedPlatforms + + iPhoneOS + + CFBundleVersion + 1 + CFPlugInDynamicRegisterFunction + + CFPlugInDynamicRegistration + NO + CFPlugInFactories + + 00000000-0000-0000-0000-000000000000 + MyFactoryFunction + + CFPlugInTypes + + 00000000-0000-0000-0000-000000000000 + + 00000000-0000-0000-0000-000000000000 + + + CFPlugInUnloadFunction + + DTCompiler + com.apple.compilers.llvm.clang.1_0 + DTPlatformBuild + 18B79 + DTPlatformName + iphoneos + DTPlatformVersion + 14.2 + DTSDKBuild + 18B79 + DTSDKName + iphoneos14.2 + DTXcode + 1220 + DTXcodeBuild + 12B45b + MinimumOSVersion + 8.0 + NSHumanReadableCopyright + Copyright © 2013年 Alipay. All rights reserved. + UIDeviceFamily + + 1 + 2 + + + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverConfig.framework/AriverConfig b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverConfig.framework/AriverConfig new file mode 100644 index 0000000..c7136fd Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverConfig.framework/AriverConfig differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverConfig.framework/Headers/AriverConfig.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverConfig.framework/Headers/AriverConfig.h new file mode 100644 index 0000000..93dc515 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverConfig.framework/Headers/AriverConfig.h @@ -0,0 +1,14 @@ +// +// AriverConfig.h +// AriverConfig +// +// Created by theone on 2019/4/24. +// Copyright © 2019 Alipay. All rights reserved. +// + +#ifndef AriverConfig_h +#define AriverConfig_h + +#import + +#endif /* AriverConfig_h */ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverConfig.framework/Headers/RVCConfigService.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverConfig.framework/Headers/RVCConfigService.h new file mode 100644 index 0000000..043b87a --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverConfig.framework/Headers/RVCConfigService.h @@ -0,0 +1,104 @@ +// +// RVCConfigService.h +// AriverConfig +// +// Created by theone on 2019/4/24. +// Copyright © 2019 Alipay. All rights reserved. +// + +#import +#import +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +// App的rootViewController启动时的展示方式 +typedef NS_ENUM(NSInteger, RVCDTMicroApplicationLaunchMode) { + kRVCDTMicroApplicationLaunchModeClearTop, // 保留定义,暂时不支持。 + kRVCDTMicroApplicationLaunchModePushWithAnimation, // 有动画的Push方式展示。 + kRVCDTMicroApplicationLaunchModePushNoAnimation, // 无动画的Push方式展示。 + kRVCDTMicroApplicationLaunchModePresentWithAnimation, // 有动画的Present方式展示。 + kRVCDTMicroApplicationLaunchModePresentNoAnimation, // 无动画的Present方式展示。 + kRVCDTMicroApplicationLaunchModeFlipFromLeft, // 左侧弹出的Push方式展示。 + kRVCDTMicroApplicationLaunchModeFlipFromRight, // 右侧弹出的Push方式展示。 +}; + +//解除对于开关的耦合,将相应的开关配置协议写到这里,各个接入端,可以各自实现 +@protocol RVCConfigService +@required +-(NSArray *)internalAPIWhiteList; //[[[H5Configs sharedConfigs] internalAPIWhiteList] containsObject:method] +@optional +-(void)startApplication:(NSString *)appId + params:(NSDictionary *)mParams + launchMode:(RVCDTMicroApplicationLaunchMode )launchMode + sourceId:(NSString *)sourceId; +-(NSDictionary *)acAppForId:(NSString *)appId stageCode:(NSString *)stageCode; +-(BOOL)enableFilterRepeatSubpackageTask; + +//权限相关开关 +- (BOOL)downgradeJsApiPermissionCheck; +- (BOOL)downgradePermissionCheck; +- (NSArray *)webviewSudoList; +- (NSArray *)webviewJsapiWhiteList; +- (NSArray *)globleApiWhiteList; +- (BOOL)shouldGoSpdy; +- (NSArray *)forceGoSpdyBlackList; +- (NSArray *)ta_http_domain_blacklist; +- (NSArray *)ta_comp_permission_check_appid_whitelist; +- (NSArray *)ta_comp_permission_check_type_list; +- (NSArray *)ta_embedwebview_white_domain_list; +- (NSArray *)ta_embedwebview_white_domain_list_with_nb; +- (NSArray *)ta_embedwebview_white_appid_list_with_nb; +- (NSArray *)ta_embedwebview_inner_appId_black_list; +- (NSArray *)ta_close_webviewschemawhitelist; +- (NSArray *)ta_render_jsapi_blacklist; +- (NSString *)ta_ssl_app_id; +- (NSArray *)ta_use_tls_whitelist; +- (BOOL)ta_embedwebview_domain_newregex; +- (NSDictionary *)ta_webview_open_appidlist; +- (NSDictionary *)ta_common_storage:(NSString *)querykey; +- (BOOL )taLimitControl:(NSString*)appId; +- (NSArray *)taRequestProxylist; +- (NSDictionary *)taBanmpExtSchemelist; +- (BOOL)taRequestRequestHTTPBody; +// checkJSAPI 开关 +- (BOOL)ignoreCheckResult:(RVKScene *)page; +- (NSArray *)debugJsApiDomainWhitelist; +// 淘侧获取动态配置API +- (id)configByGroupName:(NSString *)groupName key:(NSString *)key defaultConfig:(id)defaultConfig isDefault:(nullable BOOL *)isDefault; + +//ali相关域名白名单 +- (NSArray *)aliWhitelist; +- (NSArray *)alipayWhitelist; +- (NSArray *)seriousAliWhitelist; + +//JSC相关 +//jsapi回调给前端时参数是否能支持nsdata->arraybuffer +- (BOOL)jsApiEnableArrayBuffer:(NSString *)jsApiName; +//给前端发puh消息时参数是否能支持nsdata->arraybuffer +- (BOOL)jsEventEnableArrayBuffer:(NSString *)jsEventName; +//js->native是否使用新的通道以支持arraybuffer->nadata +- (BOOL)jsApiEnableOptimizedChannel; + +//! 传递给appx前,对启动参数做修改 +- (void)handleStartupParamsBeforeGiveToAppx:(NSMutableDictionary *)mOptionsDict session:(RVKSession*)session; +//透传native的config至appx启动参数 +- (NSArray *)appxStartupParamConfigKeys; + +- (NSDictionary *)pluginPermission; + +//是否需要强制设置window的Interaction状态规避input问题建议返回NO +- (BOOL)shouldSetInteractionWithWaitRender:(double)wateRender; +//二方组件是否配置了止血版本 +- (NSString *)addPkgResStricklyMatchVersion:(NSString *)appId; + +//只给worker发的js事件是否需要发invocationStartEvent +- (BOOL)workerOnlyEventNeedDispatch; + +//通用的配置获取方法 +- (NSString *)configForKey:(NSString *)key; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverConfig.framework/Info.plist b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverConfig.framework/Info.plist new file mode 100644 index 0000000..34e12aa --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverConfig.framework/Info.plist @@ -0,0 +1,73 @@ + + + + + BuildMachineOSBuild + 20E241 + CFBundleDevelopmentRegion + English + CFBundleExecutable + AriverConfig + CFBundleIdentifier + com.alipay.AriverConfig + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + AriverConfig + CFBundlePackageType + BNDL + CFBundleShortVersionString + 2.0.0.1-SNAPSHOT + CFBundleSignature + ???? + CFBundleSupportedPlatforms + + iPhoneOS + + CFBundleVersion + 1 + CFPlugInDynamicRegisterFunction + + CFPlugInDynamicRegistration + NO + CFPlugInFactories + + 00000000-0000-0000-0000-000000000000 + MyFactoryFunction + + CFPlugInTypes + + 00000000-0000-0000-0000-000000000000 + + 00000000-0000-0000-0000-000000000000 + + + CFPlugInUnloadFunction + + DTCompiler + com.apple.compilers.llvm.clang.1_0 + DTPlatformBuild + 18B79 + DTPlatformName + iphoneos + DTPlatformVersion + 14.2 + DTSDKBuild + 18B79 + DTSDKName + iphoneos14.2 + DTXcode + 1220 + DTXcodeBuild + 12B45b + MinimumOSVersion + 8.0 + NSHumanReadableCopyright + Copyright © 2013年 Alipay. All rights reserved. + UIDeviceFamily + + 1 + 2 + + + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverDevice.framework/AriverDevice b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverDevice.framework/AriverDevice new file mode 100644 index 0000000..e87e099 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverDevice.framework/AriverDevice differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverDevice.framework/Info.plist b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverDevice.framework/Info.plist new file mode 100644 index 0000000..43e112f --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverDevice.framework/Info.plist @@ -0,0 +1,73 @@ + + + + + BuildMachineOSBuild + 20E241 + CFBundleDevelopmentRegion + English + CFBundleExecutable + AriverDevice + CFBundleIdentifier + com.alipay.AriverDevice + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + AriverDevice + CFBundlePackageType + BNDL + CFBundleShortVersionString + 2.0.0.1-SNAPSHOT + CFBundleSignature + ???? + CFBundleSupportedPlatforms + + iPhoneOS + + CFBundleVersion + 1 + CFPlugInDynamicRegisterFunction + + CFPlugInDynamicRegistration + NO + CFPlugInFactories + + 00000000-0000-0000-0000-000000000000 + MyFactoryFunction + + CFPlugInTypes + + 00000000-0000-0000-0000-000000000000 + + 00000000-0000-0000-0000-000000000000 + + + CFPlugInUnloadFunction + + DTCompiler + com.apple.compilers.llvm.clang.1_0 + DTPlatformBuild + 18B79 + DTPlatformName + iphoneos + DTPlatformVersion + 14.2 + DTSDKBuild + 18B79 + DTSDKName + iphoneos14.2 + DTXcode + 1220 + DTXcodeBuild + 12B45b + MinimumOSVersion + 8.0 + NSHumanReadableCopyright + Copyright © 2013年 Alipay. All rights reserved. + UIDeviceFamily + + 1 + 2 + + + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverDeviceCore.framework/AriverDeviceCore b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverDeviceCore.framework/AriverDeviceCore new file mode 100644 index 0000000..6660fd9 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverDeviceCore.framework/AriverDeviceCore differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverDeviceCore.framework/Headers/RVDeviceAccelerometer.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverDeviceCore.framework/Headers/RVDeviceAccelerometer.h new file mode 100644 index 0000000..1406eb0 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverDeviceCore.framework/Headers/RVDeviceAccelerometer.h @@ -0,0 +1,39 @@ +// +// RVDeviceAccelerometer.h +// AriverDeviceCore +// +// Created by ZQP on 2019/4/26. +// Copyright © 2019 Alipay. All rights reserved. +// + +#import +#import + +#define kExpandPropertyKey_Accelerometer @"kExpandPropertyKey_Accelerometer" +#define kExpandPropertyKey_IsWatchShake @"kExpandPropertyKey_IsWatchShake" +#define kExpandPropertyKey_WatchShakeCallback @"kExpandPropertyKey_WatchShakeCallback" +#define kExpandPropertyKey_IsMonitorAccelerometer @"kExpandPropertyKey_IsMonitorAccelerometer" +#define kExpandPropertyKey_Compass @"kExpandPropertyKey_Compass" +#define kExpandPropertyKey_IsWatchCompass @"kExpandPropertyKey_IsWatchCompass" +#define kExpandPropertyKey_WatchCompassCallback @"kExpandPropertyKey_WatchCompassCallback" +#define kExpandPropertyKey_Gyro @"kExpandPropertyKey_Gyro" +#define kExpandPropertyKey_IsWatchGyro @"kExpandPropertyKey_IsWatchGyro" +#define kExpandPropertyKey_WatchGyroCallback @"kExpandPropertyKey_WatchGyroCallback" + +typedef void (^RVDAccelerometerCallback)(id _Nullable data); + +NS_ASSUME_NONNULL_BEGIN + +@interface RVDeviceAccelerometer : NSObject + +- (void)watchAccelerationCompleteBlock:(RVDAccelerometerCallback)callback; + +- (void)clearWatchAcceleration; + +- (void)watchAccelerationWithInterval:(CGFloat)interval + shouldFilter:(BOOL)shouldFilter + callback:(CMAccelerometerHandler)callback; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverDeviceCore.framework/Headers/RVDeviceCompass.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverDeviceCore.framework/Headers/RVDeviceCompass.h new file mode 100644 index 0000000..2b19146 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverDeviceCore.framework/Headers/RVDeviceCompass.h @@ -0,0 +1,23 @@ +// +// RVDeviceCompass.h +// AriverDeviceCore +// +// Created by ZQP on 2019/4/26. +// Copyright © 2019 Alipay. All rights reserved. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +typedef void (^RVDeviceCompassCallback)(id data); + +@interface RVDeviceCompass : NSObject + +- (void)watchHeadingWithInterval:(CGFloat)interval callback:(RVDeviceCompassCallback)callback; + +- (void)clear; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverDeviceCore.framework/Headers/RVDeviceGyro.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverDeviceCore.framework/Headers/RVDeviceGyro.h new file mode 100644 index 0000000..2e0ab71 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverDeviceCore.framework/Headers/RVDeviceGyro.h @@ -0,0 +1,38 @@ +// +// RVDeviceGyro.h +// AriverDeviceCore +// +// Created by ZQP on 2019/4/26. +// Copyright © 2019 Alipay. All rights reserved. +// + +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +typedef void (^H5GyroResultCallback)(id data); + +/* + * + * @param alpha 设备绕 z 轴旋转方向,值从 0 到 360,单位是 °。 + * @param beta 设备绕 x 轴旋转方向,值从 -180 到 180,单位是 °。 + * @param gamma 设备绕 y 轴旋转方向,值从 -90 到 90,单位是 °。 + * @param compassHeading 指南针与正北方向的偏差角度。 + * @param compassAccuracy 设备的精确度(一般为10)。 + * + * @result 如果当前回调是否仍然有效,则返回 YES;否则返回 NO,会移除当前回调。 + */ +typedef BOOL (^H5GyroCallbackCallback)(double alpha, double beta, double gamma); + +@interface RVDeviceGyro : NSObject + +- (void)watchGyroWithInterval:(CGFloat)interval + callback:(H5GyroResultCallback)callback; + +- (void)clearWatchGyro; + + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverDeviceCore.framework/Headers/RVDeviceMotionManager.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverDeviceCore.framework/Headers/RVDeviceMotionManager.h new file mode 100644 index 0000000..90edb91 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverDeviceCore.framework/Headers/RVDeviceMotionManager.h @@ -0,0 +1,25 @@ +// +// RVDeviceMotionManager.h +// AriverDeviceCore +// +// Created by ZQP on 2019/4/26. +// Copyright © 2019 Alipay. All rights reserved. +// + +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +typedef void (^RVDeviceMotionResultCallback)(id data); + +@interface RVDeviceMotionManager : NSObject + +@property (nonatomic, readonly) CMMotionManager *motionManager; + +- (void)startDeviceMotionWithInterval:(NSTimeInterval)interval callback:(RVDeviceMotionResultCallback)callback; +- (void)stopDeviceMotion; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverDeviceCore.framework/Info.plist b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverDeviceCore.framework/Info.plist new file mode 100644 index 0000000..847d3b0 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverDeviceCore.framework/Info.plist @@ -0,0 +1,73 @@ + + + + + BuildMachineOSBuild + 20E241 + CFBundleDevelopmentRegion + English + CFBundleExecutable + AriverDeviceCore + CFBundleIdentifier + com.alipay.AriverDeviceCore + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + AriverDeviceCore + CFBundlePackageType + BNDL + CFBundleShortVersionString + 2.0.0.1-SNAPSHOT + CFBundleSignature + ???? + CFBundleSupportedPlatforms + + iPhoneOS + + CFBundleVersion + 1 + CFPlugInDynamicRegisterFunction + + CFPlugInDynamicRegistration + NO + CFPlugInFactories + + 00000000-0000-0000-0000-000000000000 + MyFactoryFunction + + CFPlugInTypes + + 00000000-0000-0000-0000-000000000000 + + 00000000-0000-0000-0000-000000000000 + + + CFPlugInUnloadFunction + + DTCompiler + com.apple.compilers.llvm.clang.1_0 + DTPlatformBuild + 18B79 + DTPlatformName + iphoneos + DTPlatformVersion + 14.2 + DTSDKBuild + 18B79 + DTSDKName + iphoneos14.2 + DTXcode + 1220 + DTXcodeBuild + 12B45b + MinimumOSVersion + 8.0 + NSHumanReadableCopyright + Copyright © 2013年 Alipay. All rights reserved. + UIDeviceFamily + + 1 + 2 + + + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverFileManager.framework/AriverFileManager b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverFileManager.framework/AriverFileManager new file mode 100644 index 0000000..0c15224 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverFileManager.framework/AriverFileManager differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverFileManager.framework/AriverFileManager.bundle/.gitignore b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverFileManager.framework/AriverFileManager.bundle/.gitignore new file mode 100644 index 0000000..e69de29 diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverFileManager.framework/Headers/RVFPathUtils.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverFileManager.framework/Headers/RVFPathUtils.h new file mode 100644 index 0000000..2cae5bc --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverFileManager.framework/Headers/RVFPathUtils.h @@ -0,0 +1,55 @@ +// +// RVFPathUtils.h +// AriverFileManager +// 地址转换类 +// Created by pingyang.yq on 2019/4/30. +// Copyright © 2019 Alipay. All rights reserved. +// + +#import + +typedef NS_ENUM(NSUInteger, RVFConvertFileType) { + RVFConvertFileTypeImage, + RVFConvertFileTypeVideo, + RVFConvertFileTypeAudio, + RVFConvertFileTypeOther +}; + +@interface RVFPathUtils : NSObject + +/** + 根据文件本地磁盘地址,获取APFilePath + + @param localPath 文件本地磁盘地址 + @param fileType 文件类型 + @return 格式化后的地址 + */ ++ (NSString *)getApFilePathFromLocal:(NSString *)localPath fileType:(RVFConvertFileType)fileType; + +/** + 根据APFilePath获取本地地址,从DB中读取 + @param apFilePath 虚拟地址 + */ ++ (NSString *)getLocalPathFromApFilePath:(NSString *)apFilePath; + +/** + 移动文件到小程序临时目录/Library/Caches/H5CustomFiles/tmp/MD5(appId),返回移动后的地址 + + @param fromPath 要移动的文件地址 + @param appId appid + @return 移动后的地址,移动失败 或者找不到文件 返回 nil + */ ++ (NSString *)moveFileToTinyappFoldFrom:(NSString *)fromPath appId:(NSString *)appId; + +/** + 移动文件到小程序临时目录/Library/Caches/H5CustomFiles/tmp/MD5(appId),返回移动后的地址 + 如果是插件,调用此方法,生成的地址会带上插件信息 + @param fromPath 要移动的文件地址 + @param appId appid 宿主id + @param pluginId pluginId 插件ID + @return 移动后的地址,移动失败 或者找不到文件 返回 nil + */ ++ (NSString *)moveFileToTinyappFoldFrom:(NSString *)fromPath appId:(NSString *)appId pluginId:(NSString *)pluginId; + +@end + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverFileManager.framework/Headers/RVFUtils.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverFileManager.framework/Headers/RVFUtils.h new file mode 100644 index 0000000..ab8fef2 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverFileManager.framework/Headers/RVFUtils.h @@ -0,0 +1,94 @@ +// +// RVFUtils.h +// AriverFileManager +// +// Created by pingyang.yq on 2019/4/29. +// Copyright © 2019 Alipay. All rights reserved. +// + +#import + +extern NSString *const RVFCommonUserId; +extern NSString *const RVFH5CustomFolderName; + +@class RVKSession; + +void RVFSafeCallback(RVKJsApiResponseCallbackBlock callback, id responseData); + +@interface RVFUtils : NSObject + +#pragma mark - 获取appid,如果是小程序直接读取appid,如果是插件,appid=pluginId+appId ++ (NSString *)appIdForPluginAndTinyApp:(NSDictionary *)originParam originAppId:(NSString *)originAppId; + +/// 根据插件ID和appID。获取用作当前文件存储的隔离ID +/// @param pluginId 插件ID +/// @param appId appID ++ (NSString *)appIdForPluginAndTinyAppWithPluginId:(NSString *)pluginId appId:(NSString *)appId; + +//获取H5主存储目录 H5CustomFiles ++ (NSString *)getCustomMainFlodPath; + +// 根据appId获取小程序用户目录 ++ (NSString *)getAppPathWithAppId:(NSString *)appId; +// 根据appId获取小程序或H5存储目录 ++ (NSString *)getAppSavedFlodNameWithAppId:(NSString *)appId; + +//获取根据appid获取小程序或H5 temp 目录 ++ (NSString *)getAppTempFlodNameWithAppId:(NSString *)appId; + ++ (NSString *)createApFilePathWithFileName:(NSString *)fileName + fileType:(NSString *)fileType; +//根据文件名称,type,fold生成文件本地地址 ++ (NSString *)createLocalFilePathWithFileName:(NSString *)fileName fileType:(NSString *)fileType foldName:(NSString *)foldName; + +// 单个文件的大小 ++ (float)fileSizeAtPath:(NSString *)path; +// 是否可读 ++ (BOOL)canReadWithWithAppId:(NSString *)appId path:(NSString *)path session:(RVKSession *)session; +// 是否可写 ++ (BOOL)canWriteWithWithAppId:(NSString *)appId path:(NSString *)path; +// 防止穿越 ++ (BOOL)hasDirTraversalWithPath:(NSString *)path; +// 获取tarPath ++ (NSString *)getAppTarPathWithSession:(RVKSession *)session; + + ++ (NSData *)fileDataWithTempFilePath:(NSString *)tempFilePath appId:(NSString*)appId; ++ (NSData *)fileDataWithApFilePath:(NSString *)apFilePath appId:(NSString*)appId; ++ (NSString *)fileTypeWithApFilePath:(NSString *)apFilePath appId:(NSString *)appId;//仅针对需要在本地存储video的实际格式时调用 ++ (float)folderSizeAtPath:(NSString *)path; + +// 获取物理地址用户文件虚拟地址 ++ (NSString *)getLocalURLWithAppId:(NSString *)appId path:(NSString *)path session:(RVKSession *)session; +#pragma mark - 统一存储相关 ++ (NSString *)getMapRelationVal:(NSString *)formalUrl; ++ (void)saveMapRelationToDB:(NSString *)key value:(NSString *)value; + +#pragma mark - 编码 +// 字符串转16进制字符串 ++ (NSString *)stringToHexStr:(NSString *)string; +// 16进制字符串转字符串 ++ (NSString *)hexStrToString:(NSString *)hexStr; +// NSData实例转化为hex string ++ (NSString *)dataToHexStr:(NSData *)data; +// 编码映射 ++ (NSStringEncoding)getEncodingType:(NSString *)encoding; +// 支持自定义默认编码的映射关系 ++ (NSStringEncoding)getEncodingType:(NSString *)encoding + defaultEncoding:(NSStringEncoding)defaultEncoding; + +#pragma mark - 日志 ++ (void)writeLogWithAppId:(NSString *)appId jsapiName:(NSString *)jsapiName time:(double)time isError:(BOOL)isError extParams:(NSDictionary *)extParams; + +#pragma mark - 工具 +// 获取map中对应的string值 ++ (NSString *)RVFStringForKey:(id)aKey dic:(NSDictionary *)dic; +// 获取map中对应的BOOL值 ++ (BOOL)RVFBoolForKey:(id)aKey dic:(NSDictionary *)dic; +// 获取imageData的contentType ++ (NSString *)contentTypeForImageData:(NSData *)data; + + + +@end + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverFileManager.framework/Headers/RVFileManagerDefine.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverFileManager.framework/Headers/RVFileManagerDefine.h new file mode 100644 index 0000000..6991ccf --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverFileManager.framework/Headers/RVFileManagerDefine.h @@ -0,0 +1,23 @@ +// +// RVFileManagerDefine.h +// AriverFileManager +// +// Created by pingyang.yq on 2019/5/8. +// Copyright © 2019 Alipay. All rights reserved. +// + +#ifndef RVFileManagerDefine_h +#define RVFileManagerDefine_h + +#define kRVF_FM_MaxFileSize 10 // MB 单个文件最大存储 +#define kRVF_FM_MaxFoldSize 50 // MB 单个小程序最大存储 + +#define kRVF_FM_UsrFileProtocol @"https://usr" +#define kRVF_FM_ResourceFileProtocol @"https://resource" + +#define kRVF_Error @"error" +#define kRVF_Error_Msg @"errorMessage" +#define kRVF_Unknown_Error_Msg @"未知错误" +#define kRVF_Success @"success" + +#endif /* RVFileManagerDefine_h */ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverFileManager.framework/Headers/RVFileManagerService.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverFileManager.framework/Headers/RVFileManagerService.h new file mode 100644 index 0000000..f7f5730 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverFileManager.framework/Headers/RVFileManagerService.h @@ -0,0 +1,56 @@ +// +// RVFConfigService.h +// AriverFileManager +// +// Created by pingyang.yq on 2019/4/29. +// Copyright © 2019 Alipay. All rights reserved. +// + +#import +#import + +NS_ASSUME_NONNULL_BEGIN + + +@protocol RVFileManagerService + +@required + +//传递userId,用作区分存储 +- (NSString *)userId; + +//统一存储相关,用来做文件的真实路径和虚拟路径映射 +- (void)saveMapRelationToDB:(NSString *)key value:(NSString *)value; +- (NSString *)getMapRelationVal:(NSString *)key; +- (void)removeMapRelationVal:(NSString *)key; +// 解压文件 +- (BOOL)UnzipOpenFile:(NSString *)zipFilePath fileTo:(NSString *)path overWrite:(BOOL)overwrite; + +@optional + +//钱包获取多媒体完整磁盘地址,不包含下载自定义存储在多媒体中的文件 +- (NSString *)getMultimediaPath:(NSString *)apFilePath; + +//钱包内实现,通过多媒体获取数据 +- (NSData *)getMultimediaDataWithApfilePath:(NSString *)apFilePath; + +//根据localId 获取到存在多媒体中的绝对路径,下载的文件存储在多媒体中 +- (NSString *)getFileAbsolutePathWithLocalId:(NSString *)localId; + +//钱包文件埋点 钱包内实现 +//ucId 文件调用 file 文件系统调用 fs_file extParams:如果是写文件,这里传读取当前存储大小的耗时间@{"readCost":'读耗时'} +- (void)writeFileLogWithAppId:(NSString *)appId ucId:(NSString *)ucId jsapiName:(NSString *)jsapiName time:(double)time extParams:(NSDictionary *)extParams; +//错误调用记录 文件系统调用 file_error extParams: {"errorCode" : 错误code,"errorMessage" : 描述} +- (void)writeErrorLogWithAppId:(NSString *)appId ucId:(NSString *)ucId jsapiName:(NSString *)jsapiName extParams:(NSDictionary *)extParams; + +// 判断 tar 路径是否不可访问 +- (BOOL)isTarPathInBlackList:(NSString *)path; + +#pragma mark - 文件存储 插件ID做隔离,读取不做隔离的白名单,格式为 id,id,id +- (NSString *)closedDistinguishFilePluginIds; +//是否关闭插件和宿主app文件隔离 +- (BOOL)closedDistinguishPluginFile; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverFileManager.framework/Headers/RVPBridgeExtension4GetFileInfo.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverFileManager.framework/Headers/RVPBridgeExtension4GetFileInfo.h new file mode 100644 index 0000000..a02371d --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverFileManager.framework/Headers/RVPBridgeExtension4GetFileInfo.h @@ -0,0 +1,16 @@ +// +// RVF4GetFileInfo.h +// AriverFileManager +// +// Created by pingyang.yq on 2019/4/29. +// Copyright © 2019 Alipay. All rights reserved. +// + +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +RVK_DEFINE_BRIDGEEXTENSION(RVPBridgeExtension4GetFileInfo) + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverFileManager.framework/Headers/RVPBridgeExtension4GetSavedFileInfo.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverFileManager.framework/Headers/RVPBridgeExtension4GetSavedFileInfo.h new file mode 100644 index 0000000..e5ad30b --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverFileManager.framework/Headers/RVPBridgeExtension4GetSavedFileInfo.h @@ -0,0 +1,16 @@ +// +// RVF4GetSavedFileInfo.h +// AriverFileManager +// +// Created by pingyang.yq on 2019/4/29. +// Copyright © 2019 Alipay. All rights reserved. +// + +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +RVK_DEFINE_BRIDGEEXTENSION(RVPBridgeExtension4GetSavedFileInfo) + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverFileManager.framework/Headers/RVPBridgeExtension4GetSavedFileList.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverFileManager.framework/Headers/RVPBridgeExtension4GetSavedFileList.h new file mode 100644 index 0000000..f01b9f6 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverFileManager.framework/Headers/RVPBridgeExtension4GetSavedFileList.h @@ -0,0 +1,16 @@ +// +// RVF4GetSavedFileList.h +// AriverFileManager +// +// Created by pingyang.yq on 2019/4/29. +// Copyright © 2019 Alipay. All rights reserved. +// + +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +RVK_DEFINE_BRIDGEEXTENSION(RVPBridgeExtension4GetSavedFileList) + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverFileManager.framework/Headers/RVPBridgeExtension4RemoveSavedFile.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverFileManager.framework/Headers/RVPBridgeExtension4RemoveSavedFile.h new file mode 100644 index 0000000..66316c7 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverFileManager.framework/Headers/RVPBridgeExtension4RemoveSavedFile.h @@ -0,0 +1,16 @@ +// +// RVF4RemoveSavedFile.h +// AriverFileManager +// +// Created by pingyang.yq on 2019/4/29. +// Copyright © 2019 Alipay. All rights reserved. +// + +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +RVK_DEFINE_BRIDGEEXTENSION(RVPBridgeExtension4RemoveSavedFile) + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverFileManager.framework/Headers/RVPBridgeExtension4SaveFile.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverFileManager.framework/Headers/RVPBridgeExtension4SaveFile.h new file mode 100644 index 0000000..c83afb3 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverFileManager.framework/Headers/RVPBridgeExtension4SaveFile.h @@ -0,0 +1,17 @@ +// +// RVF4SaveFile.h +// AriverFileManager +// +// Created by pingyang.yq on 2019/4/29. +// Copyright © 2019 Alipay. All rights reserved. +// + +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +RVK_DEFINE_BRIDGEEXTENSION(RVPBridgeExtension4SaveFile) + + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverFileManager.framework/Info.plist b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverFileManager.framework/Info.plist new file mode 100644 index 0000000..2cd7206 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverFileManager.framework/Info.plist @@ -0,0 +1,73 @@ + + + + + BuildMachineOSBuild + 20E241 + CFBundleDevelopmentRegion + English + CFBundleExecutable + AriverFileManager + CFBundleIdentifier + com.alipay.AriverFileManager + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + AriverFileManager + CFBundlePackageType + BNDL + CFBundleShortVersionString + 2.0.0.1-SNAPSHOT + CFBundleSignature + ???? + CFBundleSupportedPlatforms + + iPhoneOS + + CFBundleVersion + 1 + CFPlugInDynamicRegisterFunction + + CFPlugInDynamicRegistration + NO + CFPlugInFactories + + 00000000-0000-0000-0000-000000000000 + MyFactoryFunction + + CFPlugInTypes + + 00000000-0000-0000-0000-000000000000 + + 00000000-0000-0000-0000-000000000000 + + + CFPlugInUnloadFunction + + DTCompiler + com.apple.compilers.llvm.clang.1_0 + DTPlatformBuild + 18B79 + DTPlatformName + iphoneos + DTPlatformVersion + 14.2 + DTSDKBuild + 18B79 + DTSDKName + iphoneos14.2 + DTXcode + 1220 + DTXcodeBuild + 12B45b + MinimumOSVersion + 8.0 + NSHumanReadableCopyright + Copyright © 2013年 Alipay. All rights reserved. + UIDeviceFamily + + 1 + 2 + + + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/AriverKernel b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/AriverKernel new file mode 100644 index 0000000..22299ef Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/AriverKernel differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/AriverKernel.bundle/AriverKernel-Config.plist b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/AriverKernel.bundle/AriverKernel-Config.plist new file mode 100644 index 0000000..8a8f4ab --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/AriverKernel.bundle/AriverKernel-Config.plist @@ -0,0 +1,641 @@ + + + + + JsApiRuntime + + JsApis + + + name + RVTJsApi4PostMessage + jsApi + postMessage + + + name + RVTJsApi4CreateWorker + jsApi + createWorker + + + name + RVTJsApiHandler4MultiWorkerPostMessage + jsApi + multiWorkerPostMessage + + + name + RVTJsApiHandler4MultiWorkerTerminate + jsApi + multiWorkerTerminate + + + name + RVTJsApi4RegisterWorker + jsApi + registerWorker + + + jsApi + RVKExtensionJsapi + name + RVKExtensionJsapi + + + jsApi + internalAPI + name + RVPJsApiHandler4InternalAPI + + + name + RVPJsApiHandler4GetAuthCode + jsApi + getAuthorize + + + name + RVPJsApiHandler4GetAuthCode + jsApi + getBusinessAuth + + + name + RVPJsApiHandler4GetAuthCode + jsApi + getComponentAuth + + + name + RVPJsApiHandler4GetAuthCode + jsApi + getAuthCode + + + name + RVUJsApiHandler4TinyRpcForAppX + jsApi + appxrpc + + + name + RVUApiHandler4Rpc + jsApi + rpc + + + name + RVPJSApiHandler4ChangeTab + jsApi + switchTab + + + + PluginRuntime + + Plugins + + + name + RVPlugin4PagePerformance + + + name + RVPlugin4TinyAppPerformance + scope + session + events + + + name + - + useCapture + + + + + + name + RVTPlugin4ConcurrentWorker + scope + session + events + + + name + - + useCapture + + + + + + name + RVTPlugin4JSCCallHandler + scope + service + events + + + name + - + useCapture + + + + + + name + RVTPlugin4TinyAppParam + + + name + RVTPlugin4TinyAppResource + + + name + RVTPlugin4Session + scope + session + events + + + name + - + useCapture + NO + + + + + name + RVAPlugin4EventDispatch + scope + service + events + + + name + *.* + useCapture + + + + + + name + RVKPlugin4JSApiDispatch + events + + + name + invocation.start + useCapture + + + + + + name + RVSPlugin4JsApiPermission + scope + session + events + + + name + - + useCapture + + + + + + name + RVSPlugin4SessionBindVariables + scope + session + events + + + name + - + useCapture + + + + + + name + RVUPlugin4Authorization + scope + session + events + + + name + - + useCapture + + + + + + name + RVTPlugin4Component + scope + session + events + + + name + - + useCapture + + + + + + name + RVPPlugin4TabBar + scope + session + events + + + name + - + useCapture + + + + + + name + RVDPlugin4Debug + scope + session + events + + + name + - + useCapture + + + + + + name + RVDRemoteDebugPlugin4NetworkInfo + scope + session + events + + + name + - + useCapture + + + + + + name + RVDRemoteDebugPlugin4JSApiLog + scope + session + events + + + name + - + useCapture + + + + + + name + RVAPlugin4Canvas + scope + session + events + + + name + - + useCapture + + + + + + name + RVPPlugin4WebSocket + scope + session + events + + + name + - + useCapture + + + + + + name + RVDPlugin4Bugme + scope + session + events + + + name + - + useCapture + + + + + + + ExtensionRuntime + + Extensions + + + name + RVPBridgeExtension4HideKeyboard + + + name + RVPBridgeExtension4ScreenOrientation + + + name + RVLJsApiHandler4HandleLoggingAction + + + name + RVAExtension4WKCrash + + + name + RVKExtension4Screen + + + name + RVPExtension4Shake + + + name + RVPExtension4Wifi + + + name + RVPBridgeExtension4Wifi + + + name + RVPBridgeExtension4BLE + + + name + RVPBridgeExtension4Beacon + + + name + TRVSBridgeExtension4TBSessionKey + + + name + TRVSJsApiHandler4TBSessionKey + + + name + RVPBridgeExtension4LocationPicker + + + name + RVPBridgeExtension4CityPicker + + + name + RVPBridgeExtension4WifiInfo + + + name + RVPBridgeExtension4PhoneContact + + + name + RVPBridgeExtension4Shake + + + name + RVPBridgeExtension4Screen + + + name + RVPBridgeExtension4DeviceMotion + + + name + RVPBridgeExtension4Vibrate + + + name + RVPBridgeExtension4PhoneCall + + + name + RVPBridgeExtension4Battery + + + name + RVPBridgeExtension4Clipboard + + + name + RVPBridgeExtension4Jailbroken + + + name + RVPBridgeExtension4SystemInfo + + + name + RVPBridgeExtension4CarrierName + + + name + RVPBridgeExtension4PushWindow + + + name + RVPBridgeExtension4PopWindow + + + name + RVPBridgeExtension4Notify + + + name + RVPBridgeExtension4ShortCut + + + name + RVPBridgeExtenion4Environment + + + name + RVPBridgeExtension4GetNetworkType + + + name + RVPBridgeExtension4PackageManager + + + name + RVPBridgeExtension4CheckJSAPI + + + name + RVPBridgeExtension4AuthGuide + + + name + RVPBridgeExtension4SharedData + + + name + RVPBridgeExtension4GetFileInfo + + + name + RVPBridgeExtension4SaveFile + + + name + RVPBridgeExtension4GetSavedFileInfo + + + name + RVPBridgeExtension4GetSavedFileList + + + name + RVPBridgeExtension4RemoveSavedFile + + + name + RVPBridgeExtension4ChooseFileFromDisk + + + name + RVPBridgeExtension4SceneStackInfo + + + name + RVPBridgeExtension4AccountManager + + + name + RVDBridgeExtension4DebugConsole + + + name + RVDBridgeExtension4RemoteDebug + + + name + RVPBridgeExtension4WebSocket + + + name + RVPBridgeExtension4TradePay + + + name + RVPBridgeExtension4BLEPeripheral + + + name + RVPExtension4BLEPeripheral + + + name + RVPBridgeExtension4StartAudioRecord + + + name + RVPBridgeExtension4StopAudioRecord + + + name + RVPBridgeExtension4PauseAudioRecord + + + name + RVPBridgeExtension4ResumeAudioRecord + + + name + RVPBridgeExtension4CancelAudioRecord + + + name + RVSBridgeExtension4Permission + + + name + RVTBridgeExtensionInitialTraceDebug + + + name + RVTBridgeExtensionPostMethodTrace + + + name + RVTExtensionTraceDebugApp + + + name + RVTExtensionTraceDebugInvocation + + + name + RVTBridgeExtension4Worker + + + name + RVPBridgeExtension4Tabbar + + + name + RVPBridgeExtension4FileSystemManager + + + name + TinyTestExtension + + + name + Plugin4Cdp + + + name + RVPJsApiGetLocaleInfo + + + name + RVPJsApiGetLayoutDirection + + + + + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/AriverKernel.bundle/Ariver_version.json b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/AriverKernel.bundle/Ariver_version.json new file mode 100644 index 0000000..39893eb --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/AriverKernel.bundle/Ariver_version.json @@ -0,0 +1 @@ +{"version":"1.0.11.0"} diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/AriverKernel.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/AriverKernel.h new file mode 100644 index 0000000..cd66cc3 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/AriverKernel.h @@ -0,0 +1,60 @@ +// +// AriverKernel.h +// AriverKernel +// +// Created by hua.lu on 2019/3/25. +// Copyright © 2019 Alipay. All rights reserved. +// + +#ifndef AriverKernel_h +#define AriverKernel_h + + +#import +#import +#import + +#import +#import +#import +#import +#import + +#import + +#import +//#import +#import +#import +#import +#import +#import +#import +#import +#import + +#import +#import +#import +#import +#import +#import + +#import +#import +#import +#import +#import +#import +#import + +#import +#import +//#import +#import +#import +#import +#import + + +#endif /* AriverKernel_h */ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVAPage.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVAPage.h new file mode 100644 index 0000000..e7d6496 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVAPage.h @@ -0,0 +1,17 @@ +// +// RVAPage.h +// AriverKernel +// +// Created by theone on 2019/4/2. +// Copyright © 2019 Alipay. All rights reserved. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface RVAPage : RVKScene + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKApp.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKApp.h new file mode 100644 index 0000000..755fa43 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKApp.h @@ -0,0 +1,15 @@ +// +// RVKSession.h +// NebulaKernel +// +// Created by theone on 2018/8/28. +// Copyright © 2018年 Alipay. All rights reserved. +// + +#import "RVKNode.h" +#import "RVKSession.h" + +@interface RVKApp : RVKSession +@property(nonatomic, strong) RVKSessionParam *sessionParamOverride; +@property(nonatomic, assign) BOOL isRVKNode; +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKBridgeExtension.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKBridgeExtension.h new file mode 100644 index 0000000..b0ca689 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKBridgeExtension.h @@ -0,0 +1,112 @@ +// +// RVKBridgeExtension.h +// NebulaKernel +// +// Created by theone on 2018/9/27. +// Copyright © 2018年 Alipay. All rights reserved. +// + +#import "RVKBridgeMethodInfo.h" +#import "RVKDefines.h" +#import "RVKBridgeMethodInfoManager.h" +#import "RVKExtension.h" +#import "RVKJsApi.h" +#import "RVKPage.h" +#import "RVKScene.h" + +/*! + 使用RVKBridgeExtension来注册Jsapi,新增Extension继承自RVKBridgeExtension,一个Extension可以实现多个jsapi + * jsapi实现方法: + * 通过RVK_DEFINE_JSAPI宏在Extension中定义jsapi + * 参数说明 + * 第一个参数是jsapi的名称 + * 第二个jsapi实现对应的方法,需要指定每一个需要的参数名称以及类型,会按照参数名称和类型 + 从前端传入的字典中自动映射到对应的参数中,映射规则是按照参数名称从字典中取到对应的值 + 并且会做参数类型判断,如果类型不符合预期会直接回调前端参数错误 + 对于必填参数可以通过方法参数中指定nonnull nullable等来表示 + 该参数是否必填,如果必填项前端没有传入会直接提示入参错误 + 目前参数可以指定以下类型:@[@"NSString",@"NSNumber",@"NSDictionary",@"NSArray",@"NSDate",@"BOOL"] + * 第三个参数是是否支持重写,支持就是Y,不支持就是N + * 其他 + * 实现方可以直接拿到当前的Page对象和callback函数,无需自己在方法中添加 + * 示范 + ``` + //注册setTitle这个jsapi,不可复写,没有别名 + RVK_DEFINE_JSAPI(setTitle, setTitle:(NSString *)title bb:(NSString *)cc) + { + RVKScene *currentPage = page; + NSLog(@"====>%@",page); + callback(@{}); + } + + //注册setTitle这个jsapi,可复写,没有别名 + RVK_DEFINE_JSAPI(setTitle, setTitle:(NSString *)title bb:(NSString *)cc,Y) + { + RVKScene *currentPage = page; + NSLog(@"====>%@",page); + callback(@{}); + } + + //注册setTitle这个jsapi,可复写,别名setBizTitle + RVK_DEFINE_JSAPI(setTitle, setTitle:(NSString *)title bb:(NSString *)cc,Y,setBizTitle) + { + RVKScene *currentPage = page; + NSLog(@"====>%@",page); + callback(@{}); + } + ``` + */ + +@class RVKBridgeMethodInfo; + +NS_ASSUME_NONNULL_BEGIN + +/************************************** bridge **************************************/ +#define RVK_CONCAT2(A, B) A ## B +#define RVK_CONCAT(A, B) RVK_CONCAT2(A, B) + +#if !defined RVK_DYNAMIC +#if __has_attribute(objc_dynamic) +#define RVK_DYNAMIC __attribute__((objc_dynamic)) +#else +#define RVK_DYNAMIC +#endif +#endif + +#define _RVK_MAP_JSAPI(js_name, method,...) \ ++ (void)RVK_CONCAT(__RVK_export__, RVK_CONCAT(js_name, RVK_CONCAT(__LINE__, __COUNTER__))){ \ +RVKBridgeMethodInfoManager *manager = [RVKBridgeMethodInfoManager defaultMethodInfoManager];\ +RVKBridgeMethodInfo *info = [[RVKBridgeMethodInfo alloc] init];\ +info.jsName = @#js_name;\ +info.objectMethodName = @#method;\ +info.objectClsName = NSStringFromClass([self class]);\ +info.originOverrideAndAlias =@#__VA_ARGS__;\ +[manager addMethodInfo:info];\ +} + +#define RVK_MAP_JSAPI_INFO(js_name, method, args...) \ +_RVK_MAP_JSAPI(js_name,method,args) \ +- (void)method originParam:(NSDictionary *)originParam page:(RVKScene *)page callback:(RVKJsApiResponseCallbackBlock)callback RVK_DYNAMIC + +#define RVK_DEFINE_JSAPI(js_name, method, args...) \ +RVK_MAP_JSAPI_INFO(js_name, method,args) + +#define RVK_DEFINE_RVKBRIDGEEXTENSION(name) \ +@protocol NXEvent4##name \ +@end\ +@interface name : RVKExtension \ +@end\ + + +#define RVK_DEFINE_BRIDGEEXTENSION(name) \ +@protocol NXEvent4##name \ +@end\ +@interface name : RVKBridgeExtension \ +@end\ + +@protocol RVKBridgeExtensionProtocol +@end + +RVK_DEFINE_RVKBRIDGEEXTENSION(RVKBridgeExtension) + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKBridgeMethod.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKBridgeMethod.h new file mode 100755 index 0000000..9902845 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKBridgeMethod.h @@ -0,0 +1,30 @@ +// +// RVKBridgeMethod.h +// NebulaKernel +// +// Created by theone on 2018/9/27. +// Copyright © 2018年 Alipay. All rights reserved. +// + +#import + +typedef NS_ENUM(NSUInteger, RVKNullability) { + RVKNullabilityUnspecified, + RVKNullable, + RVKNonnullable, +}; + + +@interface RVKMethodArgument : NSObject + +@property (nonatomic, copy, readonly) NSString *type; +@property (nonatomic, readonly) RVKNullability nullability; +@property (nonatomic, readonly) BOOL unused; +@property (nonatomic, copy, readonly) NSString *name; + +@end + +NSString *RVKParseMethodSignature(const char *input, NSArray **arguments); +SEL selectorForType(NSString *type); + + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKBridgeMethodInfo.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKBridgeMethodInfo.h new file mode 100644 index 0000000..3fd30e1 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKBridgeMethodInfo.h @@ -0,0 +1,30 @@ +// +// RVKBridgeMethodInfo.h +// NebulaKernel +// +// Created by theone on 2018/9/27. +// Copyright © 2018年 Alipay. All rights reserved. +// + +#import + +@class RVKMethodArgument; + +NS_ASSUME_NONNULL_BEGIN + +@interface RVKBridgeMethodInfo : NSObject +@property(nonatomic, copy) NSString *jsName; +@property(nonatomic, copy) NSString *objectClsName; +@property(nonatomic, copy) NSString *objectMethodName; +@property(nonatomic, assign) SEL targetSel; +//当前JSapi的参数列表从字典中得到的映射列表 +@property(nonatomic, copy) NSArray *argumentNameList ; +//当前暴露的JSApi是否可以重写,默认是NO +@property(nonatomic, assign) BOOL canOverride; +//当前暴露的JSApi支持的别名 +@property(nonatomic, copy) NSString *alias; + +@property(nonatomic, copy) NSString *originOverrideAndAlias; +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKBridgeMethodInfoManager.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKBridgeMethodInfoManager.h new file mode 100644 index 0000000..ce0b70b --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKBridgeMethodInfoManager.h @@ -0,0 +1,20 @@ +// +// RVKBridgeMethodInfoManager.h +// NebulaKernel +// +// Created by theone on 2018/9/27. +// Copyright © 2018年 Alipay. All rights reserved. +// + +#import + +NS_ASSUME_NONNULL_BEGIN +@class RVKBridgeMethodInfo; + +@interface RVKBridgeMethodInfoManager : NSObject ++ (instancetype)defaultMethodInfoManager; +- (void)addMethodInfo:(RVKBridgeMethodInfo *)info; +- (RVKBridgeMethodInfo *)findBridgeMethodInfoWithJsapiName:(NSString *)jsapiName; +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKConfig.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKConfig.h new file mode 100644 index 0000000..43a024d --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKConfig.h @@ -0,0 +1,78 @@ +// +// RVKConfig.h +// NebulaPoseidon +// +// Created by chenwenhong on 15/10/12. +// Copyright © 2015年 Alipay. All rights reserved. +// + +#import + +@protocol RVKLoggerProtocol; +@class WKWebViewConfiguration; +@protocol RVKViewDelegate; +@protocol RVKRenderPreloadProtocol; + +@interface RVKConfig : NSObject + +@property(nonatomic, readonly, copy) NSString *sdkVersion; +@property(nonatomic, copy) NSString *pluginsBundleName; +@property(nonatomic, copy) NSString *extraPluginsFilePath; +@property(nonatomic, weak) id logger; +@property(nonatomic, strong) WKWebViewConfiguration *wkConfiguration; +@property(nonatomic, assign) BOOL shouldUseJSCInjctJS; +@property(nonatomic, assign) BOOL shouldSyncWKCookie; +//@property(nonatomic, assign) BOOL enableJsApiReapair; +//@property(nonatomic, assign) BOOL enableCheckReadPlist; +@property(nonatomic, assign) BOOL shouldUseNewMethodSyncWKCookie; +@property(nonatomic, assign) NSUInteger maxRouterUrlLogLength; +@property(nonatomic, assign) BOOL shouldCallJSAPIWithToken; +@property(nonatomic, assign) BOOL shouldCallJSAPIWithService; +@property(nonatomic, copy) NSString *rewriteBridgeContent; +@property(nonatomic, strong) NSArray *jsapiBlackList; //register jsapi black list +@property(nonatomic, strong) NSArray *pluginsBlackList; //register plugins black list +@property(nonatomic, strong) NSArray *extensionsBlackList; //register extensions black list +@property(nonatomic, assign) BOOL shouldUseUrlSchemeHandler; //iOS11 scheme handler +@property (nonatomic, assign) BOOL isAppDebugMode;// APP 是否为调试模式 + +@property (nonatomic, weak) NSThread *customURLProtocolThread; //CustomURLProtocol线程 + +@property(nonatomic, assign) BOOL shouldCancelInjctJS; +@property(nonatomic, assign) BOOL shouldThrowJSExcuteException; +@property(nonatomic, assign) BOOL shouldRVKViewDeallocUseMainThread; +@property(nonatomic, assign) BOOL forceKernelSubObjectMainThreadDealloc; +@property(nonatomic, strong) NSArray *subObjectMainThreadDeallocKernelNames; +@property(nonatomic, assign) BOOL shouldRedirectHSTS; +@property(nonatomic, weak) id rvkViewDelegate; +@property(nonatomic) Class rvkViewCls; +@property(nonatomic, assign) BOOL shouldCustomRunJavaScript; +@property(nonatomic, copy) NSString *customManageCookieRegx; +@property (nonatomic, assign) BOOL shouldLogInURLProtocol; +@property (nonatomic, assign) BOOL shouldFixAlertCrash; + +@property (nonatomic, strong) id preloadService; + ++ (instancetype)defaultConfig; + +//禁止创建实例 ++ (instancetype)alloc UNAVAILABLE_ATTRIBUTE; + +- (instancetype)init UNAVAILABLE_ATTRIBUTE; + +- (id)copy UNAVAILABLE_ATTRIBUTE; + ++ (instancetype)allocWithZone:(struct _NSZone *)zone UNAVAILABLE_ATTRIBUTE; + ++ (instancetype)new UNAVAILABLE_ATTRIBUTE; + +@end + +#ifdef __cplusplus +extern "C" { +#endif // __cplusplus + + RVKConfig * RVKConfigGet(); + +#ifdef __cplusplus +} +#endif // __cplusplus diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKConfigManager.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKConfigManager.h new file mode 100644 index 0000000..b3cb91e --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKConfigManager.h @@ -0,0 +1,70 @@ +// +// RVKConfigMgr.h +// Poseidon +// +// Created by chenwenhong on 14-8-11. +// Copyright (c) 2014年 Alipay. All rights reserved. +// + +#import + +@class RVKPluginConfig; +@class RVKJsApiConfig; + +@protocol RVKExtensionConfigManagerProtocol +@optional +- (BOOL)shouldLoadConfigMod:(NSString *)mod; +- (void)setExtraPermissionConfig:(NSDictionary *)config + apiName:(NSString *)apiName; +@end + +//配置管理类 +@interface RVKConfigManager : NSObject + +@property(nonatomic, weak) id configDelegate; + ++ (instancetype)sharedInstance; + +- (void)loadAllConfigs; + +// 动态注册配置模块 +- (void)registerConfigMod:(NSString *)mod; + + +/** + * @brief 所有插件配置对象列表 + * + * @date 2014-08-11 + * + * @return 返回插件配置对象列表 + */ +- (NSArray *)allPluginCfgs:(NSString *)scope; // RVKPluginConfig + +/** + * @brief 所有JsApi配置对象列表 + * + * @date 2014-08-20 + * + * @return 返回JsApi配置对象列表 + */ +- (NSArray *)allJsApiCfgs:(NSString *)scope; // RVKJsApiConfig + +- (void)registerPluginCfg:(RVKPluginConfig *)pluginCfg; + +- (void)unRegisterPluginCfg:(RVKPluginConfig *)pluginCfg; + +- (void)registerJsApiCfg:(RVKJsApiConfig *)jsApiCfg; + +- (void)unRegisterJsApiCfg:(RVKJsApiConfig *)jsApiCfg; + +- (void)registerComponentWithName:(NSString *)name clsName:(NSString *)clsName; +- (void)unRegisterComponentWithName:(NSString *)name; +- (NSDictionary *)components; + +- (void)loadPluginsWithConfig:(NSDictionary *)config; + +- (void)loadJsApisWithConfig:(NSDictionary *)config; + +- (void)loadComponents:(NSArray *)components; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKConfigMod.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKConfigMod.h new file mode 100644 index 0000000..0f4c4b9 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKConfigMod.h @@ -0,0 +1,28 @@ +// +// RVKExtensionConfig.h +// NebulaKernel +// +// Created by theone on 2019/1/18. +// Copyright © 2019 Alipay. All rights reserved. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +@protocol RVKConfigModProtocol +@optional +- (void)registerJsapis; +- (void)registerPlugins; +- (void)registerComponents; +- (void)registerExtensions; +@end + +@interface RVKConfigMod : NSObject +- (void)registerJsapiWithConfig:(NSDictionary *)dic; +- (void)registerPluginWithConfig:(NSDictionary *)dic; +- (void)registerComponentWithConfig:(NSDictionary *)dic; +- (void)registerExtensionWithConfig:(NSDictionary *)dic; +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKConnectionMonitor.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKConnectionMonitor.h new file mode 100644 index 0000000..6fd9f25 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKConnectionMonitor.h @@ -0,0 +1,18 @@ +// +// RVKConnectionMonitor.h +// Poseidon +// +// Created by chenwenhong on 14-10-14. +// Copyright (c) 2014年 Alipay. All rights reserved. +// + +#import + +@class RVKConnectionProfile; + +//监控 +@interface RVKConnectionMonitor : NSObject + +@end + + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKConnectionProfile.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKConnectionProfile.h new file mode 100644 index 0000000..9f43a89 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKConnectionProfile.h @@ -0,0 +1,93 @@ +// +// RVKConnectionProfile.h +// Poseidon +// +// Created by chenwenhong on 14-10-14. +// Copyright (c) 2014年 Alipay. All rights reserved. +// + +#import + +//访问路由 +@interface RVKRouter : NSObject + +@property(nonatomic, copy) NSString *url; +@property(nonatomic, copy) NSString *redirectUrl; +@property(nonatomic, assign) NSInteger statusCode; +@property(nonatomic, weak) RVKRouter *previousRouter; +@property(nonatomic, strong) RVKRouter *nextRouter; +@property(nonatomic, weak) RVKRouter *lastRouter; +@property(nonatomic, strong) NSDate *startDate; +@property(nonatomic, strong) NSDate *finishDate; + +- (instancetype)initWithUrl:(NSString *)url statusCode:(NSInteger)statusCode redirectUrl:(NSString *)redirectUrl; + +- (void)addRouter:(RVKRouter *)nextRouter; + +@end + +@interface RVKConnectionProfile : NSObject + +@property(nonatomic, copy) NSString *channelId; // 通道ID +@property(nonatomic, strong) NSDate *startDate; // 请求发起时间 +@property(nonatomic, strong) NSDate *firstByteDate; // 首字节时间 +@property(nonatomic, strong) NSDate *lastByteDate; // 尾字时间 +@property(nonatomic, strong) NSDate *finishLoadDate; // 完成时间 + +@property(nonatomic, assign) double reqStartTime; +@property(nonatomic, assign) double firstByteTime; +@property(nonatomic, assign) double lastByteTime; +@property(nonatomic, assign) double finishLoadTime; + +@property(nonatomic, strong) NSMutableArray *requestURLs; // 请求的所有url +@property(nonatomic, strong) NSMutableArray *arrProfiles; // 请求的所有profile + +@property(nonatomic, assign) int statusCode; // 当前statusCode,不会merge +@property(nonatomic, assign) int statusCode105Number; // 105个数 +@property(nonatomic, assign) int statusCode302Number; // 302个数 +@property(nonatomic, assign) int statusCode304Number; // 304个数 +@property(nonatomic, assign) int statusCode300_399Number; // 300+个数(不包含304) +@property(nonatomic, assign) int statusCode404Number; // 404个数 +@property(nonatomic, assign) int statusCode400_499Number; // 400+个数 +@property(nonatomic, assign) int statusCode500_599Number; // 500+个数 +@property(nonatomic, assign) int statusCode1000Number; // 1000个数 + +@property(nonatomic, assign) int htmlNumber; // html页面个数 +@property(nonatomic, assign) int cssNumber; // css文件个数 +@property(nonatomic, assign) int jsNumber; // js文件个数 +@property(nonatomic, assign) int imageNumber; // 图片资源个数 +@property(nonatomic, assign) int otherNumber; // 其他资源个数 +@property(nonatomic, assign) int totalNumber; // 请求总数 + +@property(nonatomic, assign) float mainDocHtmlSize; // 主页面html大小 +@property(nonatomic, assign) float htmlTotalSize; // html文档总大小 +@property(nonatomic, assign) float cssTotalSize; // css总大小 +@property(nonatomic, assign) float jsTotalSize; // js总大小 +@property(nonatomic, assign) float imageTotalSize; // 图片总大小 +@property(nonatomic, assign) float otherTotalSize; // 其他资源总大小 +@property(nonatomic, assign) float totalSize; // 总大小 + +@property(nonatomic, assign) int resourceSize50kNumber; // 资源大于50K的个数 +@property(nonatomic, assign) int resourceSize200kNumber; // 资源大于200K的个数 +@property(nonatomic, assign) int syncAjaxNumber; // 同步ajax请求个数 + +@property(nonatomic, assign) int imageSize60kNumber; // 图片大于60K的个数 +@property(nonatomic, strong) NSMutableArray *imageSize60kUrls; // 图片超60k的urls +@property(nonatomic, strong) NSMutableArray *resourceSize200kUrls; // 资源超200k的urls + +@property(nonatomic, assign) BOOL isXHR; +@property(nonatomic, assign) BOOL isMainDoc; +@property(nonatomic, strong) RVKRouter *router; +@property(nonatomic, strong) NSString *gzip; +@property(nonatomic, strong) NSString *contentType; + +@property(nonatomic, strong) NSDictionary *netInfo; // 网络链路埋点 +@property (nonatomic, assign) BOOL isLocal; //通过X-LocalRes判断是否为离线请求 + +- (void)reset; // 重置 + +- (void)merge:(RVKConnectionProfile *)profile; // 除了startDate,startTime,status + +- (void)printProfile; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKContext+RVKAdapter.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKContext+RVKAdapter.h new file mode 100644 index 0000000..07b10b5 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKContext+RVKAdapter.h @@ -0,0 +1,24 @@ +// +// RVKContext+NXKAdapter.h +// NebulaKernel +// +// Created by theone on 2018/9/9. +// Copyright © 2018年 Alipay. All rights reserved. +// + +#import + +@class RVAViewControllerProxy; +@class RVKSession; +@class RVKScene; + +@interface RVKContext (NXKAdapter) +- (UIViewController *)currentViewController; + +- (RVAViewControllerProxy *)currentViewControllerProxy; + +- (RVKSession *)currentSession; + +- (RVKScene *)currentScene; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKContext.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKContext.h new file mode 100644 index 0000000..815a7ad --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKContext.h @@ -0,0 +1,30 @@ +// +// RVKContext.h +// Poseidon +// +// Created by chenwenhong on 14/7/21. +// Copyright (c) 2014年 Alipay. All rights reserved. +// + +#import + +@class RVKEvent; + +//上下文对象 +@interface RVKContext : NSObject + +@property(nonatomic, readonly, weak) RVKEvent *event; +@property(nonatomic, readonly, strong) NSArray *eventTargetList; // 事件链路 + +/** + * @brief 创建一个上下文对象 + * + * @date 2014-08-20 + * + * @param eventTargetList 事件链路 + * + * @return 返回一个上下文对象 + */ ++ (instancetype)contextWithEvent:(RVKEvent *)event eventTargetList:(NSArray *)eventTargetList; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKDefine.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKDefine.h new file mode 100644 index 0000000..9ee4acd --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKDefine.h @@ -0,0 +1,172 @@ +// +// RVKDefine.h +// Poseidon +// +// Created by chenwenhong on 14/7/25. +// Copyright (c) 2014年 Alipay. All rights reserved. +// + +#import + +typedef NS_ENUM(NSUInteger, RVKEventPhase) { + RVKEventPhase_Capture, + RVKEventPhase_Target, + RVKEventPhase_Bubbling, +}; + +typedef NS_ENUM(NSInteger, RVKPluginPriority) { + RVKPluginPriority_High = 2, + RVKPluginPriority_Default = 0, + RVKPluginPriority_Low = -2, +}; + +#define kRVKAriverBundlePath @"AriverKernel.bundle" +#define kRVKAriverConfigFileName @"AriverKernel-Config.plist" +#define kRVKBundleName [RVKConfigGet() pluginsBundleName] +#define kJSBridgeFileName @"h5_bridge" +#define kJSPerformanceFileName @"h5_performance" +#define kJSDelegateGeoFileName @"h5_delegateGeo" +#define kJSShareFileName @"h5_share" + +#define kJSBridgeFileReplaceString @"\"JS_BRIDGE_JS_***_REPLACE_STRING_***_SJ_EGDIRB_SJ\"" +#define kJSBridgeFileReplaceVariable @"\"H5_BRIDGE_JS_REPLACE_STRING\"" +#define kRVKScope_Proxy @"proxy" // global级别 +#define kRVKScope_Service @"service" // global级别 +#define kRVKScope_Session @"session" // global级别,对所有session生效 +#define kRVKScope_Scene @"scene" // global级别,对所有scene生效 + +// proxy--request的headers中包含以下key会走拦截 +#define kRVKProxyRequestHeaderKey @"kRVKProxyRequestHeaderKey" +#define kRVKProxyRequestHeaderKey1 @"kRVKProxyRequestHeaderKey1" +// ChannelId(id获取优先级:header > ua) +#define kRVKProxyRequestHeaderChannelIdKey @"kRVKProxyRequestHeaderChannelIdKey" // --> 同一个页面配置相同的ChannelId + +#define kRVKProxyRequestFromSDK @"Ariver" + +#define KRVKWKFakePersistentCookie @"KRVKWKFAKEPERSISTENTCOOKIE" +#define KRVKWKSharedCookies @"KRVKWKSharedCookies" +#define KRVKDocumentHref @"document.location.href" +#define KRVKMainUrlFallback @"KRVKMainUrlFallback" +#define KRVKUrlFromHttpRequest @"KRVKUrlFromHttpRequest" + +//*******************************Events***************************// +#define kEvent_All @"*.*" +#define kEvent_None @"-" + +//**********************Application Events************************// +#define kEvent_Application_Start @"application.start" +#define kEvent_Application_Pause @"application.pause" +#define kEvent_Application_Resume @"application.resume" +#define kEvent_Application_Exit @"application.exit" +#define kEvent_Application_All @"application.*" + +//**********************Session Events************************// +#define kEvent_Session_Create @"session.create" +#define kEvent_Session_Destroy @"session.destroy" +#define kEvent_Session_All @"session.*" +#define kEvent_Session_CloseClicked @"session.clickedClose" + +//**********************Scene Events************************// +#define kEvent_Scene_InitParams @"scene.initParams" +#define kEvent_Scene_Create @"scene.create" +#define kEvent_Scene_Appear_Before @"scene.appear.before" +#define kEvent_Scene_Appear_After @"scene.appear.after" +#define kEvent_Scene_Load @"scene.load" +#define kEvent_Scene_Didload @"scene.didload" +#define kEvent_Scene_Ready @"scene.ready" +#define kEvent_Scene_Layout @"scene.layout" +#define kEvent_Scene_DidUnload @"scene.didunload" +#define kEvent_Scene_Disappear_Before @"scene.disappear.before" +#define kEvent_Scene_Disappear_After @"scene.disappear.after" +#define kEvent_Scene_Destroy_Before @"scene.destroy.before" +#define kEvent_Scene_Destroy @"scene.destroy" +#define kEvent_Scene_All @"scene.*" +#define kEvent_Scene_Start_FirstRequest @"scene.start.firstrequest" // 监听该事件,可以调用preventDefault阻止默认行为(默认会自动加载第一个url) + +//**********************View Events************************// +#define kEvent_View_Create @"view.create" +#define kEvent_View_Resize @"view.resize" +#define kEvent_View_Destroy @"view.destroy" +#define kEvent_View_Config @"view.config" +#define kEvent_View_Inject_JS @"view.inject.js" +#define kEvent_View_Show_Panel @"view.show.panel" +#define kEvent_View_Reload_Fail @"view.reload.fail" //WK进程crash,重试几次后依然失败的事件 +#define kEvent_View_All @"view.*" + +//**********************Page Events************************// +#define kEvent_Page_Create @"page.create" +#define kEvent_Page_Load_Start @"page.load.start" +#define kEvent_Page_Load_FirstByte @"page.load.firstbyte" +#define kEvent_Page_Load_Progress @"page.load.progress" +#define kEvent_Page_Load_DomReady @"page.load.domready" +#define kEvent_Page_Load_Complete @"page.load.complete" +#define kEvent_Page_Load_Error @"page.load.error" +#define kEvent_Page_Destroy @"page.destroy" +#define kEvent_Page_All @"page.*" + +//**********************Navigation Events***********************// +#define kEvent_Navigation_Start @"navigation.start" // 监听该事件,可以调用preventDefault阻止默认行为(默认是将要开始加载请求),若阻止了,则不会进行加载 +#define kEvent_Navigation_Complete @"navigation.complete" +#define kEvent_Navigation_Error @"navigation.error" +#define kEvent_Navigation_All @"navigation.*" + +//**********************Invocation Events***********************// +#define kEvent_Invocation_Invocation_Before @"invocation.invoke.before" // 监听该事件,可以阻止事件 + +#define kEvent_Invocation_Event_Start @"invocation.event.start" // 监听该事件,可以调用preventDefault阻止默认行为(默认是询问是否可以执行),若阻止了,则不会往下执行调用 +#define kEvent_Invocation_Start @"invocation.start" // 监听该事件,可以调用preventDefault阻止默认行为(默认是询问是否可以执行),若阻止了,则不会往下执行调用 +#define kEvent_Invocation_Permit @"invocation.permit" // 监听该事件,可以调用preventDefault阻止默认行为(默认是询问是否可以执行),若阻止了,则不会往下执行调用 10.1.58 专用于JSAPI权限管控专用 +#define kEvent_Invocation_Invoke @"invocation.invoke" // 监听该事件,可以调用preventDefault阻止默认行为(默认是将要开始执行方法),若要自定义执行方法,则需要执行`responseCallback`将结果回调给页面 +#define kEvent_Invocation_Complete @"invocation.complete" +#define kEvent_Invocation_Error @"invocation.error" +#define kEvent_Invocation_All @"invocation.*" + +//**********************Proxy Events***********************// +#define kEvent_Proxy_Request_Start_Handler @"proxy.request.start.handle" // 监听该事件,可以调用preventDefault阻止默认行为(默认是将要开始加载请求),如阻止了,则不会进行加载;若要自定义请求,则可以设置`request`或者设置其headers +#define kEvent_Proxy_Request_Start_Dest @"proxy.request.start.dest" +#define kEvent_Proxy_Request_Response_Handler @"proxy.request.response.handle" // 监听该事件,可以调用preventDefault阻止默认行为(默认是继续加载请求),若阻止了默认行为,则可以设置`willRedirectRequest`、并会重定向到当前的`request`(一般用途是处理登录后重新发出请求) +#define kEvent_Proxy_Request_ReceiveResponse @"proxy.request.response.receive" // 监听该事件,可以处理`response`,比如修改或者新增headers +#define kEvent_Proxy_Request_Redirect_Before @"proxy.request.redirect.before" +#define kEvent_Proxy_Request_ReceiveData @"proxy.request.data.receive" // 监听该事件,可以处理`willHoldReceiveData`和`reveiceData`,如果willHoldReceiveData=YES,则数据会被暂时持有在内存 处理:分段data,处理过程中不会response已有的receive data +#define kEvent_Proxy_Request_FinishReceiveData @"proxy.request.data.finish" // 监听该事件,可以处理`receiveData` 处理:完整data,并response回去 +#define kEvent_Proxy_Request_Finish @"proxy.request.finish" +#define kEvent_Proxy_Request_Finish_Metrics @"proxy.request.finish.metrics" +#define kEvent_Proxy_Request_Cancel @"proxy.request.cancel" //请求取消事件 + + +//**********************ProxyMonitor Events***********************// +#define kEvent_ProxyMonitor_Report_Profile @"proxy.monitor.report.profile" + + +//**********************Monitor Events***********************// +#define kEvent_Monitor_Log_Before @"monitor.log.before" + +//**********************Message Handler***********************// + +#define KRVKBRIDGEMESSAGEHANDLER @"PSDBRIDGEMESSAGEHANDLER" +#define KRVKBRIDGEDOMREADY @"PSDBRIDGEDOMREADY" +#define KRVKXMLHTTPREQUESTMESSAGE @"PSDXMLHTTPREQUESTMESSAGE" +#define KRVKXNEBULAXMLHTTPREQUEST @"X-NEBULAXMLHTTPREQUEST" +#define KRVKXMSGID @"msgId" +#define KRVKXMSGCOOKIE @"msgCookie" +#define KRVKXMSGMAINURL @"msgMainUrl" +#define KRVKXMSGVAL @"val" +#define KRVKXMSGTYPE @"type" +#define KRVKXMSGENCTYPE @"FormEnctype" +#define KRVKXMSGACCEPTCHARSET @"AcceptCharset" +#define KRVKXMSGDOCUMENTCHARSET @"DocumentCharset" +#define KRVKXMSGISSTREAM @"IsStream" +#define KRVKXMSGNAME @"name" +#define KRVKXMSGVALUE @"value" +#define KRVKFORMENCTYPEOFURLENCODE @"application/x-www-form-urlencoded" +#define KRVKFORMENCTYPEOFPLAIN @"text/plain" +#define kRVKSceneInjectRequest @"kRVKSceneInjectRequest" +#define KRVKXMSGTK @"msgKt" +#define KRVKXMSGREQUESTURL @"msgRequestUrl" + +//********************** other ***********************// +//可以通过runtime的方式获得当前request是否是主文档的请求 +#define kRVKWEBVIEWISMAINFRAMEREQUEST @"kRVKWEBVIEWISMAINFRAMEREQUEST" +#define kRVKISRVKPLUGINGS @"kRVKISRVKPLUGINGS" +#define kRVKSCHEMTASKREDIRECTURL @"kRVKSCHEMTASKREDIRECTURL" +#define kRVKSCHEMTASKREDIRECTORIGINURL @"kRVKSCHEMTASKREDIRECTORIGINURL" diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKDefines.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKDefines.h new file mode 100644 index 0000000..6438a56 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKDefines.h @@ -0,0 +1,162 @@ +// +// RVKDefines.h +// NebulaKernel +// +// Created by theone on 2018/9/27. +// Copyright © 2018年 Alipay. All rights reserved. +// + +#ifndef RVKDefines_h +#define RVKDefines_h + + +#define NKXBridgeExtensionSubFixSel @" originParam:(NSDictionary *)originParam page:(RVKScene *)page callback:(RVKJsApiResponseCallbackBlock)callback" + + + +//********************** NKXRegisterMod ***********************// +#define kRVKConfigKey_PluginRuntime @"PluginRuntime" +#define kRVKConfigKey_Plugins @"Plugins" +#define kRVKConfigKey_PluginName @"name" +#define kRVKConfigKey_PluginEvents @"events" +#define kRVKConfigKey_PluginEvent @"name" +#define kRVKConfigKey_PluginUseCapture @"useCapture" + +#define kRVKConfigKey_JsApiRuntime @"JsApiRuntime" +#define kRVKConfigKey_JsApis @"JsApis" +#define kRVKConfigKey_JsApiName @"name" +#define kRVKConfigKey_JsApi @"jsApi" +#define kRVKConfigKey_JsApiAlias @"alias" +#define kRVKConfigKey_CheckParams @"checkParams" +#define kRVKConfigKey_IsPrivate @"isPrivate" +#define kRVKConfigKey_Scope @"scope" +#define kRVKConfigKey_Level @"level" + +#define kRVKConfigKey_ComponentRuntime @"ComponentRuntime" +#define kRVKConfigKey_Components @"Components" +#define kRVKConfigKey_ComponentName @"component" + +#define kRVKConfigKey_ExtensionRuntimeKey @"ExtensionRuntime" +#define kRVKConfigKey_Extensions @"Extensions" + + +#define NKXConfigurationMod()\ ++ (void)load{\ +[[RVKConfigManager sharedInstance] registerConfigMod:NSStringFromClass(self)];\ +}\ + + +/** + 注册一个JSAPI,可配置如: + + RVK_Register_JSAPI(toast, JSApi4Toast, mytoast, Y, scene, high) + + @param name plain jsapi名称 + @param cls plain jsapi对应的实现类 + @param alias plain jsapi别名(可选,不需要就写-) + @param isPrivate plain 这个jsapi是否支持重写(可选(Y/N),不需要就写-) + @param scope plain jsapi作用域(可选(service,session,scene,page),不需要就写-) + @param level plain jsapi权限等级(可选(high,abovemedium,medium,low,none),不需要就写-,默认权限放开) + @return void + */ +#define RVK_Register_JSAPI(name, cls , alias , isPrivate, scope, level)\ +NSMutableDictionary *name##dic = [NSMutableDictionary dictionary];\ +[name##dic setValue:@#name forKey:kRVKConfigKey_JsApi];\ +[name##dic setValue:@#cls forKey:kRVKConfigKey_JsApiName];\ +if(![@#alias isEqualToString:@"-"]){\ +[name##dic setValue:@#alias forKey:kRVKConfigKey_JsApiAlias];\ +}\ +if([@#isPrivate isEqualToString:@"Y"]||[@#isPrivate isEqualToString:@"N"]){\ +[name##dic setValue:@#isPrivate forKey:kRVKConfigKey_IsPrivate];\ +}else{\ +[name##dic setValue:@"Y" forKey:kRVKConfigKey_IsPrivate];\ +}\ +if([@#scope isEqualToString:@"service"]||[@#scope isEqualToString:@"session"] || [@#scope isEqualToString:@"scene"] || [@#scope isEqualToString:@"page"]){\ +[name##dic setValue:@#scope forKey:kRVKConfigKey_Scope];\ +}\ +if(![@#level isEqualToString:@"-"]){\ +[name##dic setValue:@#level forKey:kRVKConfigKey_Level];\ +}\ +[self registerJsapiWithConfig:name##dic];\ + + +/** + 注册一个插件,可配置如: + + RVK_Register_Plugin(Plugin4TabBar,scene) + + @param name plain 插件的实现类名称 + @param scope plain 插件的作用域(可选(service,session,scene,page),不需要就写-) + */ +#define RVK_Register_Plugin(name, scope)\ +NSMutableDictionary *name##dic = [NSMutableDictionary dictionary];\ +[name##dic setValue:@#name forKey:kRVKConfigKey_PluginName];\ +if([@#scope isEqualToString:@"service"]||[@#scope isEqualToString:@"session"] || [@#scope isEqualToString:@"scene"] || [@#scope isEqualToString:@"page"] || [@#scope isEqualToString:@"proxy"]){\ +[name##dic setValue:@#scope forKey:kRVKConfigKey_Scope];\ +}\ +[self registerPluginWithConfig:name##dic];\ + + +/** + 注册一个Component,可配置如: + + RVK_Register_Component(NBComponent4Canvas,canvas) + + @param name plain Component的实现类名称 + @param component plain 前端使用的组件名称 + */ +#define RVK_Register_Component(name, component)\ +NSMutableDictionary *name##dic = [NSMutableDictionary dictionary];\ +[name##dic setValue:@#name forKey:kRVKConfigKey_PluginName];\ +[name##dic setValue:@#component forKey:kRVKConfigKey_ComponentName];\ +[self registerComponentWithConfig:name##dic];\ + +/** + 注册一个扩展,可配置如: + + RVK_Register_Extension(NXExtension4Tab) + + @param name plain Extension的实现类名称 + */ +#define RVK_Register_Extension(name)\ +NSMutableDictionary *name##dic = [NSMutableDictionary dictionary];\ +[name##dic setValue:@#name forKey:kRVKConfigKey_PluginName];\ +[self registerExtensionWithConfig:name##dic];\ + + + +////**********************Message Handler***********************// +// +//#define KRVKBRIDGEMESSAGEHANDLER @"PSDBRIDGEMESSAGEHANDLER" +//#define KRVKBRIDGEDOMREADY @"PSDBRIDGEDOMREADY" +//#define KRVKXMLHTTPREQUESTMESSAGE @"PSDXMLHTTPREQUESTMESSAGE" +//#define KRVKXNEBULAXMLHTTPREQUEST @"X-NEBULAXMLHTTPREQUEST" +//#define KRVKXMSGID @"msgId" +//#define KRVKXMSGCOOKIE @"msgCookie" +//#define KRVKXMSGMAINURL @"msgMainUrl" +//#define KRVKXMSGVAL @"val" +//#define KRVKXMSGTYPE @"type" +//#define KRVKXMSGENCTYPE @"FormEnctype" +//#define KRVKXMSGACCEPTCHARSET @"AcceptCharset" +//#define KRVKXMSGDOCUMENTCHARSET @"DocumentCharset" +//#define KRVKXMSGISSTREAM @"IsStream" +//#define KRVKXMSGNAME @"name" +//#define KRVKXMSGVALUE @"value" +//#define KRVKFORMENCTYPEOFURLENCODE @"application/x-www-form-urlencoded" +//#define KRVKFORMENCTYPEOFPLAIN @"text/plain" +//#define kRVKSceneInjectRequest @"kPSDSceneInjectRequest" +//#define KRVKXMSGTK @"msgKt" +//#define KRVKXMSGREQUESTURL @"msgRequestUrl" +// +////********************** other ***********************// +////可以通过runtime的方式获得当前request是否是主文档的请求 +//#define kRVKWEBVIEWISMAINFRAMEREQUEST @"kPSDWEBVIEWISMAINFRAMEREQUEST" +// +// +//#define KRVKWKFakePersistentCookie @"KPSDWKFAKEPERSISTENTCOOKIE" +//#define KRVKWKSharedCookies @"KPSDWKSharedCookies" +//#define KRVKDocumentHref @"document.location.href" +//#define KRVKMainUrlFallback @"KPSDMainUrlFallback" +//#define KRVKUrlFromHttpRequest @"KPSDUrlFromHttpRequest" + +#endif /* RVKDefines_h */ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKEvent.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKEvent.h new file mode 100644 index 0000000..2cc8f94 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKEvent.h @@ -0,0 +1,68 @@ +// +// RVKEvent.h +// Poseidon +// +// Created by chenwenhong on 14/7/21. +// Copyright (c) 2014年 Alipay. All rights reserved. +// + +#import +#import "RVKEventTargetProtocol.h" +#import "RVKDefine.h" + +@class RVKContext; + +@interface RVKEvent : NSObject + +@property(nonatomic, readonly) BOOL bubbles; // 事件是否可以冒泡 +@property(nonatomic, readonly) BOOL cancelable; // 事件是否可以被取消 +@property(nonatomic, assign) RVKEventPhase eventPhase; // 事件处理阶段 +@property(nonatomic, readonly) NSTimeInterval timeStamp; // 事件发生的时间戳 +@property(nonatomic, readonly, copy) NSString *eventType; // 事件类型 +@property(nonatomic, strong) id target; // 事件产生的目标对象 +@property(nonatomic, strong) id currentTarget; // 事件的当前处理对象 +@property(nonatomic, strong) RVKContext *context; // 事件的上下文 + +@property(nonatomic, readonly) BOOL isCancelled; // 事件是否已经取消了 +@property(nonatomic, readonly) BOOL isStoped; // 事件是否已经停止传递 +@property(nonatomic, copy) NSDictionary *RVKEventData; // 事件的携带数据 + +// for diagnose purpose +@property(nonatomic, weak) id currentListner; +@property(nonatomic, strong) NSString *traceId; +@property(nonatomic, strong) NSString *parentTraceId; +@property(nonatomic, readonly) BOOL ignoreDiagnose; +@property(nonatomic, readonly) BOOL ignoreDiagnoseInputParams; +@property(nonatomic, readonly) BOOL ignoreDiagnoseOutputParams; +/** + * @brief 创建一个对象,给定对象的类型、是否冒泡、是否可取消 + * + * @date 2014-07-31 + * + * @param eventType 事件类型 + * @param canBubble 是否可以冒泡 + * @param cancelable 是否可以被取消 + * + * @return 返回一个事件 + */ +- (instancetype)initWithEventType:(NSString *)eventType canBubble:(BOOL)canBubble cancelable:(BOOL)cancelable; + +/** + * @brief 停止事件传递 + * + * @date 2014-07-31 + * + * @return 无 + */ +- (void)stopPropagation; + +/** + * @brief 取消事件传递,如果可取消的话 + * + * @date 2014-07-31 + * + * @return 无 + */ +- (void)preventDefault; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKEventTargetProtocol.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKEventTargetProtocol.h new file mode 100644 index 0000000..8af9080 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKEventTargetProtocol.h @@ -0,0 +1,35 @@ +// +// EventTargetProtocol.h +// Poseidon +// +// Created by chenwenhong on 14/7/24. +// Copyright (c) 2014年 Alipay. All rights reserved. +// + +#import +#import "RVKPluginProtocol.h" + +@class RVKEvent; + +//事件目标对象协议 +@protocol RVKEventTargetProtocol + +/** + * 给EventTarget对像添加事件监听者 + * + * @param eventType 事件类型 + * @param eventListener 事件监听者:weak引用,不会strong + * @param useCapture 是否捕获消息 + */ +- (void)addEventListener:(NSString *)eventType withListener:(id)eventListener useCapture:(BOOL)useCapture; + +/** + * 给EventTarget对象移除事件监听对象 + * + * @param eventType 事件类型 + * @param eventListener 事件监听者 + * @param useCapture 是否捕获事件 + */ +- (void)removeEventListener:(NSString *)eventType withListener:(id)eventListener useCapture:(BOOL)useCapture; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKExpandoProtocol.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKExpandoProtocol.h new file mode 100644 index 0000000..be39c1c --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKExpandoProtocol.h @@ -0,0 +1,38 @@ +// +// RVKExpandoProtocol.h +// Poseidon +// +// Created by chenwenhong on 14/7/21. +// Copyright (c) 2014年 Alipay. All rights reserved. +// + +#import + +//扩展协议 +@protocol RVKExpandoProtocol + +/** + * 根据属性名添加扩展属性 + * + * @param expandProperty 属性名 + * @param value 扩展属性对象 + */ +- (void)setExpando:(NSString *)expandProperty withValue:(id)value; + +/** + * 根据属性名获取扩展属性对象 + * + * @param expandProperty 扩展属性名 + * + * @return 扩展属性对象 + */ +- (id)getExpando:(NSString *)expandProperty; + +/** + * 根据属性名删除扩展属性 + * + * @param expandProperty 扩展属性名 + */ +- (void)deleteExpando:(NSString *)expandProperty; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKExtension.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKExtension.h new file mode 100644 index 0000000..721573d --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKExtension.h @@ -0,0 +1,43 @@ +// +// RVKExtension.h +// NebulaKernel +// +// Created by theone on 2018/8/23. +// Copyright © 2018年 Alipay. All rights reserved. +// + +#import +#import "RVKExtensionDataAwareProtocol.h" + +#import "RVKNode.h" + +@protocol RVKSchedulableProtocol; +@protocol RVKExtensionDataAwareProtocol; +@protocol RVKExtensionDataStorageProtocol; + +@protocol RVKResultDeliverableProtocol +@property(nonatomic) id previousExtensionResult; +@end + +@protocol RVKInterruptableProtocol +@property(nonatomic, assign) BOOL shouldStopPropagation; +@property(nonatomic, assign) BOOL shouldPreventDefault; +@end + +@protocol RVKExtensionProtocol +@property(nonatomic, assign) BOOL didInited; +@property(nonatomic, strong) id dataStorage; +@property(nonatomic, weak) RVKNode *currentTargetNode; +@property(nonatomic, weak) RVKEvent *currentEvent; +- (void)onInit; +@end + +@interface RVKExtension : NSObject +@property(nonatomic, assign) BOOL didInited; +@property(nonatomic, strong) id dataStorage; +@property(nonatomic) id previousExtensionResult; +@property(nonatomic, assign) BOOL shouldStopPropagation; +@property(nonatomic, assign) BOOL shouldPreventDefault; +@property(nonatomic, weak) RVKNode *currentTargetNode; +@property(nonatomic, weak) RVKEvent *currentEvent; +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKExtensionDataAwareProtocol.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKExtensionDataAwareProtocol.h new file mode 100644 index 0000000..28a8a4a --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKExtensionDataAwareProtocol.h @@ -0,0 +1,16 @@ +// +// RVKExtensionDataAwareProtocol.h +// NebulaKernel +// +// Created by theone on 2018/8/26. +// Copyright © 2018年 Alipay. All rights reserved. +// + +#import +@protocol RVKExtensionDataStorageProtocol; + +@protocol RVKExtensionDataAwareProtocol +@optional +- (Class)dataTypeClass; +- (void)setDataStorage:(id)dataStorage; +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKExtensionDataStorage.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKExtensionDataStorage.h new file mode 100644 index 0000000..c1027de --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKExtensionDataStorage.h @@ -0,0 +1,24 @@ +// +// RVKExtensionDataStorage.h +// NebulaKernel +// +// Created by theone on 2018/8/26. +// Copyright © 2018年 Alipay. All rights reserved. +// + +#import + +@class RVKNode; + +@protocol RVKExtensionDataStorageProtocol +@property(nonatomic, weak) RVKNode *node; +@property(nonatomic) Class dataTypeClass; +- (id)getData; +@end + +@interface RVKExtensionDataStorage : NSObject +@property(nonatomic, weak) RVKNode *node; +@property(nonatomic) Class dataTypeClass; +- (id)getData; +- (instancetype)initWithNode:(RVKNode *)node dataTypeClass:(Class)dataTypeClass; +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKExtensionFilterProtocol.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKExtensionFilterProtocol.h new file mode 100644 index 0000000..8a698e9 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKExtensionFilterProtocol.h @@ -0,0 +1,14 @@ +// +// RVKExtensionFilterProtocol.h +// NebulaKernel +// +// Created by theone on 2018/8/26. +// Copyright © 2018年 Alipay. All rights reserved. +// + +#import + + +@protocol RVKExtensionFilterProtocol +- (NSArray *)filter:(NSArray *)list; +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKExtensionInterceptorManager.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKExtensionInterceptorManager.h new file mode 100644 index 0000000..253f85d --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKExtensionInterceptorManager.h @@ -0,0 +1,24 @@ +// +// RVKExtensionInterceptor.h +// NebulaKernel +// +// Created by theone on 2019/3/4. +// Copyright © 2019 Alipay. All rights reserved. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +@class RVKExtensionProxyContext; +@protocol RVKExtensionProtocol; + +typedef id _Nullable (^RVKExtensionInterceptorCallback)(RVKExtensionProxyContext *context, NSInvocation *invocation); + +@interface RVKExtensionInterceptorManager : NSObject +@property(nonatomic, copy) RVKExtensionInterceptorCallback interceptorCallback; ++ (instancetype)defaultInterceptorManager ; +- (void)addExtensionDispatchInterceptor; +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKExtensionJsapi.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKExtensionJsapi.h new file mode 100644 index 0000000..84d2679 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKExtensionJsapi.h @@ -0,0 +1,17 @@ +// +// NXKExtensionJsapi.h +// NebulaKernel +// +// Created by theone on 2018/9/29. +// Copyright © 2018年 Alipay. All rights reserved. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface RVKExtensionJsapi : RVKJsApiHandler + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKExtensionManager.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKExtensionManager.h new file mode 100644 index 0000000..d166fe0 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKExtensionManager.h @@ -0,0 +1,43 @@ +// +// RVKExtensionManager.h +// NebulaKernel +// +// Created by theone on 2018/8/23. +// Copyright © 2018年 Alipay. All rights reserved. +// + +#import +#import "RVKExtensionProxy.h" + +@class RVKNode; +@protocol RVKExtensionProtocol; +@protocol RVKExtensionPointLifeCycleProtocol; +@protocol RVKExtensionPoint; +@protocol RVKExtensionFilterProtocol; +@protocol RVKExtensionSorterProtocol; + + +@interface RVKExtensionManager : NSObject ++ (instancetype)defaultExtensionManager; + +- (id)createExtensionPoint:(Protocol *)point + node:(RVKNode *)node + delegate:(id)delegate; + +- (id)createExtensionPoint:(Protocol *)point + node:(RVKNode *)node + event:(RVKEvent *)event + delegate:(id)delegate; + +- (void)setExtensionPointFilter:(Protocol *)point + filter:(id)filter; + +- (void)setExtensionPointSorter:(Protocol *)point + sorter:(id)sorter; + ++ (RVKExtensionProxyContext *)extension:(Protocol *)extension + node:(RVKNode *)node + callback:(id)callback; + +- (void)unregisterExtensions:(NSArray *)extensionNames; +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKExtensionPoint.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKExtensionPoint.h new file mode 100644 index 0000000..208b74a --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKExtensionPoint.h @@ -0,0 +1,12 @@ +// +// RVKExtensionPoint.h +// NebulaKernel +// +// Created by theone on 2018/8/23. +// Copyright © 2018年 Alipay. All rights reserved. +// + +#import + +@protocol RVKExtensionPoint +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKExtensionPointLifeCycle.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKExtensionPointLifeCycle.h new file mode 100644 index 0000000..0bf1933 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKExtensionPointLifeCycle.h @@ -0,0 +1,51 @@ +// +// RVKExtensionPoint.h +// NebulaKernel +// +// Created by theone on 2018/8/23. +// Copyright © 2018年 Alipay. All rights reserved. +// + +#import + +@class RVKExtension; + +typedef void(^RVKStopPropagationCallback)(RVKExtension *extension); +typedef void(^RVKPreventDefaultCallback)(RVKExtension *extension); +typedef void(^RVKProgressCallback)(RVKExtension *extension, id result); +typedef void(^RVKCompleteCallback)(id result); + + +@protocol RVKExtensionPointLifeCycleProtocol + +@required +@property(nonatomic) BOOL isPreventDefault; // 扩展点是否阻止默认行为 +@property(nonatomic) BOOL isStopPropagation; // 扩展点是否停止传播 +@property(nonatomic) RVKStopPropagationCallback stopPropagationCallback; // 阻止传播回调 +@property(nonatomic) RVKPreventDefaultCallback preventDefaultCallback; // 阻止默认处理回调 +@property(nonatomic) RVKProgressCallback processCallback; // 处理过程中回调 +@property(nonatomic) RVKCompleteCallback completeCallback; // 完成调用回调 +@end + + +@interface RVKExtensionPointLifeCycle : NSObject +@property(nonatomic) BOOL isPreventDefault; // 扩展点是否阻止默认行为 +@property(nonatomic) BOOL isStopPropagation; // 扩展点是否停止传播 +@property(nonatomic) RVKStopPropagationCallback stopPropagationCallback; // 阻止传播回调 +@property(nonatomic) RVKPreventDefaultCallback preventDefaultCallback; // 阻止默认处理回调 +@property(nonatomic) RVKProgressCallback processCallback; // 处理过程中回调 +@property(nonatomic) RVKCompleteCallback completeCallback; // 完成调用回调 + +- (instancetype)initWithStopPropagationCallback:(RVKStopPropagationCallback)stopPropagationCallback + preventDefaultCallback:(RVKPreventDefaultCallback)preventDefaultCallback + processCallback:(RVKProgressCallback)processCallback + completeCallback:(RVKCompleteCallback)completeCallback; +@property(nonatomic) Protocol *ponit; + +// convenient for setting by chain +- (instancetype)onStopPropagation:(RVKStopPropagationCallback)callback; +- (instancetype)onPreventDefault:(RVKPreventDefaultCallback)callback; +- (instancetype)onProcess:(RVKProgressCallback)callback; +- (instancetype)onComplete:(RVKCompleteCallback)callback; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKExtensionProtocol4JSApi.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKExtensionProtocol4JSApi.h new file mode 100644 index 0000000..dc3f27b --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKExtensionProtocol4JSApi.h @@ -0,0 +1,18 @@ +// +// RVKExtensionProtocol4JSApi.h +// AriverKernel +// +// Created by xuyouyang on 2019/4/15. +// Copyright © 2019 Alipay. All rights reserved. +// + +#import "RVKJsApi.h" + +@protocol RVKExtensionProtocol4JSApi + +@required +- (BOOL)canHandleApi:(NSString *)apiName; + +- (void)handleApi:(NSString *)apiName params:(NSDictionary *)params responseCallback:(RVKJsApiResponseCallbackBlock)responseCallback; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKExtensionProxy.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKExtensionProxy.h new file mode 100644 index 0000000..900b3b9 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKExtensionProxy.h @@ -0,0 +1,27 @@ +// +// RVKExtensionProxy.h +// NebulaKernel +// +// Created by theone on 2018/8/24. +// Copyright © 2018年 Alipay. All rights reserved. +// + +#import +#import "RVKNode.h" + +@protocol RVKExtensionPointLifeCycleProtocol; +@class RVKExtensionProxyContext; + +@interface RVKExtensionProxy : NSProxy +@property(nonatomic, readonly) RVKExtensionProxyContext *context; +- (instancetype)initWithContext:(RVKExtensionProxyContext *)context; + +- (ProtocolType)proxyWithExtension:(Protocol *)extension + node:(RVKNode *)node + callback:(id)callback; + +- (ProtocolType)proxyWithExtension:(Protocol *)extension + node:(RVKNode *)node + event:(RVKEvent *)event + callback:(id)callback; +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKExtensionProxyContext.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKExtensionProxyContext.h new file mode 100644 index 0000000..c90c8a1 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKExtensionProxyContext.h @@ -0,0 +1,22 @@ +// +// RVKExtensionProxyContext.h +// NebulaKernel +// +// Created by theone on 2018/8/24. +// Copyright © 2018年 Alipay. All rights reserved. +// + +#import + +@protocol RVKExtensionPointLifeCycleProtocol; +@class RVKNode; +@class RVKEvent; + +@interface RVKExtensionProxyContext : NSObject +@property(nonatomic, strong) NSArray *targetList; +@property(nonatomic) Protocol *point; +@property(nonatomic) id delegate; +//for dataStorage +@property(nonatomic, weak) RVKNode *node; +@property(nonatomic, weak) RVKEvent *event; +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKExtensionRegistry.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKExtensionRegistry.h new file mode 100644 index 0000000..5c831d4 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKExtensionRegistry.h @@ -0,0 +1,39 @@ +// +// RVKExtensionRegistry.h +// NebulaKernel +// +// Created by theone on 2018/8/26. +// Copyright © 2018年 Alipay. All rights reserved. +// + +#import +#import "RVKRegisteyScopeProtocol.h" + +@class RVKExtension; + +// 未支持scope时,此对象维护了全局注册的extension实例集合 +// 支持scope后,此对象做为全局静态注册表,只维护各scope域上的注册的Point->ExtensionClasses数据 +@interface RVKExtensionRegistry : NSObject + ++ (instancetype)defaultRegistry; + +- (BOOL)useNewRegistry; + +- (void)setScopeDelegate:(id)delegate; + +- (void)registerDefaultExtensions:(NSArray *)extensions; + +// 返回extension类数组 +- (NSArray *)findExtensionsClassWithPoint:(Protocol *)point; +// 返回extension类数组 +- (NSArray *)findExtensionsClassWithPoint:(Protocol *)point scope:(NSString *)scope; + +// 返回extension实例数组 +- (NSArray *)legacyLoadExtensionsWithPoint:(Protocol *)point; + +- (RVKExtension *)loadJsapiExtensionWithCls:(NSString *)clsName point:(Protocol *)point; + +- (void)registerExtensionsWithConfig:(NSDictionary *)config; + +- (void)unregisterExtension:(NSString *)extension; +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKExtensionSorterProtocol.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKExtensionSorterProtocol.h new file mode 100644 index 0000000..bd3e0e0 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKExtensionSorterProtocol.h @@ -0,0 +1,13 @@ +// +// RVKExtensionSorterProtocol.h +// NebulaKernel +// +// Created by theone on 2018/8/26. +// Copyright © 2018年 Alipay. All rights reserved. +// + +#import + +@protocol RVKExtensionSorterProtocol +- (NSArray *)sort:(NSArray *)list; +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKExternalSupport.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKExternalSupport.h new file mode 100644 index 0000000..7f834c4 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKExternalSupport.h @@ -0,0 +1,117 @@ +// +// ExternalSupport.h +// ThreadMgrDemo +// +// Created by myy on 16/10/10. +// Copyright © 2016年 myy. All rights reserved. +// + +#import + + +// 该文件主要用来做解耦适配。 +// 情况:一些底层OC调用,框架底层需要监控起来,但是有些模块要独立输出,不依赖框架的库,不能直接调用框架的接口。 +// 方法:这些模块集成这个.h和.m文件,替换下面宏里ThisModuleName字符串为自己的模块名(区分大小写)。 +// 影响:没什么影响,这些模块还是独立输出,不需要任何改动。 +// 可能的疑问:这个文件的引入也算一定程度的耦合,但现实就是框架底层的任何接口修改都会导致大量依赖修改。 +#ifndef EX_MAIN_CALL +#define EX_MAIN_CALL +#ifdef __cplusplus +extern "C" { +#endif + +typedef void (*ExMainCallFuncType)(int bizType, const char* tag, double delayTime, enum NSOperationQueuePriority priority, dispatch_block_t block); + +#define EX_MAIN_CALL_DECLARE(module) \ + extern ExMainCallFuncType gExMainCallFunc_##module; \ + extern ExMainCallFuncType gExMainACallFunc_##module; \ + extern int gExMainCallBizType_##module; \ + extern void ExMainCall_##module(const char* tag, double delayTime, enum NSOperationQueuePriority priority, dispatch_block_t block); \ + extern void ExMainACall_##module(const char* tag, double delayTime, enum NSOperationQueuePriority priority, dispatch_block_t block); + + +#define EX_MAIN_CALL_DEFINE(module) \ + ExMainCallFuncType gExMainCallFunc_##module = 0; \ + ExMainCallFuncType gExMainACallFunc_##module = 0; \ + int gExMainCallBizType_##module = 0; \ + void ExMainCall_##module(const char* tag, double delayTime, enum NSOperationQueuePriority priority, dispatch_block_t block) \ + { \ + if(gExMainCallFunc_##module) \ + { \ + gExMainCallFunc_##module(gExMainCallBizType_##module, tag, delayTime, priority, block); \ + } \ + else if(delayTime <= 0) \ + { \ + if ([NSThread isMainThread]) \ + { \ + block(); \ + return; \ + } \ + dispatch_async(dispatch_get_main_queue(), block); \ + } \ + else \ + { \ + if(delayTime >= 1000000) delayTime /= NSEC_PER_SEC; \ + dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(delayTime * NSEC_PER_SEC)), dispatch_get_main_queue(), block); \ + } \ + } \ + void ExMainACall_##module(const char* tag, double delayTime, enum NSOperationQueuePriority priority, dispatch_block_t block) \ + { \ + if(gExMainACallFunc_##module) \ + { \ + gExMainACallFunc_##module(gExMainCallBizType_##module, tag, delayTime, priority, block); \ + } \ + else if(delayTime <= 0) \ + { \ + dispatch_async(dispatch_get_main_queue(), block); \ + } \ + else \ + { \ + if(delayTime >= 1000000) delayTime /= NSEC_PER_SEC; \ + dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(delayTime * NSEC_PER_SEC)), dispatch_get_main_queue(), block); \ + } \ + } + + +#define EX_MAIN_CALL_SETTING(module, func, funcA, bizType) \ + gExMainCallFunc_##module = (ExMainCallFuncType)func; \ + gExMainACallFunc_##module = (ExMainCallFuncType)funcA; \ + gExMainCallBizType_##module = (int)bizType; + +#ifdef __cplusplus +} +#endif +#endif // EX_MAIN_CALL + + +#ifdef __cplusplus +extern "C" { +#endif +// 模块相关主线程函数声明。 +//#error ThisModuleName需要替换为自己模块名(区分大小写),替换后注释该错误提示。------ (第1个替换)------ (20161012注:共4个替换) +EX_MAIN_CALL_DECLARE(NebulaPoseidon) +#ifdef __cplusplus +} +#endif + + +// ------------------ 调用函数:模块内统一使用该接口切换主线程。------------------ +// +// 功能:需要主线程执行block时调用。 +// 原理:如果外部设置了主线程切换替换函数,则调用外部函数;否则,还走系统默认的API调用。 +// 说明:主要做主线程使用的统一接管,监控和主线程性能分析定位问题使用,对使用者无性能等影响;使用模块,依然独立输出,不需要因为这个接口改动代码。 +// MAIN_CALL 和 MAINA_CALL的区别:(业务需要) +// MAIN_CALL - 如果主线程调用,block是同步调用的,不会异步;等同if([NSThread isMainThread])block(); +// MAINA_CALL - 如果主线程调用,block是异步调用的;等同dispatch_async(dispatch_get_main_queue(), block); +// 参数: +// tag 统一填__FUNCTION__ +// delayTime 延迟执行时间,单位:秒。不延迟填0即可。------- !!! 注意:单位是秒,精度为浮点数。 +// priority 优先级 同NSOperationQueuePriority定义默认填0优先级。 +// +//#error ThisModuleName需要替换为自己模块名(区分大小写),替换后注释该错误提示。------ (第2个替换)------ +#define MAIN_CALL ExMainCall_NebulaPoseidon // MAIN_CALL(tag, delayTime, priority, block) +//#error ThisModuleName需要替换为自己模块名(区分大小写),替换后注释该错误提示。------ (第3个替换)------ +#define MAINA_CALL ExMainACall_NebulaPoseidon // MAINA_CALL(tag, delayTime, priority, block) + + + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKFilePreloadManager.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKFilePreloadManager.h new file mode 100644 index 0000000..ea40e72 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKFilePreloadManager.h @@ -0,0 +1,21 @@ +// +// RVKJsFileManager.h +// Poseidon +// +// Created by chenwenhong on 14-10-24. +// Copyright (c) 2014年 Alipay. All rights reserved. +// + +#import + +@interface RVKFilePreloadManager : NSObject + ++ (NSString *)jsBridgeFileContentString; + ++ (NSDictionary *)kernelConfigDict; + ++ (NSDictionary *)kernelExtraConfigDict; + ++ (NSDictionary *)ariverConfigDict; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKInvocationEvent+Private.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKInvocationEvent+Private.h new file mode 100644 index 0000000..638e17f --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKInvocationEvent+Private.h @@ -0,0 +1,18 @@ +// +// RVKInvocationEvent+Private.h +// Poseidon +// +// Created by chenwenhong on 15/9/2. +// Copyright (c) 2015年 Alipay. All rights reserved. +// +#import "RVKInvocationEvent.h" + +@interface RVKInvocationEvent (Private) + +@property(nonatomic, copy) NSString *invocationName; +@property(nonatomic, strong) NSDictionary *invocationData; //当前携带的数据对象 +@property(nonatomic, copy) NSString *url; +@property(nonatomic, strong) RVKJsApiResponseCallbackBlock responseCallback; +@property(nonatomic, strong) RVKJsApi *jsApi; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKInvocationEvent.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKInvocationEvent.h new file mode 100644 index 0000000..f45eed1 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKInvocationEvent.h @@ -0,0 +1,114 @@ +// +// RVKInvocationEvent.h +// Poseidon +// +// Created by chenwenhong on 14-8-11. +// Copyright (c) 2014年 Alipay. All rights reserved. +// + +#import "RVKEvent.h" +#import "RVKJsApi.h" + +@interface RVKInvocation : NSObject + +@property (nonatomic, assign) NSUInteger uniqueId; + +@end + +@interface RVKInvocationEvent : RVKEvent + +@property(nonatomic, readonly, copy) NSString *invocationName; +@property(nonatomic, readonly, strong) NSDictionary *invocationData; //当前携带的数据对象 +@property(nonatomic, strong) NSDictionary *invocationResult; // 返回结果 +@property(nonatomic, readonly, copy) NSString *url; +@property(nonatomic, readonly, strong) RVKJsApi *jsApi; +@property(nonatomic, readonly, strong) RVKJsApiResponseCallbackBlock responseCallback; +@property(nonatomic, copy) NSString *invocationSource;//调用来源 +@property(nonatomic, assign) BOOL shouldSkipCallback;//是否跳过执行responseCallback +@property(nonatomic, strong) RVKInvocation *invocation; +@property (nonatomic, assign) BOOL isOnlyForWorker; //只给worker发的事件 + ++ (instancetype)allEvent:(NSString *)invocationName url:(NSString *)url; + +#pragma mark - API +// can preventDefault ++ (instancetype)startEvent:(NSString *)invocationName + invocation:(RVKInvocation *)invocation + invocationData:(NSDictionary *)invocationData + url:(NSString *)url; + ++ (instancetype)invokeBeforeEvent:(NSString *)invocationName + invocation:(RVKInvocation *)invocation + invocationData:(NSDictionary *)invocationData + url:(NSString *)url + jsApi:(RVKJsApi *)jsApi + responseCallback:(RVKJsApiResponseCallbackBlock)responseCallback; + ++ (instancetype)invokePermitEvent:(NSString *)invocationName + invocation:(RVKInvocation *)invocation + invocationData:(NSDictionary *)invocationData + url:(NSString *)url + jsApi:(RVKJsApi *)jsApi + responseCallback:(RVKJsApiResponseCallbackBlock)responseCallback; + +// can preventDefault and can invoke custom yourself(you should set invocationResult to responseCallback) ++ (instancetype)invokeEvent:(NSString *)invocationName + invocation:(RVKInvocation *)invocation + invocationData:(NSDictionary *)invocationData + url:(NSString *)url + jsApi:(RVKJsApi *)jsApi + responseCallback:(RVKJsApiResponseCallbackBlock)responseCallback; + ++ (instancetype)completeEvent:(NSString *)invocationName + invocation:(RVKInvocation *)invocation + invocationResult:(NSDictionary *)invocationResult + url:(NSString *)url DEPRECATED_ATTRIBUTE; // 废弃方法,请使用下面方法 + ++ (instancetype)completeEvent:(NSString *)invocationName + invocation:(RVKInvocation *)invocation + invocationData:(NSDictionary *)invocationData + invocationResult:(NSDictionary *)invocationResult + url:(NSString *)url; + ++ (instancetype)errorEvent:(NSString *)invocationName invocation:(RVKInvocation *)invocation url:(NSString *)url; + +// can preventDefault ++ (instancetype)startEvent:(NSString *)invocationName + invocationData:(NSDictionary *)invocationData + url:(NSString *)url; + ++ (instancetype)invokeBeforeEvent:(NSString *)invocationName + invocationData:(NSDictionary *)invocationData + url:(NSString *)url + jsApi:(RVKJsApi *)jsApi + responseCallback:(RVKJsApiResponseCallbackBlock)responseCallback; + ++ (instancetype)invokePermitEvent:(NSString *)invocationName + invocationData:(NSDictionary *)invocationData + url:(NSString *)url + jsApi:(RVKJsApi *)jsApi + responseCallback:(RVKJsApiResponseCallbackBlock)responseCallback; + +// can preventDefault and can invoke custom yourself(you should set invocationResult to responseCallback) ++ (instancetype)invokeEvent:(NSString *)invocationName + invocationData:(NSDictionary *)invocationData + url:(NSString *)url + jsApi:(RVKJsApi *)jsApi + responseCallback:(RVKJsApiResponseCallbackBlock)responseCallback; + ++ (instancetype)completeEvent:(NSString *)invocationName + invocationResult:(NSDictionary *)invocationResult + url:(NSString *)url DEPRECATED_ATTRIBUTE; // 废弃方法,请使用下面方法 + ++ (instancetype)completeEvent:(NSString *)invocationName + invocationData:(NSDictionary *)invocationData + invocationResult:(NSDictionary *)invocationResult + url:(NSString *)url; + ++ (instancetype)errorEvent:(NSString *)invocationName url:(NSString *)url; + +#pragma mark - EVENT ++ (instancetype)startEvent:(NSString *)invocationName + eventData:(NSDictionary *)invocationData + url:(NSString *)url; +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKJSApiRequestBase.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKJSApiRequestBase.h new file mode 100644 index 0000000..25a374d --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKJSApiRequestBase.h @@ -0,0 +1,17 @@ +// +// RVKJSApiRequestBase.h +// AriverKernel +// +// Created by hua.lu on 2019/4/10. +// Copyright © 2019 Alipay. All rights reserved. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface RVKJSApiRequestBase : NSObject + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKJSApiResponseBase.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKJSApiResponseBase.h new file mode 100644 index 0000000..50020d2 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKJSApiResponseBase.h @@ -0,0 +1,20 @@ +// +// RVKJSApiResponseBase.h +// AriverKernel +// +// Created by hua.lu on 2019/4/10. +// Copyright © 2019 Alipay. All rights reserved. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface RVKJSApiResponseBase : NSObject + +@property(nonatomic, strong) NSNumber *error; +@property(nonatomic, copy) NSString *errorMessage; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKJsApi.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKJsApi.h new file mode 100644 index 0000000..b13ae47 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKJsApi.h @@ -0,0 +1,148 @@ +// +// RVKJsApi.h +// Poseidon +// +// Created by chenwenhong on 14-8-13. +// Copyright (c) 2014年 Alipay. All rights reserved. +// + +#import + +@class RVKContext; +@class RVKJsApiHandler; + +typedef void (^RVKJsApiResponseCallbackBlock)(id responseData); +typedef void (^RVKJsApiHandlerBlock)(NSDictionary *data, RVKContext *context, RVKJsApiResponseCallbackBlock responseCallbackBlock); + +//JsApi类,注:优先使用RVKJsApiHandlerBlock,若不存在,才使用handlerClass进行处理 +@interface RVKJsApi : NSObject + +@property(nonatomic, readonly, copy) NSString *name; // JsApi名称 +@property(nonatomic, copy) NSString *alias; +@property(nonatomic, readonly, strong) RVKJsApiHandlerBlock handler; // JsApi处理函数,优先使用 +@property(nonatomic, readonly, strong) Class handlerClass; // JsApi处理类 +@property(nonatomic, readonly, assign) BOOL checkParams; // 是否检查参数(检查是否NSDictionary类型) +@property(nonatomic, readonly, assign) BOOL isPrivate; // 是否私有(决定是否能被反注册、覆盖) +@property(nonatomic, readonly, copy) NSString *scope; // 作用域 + +@property(nonatomic, strong) RVKJsApiHandler *jsApiHandler; +/** + * @brief 创建一个JsApi对象 + * + * @date 2014-08-20 + * + * @param name JsApi名称 + * @param handler JsApi处理函数 + * + * @return 返回一个JsApi对象 + */ ++ (instancetype)jsApi:(NSString *)name + handler:(RVKJsApiHandlerBlock)handler; + +/** + * @brief 创建一个JsApi对象 + * + * @date 2014-08-20 + * + * @param name JsApi名称 + * @param handlerClass JsApi处理类 + * + * @return 返回一个JsApi对象 + */ ++ (instancetype)jsApi:(NSString *)name + handlerClass:(Class)handlerClass; + +/** + * @brief 创建一个JsApi对象 + * + * @date 2014-08-20 + * + * @param name JsApi名称 + * @param handler JsApi处理函数 + * @param checkParams 是否检查参数 + * @param isPrivate 是否私有api + * @param scope 作用域 + * + * @return 返回一个JsApi对象 + */ ++ (instancetype)jsApi:(NSString *)name + handler:(RVKJsApiHandlerBlock)handler + checkParams:(BOOL)checkParams + isPrivate:(BOOL)isPrivate + scope:(NSString *)scope; + +/** + * @brief 创建一个JsApi对象 + * + * @date 2014-08-20 + * + * @param name JsApi名称 + * @param alias JsApi别名 + * @param handler JsApi处理函数 + * @param checkParams 是否检查参数 + * @param isPrivate 是否私有api + * @param scope 作用域 + * + * @return 返回一个JsApi对象 + */ ++ (instancetype)jsApi:(NSString *)name + alias:(NSString *)alias + handler:(RVKJsApiHandlerBlock)handler + checkParams:(BOOL)checkParams + isPrivate:(BOOL)isPrivate + scope:(NSString *)scope; + +/** + * @brief 创建一个JsApi对象 + * + * @date 2014-08-20 + * + * @param name JsApi名称 + * @param handlerClass JsApi处理类 + * @param checkParams 是否检查参数 + * @param isPrivate 是否私有api + * @param scope 作用域 + * + * @return 返回一个JsApi对象 + */ ++ (instancetype)jsApi:(NSString *)name + handlerClass:(Class )handlerClass + checkParams:(BOOL)checkParams + isPrivate:(BOOL)isPrivate + scope:(NSString *)scope; + +/** + * @brief 创建一个JsApi对象 + * + * @date 2014-08-20 + * + * @param name JsApi名称 + * @param alias JsApi别名 + * @param handlerClass JsApi处理类 + * @param checkParams 是否检查参数 + * @param isPrivate 是否私有api + * @param scope 作用域 + * + * @return 返回一个JsApi对象 + */ ++ (instancetype)jsApi:(NSString *)name + alias:(NSString *)alias + handlerClass:(Class )handlerClass + checkParams:(BOOL)checkParams + isPrivate:(BOOL)isPrivate + scope:(NSString *)scope; + +/** + * @brief 处理JsApi函数 + * + * @date 2014-08-20 + * + * @param data 处理的消息参数 + * @param context 当前上下文信息 + * @param callback 回调 + * + * @return 无 + */ +- (void)handler:(NSDictionary *)data context:(RVKContext *)context callback:(RVKJsApiResponseCallbackBlock)callback; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKJsApiConfig.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKJsApiConfig.h new file mode 100644 index 0000000..8ea11e0 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKJsApiConfig.h @@ -0,0 +1,89 @@ +// +// RVKJsApiConfig.h +// Poseidon +// +// Created by chenwenhong on 14-8-20. +// Copyright (c) 2014年 Alipay. All rights reserved. +// + +#import +#import "RVKJsApi.h" + +//JsApi配置类 +@interface RVKJsApiConfig : NSObject + +@property(nonatomic, readonly, copy) NSString *name; // JsApi实现类名 +@property(nonatomic, readonly, copy) NSString *alias; +@property(nonatomic, readonly, copy) NSString *jsApi; // JsApi名称 +@property(nonatomic, readonly, strong) RVKJsApiHandlerBlock handler; // JsApi处理函数 +@property(nonatomic, readonly, copy) NSString *scope; // 作用域, default is service +@property(nonatomic, readonly, assign) BOOL checkParams; // 检查参数(是否字典类型) +@property(nonatomic, readonly, assign) BOOL isPrivateAPI; // 私有api(决定是否能被反注册、覆盖) + +/** + * @brief 插件一个JsApi配置对象 + * + * @date 2014-08-20 + * + * @param name JsApi实现类名 + * @param jsApi JsApi名称 + * + * @return 返回JsApi配置对象 + */ ++ (instancetype)jsApiCfg:(NSString *)className + jsApi:(NSString *)jsApi; + +/** + * @brief 插件一个JsApi配置对象 + * + * @date 2014-08-20 + * + * @param handler JsApi处理函数block + * @param jsApi JsApi名称 + * + * @return 返回JsApi配置对象 + */ ++ (instancetype)jsApiCfgWithHandlerBlock:(RVKJsApiHandlerBlock)handler + jsApi:(NSString *)jsApi; + +/** + * @brief 插件一个JsApi配置对象 + * + * @date 2014-08-20 + * + * @param handler JsApi处理函数block + * @param jsApi JsApi名称 + * @param checkParams 是否检查参数 + * @param isPrivateAPI 是否私有api + * @param scope 作用域 + * + * @return 返回JsApi配置对象 + */ ++ (instancetype)jsApiCfgWithHandlerBlock:(RVKJsApiHandlerBlock)handler + jsApi:(NSString *)jsApi + checkParams:(BOOL)checkParams + isPrivateAPI:(BOOL)isPrivateAPI + scope:(NSString *)scope; + +/** + * @brief 插件一个JsApi配置对象 + * + * @date 2014-08-20 + * + * @param name JsApi实现类名 + * @param jsApi JsApi名称 + * @param alias JsApi的别名 + * @param checkParams 是否检查参数 + * @param isPrivateAPI 是否私有api + * @param scope 作用域 + * + * @return 返回JsApi配置对象 + */ ++ (instancetype)jsApiCfg:(NSString *)name + jsApi:(NSString *)jsApi + alias:(NSString *)alias + checkParams:(BOOL)checkParams + isPrivateAPI:(BOOL)isPrivateAPI + scope:(NSString *)scope; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKJsApiHandler.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKJsApiHandler.h new file mode 100644 index 0000000..f16fecf --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKJsApiHandler.h @@ -0,0 +1,46 @@ +// +// RVKJsApiHandler.h +// Poseidon +// +// Created by chenwenhong on 14-8-20. +// Copyright (c) 2014年 Alipay. All rights reserved. +// + +#import +#import "RVKJsApi.h" + +//通用错误回调 +void RVKErrorCallback(RVKJsApiResponseCallbackBlock callback, int code); + +//通用错误码 +#define e_invalid_api 1 //无效的api接口 +#define e_inavlid_params 2 //无效的api入参 +#define e_unknown_error 3 //未知错误 +#define e_permission_denied 4 //无权调用该接口 + +#define e_user_cancel 11 //用户取消操作 + +#define RVK_CALLBACK_TYPE_INFO @"NEBULATYPEINFO" +#define RVK_CALLBACK_KEY_OF_TYPE @"type" +#define RVK_CALLBACK_TYPE_ARRAYBUFFER @"ArrayBuffer" + + + +@class RVKContext; + +//JsApi处理类(基类) +@interface RVKJsApiHandler : NSObject +/** + * @brief JsApi处理函数 + * + * @date 2014-08-20 + * + * @param data 处理的内容 + * @param context 当前上下文信息 + * @param callback 回调 + * + * @return 无 + */ +- (void)handler:(NSDictionary *)data context:(RVKContext *)context callback:(RVKJsApiResponseCallbackBlock)callback; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKJsApiManager+Private.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKJsApiManager+Private.h new file mode 100644 index 0000000..aa9dd10 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKJsApiManager+Private.h @@ -0,0 +1,14 @@ +// +// RVKJsApiManager+Private.h +// NebulaPoseidon +// +// Created by chenwenhong on 15/9/30. +// Copyright © 2015年 Alipay. All rights reserved. +// + + +@interface RVKJsApiManager (Private) + +- (RVKJsApi *)RVKJsApi:(NSString *)jsApiName; // 查找api,按照添加分组的逆序查找,直到默认分组 + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKJsApiManager.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKJsApiManager.h new file mode 100644 index 0000000..309dfd6 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKJsApiManager.h @@ -0,0 +1,87 @@ +// +// RVKJsApiMgr.h +// Poseidon +// +// Created by chenwenhong on 14-8-13. +// Copyright (c) 2014年 Alipay. All rights reserved. +// + +#import +#import + +/********************/ +/*关于groupId +分组管理jsApi + */ +/********************/ + +@class RVKJsApi; + +//JsApi管理类 +@interface RVKJsApiManager : NSObject + +@property(nonatomic, copy) NSString *scope; + +/** + * @brief 注册默认的已经配置的JsApi:JsApi Handler,只在调用的时候才初始化,并常驻.默认是在分组 + * + * @date 2014-08-20 + * + * @return 无 + */ +- (void)registerDefaultJsApis; + +/** + * @brief 注册一个JsApi对象 + * + * @date 2014-08-20 + * + * @param jsApi JsApi对象 + * + * @return 无 + */ +- (void)registerJsApi:(RVKJsApi *)jsApi groupId:(NSString *)groupId; +- (void)registerJsApi:(RVKJsApi *)jsApi; // 默认分组 + +/** + * @brief 注册一组JsApi对象 + * + * @date 2014-08-20 + * + * @param jsApis JsApi对象数组 + * + * @return 无 + */ +- (void)registerJsApis:(NSArray *)jsApis groupId:(NSString *)groupId; // RVKJsApi +- (void)registerJsApis:(NSArray *)jsApis; // RVKJsApi 默认分组 + +/** + * @brief 在指定分组下,反注册一个JsApi对象 + * + * @date 2014-08-20 + * + * @param jsApi JsApi对象 + * + * @return 无 + */ +- (void)unregisterJsApi:(RVKJsApi *)jsApi groupId:(NSString *)groupId; +- (void)unregisterJsApi:(RVKJsApi *)jsApi; // 默认分组 + +- (void)unregisterJsApis:(NSString *)groupId; + +/** + * @brief 根据JsApi名称,返回一个JsApi对象 + * + * @date 2014-08-20 + * + * @param jsApiName JsApi名称 + * + * @return 返回一个JsApi对象 + */ +- (RVKJsApi *)jsApi:(NSString *)jsApiName groupId:(NSString *)groupId; +- (RVKJsApi *)jsApi:(NSString *)jsApiName; // 默认分组 + +- (NSArray *)jsApis:(NSString *)groupId; +- (NSArray *)jsApis; // 默认分组 + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKJsBridge.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKJsBridge.h new file mode 100644 index 0000000..cc8c4ce --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKJsBridge.h @@ -0,0 +1,149 @@ +// +// RVKJsBridge.h +// Poseidon +// +// Created by chenwenhong on 14-8-13. +// Copyright (c) 2014年 Alipay. All rights reserved. +// + +#import +#import +#import "RVKJsApi.h" + +@class RVKPage; +@class RVKContentView; +@class RVKPageParam; + +//JsBridge类,用来处理Native和Js的相互调用 +@interface RVKJsBridge : NSObject + +/** + * @brief 创建一个JsBridge对象 + * + * @date 2014-08-20 + * + * @param page 关联的RVKPage对象 + * @param webView 关联的contentView对象 + * @param delegate contentView的代理 + * + * @return 返回一个JsBridge对象 + */ ++ (instancetype)bridge4Page:(RVKPage *)page contentView:(RVKContentView *)contentView pageParam:(RVKPageParam *)pageParam; + +/** + * @brief 返回bridge是否准备好(已经注入基本的bridge) + * + * @date 2014-11-21 + * + * @return 返回是否准备好 + */ +- (BOOL)isBridgeReady; + +/** + * @brief Native调用Js + * + * @date 2014-08-20 + * + * @param message 传递的消息参数 + * + * @return 无 + */ +- (void)send:(NSDictionary *)message; + +/** + * @brief Native调用Js + * + * @date 2014-08-20 + * + * @param message 传递的消息参数 + * @param responseCallback 回调 + * + * @return 无 + */ +- (void)send:(NSDictionary *)message responseCallback:(RVKJsApiResponseCallbackBlock)responseCallback; + +/** + * @brief Native调用Js + * + * @date 2014-08-20 + * + * @param handlerName js函数 + * + * @return 无 + */ +- (void)callHandler:(NSString *)handlerName; + +/** + * @brief Native调用Js + * + * @date 2014-08-20 + * + * @param handlerName js函数 + * @param data 传递的消息参数 + * + * @return 无 + */ +- (void)callHandler:(NSString *)handlerName data:(NSDictionary *)data; + +/** + * @brief Native调用Js + * + * @date 2014-08-20 + * + * @param handlerName js函数 + * @param data 传递的消息参数 + * @param responseCallback 回调 + * + * @return 无 + */ +- (void)callHandler:(NSString *)handlerName data:(NSDictionary *)data responseCallback:(RVKJsApiResponseCallbackBlock)responseCallback; + +- (void)callJsApi:(NSString *)jsApiName + url:(NSString *)url + data:(NSDictionary *)data + responseCallback:(RVKJsApiResponseCallbackBlock)responseCallback; + +/** + * @brief 向html插入本地js文件 + * + * @date 2014-08-20 + * + * @param webView 关联的webView对象 + * + * @return 无 + */ +- (void)loadJSBridgeFileWithDyInjctJsCodeSnippets:(NSString *)dyInjctJsCodeSnippets; + +/** + * @brief 注入js + * + * @date 2014-11-21 + * + * @param js js片段 + * + * @return 无 + */ +- (void)loadJS:(NSString *)js; + +/** + * @brief 重置JsBridge状态 + * + * @date 2014-08-20 + * + * @return 无 + */ +- (void)reset; + + +/** + 转化ResponseData,支持ArrayBuffer + + @param NSDictionary 原始数值 + @return 转化后的数据 + */ +- (NSDictionary *)transformResponseData:(id)responseData; + +// for diagnose purpose +- (NSArray *)ignoreDiagnoseEventList; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKKernel.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKKernel.h new file mode 100644 index 0000000..e055955 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKKernel.h @@ -0,0 +1,172 @@ +// +// RVKKernel.h +// Poseidon +// +// Created by chenwenhong on 14/7/17. +// Copyright (c) 2014年 Alipay. All rights reserved. +// + +#import +#import "RVKEventTargetProtocol.h" +#import "RVKExpandoProtocol.h" +#import "RVKEvent.h" + + +#define RVK_DEFINE_FUNCTION(returnType, var) \ +- (id)var \ +{ \ + if (_##var == nil) { \ + _##var = [[returnType alloc] init]; \ + } \ + return _##var; \ +} + +#define RVK_ASSERT(condition) \ +if (!condition) {\ + NSString *reason = [NSString stringWithFormat:@"\n\n***********************************************************\nPOSEIDON内核抛出的断言(Kernel Assert):\n函数:%s-%d \ncondition=%s\n\n", __FUNCTION__, __LINE__, #condition];\ + NSLog(@"%@",reason);\ +} + +#define RVK_ASSERT2(condition, desc) \ +if (!condition) {\ + NSString *reason = [NSString stringWithFormat:@"\n\n***********************************************************\nPOSEIDON内核抛出的断言(Kernel Assert):\n函数:%s-%d \ncondition=%s desc=%@\n\n", __FUNCTION__, __LINE__, #condition, desc];\ + NSLog(@"%@", reason);\ +} + +@class RVKJsApiManager; +@class RVKPluginManager; +@class RVKExtensionNodeRegistry; + +//内核对象 +@interface RVKKernel : NSObject + +/** + * @brief 获取jsApi管理实例 + * + * @date 2015-08-14 + * + * @return 返回jsApi管理实例 + */ +- (RVKJsApiManager *)jsApiManager; + +/** + * @brief 获取plugin管理实例 + * + * @date 2015-08-14 + * + * @return 返回plugin管理实例 + */ +- (RVKPluginManager *)pluginManager; + +- (RVKExtensionNodeRegistry *)extensionManager; + +/** + * @brief 返回父节点对象 + * + * @date 2014-08-20 + * + * @return 返回父节点对象 + */ +- (RVKKernel *)parentKernelObject; + +/** + * @brief 添加一个子节点对象 + * + * @date 2014-08-20 + * + * @param object 子节点对象 + * + * @return 无 + */ +- (void)addSubObject:(RVKKernel *)object; + +/** + * @brief 移除一个子节点对象 + * + * @date 2014-08-20 + * + * @param object 子节点对象 + * + * @return 无 + */ +- (void)removeSubObject:(RVKKernel *)object; + +/** + * @brief 移除第一个子节点 + * + * @date 2015-08-14 + * + * @return 无 + */ +- (void)removeFirstSubObject; + +/** + * @brief 移除最后一个子节点 + * + * @date 2015-08-14 + * + * @return 无 + */ +- (void)removeLastSubObject; + +/** + * @brief 从父节点移除 + * + * @date 2014-08-20 + * + * @return 无 + */ +- (void)removeFromSuperObject; + +/** + * @brief 返回所有子节点对象数组 + * + * @date 2014-08-20 + * + * @return 返回所有子节点对象数组 + */ +- (NSArray *)subObjects; + +/** + * @brief 获取第一个子节点 + * + * @date 2015-08-14 + * + * @return 返回第一个子节点 + */ +- (RVKKernel *)firstSubObject; + +/** + * @brief 获取最后一个子节点 + * + * @date 2015-08-14 + * + * @return 返回最后一个子节点 + */ +- (RVKKernel *)lastSubObject; + +/** + * @brief 返回唯一id + * + * @date 2014-08-20 + * + * @return 返回唯一id + */ +- (NSString *)uniqueId; + +/** + * 分发消息给当前的EventTarget对象 + * + * @param event RVKEvent类型的事件对象 + * + * @return 如果事件处理过程中,有target调用了preventDefault,就返回NO + */ +- (BOOL)dispatchEvent:(RVKEvent *)event; + +/** + * 定义结点scope,默认返回scope-undefined + */ +- (NSString *)scope; + + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKLogger.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKLogger.h new file mode 100644 index 0000000..f43349a --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKLogger.h @@ -0,0 +1,39 @@ +// +// RVKLogger.h +// NebulaPoseidon +// +// Created by theone on 16/11/25. +// Copyright © 2016年 Alipay. All rights reserved. +// + +#import + +#define RVKLogInfo(logType,fmt, ...) RVKLog(nil, logType,fmt, ##__VA_ARGS__) +#define RVKLogDebug(logType,fmt, ...) RVKLog(RVKLocalLogLevelDebug, logType, fmt, ##__VA_ARGS__) +#define RVKLogLevel(level, logType, fmt, ...) RVKLog(level, logType, fmt, ##__VA_ARGS__) +#define RVKLog(level, logType, fmt, ...) [[RVKLogger shareInstance] localLogWithLevel:level type:logType content:[NSString stringWithFormat:fmt, ##__VA_ARGS__]] + +typedef NSString * RVKLocalLogType; +typedef NSString * RVKLocalLogSubType; +typedef NSString * RVKLocalLogLevel; + +extern RVKLocalLogLevel const _Nonnull RVKLocalLogLevelDebug; +extern RVKLocalLogLevel const _Nonnull RVKLocalLogLevelInfo; +extern RVKLocalLogLevel const _Nonnull RVKLocalLogLevelWarn; +extern RVKLocalLogLevel const _Nonnull RVKLocalLogLevelError; + +extern RVKLocalLogType const _Nonnull RVKLocalLogTypeConnection; +extern RVKLocalLogType const _Nonnull RVKLocalLogTypeAPI; +extern RVKLocalLogType const _Nonnull RVKLocalLogTypeEvent; +extern RVKLocalLogType const _Nonnull RVKLocalLogTypePage; + + +@interface RVKLogger : NSObject ++ (instancetype)shareInstance; +- (void)doLogWithLogId:(NSString *)logId params:(NSDictionary *)params; + +// for diagnose purpose +- (void)localLogWithLevel:(nullable RVKLocalLogLevel)level type:(nullable RVKLocalLogType)logType content:(NSString *_Nullable)content; +- (void)localLogWithLevel:(nullable RVKLocalLogLevel)level type:(nullable RVKLocalLogType)logType parentTraceId:(NSString *_Nullable)parentTraceId groupTraceId:(NSString *_Nullable)groupTraceId content:(NSString *_Nullable)content; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKLoggerProtocol.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKLoggerProtocol.h new file mode 100644 index 0000000..232b7b5 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKLoggerProtocol.h @@ -0,0 +1,11 @@ +// +// RVKLoggerProtocol.h +// NebulaPoseidon +// +// Created by theone on 16/11/25. +// Copyright © 2016年 Alipay. All rights reserved. +// + +@protocol RVKLoggerProtocol +- (void)doLogWithLogId:(NSString *)logId params:(NSDictionary *)params; +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKMonitorEvent.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKMonitorEvent.h new file mode 100644 index 0000000..ed6e670 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKMonitorEvent.h @@ -0,0 +1,28 @@ +// +// RVKMontorEvent.h +// NebulaPoseidon +// +// Created by Glance on 2017/7/1. +// Copyright © 2017年 Alipay. All rights reserved. +// + +#define kRVKLifeEventInit @"init" +#define kRVKLifeEventDealloc @"dealloc" + +extern NSString * const RVKLifeEventInit; +extern NSString * const RVKLifeEventDealloc; + + +@interface RVKMonitorEvent : RVKEvent + +@property (nonatomic, strong) NSString *lid; //支持传入较短的开关名供客户端动态开关使用 +@property (nonatomic, strong) NSString *seedId; +@property (nonatomic, strong) NSString *bizType; +@property (nonatomic, copy) NSArray *params; + ++ (RVKMonitorEvent *)logBeforeEvent:(NSString *)seedId bizType:(NSString *)bizType params:(NSArray *)params; ++ (RVKMonitorEvent *)logBeforeEvent:(NSString *)seedId bizType:(NSString *)bizType params:(NSArray *)params lid:(NSString *)lid; ++ (void)reportLifeEvent:(NSString *)lifeEvent withInstance:(NSObject *)instance; ++ (void)reportLifeEvent:(NSString *)lifeEvent withInstance:(NSObject *)instance extInfo:(NSString *)extInfo; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKNavigationEvent.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKNavigationEvent.h new file mode 100644 index 0000000..cfb51c9 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKNavigationEvent.h @@ -0,0 +1,28 @@ +// +// RVKNavigationEvent.h +// Poseidon +// +// Created by chenwenhong on 14-8-11. +// Copyright (c) 2014年 Alipay. All rights reserved. +// + +#import "RVKEvent.h" +#import +#import + +@interface RVKNavigationEvent : RVKEvent + +@property(nonatomic, strong) NSURLRequest *request; +@property(nonatomic, assign) WKNavigationType navigationType; +@property(nonatomic, strong) NSError *error; +@property(nonatomic, assign) BOOL isMainFrame; //可以通过这个属性来读取当前请求是否是mainFrame的请求,sine 10.1.28 + ++ (instancetype)allEvent:(NSURLRequest *)request; + ++ (instancetype)startEvent:(NSURLRequest *)request navigationType:(WKNavigationType)navigationType; + ++ (instancetype)completeEvent:(NSURLRequest *)request; + ++ (instancetype)errorEvent:(NSURLRequest *)request error:(NSError *)error; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKNode.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKNode.h new file mode 100644 index 0000000..4c40bb0 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKNode.h @@ -0,0 +1,19 @@ +// +// RVKNode.h +// NebulaKernel +// +// Created by theone on 2018/8/23. +// Copyright © 2018年 Alipay. All rights reserved. +// + +#import +#import + +@protocol RVKNodeProtocol +@property(nonatomic, assign) BOOL isRVKNode; +@end + + +@interface RVKNode : RVKKernel +@property(nonatomic, assign) BOOL isRVKNode; +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKPage.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKPage.h new file mode 100644 index 0000000..8c8be57 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKPage.h @@ -0,0 +1,50 @@ +// +// RVKPage.h +// Poseidon +// +// Created by chenwenhong on 14-8-8. +// Copyright (c) 2014年 Alipay. All rights reserved. +// + +#import "RVKKernel.h" +#import + +@class RVKPageParam; +@class RVKView; +@class RVKJsBridge; +@class RVKContentView; +@protocol WKNavigationDelegate; +@protocol WKUIDelegate; + +//Page类:代指浏览器打开一个页面,所产生的对象,通常一个一次跳转或者刷新产生一个Page。 +@interface RVKPage : RVKKernel + +@property(nonatomic, readonly, strong) RVKJsBridge *bridge; +@property(nonatomic, strong) NSString *pageUUID; + + +- (RVKPageParam *)createParam; + +/** + * @brief 给定一个pageParam参数,创建一个Page对象 + * + * @date 2014-08-08 + * + * @param pageParam 要创建所需要的参数,不能为nil + * + * @return 返回Page对象 + */ ++ (instancetype)pageWithPageParam:(RVKPageParam *)pageParam parentObject:(RVKKernel *)parentObject; + +@end + +//创建Page所需的参数类 +@interface RVKPageParam : NSObject + +@property(nonatomic, weak) RVKContentView *contentView; +@property(nonatomic, weak) id webViewNavigationDelegate4RVKView; +@property(nonatomic, weak) id webViewUIDelegate4RVKView; +@property(nonatomic, strong) NSDictionary *expandParams; + +@end + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKPageEvent.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKPageEvent.h new file mode 100644 index 0000000..dc8c6df --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKPageEvent.h @@ -0,0 +1,33 @@ +// +// RVKPageEvent.h +// Poseidon +// +// Created by chenwenhong on 14-8-11. +// Copyright (c) 2014年 Alipay. All rights reserved. +// + +#import "RVKEvent.h" + +@interface RVKPageEvent : RVKEvent + +@property(nonatomic, strong) NSError *error; + ++ (instancetype)allEvent; + ++ (instancetype)createEvent; + ++ (instancetype)loadStartEvent; + ++ (instancetype)loadFirstByteEvent; + ++ (instancetype)loadProgressEvent; + ++ (instancetype)loadDomReadyEvent; + ++ (instancetype)loadCompleteEvent; + ++ (instancetype)loadErrorEvent:(NSError *)error; + ++ (instancetype)destroyEvent; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKPlugin4JSApiDispatch.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKPlugin4JSApiDispatch.h new file mode 100644 index 0000000..b662796 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKPlugin4JSApiDispatch.h @@ -0,0 +1,12 @@ +// +// NXKPlugin4JSApiDispatch.h +// NebulaKernel +// +// Created by theone on 2018/9/12. +// Copyright © 2018年 Alipay. All rights reserved. +// + + +@interface RVKPlugin4JSApiDispatch : NSObject + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKPluginConfig.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKPluginConfig.h new file mode 100644 index 0000000..11a68a4 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKPluginConfig.h @@ -0,0 +1,69 @@ +// +// RVKPluginConfig.h +// Poseidon +// +// Created by chenwenhong on 14-8-11. +// Copyright (c) 2014年 Alipay. All rights reserved. +// + +#import + +//插件配置类 +@interface RVKPluginConfig : NSObject + +@property(nonatomic, readonly, copy) NSString *name; // 插件类名 +@property(nonatomic, readonly, copy) NSString *scope; // 作用域 +@property(nonatomic, readonly, strong) NSArray *events; // 插件要监听的事件名列表,RVKPluginConfigEvent + +/** + * @brief 创建一个插件配置对象 + * + * @date 2014-08-11 + * + * @param name 插件类名 + * @param events 插件要监听的事件列表,RVKPluginConfigEvent + * @param useCapture 是否是捕获消息,否则是冒泡消息,默认是NO + * + * @return 返回插件配置对象,以便进行插件的创建等处理 + */ ++ (instancetype)pluginCfgWithName:(NSString *)name + scope:(NSString *)scope + events:(NSArray *)events; + +/** + * @brief 创建一个插件配置对象 + * + * @date 2014-08-11 + * + * @param name 插件类名 + * @param events 插件要监听的事件名列表 + * @param useCapture 是否是捕获消息,否则是冒泡消息,默认是NO + * + * @return 返回插件配置对象,以便进行插件的创建等处理 + */ ++ (instancetype)pluginCfgWithName:(NSString *)name + scope:(NSString *)scope + eventNames:(NSArray *)eventNames + useCapture:(BOOL)useCapture; + +@end + +//插件配置事件类 +@interface RVKPluginConfigEvent : NSObject + +@property(nonatomic, readonly, copy) NSString *event; // 事件名称 +@property(nonatomic, readonly, assign) BOOL useCapture; // 是否捕获 + +/** + * @brief 创建一个插件配置事件对象 + * + * @date 2014-08-20 + * + * @param event 插件名称 + * @param useCapture 是否捕获 + * + * @return 返回一个插件配置事件对象 + */ ++ (instancetype)pluginConfigEvent:(NSString *)event useCapture:(BOOL)useCapture; + +@end \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKPluginHostProtocol.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKPluginHostProtocol.h new file mode 100644 index 0000000..1bd8dc8 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKPluginHostProtocol.h @@ -0,0 +1,18 @@ +// +// PluginHostProtocol.h +// Poseidon +// +// Created by chenwenhong on 14/7/21. +// Copyright (c) 2014年 Alipay. All rights reserved. +// + +#import + +//插件管理协议 +@protocol RVKPluginHostProtocol + +- (void)addPlugin:(id)plugin; + +- (void)removePlugin:(id)plugin; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKPluginManager+Private.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKPluginManager+Private.h new file mode 100644 index 0000000..475b821 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKPluginManager+Private.h @@ -0,0 +1,15 @@ +// +// RVKPluginManager+Private.h +// NebulaPoseidon +// +// Created by chenwenhong on 15/9/30. +// Copyright © 2015年 Alipay. All rights reserved. +// + +#import + +@interface RVKPluginManager (Private) + +- (id)RVKPlugin:(NSString *)pluginName; // 查找plugin,按照添加分组的逆序查找,直到默认分组 + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKPluginManager.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKPluginManager.h new file mode 100644 index 0000000..3b9a1fd --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKPluginManager.h @@ -0,0 +1,68 @@ +// +// RVKPluginMgr.h +// Poseidon +// +// Created by chenwenhong on 14-8-11. +// Copyright (c) 2014年 Alipay. All rights reserved. +// + +#import + +@class RVKPluginConfig; +@protocol RVKPluginProtocol; + +//插件管理类 +@interface RVKPluginManager : NSObject + +@property(nonatomic, weak) RVKKernel *target; +@property(nonatomic, copy) NSString *scope; + +/** + * @brief 注册默认的已经配置的插件 + * + * @date 2014-08-11 + * + * @return 无 + */ +- (void)registerDefaultPlugins; + +/** + * @brief 注册一个插件配置对象 + * + * @date 2014-08-20 + * + * @param pluginCfg 插件配置对象 + * + * @return 无 + */ +- (void)registerPlugin:(RVKPluginConfig *)pluginCfg groupId:(NSString *)groupId; +- (void)registerPlugin:(RVKPluginConfig *)pluginCfg; + +/** + * @brief 注册一组插件配置对象 + * + * @date 2014-08-11 + * + * @param pluginCfgs 插件配置对象数组,类型是RVKPluginConfig + * + * @return 无 + */ +- (void)registerPlugins:(NSArray *)pluginCfgs groupId:(NSString *)groupId; +- (void)registerPlugins:(NSArray *)pluginCfgs; + +- (void)unregisterPlugin:(RVKPluginConfig *)pluginCfg groupId:(NSString *)groupId; +- (void)unregisterPlugin:(RVKPluginConfig *)pluginCfg; + +- (void)unregisterPluginName:(NSString *)pluginName groupId:(NSString *)groupId; +- (void)unregisterPluginName:(NSString *)pluginName; + +- (void)unregisterPlugins:(NSString *)groupId; +- (void)unregisterPlugins; + +- (NSArray *)plugins:(NSString *)groupId; +- (NSArray *)plugins; + +- (id)plugin:(NSString *)name groupId:(NSString *)groupId; +- (id)plugin:(NSString *)name; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKPluginProtocol.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKPluginProtocol.h new file mode 100644 index 0000000..1a39b2e --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKPluginProtocol.h @@ -0,0 +1,26 @@ +// +// PluginProtocol.h +// Poseidon +// +// Created by chenwenhong on 14/7/17. +// Copyright (c) 2014年 Alipay. All rights reserved. +// + +#import +@class RVKEvent; +@class RVKKernel; + +//插件协议 +@protocol RVKPluginProtocol + +@property(nonatomic, readonly, copy) NSString *name; // 插件名称 + +@required +- (void)handleEvent:(RVKEvent *)event; // 插件事件处理函数 + +@optional +- (void)associateWeakTarget:(RVKKernel *)weakTarget; // 请用weak,每添加一个事件调用一次 + +- (int)priority; // 每添加一个事件调用一次 + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKPrivateDefine.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKPrivateDefine.h new file mode 100644 index 0000000..9781ae7 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKPrivateDefine.h @@ -0,0 +1,18 @@ +// +// RVKPrivateDefine.h +// NebulaPoseidon +// +// Created by chenwenhong on 15/9/30. +// Copyright © 2015年 Alipay. All rights reserved. +// + +#ifndef RVKPrivateDefine_h +#define RVKPrivateDefine_h + +#define kRVKSDKVersion @"1.2.0.0" + +#define kSharedPluginGroupId @"^NEBULAPOSEIDON^_kSharedPluginGroupId_^NEBULAPOSEIDON^" +#define kSharedJsApiGroupId @"^NEBULAPOSEIDON^_kSharedJsApiGroupId_^NEBULAPOSEIDON^" + + +#endif /* RVKPrivateDefine_h */ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKProxy+Private.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKProxy+Private.h new file mode 100644 index 0000000..3ffdb28 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKProxy+Private.h @@ -0,0 +1,15 @@ +// +// RVKProxy+Private.h +// Poseidon +// +// Created by chenwenhong on 15-1-28. +// Copyright (c) 2015年 Alipay. All rights reserved. +// + +#import "RVKProxy.h" + +@interface RVKProxy (Private) + ++ (instancetype)sharedInstance; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKProxy.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKProxy.h new file mode 100644 index 0000000..622fdd5 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKProxy.h @@ -0,0 +1,86 @@ +// +// RVKProxy.h +// Poseidon +// +// Created by silentcloud on 8/13/14. +// Copyright (c) 2014 Alipay. All rights reserved. +// +#import +#import "RVKResponse.h" +#import +#import + +@protocol RVKPluginProtocol; +@class RVKKernel; + +@interface RVKProxy : RVKKernel + +//禁止创建实例 ++ (instancetype)alloc UNAVAILABLE_ATTRIBUTE; + +- (instancetype)init UNAVAILABLE_ATTRIBUTE; + +- (id)copy UNAVAILABLE_ATTRIBUTE; + ++ (instancetype)allocWithZone:(struct _NSZone *)zone UNAVAILABLE_ATTRIBUTE; + ++ (instancetype)new UNAVAILABLE_ATTRIBUTE; + + +// 启动仅仅是初始化,如果要启用,需要调用enableProxy ++ (void)startWithCanInterceptWebRequest:(BOOL)canInterceptWebRequest + canProcessResponse:(BOOL)canProcessResponse + canMonitor:(BOOL)canMonitor + canIgnoreSSLError:(BOOL)canIgnoreSSLError; + ++ (void)enableProxy; + ++ (void)disableProxy; + ++ (BOOL)canMonitor; + ++ (BOOL)canProcessResponse; + ++ (BOOL)canIgnoreSSLError; + ++ (void)setUseDiskCache:(BOOL)use; + ++ (BOOL)canUseDiskCache; + ++ (BOOL)canUseNSURLSession; + ++ (void)setCanUseNSURLSession:(BOOL)use; + ++ (void)setNSURLSessionExtraProtocolClasses:(NSArray *)classes; + ++ (NSArray *)nSURLSessionExtraProtocolClasses; + +/** + * 清除WKBody缓存 + */ ++ (void)clearWKBodyCache; + +/** + * 给EventTarget对像添加事件监听者 + * + * @param eventType 事件类型 + * @param eventListener 事件监听者:weak引用,不会strong + * @param useCapture 是否捕获消息 + */ ++ (void)addEventListener:(NSString *)eventType + withListener:(id)eventListener + useCapture:(BOOL)useCapture; + +/** + * 给EventTarget对象移除事件监听对象 + * + * @param eventType 事件类型 + * @param eventListener 事件监听者 + * @param useCapture 是否捕获事件 + */ ++ (void)removeEventListener:(NSString *)eventType + withListener:(id)eventListener + useCapture:(BOOL)useCapture; + +@end + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKProxyEvent.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKProxyEvent.h new file mode 100644 index 0000000..b3dae0b --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKProxyEvent.h @@ -0,0 +1,109 @@ +// +// RVKProxyEvent.h +// Poseidon +// +// Created by chenwenhong on 14-11-4. +// Copyright (c) 2014年 Alipay. All rights reserved. +// + +#import "RVKEvent.h" + + +#define RVKProxyEventTraceId @"RVKProxyEventTraceId" +#define RVKProxyEventParentTraceId @"RVKProxyEventParentTraceId" + +@class RVKResponse; + +@interface RVKProxyEvent : RVKEvent + +@property(nonatomic, readonly, copy) NSString *uniqueId; +@property(nonatomic, readonly, copy) NSString *channelId; +@property(nonatomic, strong) NSURLRequest *request; // 当前的请求对象 +@property(nonatomic, strong) NSURLRequest *origRequest; // 当前请求为重定向时,指向上个请求 +@property(nonatomic, readonly, strong) NSDate *requestDate; // 请求时间 +@property(nonatomic, strong) NSURLResponse *response; // 响应对象 +@property(nonatomic, readonly, strong) NSDate *responseDate; // 响应时间 +@property(nonatomic, strong) NSData *receiveData; // 生效:kEvent_Proxy_Request_ReceiveData、kEvent_Proxy_Request_FinishReceiveData、kEvent_Proxy_Request_Finish;当event为kEvent_Proxy_Request_FinishReceiveData时,仅mimeType是:text/html、image/png、image/jpg、application/javascript、application/json、text/css时才有 +@property(nonatomic, readonly, strong) NSError *error; +@property(nonatomic, assign) BOOL willRedirectRequest; // 生效:kEvent_Proxy_Request_Start_Handler、kEvent_Proxy_Request_Response_Handler +@property(nonatomic, assign) BOOL willHoldReceiveData; // 生效:kEvent_Proxy_Request_ReceiveData +@property(nonatomic, assign) NSUInteger receiveDataLength; // 生效:kEvent_Proxy_Request_Finish +@property(nonatomic, readonly, strong) RVKResponse *customResponse; +@property(nonatomic, strong) NSURLSessionTask *task; +@property(nonatomic, strong) NSURLSessionTaskMetrics *metrics API_AVAILABLE(macosx(10.12), ios(10.0), watchos(3.0), tvos(10.0)); + +//处理request ++ (instancetype)requestHandlerEvent:(NSURLRequest *)request + requestDate:(NSDate *)requestDate + customResponse:(RVKResponse *)customResponse + channelId:(NSString *)channelId; + ++ (instancetype)startLoadEvent:(NSURLRequest *)request + requestDate:(NSDate *)requestDate + uniqueId:(NSString *)uniqueId + channelId:(NSString *)channelId; + +//将要重定向 ++ (instancetype)willRedirectEvent:(NSURLRequest *)request + origRequest:(NSURLRequest *)origRequest + redirectResponse:(NSURLResponse *)response + redirectDate:(NSDate *)redirectDate + uniqueId:(NSString *)uniqueId + channelId:(NSString *)channelId; + +//处理response、重定向 ++ (instancetype)responseHandler:(NSURLRequest *)request + response:(NSURLResponse *)response + requestDate:(NSDate *)requestDate + responseDate:(NSDate *)responseDate + channelId:(NSString *)channelId; + +//处理response ++ (instancetype)receiveResponse:(NSURLResponse *)response + request:(NSURLRequest *)request + requestDate:(NSDate *)requestDate + responseDate:(NSDate *)responseDate + uniqueId:(NSString *)uniqueId + channelId:(NSString *)channelId; + +//处理分段data ++ (instancetype)receiveDataEvent:(NSURLRequest *)request + response:(NSURLResponse *)response + receiveData:(NSData *)data + uniqueId:(NSString *)uniqueId + channelId:(NSString *)channelId; + +//处理data ++ (instancetype)finishReceiveDataEvent:(NSURLRequest *)request + response:(NSURLResponse *)response + requestDate:(NSDate *)requestDate + responseDate:(NSDate *)responseDate + receiveData:(NSData *)data + error:(NSError *)error + uniqueId:(NSString *)uniqueId + channelId:(NSString *)channelId; + ++ (instancetype)finishLoadEvent:(NSURLRequest *)request + response:(NSURLResponse *)response + requestDate:(NSDate *)requestDate + responseDate:(NSDate *)responseDate + receiveData:(NSData *)receiveData + receiveDataLength:(NSUInteger)receiveDataLength + error:(NSError *)error + uniqueId:(NSString *)uniqueId + channelId:(NSString *)channelId; + ++ (instancetype)finishCollectingMetricsEvent:(NSURLSessionTaskMetrics *)metrics + request:(NSURLRequest *)request + response:(NSURLResponse *)response + task:(NSURLSessionTask *)task + uniqueId:(NSString *)uniqueId + channelId:(NSString *)channelId API_AVAILABLE(macosx(10.12), ios(10.0), watchos(3.0), tvos(10.0)); + ++ (instancetype)requestCancelEvent:(NSURLRequest *)request + error:(NSError *)error + requestDate:(NSDate *)requestDate + uniqueId:(NSString *)uniqueId + channelId:(NSString *)channelId; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKProxyMonitorEvent.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKProxyMonitorEvent.h new file mode 100644 index 0000000..6f54921 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKProxyMonitorEvent.h @@ -0,0 +1,18 @@ +// +// RVKProxyMonitorEvent.h +// Poseidon +// +// Created by chenwenhong on 15-1-29. +// Copyright (c) 2015年 Alipay. All rights reserved. +// + +@class RVKConnectionProfile; + +@interface RVKProxyMonitorEvent : RVKEvent + +@property(nonatomic, readonly, copy) NSString *channelId; +@property(nonatomic) RVKConnectionProfile *profile; + ++ (instancetype)monitorEvent:(NSString *)channelId profile:(RVKConnectionProfile *)profile; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKProxyWKCacheManager.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKProxyWKCacheManager.h new file mode 100644 index 0000000..7ecb00c --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKProxyWKCacheManager.h @@ -0,0 +1,25 @@ +// +// RVKProxyWKCacheManager.h +// NebulaPoseidon +// +// Created by theone on 2017/9/11. +// Copyright © 2017年 Alipay. All rights reserved. +// + +#import +#define KRVKWKCacheSourceTypeOfXMLHTTPREQUEST @"KRVKWKCacheSourceTypeOfXMLHTTPREQUEST" +#define KRVKWKCacheSourceTypeOfForm @"KRVKWKCacheSourceTypeOfForm" + +@interface RVKProxyWKCacheManager : NSObject ++ (instancetype)sharedInstance; +- (void)addInfoWithKey:(NSString *)key + charset:(NSStringEncoding)charset + info:(id)info + dataType:(NSString *)type + requestUrl:(NSString *)requestUrl + sourceType:(NSString *)sourceType; +- (id)getInfoWithKey:(NSString *)key; +- (void)removeInfoWithKey:(NSString *)key; +- (void)fillRequest:(NSURLRequest *)request; +- (void)clearWKBodyCache; +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKProxyWKURLSchemeTask.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKProxyWKURLSchemeTask.h new file mode 100644 index 0000000..241840d --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKProxyWKURLSchemeTask.h @@ -0,0 +1,19 @@ +// +// NBWKURLSchemeTask.h +// TestScreen +// +// Created by theone on 2018/7/15. +// Copyright © 2018年 theone. All rights reserved. +// + +#import +#import +#define kRVKWKURLSchemeTaskWeakTask @"kRVKWKURLSchemeTaskWeakTask" + + +API_AVAILABLE(ios(11.0)) +@interface RVKProxyWKURLSchemeTask : NSObject +@property(nonatomic, weak, readonly) id task; +- (instancetype)initWithURLSchemeTask:(id)task webView:(WKWebView *)webView API_AVAILABLE(ios(11.0)); +- (void)cancelTask; +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKProxyWKURLSchemeTaskManager.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKProxyWKURLSchemeTaskManager.h new file mode 100644 index 0000000..0b3ec07 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKProxyWKURLSchemeTaskManager.h @@ -0,0 +1,16 @@ +// +// NBWKURLSchemeTaskManager.h +// TestScreen +// +// Created by theone on 2018/7/15. +// Copyright © 2018年 theone. All rights reserved. +// + +#import +#import + +API_AVAILABLE(ios(11.0)) +@interface RVKProxyWKURLSchemeTaskManager : NSObject ++ (instancetype)sharedInstance; ++ (NSString *)WKURLSchemeJSSource; +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKRegisteyScopeProtocol.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKRegisteyScopeProtocol.h new file mode 100644 index 0000000..4ed6496 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKRegisteyScopeProtocol.h @@ -0,0 +1,19 @@ +// +// RVKRegisteyScopeProtocol.h +// AriverKernel +// +// Created by 浪浪 on 2019/11/25. +// Copyright © 2019 Alipay. All rights reserved. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +@protocol RVKRegisteyScopeProtocol + +- (BOOL)isSupportExtensionScope; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKRenderPreloadProtocol.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKRenderPreloadProtocol.h new file mode 100644 index 0000000..a331bf5 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKRenderPreloadProtocol.h @@ -0,0 +1,59 @@ +// +// RVKRenderPreloadProtocol.h +// AriverKernel +// +// Created by 岚遥 on 2019/12/24. +// Copyright © 2019 Taobao. All rights reserved. +// + +#import + +@class RVKContentView; +@class RVKView; +@class RVKSession; +@class RVKScene; +@protocol RVKRenderPreloadProtocol + +@required + +/** + 判断预渲染资源是否加载完成,以及预渲染 webView 是否可用 + @param appId 当前小程序 appId +*/ +- (BOOL)checkAvailableForAppId:(NSString *)appId; + +/** + 设置 render 与 native 的通信 messageHandler + @param view 当前 webView 的容器 view + */ +- (void)configMessageHandlerWithRVKView:(RVKView *)view; + +/** + 注入启动参数js + @param scene 当前 view 的 parentObject + */ +- (void)configJSWithRVKScene:(RVKScene *)scene; + +/** + 设置小程序的正确路径 + @param urlString 小程序当前page的url + */ +- (void)setupPreRenderWithCurrentSession:(RVKSession *)session urlString:(NSString *)urlString; + +/** + 设置是否使用了预渲染的 webView + @param needUse 是否使用 + */ +- (void)usingPreRenderWebView:(BOOL)needUse; + +/** + @return 是否预渲染完成并且使用 + */ +- (BOOL)usedPreRenderWebView; + +/** + @return 返回使用的是为只预创建的webView + */ +- (BOOL)isOnlyForPreCreate; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKResponse.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKResponse.h new file mode 100644 index 0000000..d3d0f65 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKResponse.h @@ -0,0 +1,77 @@ +// +// RVKResponse.h +// Poseidon +// +// Created by chenwenhong on 14-10-15. +// Copyright (c) 2014年 Alipay. All rights reserved. +// + +#import +#import + +typedef void (^RVKStopLoadingHandler)(); + +@class RVKWebViewURLProtocol; + +@interface RVKURLCustomResponse : NSHTTPURLResponse + +@property(atomic, copy) NSString *customMIMEType; + +@end + +@interface RVKResponse : NSObject + +@property(nonatomic, assign) NSURLCacheStoragePolicy cachePolicy; //cache policy for response +@property(nonatomic, weak) RVKWebViewURLProtocol *protocol; + +- (id)initWithProtocol:(RVKWebViewURLProtocol*)protocol; + +/** + * 用类型响应对应的请求 + * 图片、文本、html、json + */ +- (void)respondWithImage:(UIImage *)image; +- (void)respondWithImage:(UIImage *)image mimeType:(NSString *)mimeType; +- (void)respondWithText:(NSString *)text; +- (void)respondWithHTML:(NSString *)html; +- (void)respondWithJSON:(NSDictionary *)jsonObject; + +/** + * 手动停止比较耗时的加载请求 + * @param stopLoadingHandler 回调 + */ +- (void)handleStopLoadingRequest:(void (^)(void))stopLoadingHandler; + +/** + * HTTP status error code and text + * @param statusCode 错误码 text 错误信息 + * eg: respondWithError:404 text:@"Not found" + */ +- (void)respondWithError:(NSInteger)statusCode text:(NSString *)text; + +/** + * 设置响应头 + * eg : setHeader:@"Content-Type" value:@"image/gif" + */ +- (void)setHeader:(NSString *)headerName value:(NSString *)headerValue; + +//TODO 有可能为多个同 key ,但是 NSURLResponse - (instancetype)initWithURL:(NSURL *)url statusCode:(NSInteger)statusCode HTTPVersion:(NSString *)HTTPVersion headerFields:(NSDictionary *)headerFields 传的是 dictionary + +- (void)setHeaders:(NSDictionary *)headers; + +/** + * data 响应 + * eg: respondWithData:data mimeType:@"text/plain" + */ +- (void)respondWithData:(NSData *)data mimeType:(NSString *)mimeType; +- (void)respondWithData:(NSData *)data mimeType:(NSString *)mimeType statusCode:(NSInteger)statusCode; + +- (void)startLoading; +- (void)responseWithCode:(NSInteger)code mimeType:(NSString *)mimeType contentLength:(NSString *)length; +- (void)responseWithURL:(NSURL *)url statusCode:(NSInteger)code mimeType:(NSString *)mimeType contentLength:(NSString *)length; +- (void)wasRedirectedToRequest:(NSURLRequest *)request redirectResponse:(NSURLResponse *)response; +- (void)finishLoadData:(NSData *)data; +- (void)failLoadWithError:(NSError *)error; + + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKScene.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKScene.h new file mode 100644 index 0000000..36b81e9 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKScene.h @@ -0,0 +1,67 @@ +// +// RVKScene.h +// Poseidon +// +// Created by chenwenhong on 14-8-8. +// Copyright (c) 2014年 Alipay. All rights reserved. +// + +#import "RVKKernel.h" +#import +#import + +@class RVKSceneParam; +@class RVKSession; +@class RVKView; + +//Scene类:类似一个ViewController。 +@interface RVKScene : RVKKernel + +@property(nonatomic, strong) RVKView *rvkView; + +- (RVKSceneParam *)createParam; + +- (UIViewController *)viewController; + +- (NSArray *)dyJsUrls; + +- (NSString *)startupParamsJs; + +- (NSString *)codeSnippets4InsertAlipayJsBridgeFile; + +- (NSArray *)independenceUserScripts; + +- (NSArray *)relayOnAlipayJsBridgeUserScripts; + +- (void)injctIndependenceJs; // 注入单独的JS文件 + +- (void)injctJsRelyOnAlipayJsBridge; // 依赖于AlipayJSBridge +/** + * @brief 给定一个sceneParam参数,创建一个Scene对象,该Scene对象包含一个View对象 + * + * @date 2014-08-08 + * + * @param sceneParam 要创建所需要的参数,不能为nil + * + * @return 返回Scene对象 + */ ++ (instancetype)sceneWithSceneParam:(RVKSceneParam *)sceneParam parentObject:(RVKKernel *)parentObject; + +@end + + +/** + * @brief 创建Scene的参数类 + * + * @date 2014-08-08 + * + * @return 无 + */ +@interface RVKSceneParam : NSObject + +@property(nonatomic, strong) Class viewControllerCls; // default is RVKViewController +@property(nonatomic, strong) Class contentViewCls; // default is RVKWebVeiw +@property(nonatomic, copy) NSString *url; +@property(nonatomic, strong) NSDictionary *expandParams; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKSceneEvent.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKSceneEvent.h new file mode 100644 index 0000000..158cbc3 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKSceneEvent.h @@ -0,0 +1,42 @@ +// +// RVKSceneEvent.h +// Poseidon +// +// Created by chenwenhong on 14-8-11. +// Copyright (c) 2014年 Alipay. All rights reserved. +// + +#import "RVKEvent.h" + +@interface RVKSceneEvent : RVKEvent + ++ (instancetype)allEvent; + ++ (instancetype)createEvent; + ++ (instancetype)appearBeforeEvent; + ++ (instancetype)appearAfterEvent; + ++ (instancetype)loadEvent; + ++ (instancetype)didLoadEvent; + ++ (instancetype)readyEvent; + ++ (instancetype)layoutEvent; + ++ (instancetype)didUnLoadEvent; + ++ (instancetype)disappearBeforeEvent; + ++ (instancetype)disappearAfterEvent; + ++ (instancetype)destroyEvent; + ++ (instancetype)destroyBeforeEvent; + ++ (instancetype)startFirstRequestEvent; + ++ (instancetype)paramsInitEvent; +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKSchedulableProtocol.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKSchedulableProtocol.h new file mode 100644 index 0000000..0c5756b --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKSchedulableProtocol.h @@ -0,0 +1,13 @@ +// +// RVKSchedulableProtocol.h +// NebulaKernel +// +// Created by theone on 2018/8/24. +// Copyright © 2018年 Alipay. All rights reserved. +// + +#import + +@protocol RVKSchedulableProtocol + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKScriptMessageHandlerProxy.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKScriptMessageHandlerProxy.h new file mode 100644 index 0000000..b5a8297 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKScriptMessageHandlerProxy.h @@ -0,0 +1,15 @@ +// +// RVKScriptMessageHandlerProxy.h +// NebulaPoseidon +// +// Created by theone on 2017/11/2. +// Copyright © 2017年 Alipay. All rights reserved. +// + +#import + +@class RVKView; + +@interface RVKScriptMessageHandlerProxy : NSObject +@property(nonatomic, weak) RVKView *RVKView; +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKService+Private.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKService+Private.h new file mode 100644 index 0000000..d4dd403 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKService+Private.h @@ -0,0 +1,40 @@ +// +// RVKService+Private.h +// Poseidon +// +// Created by chenwenhong on 15-1-28. +// Copyright (c) 2015年 Alipay. All rights reserved. +// + + +@interface RVKService (Private) + +/** + * @brief 在默认分组下,反注册一个插件 + * + * @date 2014-09-03 + * + * @param pluginCfg 插件配置对象 + * + * @return 无 + */ +- (void)unRegisterPlugin:(RVKPluginConfig *)pluginCfg; + +/** + * @brief 反注册一个JsApi,在默认分组下 + * + * @date 2014-09-03 + * + * @param jsApi jsApi对象 + * + * @return 无 + */ +- (void)unRegisterJsApi:(RVKJsApi *)jsApi; // 默认分组 + + +/** + 恢复WK同步过的CooKie + */ +- (void)recoveryCookies; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKService.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKService.h new file mode 100644 index 0000000..0119101 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKService.h @@ -0,0 +1,374 @@ +// +// RVKService.h +// Poseidon +// +// Created by chenwenhong on 14/7/25. +// Copyright (c) 2014年 Alipay. All rights reserved. +// + +#import "RVKKernel.h" + +@class RVKSessionParam; +@class RVKSession; +@class RVKSceneParam; +@class RVKScene; +@class RVKViewParam; +@class RVKView; +@class RVKJsApiConfig; +@class RVKPluginConfig; +@class RVKJsApi; + +//容器的服务类 +@interface RVKService : RVKKernel + ++ (instancetype)alloc UNAVAILABLE_ATTRIBUTE; + +- (instancetype)init UNAVAILABLE_ATTRIBUTE; + +- (id)copy UNAVAILABLE_ATTRIBUTE; + ++ (instancetype)allocWithZone:(struct _NSZone *)zone UNAVAILABLE_ATTRIBUTE; + ++ (instancetype)new UNAVAILABLE_ATTRIBUTE; + +/** + * @brief 取得Service实例 + * + * @date 2014-08-07 vc + * + * @return 返回Service实例 + */ ++ (RVKService *)sharedInstance; + +/** + * @brief 启动服务(加载所有默认配置,包含jsApi、插件) + * + * @date 2015-08-14 + * + * @return 无 + */ +- (void)start; + +/** + * @brief 给定一个sessionParam参数,创建一个Session对象。注:service会strong引用该对象,需要手动调用session.removeFromSuperObject; + * + * @date 2014-08-07 + * + * @param sessionParam 参数,不能为nil + * + * @return 返回Session对象 + */ +- (RVKSession *)createSessionWithSessionParam:(RVKSessionParam *)sessionParam; + +- (RVKSession *)createSessionWithSessionParam:(RVKSessionParam *)sessionParam expando:(NSDictionary *)expandoDict; + +/** + * @brief 给定一个sceneParam参数,创建一个Scene对象。注:service会strong引用该对象,需要手动调用scene.removeFromSuperObject; + * + * @date 2014-08-08 + * + * @param sceneParam 参数,不能为nil + * + * @return 返回Scene对象 + */ +- (RVKScene *)createSceneWithSceneParam:(RVKSceneParam *)sceneParam; + +- (RVKScene *)createSceneWithSceneParam:(RVKSceneParam *)sceneParam parentObject:(RVKKernel *)parentObject; + +/** + * @brief 给定一个viewParam参数,创建一个View对象。注:service会strong引用该对象,需要手动调用view.removeFromSuperObject; + * + * @date 2014-08-08 + * + * @param viewParam 参数,不能为nil + * + * @return 返回View对象 + */ +- (RVKView *)createViewWithViewParam:(RVKViewParam *)viewParam; + +- (RVKView *)createViewWithViewParam:(RVKViewParam *)viewParam parentObject:(RVKKernel *)parentObject; + +#pragma mark - service api + +/** + * @brief 注册一个JsApi,在特定分组下 + * + * @date 2014-09-03 + * + * @param jsApi jsApi对象 + * @param groupId 分组id + * + * @return 无 + */ +- (void)registerJsApi:(RVKJsApi *)jsApi groupId:(NSString *)groupId; + +/** + * @brief 注册一组JsApi,在特定分组下 + * + * @date 2014-09-03 + * + * @param jsApis jsApi对象的数组 + * @param groupId 分组id + * + * @return 无 + */ +- (void)registerJsApis:(NSArray *)jsApis groupId:(NSString *)groupId; // RVKJsApi + +/** + * @brief 注册一个JsApi,在默认分组下 + * + * @date 2014-09-03 + * + * @param jsApi jsApi对象 + * + * @return 无 + */ +- (void)registerJsApi:(RVKJsApi *)jsApi; // 默认分组kSharedJsApiGroupId + +/** + * @brief 注册一组JsApi,在默认分组下 + * + * @date 2014-09-03 + * + * @param jsApis jsApi对象的数组 + * + * @return 无 + */ +- (void)registerJsApis:(NSArray *)jsApis; // RVKJsApi 默认分组kSharedJsApiGroupId + +/** + * @brief 反注册一个JsApi,在默认分组下 + * + * @date 2014-09-03 + * + * @param jsApi jsApi对象 + * + * @return 无 + */ +- (void)unregisterJsApi:(RVKJsApi *)jsApi; + +/** + * @brief 反注册一组JsApi,在特定分组下 + * + * @date 2014-09-03 + * + * @param jsApis jsApi对象的数组 + * @param groupId 分组id + * + * @return 无 + */ +- (void)unRegisterJsApis:(NSString *)groupId; + +/** + * @brief 获取指定分组和名字的JsApi对象 + * + * @date 2014-09-03 + * + * @param name JsApi名字 + * @param groupId 分组id + * + * @return 返回指定分组和名称的JsApi对象 + */ +- (RVKJsApi *)jsApi:(NSString *)name groupId:(NSString *)groupId; + +/** + * @brief 获取默认分组和名字的JsApi对象 + * + * @date 2014-09-03 + * + * @param name JsApi名字 + * + * @return 返回默认分组和名称的JsApi对象 + */ +- (RVKJsApi *)jsApi:(NSString *)name; + +/** + * @brief 获取指定分组下所有JsApi对象 + * + * @date 2014-09-03 + * + * @param groupId 分组id + * + * @return 返回指定分组下所有的JsApi对象 + */ +- (NSArray *)jsApis:(NSString *)groupId; + +/** + * @brief 获取默认分组下所有JsApi对象 + * + * @date 2014-09-03 + * + * @return 返回默认分组下所有的JsApi对象 + */ +- (NSArray *)jsApis; + +#pragma mark - service plugin + +/** + * @brief 获取特定分组下的所有插件 + * + * @date 2014-09-03 + * + * @param groupId 分组id + * + * @return 返回特定分组下的所有插件 + */ +- (NSArray *)plugins:(NSString *)groupId; + +/** + * @brief 获取默认分组下的所有插件 + * + * @date 2014-09-03 + * + * @return 返回默认分组下的所有插件 + */ +- (NSArray *)plugins; + +/** + * @brief 根据分组id和插件名称,获取插件 + * + * @date 2014-09-03 + * + * @param name 插件名称 + * @param groupId 分组id + * + * @return 返回找到的插件 + */ +- (id)plugin:(NSString *)name groupId:(NSString *)groupId; + +/** + * @brief 查找(默认分组和)插件名称,获取插件 + * + * @date 2014-09-03 + * + * @param name 插件名称 + * + * @return 返回找到的插件 + */ +- (id)plugin:(NSString *)name; + +/**************************************************Config JSApi******************************************************/ +#pragma mark - Config JSApi + +/** + * @brief 注册一个JsApi,在默认分组下(注:对于scope是kRVKScope_Service,直接作用到service上。否则,只能作用于到新创建的内核实例上) + * + * @date 2014-09-03 + * + * @param jsApiCfg jsApiCfg对象 + * + * @return 无 + */ +- (void)registerJsApiCfg:(RVKJsApiConfig *)jsApiCfg; // 默认分组 + +/** + * @brief 注册一组JsApi,在默认分组下(注:对于scope是kRVKScope_Service,直接作用到service上。否则,只能作用于到新创建的内核实例上) + * + * @date 2014-09-03 + * + * @param jsApiCfgs jsApiCfg对象的数组 + * + * @return 无 + */ +- (void)registerJsApiCfgs:(NSArray *)jsApiCfgs; // RVKJsApiConfig + +/** + * @brief 反注册一个JsApi,在默认分组下(注:对于scope是kRVKScope_Service,直接作用到service上。否则,只能作用于到新创建的内核实例上) + * + * @date 2014-09-03 + * + * @param jsApiCfg jsApiCfg对象 + * + * @return 无 + */ +- (void)unregisterJsApiCfg:(RVKJsApiConfig *)jsApiCfg; + +/** + * @brief 反注册一组JsApi,在默认分组下(注:对于scope是kRVKScope_Service,直接作用到service上。否则,只能作用于到新创建的内核实例上) + * + * @date 2014-09-03 + * + * @param jsApiCfgs jsApiCfg对象的数组 + * + * @return 无 + */ +- (void)unregisterJsApiCfgs:(NSArray *)jsApiCfgs; // RVKJsApiConfig + +/**************************************************Config Plugin******************************************************/ +#pragma mark - config Plugin + +/** + * @brief 注册一个插件,并赋予默认的分组(注:对于scope是kRVKScope_Service,直接作用到service上。否则,只能作用于到新创建的内核实例上) + * + * @date 2014-09-03 + * + * @param pluginCfg 插件配置对象 + * + * @return 无 + */ +- (void)registerPluginCfg:(RVKPluginConfig *)pluginCfg; + +/** + * @brief 注册一组插件,并赋予默认的分组(注:对于scope是kRVKScope_Service,直接作用到service上。否则,只能作用于到新创建的内核实例上) + * + * @date 2014-09-03 + * + * @param pluginCfgs 插件配置对象的数组 + * + * @return 无 + */ +- (void)registerPluginCfgs:(NSArray *)pluginCfgs; // RVKPluginConfig + +/** + * @brief 在默认分组下,反注册一个插件(注:对于scope是kRVKScope_Service,直接作用到service上。否则,只能作用于到新创建的内核实例上) + * + * @date 2014-09-03 + * + * @param pluginCfg 插件配置对象 + * @param groupId 分组id + * + * @return 无 + */ +- (void)unregisterPluginCfg:(RVKPluginConfig *)pluginCfg; + +/** + * @brief 在默认分组下,反注册一组插件(注:对于scope是kRVKScope_Service,直接作用到service上。否则,只能作用于到新创建的内核实例上) + * + * @date 2014-09-03 + * + * @param pluginCfgs 插件配置对象的数组 + * @param groupId 分组id + * + * @return 无 + */ +- (void)unregisterPluginCfgs:(NSArray *)pluginCfgs; // RVKPluginConfig + + +/** + * 注册一个Component + * + * @param name component名称 + * @param clsName component对应的实现类名 + * @return 无 + */ +- (void)registerComponentWithName:(NSString *)name clsName:(NSString *)clsName; + + +/** + * 反注册一个Component + * + * @param name component名称 + * @return 无 + */ +- (void)unRegisterComponentWithName:(NSString *)name; + +/** + * 所有已经注册的Component + * + * @return 已经注册的Component + */ +- (NSDictionary *)components; + +- (BOOL)isStartMode; +@end + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKSession.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKSession.h new file mode 100644 index 0000000..241c079 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKSession.h @@ -0,0 +1,53 @@ +// +// RVKSession.h +// Poseidon +// +// Created by chenwenhong on 14-8-6. +// Copyright (c) 2014年 Alipay. All rights reserved. +// + +#import "RVKKernel.h" + +@class RVKSessionParam; +@class RVKScene; +@class RVKPluginConfig; + +//Session类:是指完成一系列动作的抽象。 +@interface RVKSession : RVKKernel + +@property(nonatomic, strong) NSString *sessionUUID; + +- (RVKSessionParam *)createParam; + +- (RVKScene *)currentScene; + +/** + * @brief 给定一个sessionParam参数,创建一个Session对象,该session对象包含一个Scene对象 + * + * @date 2014-08-08 + * + * @param sessionParam 要创建所需的参数,不能为nil + * + * @return 返回Session对象 + */ ++ (instancetype)sessionWithSessionParam:(RVKSessionParam *)sessionParam + parentObject:(RVKKernel *)parentObject; + ++ (instancetype)sessionWithSessionParam:(RVKSessionParam *)sessionParam + expando:(NSDictionary *)expandoDict + parentObject:(RVKKernel *)parentObject; + +@end + + +//创建Session的参数类 +@interface RVKSessionParam : NSObject + +@property(nonatomic, strong) Class viewControllerCls; +@property(nonatomic, strong) Class contentViewCls; +@property(nonatomic, copy) NSString *url; +@property(nonatomic, strong) NSDictionary *expandParams; + +@end + + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKSessionEvent.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKSessionEvent.h new file mode 100644 index 0000000..e093a0a --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKSessionEvent.h @@ -0,0 +1,45 @@ +// +// RVKSessionEvent.h +// Poseidon +// +// Created by chenwenhong on 14-8-11. +// Copyright (c) 2014年 Alipay. All rights reserved. +// + +#import "RVKEvent.h" + +@interface RVKSessionEvent : RVKEvent + +/** + * @brief 创建一个all事件,可以监听所有Session事件 + * + * @date 2014-08-11 + * + * @return 返回一个all事件 + */ ++ (instancetype)allEvent; + +/** + * @brief 创建一个create事件:Session创建的事件 + * + * @date 2014-08-11 + * + * @return 返回一个create事件 + */ ++ (instancetype)createEvent; + +/** + * @brief 创建一个destroy事件:Session销毁的事件 + * + * @date 2014-08-11 + * + * @return 返回一个destroy事件 + */ ++ (instancetype)destroyEvent; + +/** + * @brief 创建点击关闭事件 + */ ++ (instancetype)closeClickedEvent; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKURLProtocolProcessor.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKURLProtocolProcessor.h new file mode 100644 index 0000000..a0b61c1 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKURLProtocolProcessor.h @@ -0,0 +1,33 @@ +// +// RVKURLProtocolProcessor.h +// Poseidon +// +// Created by chenwenhong on 14-10-15. +// Copyright (c) 2014年 Alipay. All rights reserved. +// + +#import +#import "RVKWebViewURLProtocol.h" + +//URLProtocol处理,以便插入监控等 +@interface RVKURLProtocolProcessor : NSObject + +// for diagnose purpose +@property(nonatomic, copy) NSString *parentTraceId; +@property(nonatomic, copy) NSString *traceId; + +@end + +@protocol RVKURLProtocolProcessorDelegate + +@optional +- (void)RVKURLProtocolProcessor:(RVKURLProtocolProcessor *)processor willStartLoading:(NSURLRequest *)request channelId:(NSString *)channelId; +- (void)RVKURLProtocolProcessor:(RVKURLProtocolProcessor *)processor startLoading:(NSURLRequest *)request; +- (void)RVKURLProtocolProcessor:(RVKURLProtocolProcessor *)processor wasRedirectedToRequest:(NSURLRequest *)request redirectResponse:(NSURLResponse *)redirectResponse receiveData:(NSData *)receiveData; +- (void)RVKURLProtocolProcessor:(RVKURLProtocolProcessor *)processor didReceiveResponse:(NSURLResponse *)response; +- (void)RVKURLProtocolProcessor:(RVKURLProtocolProcessor *)processor didLoadData:(NSData *)data; +- (void)RVKURLProtocolProcessor:(RVKURLProtocolProcessor *)processor didFinishLoading:(NSData *)receiveData receiveDataLength:(NSUInteger)receiveDataLength protocol:(NSURLProtocol *)protocol; +- (void)RVKURLProtocolProcessor:(RVKURLProtocolProcessor *)processor didFailWithError:(NSError *)error protocol:(NSURLProtocol *)protocol; +- (void)RVKURLProtocolProcessor:(RVKURLProtocolProcessor *)processor didCancel:(NSError *)error protocol:(NSURLProtocol *)protocol; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKUtils.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKUtils.h new file mode 100644 index 0000000..612187e --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKUtils.h @@ -0,0 +1,31 @@ +// +// RVKUtils.h +// NebulaPoseidon +// +// Created by theone on 2017/9/11. +// Copyright © 2017年 Alipay. All rights reserved. +// + +#import +#import "RVKWebView.h" + +//********************** Encode ***********************// +NSStringEncoding RVKEncodingFromAcceptCharset(NSString *acceptCharset, NSString *documentCharset); +BOOL RVKIsNonByteBasedEncoding(NSStringEncoding currentEncodeing); +BOOL RVKIsUTF7Encoding(NSStringEncoding currentEncodeing); +NSStringEncoding RVKEncodingForFormSubmission(NSStringEncoding currentEncodeing); +NSString* RVKURLEncodeString(NSString *string); +NSDictionary *RVKURLGetQuery(NSString *queryString); +NSString *RVKURLEncodeData(NSData *data); +NSURL *RVKURLWithFixedString(NSString *URLString); +NSString *RVKGetCookiesStrWithUrlAndCookies(NSURL *url, NSArray *cookies); +NSArray *RVKGetFilterCookies(NSArray *cookies); +BOOL RVKShouldUseNewMethodSyncWKCookies(); +NSString *RVKMD5(NSString *string); +NSString *RVKGetTokenWithContentView(RVKContentView *view); +NSString *RVKReplaceString(NSString *jsStr,NSString *targetStr, NSString *replaceStr); +NSString *RVKReplaceBridgeWithContentView(RVKContentView *view,NSString *js); +NSString *RVKString(id obj); +void RVKSetWKWebViewNavDelegate(WKWebView *webview, id delegate); +NSString *RVKGetPluginIdWithParams(NSDictionary *); +unsigned long long RVKColorNumberWithHexString(NSString *hexStr); diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKValue.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKValue.h new file mode 100644 index 0000000..6ab1456 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKValue.h @@ -0,0 +1,21 @@ +// +// RVKValue.h +// Poseidon +// +// Created by chenwenhong on 14-8-18. +// Copyright (c) 2014年 Alipay. All rights reserved. +// + +#import + +@interface RVKValue : NSObject + ++ (RVKValue *)valueWithWeakObject:(id)anObject; + +- (id)weakObjectValue; + ++ (RVKValue *)valueWithObject:(id)anObject; + +- (id)objectValue; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKView.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKView.h new file mode 100644 index 0000000..1b20d4e --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKView.h @@ -0,0 +1,67 @@ +// +// RVKView.h +// Poseidon +// +// Created by chenwenhong on 14-8-8. +// Copyright (c) 2014年 Alipay. All rights reserved. +// + +#import "RVKKernel.h" +#import + +@class RVKViewParam; +@class RVKPage; +@class RVKScene; +@class RVKContentView; + +//View类:见名知意,代表一个可视view的抽象类,通常这个类,拥有一个RVKWebView。 +@interface RVKView : RVKKernel + +@property(nonatomic, readonly, strong) RVKPage *page; + +- (RVKViewParam *)createParam; + +/** + * @brief 返回view对象 + * + * @date 2014-08-08 + * + * @return 返回view + */ +- (RVKContentView *)contentView; + +/** + * @brief 给定一个viewParam参数,创建一个View对象,该View对象包含一个Page对象 + * + * @date 2014-08-08 + * + * @param viewParam 要创建所需要的参数,不能为nil + * + * @return 返回View对象 + */ ++ (instancetype)viewWithViewParam:(RVKViewParam *)viewParam parentObject:(RVKKernel *)parentObject; + + +/** + 移除WK通信brige + */ +- (void)removeMessageHandler:(NSArray *)messageNames; + +//调用私有方法同步cookie ++ (void)saveCookieForStorage:(NSHTTPCookieStorage *)storage; + +// 获取 processPool ++ (WKProcessPool *)defaultProcessPool; + +@end + + +@interface RVKViewParam : NSObject + +@property(nonatomic, strong) Class contentViewCls; +@property(nonatomic, assign) CGRect frame; +@property(nonatomic, copy) NSString *url; +@property(nonatomic, strong) NSDictionary *expandParams; + +@end + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKViewController.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKViewController.h new file mode 100644 index 0000000..66dc61f --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKViewController.h @@ -0,0 +1,16 @@ +// +// RVKViewController.h +// Poseidon +// +// Created by chenwenhong on 14-8-8. +// Copyright (c) 2014年 Alipay. All rights reserved. +// + +#import +#import "RVKViewControllerProtocol.h" + +//VC基类 +@interface RVKViewController : UIViewController + +@end + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKViewControllerProtocol.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKViewControllerProtocol.h new file mode 100644 index 0000000..86f7e88 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKViewControllerProtocol.h @@ -0,0 +1,113 @@ +// +// RVKViewControllerProtocol.h +// Poseidon +// +// Created by chenwenhong on 14-9-3. +// Copyright (c) 2014年 Alipay. All rights reserved. +// + +#import +#import +#import + +@class RVKSceneParam; +@class RVKView; +@class RVKScene; +@class RVKSession; +@class RVKContentView; +@class WKUserScript; + +@protocol RVKViewControllerDelegate; + +@protocol RVKViewControllerProtocol + +@optional + +- (NSArray *)dyJsUrls; // 动态注入js数组 + +- (NSString *)startupParamsJs; // 启动参数js + +- (NSString *)codeSnippets4InsertAlipayJsBridgeFile; // 动态插入js片段;该方法是在插入js之前修改js文件 + +- (void)startFirstLoadRequest:(NSURL *)url; // 如果实现了该方法,需要自己loadRequest;该方法是第一次进入页面发起的请求 + +- (NSArray *)independenceUserScripts; // RVKWebViewUserScript + +- (NSArray *)relayOnAlipayJsBridgeUserScripts; // RVKWebViewUserScript + +- (void)injctIndependenceJs; // 注入单独的JS文件 + +- (void)injctJsRelyOnAlipayJsBridge; // 依赖于AlipayJSBridge + +- (BOOL)shouldSkipHandleLoadWithRequest:(NSURLRequest *)request navigationType:(__unused WKNavigationType)navigationType; + +- (void)associateWeakScene:(RVKScene *)scene sceneParam:(RVKSceneParam *)sceneParam; // scene请用weak引用 + +- (void)initUI:(RVKView *)contentView delegate:(id)delegate; + +- (RVKScene *)rvkScene; + +- (RVKSession *)rvkSession; + +- (RVKView *)rvkView; + +- (RVKContentView *)rvkContentView; + +- (UIViewController *)viewController; + +- (void)callHandler:(NSString *)handlerName + data:(id)data + responseCallback:(void(^)(id responseData))callback; + +- (void)callHandler:(NSString *)handlerName + data:(id)data +callbackImmediatelyIfJSBridgeNotReady:(BOOL)callbackImmediatelyIfJSBridgeNotReady + responseCallback:(void (^)(id responseData))callback; + +//lifecycle +- (void)rvk_loadView; + +- (void)rvk_viewDidLoad; + +- (void)rvk_viewWillAppear:(BOOL)animated; + +- (void)rvk_viewDidAppear:(BOOL)animated; + +- (void)rvk_viewWillDisappear:(BOOL)animated; + +- (void)rvk_viewDidDisappear:(BOOL)animated; + +- (void)rvk_viewDidLayoutSubviews; + +- (void)rvk_dismissViewControllerAnimated:(BOOL)flag completion:(void (^)(void))completion; + +- (void)rvk_presentViewController:(UIViewController *)viewController animated:(BOOL)flag completion:(void (^)(void))completion; + +- (UINavigationController *)rvk_customNavigationController; + +- (UIView *)rvk_customNavigationBar; + +@end + +//VC类代理接口 +@protocol RVKViewControllerDelegate + +- (void)viewController:(UIViewController *)vc loadView:(BOOL)_; + +- (void)viewController:(UIViewController *)vc viewDidLoad:(BOOL)_; + +- (void)viewController:(UIViewController *)vc viewDidUnLoad:(BOOL)_; + +- (void)viewController:(UIViewController *)vc viewWillAppear:(BOOL)_; + +- (void)viewController:(UIViewController *)vc viewDidAppear:(BOOL)_; + +- (void)viewController:(UIViewController *)vc viewDidLayoutSubviews:(BOOL)_; + +- (void)viewController:(UIViewController *)vc viewWillDisappear:(BOOL)_; + +- (void)viewController:(UIViewController *)vc viewDidDisappear:(BOOL)_; + +- (void)viewController:(UIViewController *)vc viewWillDestroy:(BOOL)_; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKViewDelegate.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKViewDelegate.h new file mode 100644 index 0000000..8b6ba1c --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKViewDelegate.h @@ -0,0 +1,21 @@ +// +// RVKViewDelegate.h +// AriverKernel +// +// Created by hua.lu on 2019/3/25. +// Copyright © 2019 Alipay. All rights reserved. +// + +#ifndef RVKViewDelegate_h +#define RVKViewDelegate_h + +// 代理 RVKView 的创建,按照设计是由 AriverEgine 来实现 +@protocol RVKViewDelegate + +@required +- (RVKView *)createViewWithSceneParam:(RVKSceneParam *)sceneParam parentObject:(RVKKernel *)parentObject; + +@end + + +#endif /* RVKViewDelegate_h */ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKViewEvent.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKViewEvent.h new file mode 100644 index 0000000..a81d056 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKViewEvent.h @@ -0,0 +1,43 @@ +// +// RVKViewEvent.h +// Poseidon +// +// Created by chenwenhong on 14-8-11. +// Copyright (c) 2014年 Alipay. All rights reserved. +// + +#import "RVKEvent.h" + +typedef enum { + RVKAlertPanel, + RVKConfirmPanel, + RVKPromptPanel +} RVKPanelType; + +@interface RVKViewEvent : RVKEvent + +@property(nonatomic, readonly, assign) CGRect newFrame; +@property(nonatomic, strong) WKWebViewConfiguration *wkConfiguration; +@property(nonatomic, assign) RVKPanelType panelType; +@property(nonatomic, copy) NSString *panelTitle; +@property(nonatomic, copy) NSString *injctJs; +@property(nonatomic, copy) NSDictionary *expandParams; +@property(nonatomic, weak) RVKKernel *parentObject; + + ++ (instancetype)allEvent; + ++ (instancetype)createEvent; + ++ (instancetype)resizeEvent:(CGRect)newFrame; + ++ (instancetype)destroyEvent; + ++ (instancetype)configEvent; + ++ (instancetype)showPanelEvent; + ++ (instancetype)injctJSEvent; + ++ (instancetype)reloadFailEvent; +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKWebView.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKWebView.h new file mode 100644 index 0000000..d09e8c6 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKWebView.h @@ -0,0 +1,94 @@ +// +// RVKWebView.h +// Poseidon +// +// Created by chenwenhong on 14-8-8. +// Copyright (c) 2014年 Alipay. All rights reserved. +// + +#import +#import + +@protocol RVKContentViewDelegate; +@protocol RVKExternalWebViewDelegate; +@class RVKContentViewConfig; +@protocol RVKViewControllerProtocol; +@protocol RVKContentViewNavigationDelegate; +@protocol RVKContentViewUIDelegate; + +//webView代理接口 +@protocol RVKExternalWebViewDelegate + +@end + +@protocol RVKContentViewProtocol +NS_ASSUME_NONNULL_BEGIN +@optional +@property(nonatomic, weak) id rvkExternalWebViewDelegate; +@property(nonatomic, weak) id rvkViewController; +@property(nonatomic, weak) id rvkContentViewDelegate; +@property(nonatomic, weak) id rvkContentViewNavigationDelegate; +@property(nonatomic, weak) id rvkContentViewUIDelegate; + +@property (nonatomic, readonly, copy) WKWebViewConfiguration *configuration; + +- (void)loadData:(NSData *)data MIMEType:(NSString *)MIMEType textEncodingName:(NSString *)textEncodingName baseURL:(NSURL *)baseURL; + +//@required +@property(nonatomic, readonly, weak) UIView *view; // 获取UIView对象 +@property(nullable, nonatomic, readonly) UIWindow *window; +@property(nonatomic, readonly, nullable, strong) UIScrollView *scrollView; // only h5 +@property(nonatomic, readonly, nullable, strong) NSURLRequest *request; +@property(nonatomic, readonly) BOOL isLoading; +@property(nonatomic, readonly) BOOL canGoBack; +@property(nonatomic, weak) id delegate; +@property(nonatomic, nullable, copy) NSString *channelId; +@property(nonatomic) BOOL scalesPageToFit; +@property(nonatomic) BOOL detectsPhoneNumbers; +@property(nonatomic) UIDataDetectorTypes dataDetectorTypes; +@property(nonatomic) BOOL allowsInlineMediaPlayback; // iPhone Safari defaults to NO. iPad Safari defaults to YES +@property (nullable, nonatomic, readonly, copy) NSURL *URL;//for same with wkwebview +- (void)evaluateJavaScript:(nullable NSString *)js completionHandler:(nullable void (^)(id result, NSError *error))completionHandler; + +- (void)loadRequest:(nullable NSURLRequest *)request; +- (void)loadHTMLString:(nullable NSString *)string baseURL:(nullable NSURL *)baseURL; +- (void)reload; +- (void)stopLoading; + +- (void)goBack; +- (void)goForward; +NS_ASSUME_NONNULL_END +@end + +// 对外接口参数,为了方便调用 +@interface RVKContentView : UIView + +@end + +//webView基类 +@interface RVKWebView : WKWebView + +@end + +// 配置 +@interface RVKContentViewConfig : WKWebViewConfiguration + +@end + + +//webView代理接口 +@protocol RVKContentViewDelegate +@optional +- (BOOL)contentView:(nullable RVKContentView *)contentView resizeFrame:(CGRect)frame; + +@end + +@protocol RVKContentViewPrepareProtocol + +@optional ++ (RVKContentView *_Nullable)fetchPrepareContentViewWithFrame:(CGRect)frame configuration:(NSDictionary *_Nonnull)configuration; ++ (void)prepareContentView; + +@end + + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKWebViewURLProtocol.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKWebViewURLProtocol.h new file mode 100644 index 0000000..ef13cbb --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Headers/RVKWebViewURLProtocol.h @@ -0,0 +1,62 @@ +// +// RVKWebViewURLProtocol.h +// Poseidon +// +// Created by chenwenhong on 14-10-15. +// Copyright (c) 2014年 Alipay. All rights reserved. +// + +#import + +@interface FakeNSURLProtocol : NSObject + +@property(readonly, copy) NSCachedURLResponse *cachedResponse; +@property(readonly, retain) id client; +@property(readonly, copy) NSURLRequest *request; + +- (instancetype)initWithRequest:(NSURLRequest *)request cachedResponse:(NSCachedURLResponse *)cachedResponse client:(id)client; +- (void)startLoading; +- (void)stopLoading; ++ (id)propertyForKey:(NSString *)key inRequest:(NSURLRequest *)request; ++ (void)setProperty:(id)value forKey:(NSString *)key inRequest:(NSMutableURLRequest *)request; ++ (void)removePropertyForKey:(NSString *)key inRequest:(NSMutableURLRequest *)request; ++ (BOOL)requestIsCacheEquivalent:(NSURLRequest *)a toRequest:(NSURLRequest *)b; ++ (BOOL)canInitWithRequest:(NSURLRequest *)request; + +@end + +@class RVKResponse; + +@protocol RVKWebViewURLProtocolDelegate + +- (void)RVKWebViewURLProtocol:(NSURLProtocol *)protocol willStartLoading:(NSURLRequest *)request channelId:(NSString *)channelId; // 最原始的request +- (void)RVKWebViewURLProtocol:(NSURLProtocol *)protocol startLoading:(NSURLRequest *)request; // request可以被修改 +- (void)RVKWebViewURLProtocol:(NSURLProtocol *)protocol wasRedirectedToRequest:(NSURLRequest *)request redirectResponse:(NSURLResponse *)redirectResponse; +- (void)RVKWebViewURLProtocol:(NSURLProtocol *)protocol didReceiveResponse:(NSURLResponse *)response cacheStoragePolicy:(NSURLCacheStoragePolicy)policy; +- (void)RVKWebViewURLProtocol:(NSURLProtocol *)protocol didLoadData:(NSData *)data; +- (void)RVKWebViewURLProtocolDidFinishLoading:(NSURLProtocol *)protocol; +- (void)RVKWebViewURLProtocol:(NSURLProtocol *)protocol didFailWithError:(NSError *)error; +- (void)RVKWebViewURLProtocol:(NSURLProtocol *)protocol didCancel:(NSError *)error; + +@optional +- (void)RVKWebViewURLProtocol:(NSURLProtocol *)protocol + task:(NSURLSessionTask *)task + didFinishCollectingMetrics:(NSURLSessionTaskMetrics *)metrics; + +@end + +// intercept requests +#if PRODUCT_WALLET +@interface RVKWebViewURLProtocol : NSURLProtocol +#else +@interface RVKWebViewURLProtocol : FakeNSURLProtocol +#endif + +@property(nonatomic, strong) NSMutableURLRequest *proxyRequest; +@property(nonatomic, strong) RVKResponse *proxyResponse; +@property(nonatomic, strong) NSURLConnection *connection; +@property(nonatomic, strong) NSURLResponse *response; +@property(nonatomic, strong) id urlProtocolProcessor; +@property(nonatomic, strong) NSURLSessionDataTask *sessionTask; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Info.plist b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Info.plist new file mode 100644 index 0000000..4cb5710 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverKernel.framework/Info.plist @@ -0,0 +1,73 @@ + + + + + BuildMachineOSBuild + 20E241 + CFBundleDevelopmentRegion + English + CFBundleExecutable + AriverKernel + CFBundleIdentifier + com.alipay.AriverKernel + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + AriverKernel + CFBundlePackageType + BNDL + CFBundleShortVersionString + 2.0.0.1-SNAPSHOT + CFBundleSignature + ???? + CFBundleSupportedPlatforms + + iPhoneOS + + CFBundleVersion + 1 + CFPlugInDynamicRegisterFunction + + CFPlugInDynamicRegistration + NO + CFPlugInFactories + + 00000000-0000-0000-0000-000000000000 + MyFactoryFunction + + CFPlugInTypes + + 00000000-0000-0000-0000-000000000000 + + 00000000-0000-0000-0000-000000000000 + + + CFPlugInUnloadFunction + + DTCompiler + com.apple.compilers.llvm.clang.1_0 + DTPlatformBuild + 18B79 + DTPlatformName + iphoneos + DTPlatformVersion + 14.2 + DTSDKBuild + 18B79 + DTSDKName + iphoneos14.2 + DTXcode + 1220 + DTXcodeBuild + 12B45b + MinimumOSVersion + 8.0 + NSHumanReadableCopyright + Copyright © 2013年 Alipay. All rights reserved. + UIDeviceFamily + + 1 + 2 + + + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverLogger.framework/AriverLogger b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverLogger.framework/AriverLogger new file mode 100644 index 0000000..bd1d292 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverLogger.framework/AriverLogger differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverLogger.framework/Headers/RVFullLinkStore.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverLogger.framework/Headers/RVFullLinkStore.h new file mode 100644 index 0000000..91fbcce --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverLogger.framework/Headers/RVFullLinkStore.h @@ -0,0 +1,43 @@ +// +// RVFullLinkStore.h +// NebulaLogging +// +// Created by 张光宇 on 2018/12/19. +// Copyright © 2018 Alipay. All rights reserved. +// + +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface RVFullLinkStore : NSObject +@property(nonatomic,weak)UIViewController *currentViewController; +/* + * scene级别的埋点,请调用此接口 + * 实现逻辑: + * 若是首页面,则直接调[NBFullLinkStore store:appId] + * 否则,从[scene getExpando:kFLStoreSceneExpandoKey]获取 + */ ++ (instancetype)appStore:(NSString *)appId scene:(RVKScene * _Nullable)scene; ++ (instancetype)appStore:(NSString *)appId; + +- (void)addTimeStub:(NSString *)phase withTime:(CFTimeInterval)mediaTime; + +- (void)addTimeStub:(NSString *)phase; + +- (void)addCostAttr:(NSString *)key value:(NSUInteger)costInMs; + +- (void)addBizAttr:(NSString *)key value:(NSString *)value; + +- (void)addAttributesFromDictionary:(NSDictionary *)dictionary; + +- (NSString *)appId; + +- (NSDictionary *)gatherDataAndClearCache; + ++ (void)clearStore:(RVFullLinkStore *)store; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverLogger.framework/Info.plist b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverLogger.framework/Info.plist new file mode 100644 index 0000000..ac21660 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverLogger.framework/Info.plist @@ -0,0 +1,73 @@ + + + + + BuildMachineOSBuild + 20E241 + CFBundleDevelopmentRegion + English + CFBundleExecutable + AriverLogger + CFBundleIdentifier + com.alipay.AriverLogger + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + AriverLogger + CFBundlePackageType + BNDL + CFBundleShortVersionString + 2.0.0.1-SNAPSHOT + CFBundleSignature + ???? + CFBundleSupportedPlatforms + + iPhoneOS + + CFBundleVersion + 1 + CFPlugInDynamicRegisterFunction + + CFPlugInDynamicRegistration + NO + CFPlugInFactories + + 00000000-0000-0000-0000-000000000000 + MyFactoryFunction + + CFPlugInTypes + + 00000000-0000-0000-0000-000000000000 + + 00000000-0000-0000-0000-000000000000 + + + CFPlugInUnloadFunction + + DTCompiler + com.apple.compilers.llvm.clang.1_0 + DTPlatformBuild + 18B79 + DTPlatformName + iphoneos + DTPlatformVersion + 14.2 + DTSDKBuild + 18B79 + DTSDKName + iphoneos14.2 + DTXcode + 1220 + DTXcodeBuild + 12B45b + MinimumOSVersion + 8.0 + NSHumanReadableCopyright + Copyright © 2013年 Alipay. All rights reserved. + UIDeviceFamily + + 1 + 2 + + + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverResource.framework/AriverResource b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverResource.framework/AriverResource new file mode 100644 index 0000000..e249744 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverResource.framework/AriverResource differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverResource.framework/AriverResource.bundle/.gitkeep b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverResource.framework/AriverResource.bundle/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverResource.framework/Headers/NSFileManager+RVRTar.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverResource.framework/Headers/NSFileManager+RVRTar.h new file mode 100755 index 0000000..5ba6839 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverResource.framework/Headers/NSFileManager+RVRTar.h @@ -0,0 +1,36 @@ +// +// NSFileManager+Tar.h +// Tar +// +// Created by Mathieu Hausherr Octo Technology on 25/11/11. +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions +// are met: +// 1. Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// 2. Redistributions in binary form must reproduce the above copyright +// notice, this list of conditions and the following disclaimer in the +// documentation and/or other materials provided with the distribution. +// +// THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) ``AS IS'' AND ANY EXPRESS OR +// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES +// OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +// IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY DIRECT, INDIRECT, +// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT +// NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF +// THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// + +#import + +@interface NSFileManager (RVRTar) + +- (NSDictionary *)readTar:(NSString *)tarPath error:(NSError *)error; ++ (char)typeForObject:(id)object atOffset:(unsigned long long)offset; ++ (NSString *)nameForObject:(id)object atOffset:(unsigned long long)offset; ++ (unsigned long long)sizeForObject:(id)object atOffset:(unsigned long long)offset; +- (void)writeFileDataForObject:(id)object atLocation:(unsigned long long)location withLength:(unsigned long long)length atPath:(NSString *)path; +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverResource.framework/Headers/NSString+RVR.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverResource.framework/Headers/NSString+RVR.h new file mode 100644 index 0000000..c44b63a --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverResource.framework/Headers/NSString+RVR.h @@ -0,0 +1,15 @@ +// +// NSString+NXR.h +// NebulaResource +// +// Created by 扶瑶 on 16/3/1. +// Copyright © 2016年 Alipay. All rights reserved. +// + +#import + +@interface NSString (RVR) + +- (id)NXRJson; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverResource.framework/Headers/RVAppProtocol.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverResource.framework/Headers/RVAppProtocol.h new file mode 100644 index 0000000..7b1c695 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverResource.framework/Headers/RVAppProtocol.h @@ -0,0 +1,184 @@ +// +// AppProtocol.h +// AriverResource +// +// Created by nico on 2019/3/22. +// Copyright © 2019 Alipay. All rights reserved. +// + +#ifndef AppProtocol_h +#define AppProtocol_h +#import "RVRDefine.h" + +#ifndef AriverResourceEnum +#define AriverResourceEnum + +// 下载时机,枚举值与服务端返回值对应 +typedef NS_ENUM (int, NAMDownType){ + NAMDownTypeWifi = 0, + NAMDownTypeAny, + NAMDownTypeUse +}; + +// 安装类型,枚举值与服务端返回值对应 +typedef NS_ENUM (int, NAMInstallType){ + NAMInstallTypeUse = 0, + NAMInstallTypeAny, +}; + +// 应用类型 +typedef NS_ENUM(int, NAMAppType){ + NAMAppTypeH5 = 1, // H5 + NAMAppTypeRN = 5 // RN +}; + +// 应用来源 +typedef NS_ENUM(int, NAMAppChannel) { + NAMAppChannelAlipay = 1, // 支付宝自建应用 + NAMAppChannelAlibaba, // 集团应用 + NAMAppChannelThirdParty, // 第三方 + NAMAppChannelApplet // 小程序 +}; +#endif + +@protocol RVAppProtocol + +@property (nonatomic, readonly, copy) NSString *nbl_id; // 应用唯一标识, e.g. AP_20000001 +@property (nonatomic, readonly, copy) NSString *app_id; // 应用id, e.g. 20000001 +@property (nonatomic, readonly, copy) NSString *name; // 应用名称, e.g. 机票 +@property (nonatomic, readonly, copy) NSString *version; // 应用版本, e.g. 1.0.0.0 +@property (nonatomic, readonly, copy) NSString *desc; // 应用描述 (钱包内请勿使用该参数) +@property (nonatomic, readonly, copy) NSString *package_url; // 应用离线包下载url +@property (nonatomic, readonly, copy) NSString *icon_url; // 应用图标url (钱包内请勿使用该参数) +@property (nonatomic, readonly, copy) NSString *main_url; // 主入口url +@property (nonatomic, readonly, copy) NSString *vhost; // 虚拟域名 +@property (nonatomic, readonly, copy) NSString *fallback_host; // fallback地址 +@property (nonatomic, readonly, copy) NSString *patch; // 增量包url +@property (nonatomic, readonly, copy) NSString *third_platform; // 第三方透传 +@property (nonatomic, readonly, copy) NSString *scene; // 场景, 10.0.5新增, ONLINE/DEBUG/TRIAL/PREVIEW +@property (nonatomic, readonly, copy) NSString *release_type; // 发布类型, 10.0.5新增 +@property (nonatomic, readonly, copy) NSString *api_permission; // api权限, 10.0.12新增 +@property (nonatomic, readonly, copy) NSString *package_nick; // 包ID, 10.0.15新增 +@property (nonatomic, readonly, copy) NSString *slogan; // 小程序主体信息 (仅hpmweb下发,wapcenter不下发) +@property (nonatomic, readonly, copy) NSArray *sub_url; // 限制入口url +@property (nonatomic, readonly, copy) NSDictionary *extend_info; // 应用扩展信息 +@property (nonatomic, readonly) BOOL isOnline; // 应用业务状态,如: 上线、下线 +@property (nonatomic, readonly) int local_report; // 控制是否跟随localAppInfo配置, 默认:0, 10.0.15新增 +@property (nonatomic, readonly) long long size; // 应用大小, Byte +@property (nonatomic, readonly) NAMDownType downType; // 下载时机,10.0.2新增属性 +@property (nonatomic, readonly) NAMAppType appType; // 应用类型 (钱包内请勿使用该参数) +@property (nonatomic, readonly) NAMAppChannel appChannel; // 应用来源 +@property (nonatomic, readonly) NAMInstallType installType; // 安装类型 + +/** + * 根据字典初始化对象 + * + * @return 字典格式非法、无appid、无version情况下返回nil + */ +- (instancetype)initWithDict:(NSDictionary *)dictionary; + +/** + * 将对象转为字典 + */ +- (NSDictionary *)dictionary; + +/** + * 获取离线包地址 + * + * 读取过程: + * 1. 通过 NAMConfigurationGet().internalPackageAMRPath 读取预置离线包地址,离线包命名格式: appid_version.amr + * 2. 预置离线包不存在时, 读取沙盒内下载的离线包地址 + */ +- (NSString *)amrPath; + +/** + * 获取已安装包tar地址 + * + * 读取过程: + * 1. 未兼容老版本, 先读取 appid.tar + * 2. appid.tar 不存在时候读取 nbl_id.tar + */ +- (NSString *)tarPath; + +/** + * 获取离线包解压地址 + * + * 注:解压总文件夹地址可通过 NAMConfigurationGet().unzipRootPath 配置 + */ +- (NSString *)unzipPath; + +/** + * 获取离线包下载地址 + */ +- (NSString *)downloadPath; + +/** + * 获取离线包Url + * + * @return 增量包返回patchUrl,全量包返回全量packageUrl + */ +- (NSString *)downloadUrl; + +/** + * 获取应用状态 + */ +- (NXRAppStatus)appStatus; + +/** + * 是否已安装 + */ +- (BOOL)isInstalled; + +/** + * 是否为增量包 + */ +- (BOOL)isIncremental; + +/** + * 是否需要下载 + */ +- (BOOL)needDownload; + +/** + * 去除增量属性, 变为全量包 + */ +- (void)removeIncrementalResource; + +/** + * 第三方信息 (开发平台下发ID) + */ +- (NSDictionary *)thirdPlatformInfo; + +/** + * 应用下发场景 + */ +- (NXRAppAutoScene)sceneType; + +/** + * api权限配置 + */ +- (NSDictionary *)apiPermission; + +/** + * 清除上次更新时间 + */ +- (void)clearLastRefreshTime; + +/** + * 获取模版小程序配置信息存储地址 + */ +- (NSString *)templateConfigPath; + + +/** + 是否是模板小程序 + */ +- (BOOL)isTemplateApp; + +#ifdef PRODUCT_WALLET +//当前应用是否在端cdn列表内 +-(BOOL)isInCCDNWhitelist; +#endif +@end + +#endif /* AppProtocol_h */ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverResource.framework/Headers/RVKExtensionProtocol4DataSource.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverResource.framework/Headers/RVKExtensionProtocol4DataSource.h new file mode 100644 index 0000000..1c7ccca --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverResource.framework/Headers/RVKExtensionProtocol4DataSource.h @@ -0,0 +1,22 @@ +// +// RVKExtensionProtocol4DataSource.h +// AriverResource +// +// Created by xuyouyang on 2019/8/20. +// Copyright © 2019 Alipay. All rights reserved. +// + +#import +@class RVRAppResponse; +@class RVKProxyEvent; + +NS_ASSUME_NONNULL_BEGIN + +@protocol RVKExtensionProtocol4DataSource + +@required +- (BOOL)handleResponse:(RVRAppResponse *)response event:(RVKProxyEvent *)event; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverResource.framework/Headers/RVRApp+Plugin.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverResource.framework/Headers/RVRApp+Plugin.h new file mode 100644 index 0000000..a7410e8 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverResource.framework/Headers/RVRApp+Plugin.h @@ -0,0 +1,17 @@ +// +// RVRApp+Plugin.h +// AriverResource +// +// Created by nico on 2019/7/2. +// Copyright © 2019 Alipay. All rights reserved. +// + +#import "RVRApp.h" +NS_ASSUME_NONNULL_BEGIN + +@interface RVRApp (Plugin) +@property (nonatomic, readonly, copy) NSString * requireVersion; +- (BOOL)isPluginExpired; +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverResource.framework/Headers/RVRApp+private.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverResource.framework/Headers/RVRApp+private.h new file mode 100644 index 0000000..0f30fcc --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverResource.framework/Headers/RVRApp+private.h @@ -0,0 +1,25 @@ +// +// NXRApp+private.h +// AriverResource +// +// Created by nico on 2019/3/22. +// Copyright © 2019 Alipay. All rights reserved. +// + +#import "RVRApp.h" +NS_ASSUME_NONNULL_BEGIN + +@interface RVRApp (Private) +@property (nonatomic, assign, readonly) NSTimeInterval lastRefreshTime; // 上次更新时间 +@property (nonatomic, assign, readonly) BOOL limiting; // 异步请求被限流 +@property (nonatomic, assign, readonly) BOOL strictlimiting; // 强制请求被限流 +/** + * 更新上次请求时间 + * + * @param time 时间 + * @param limited 是否被限流 + */ +- (void)refresh:(NSTimeInterval)time limited:(BOOL)limited strict:(BOOL)strict; +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverResource.framework/Headers/RVRApp.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverResource.framework/Headers/RVRApp.h new file mode 100644 index 0000000..6da17bb --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverResource.framework/Headers/RVRApp.h @@ -0,0 +1,48 @@ +// +// NAMApp.h +// AriverResource +// +// Created by nico on 2019/3/22. +// Copyright © 2019 Alipay. All rights reserved. +// + +#import +#import "RVAppProtocol.h" + +NS_ASSUME_NONNULL_BEGIN + + + +@interface RVRApp : NSObject +@property (nonatomic, readonly, copy) NSString * appId; +@property (nonatomic, readonly, copy) NSString * name; +@property (nonatomic, readonly, copy) NSString * alias; //简称 +@property (nonatomic, readonly, copy) NSString * logo; +@property (nonatomic, readonly, copy) NSString * desc; +@property (nonatomic, readonly, copy) NSString * developVersion; +@property (nonatomic, readonly, copy) NSString * deployVersion; +@property (nonatomic, readonly, copy) NSString * fallbackBaseUrl; +@property (nonatomic, readonly, copy) NSString * packageUrl; +@property (nonatomic, readonly, copy) NSDictionary * subPackages; +@property (nonatomic, readonly, copy) NSString * appKey; +@property (nonatomic, readonly, copy) NSString * mainUrl; +@property (nonatomic, readonly, copy) NSString * vhost; +@property (nonatomic, readonly, copy) NSString * packageSize; +@property (nonatomic, readonly, copy) NSString * status; //应用发布状态(之前叫releaseType) +@property (nonatomic, readonly, assign) NSInteger origin; //小程序原始平台(1:支付宝;2:淘宝; 3:蚂蚁国际) +@property (nonatomic, readonly, assign) NSInteger subType; //小程序子类型 (8: 小游戏) + +@property (nonatomic, readonly, copy) NSArray * plugins; +@property (nonatomic, readonly, copy) NSDictionary * templateConfig; +@property (nonatomic, readonly, copy) NSDictionary * container; +@property (nonatomic, readonly, copy) NSDictionary * extendInfo; +@property (nonatomic, readonly, copy) NSDictionary * permission; + +//只有是插件才带有mainAppId,是插件包时为主关联appId。不是插件为nil +@property (nonatomic, readonly, copy) NSString * mainAppId; + +//(当前对象是插件时调用 )把插件和主应用ap相关联,建立引用关系 +-(void)associateWithMainAppId:(RVRApp *)mainApp; +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverResource.framework/Headers/RVRAppAction.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverResource.framework/Headers/RVRAppAction.h new file mode 100644 index 0000000..c9a3362 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverResource.framework/Headers/RVRAppAction.h @@ -0,0 +1,169 @@ +// +// NXRAppAction.h +// NebulaResource +// +// Created by 扶瑶 on 16/3/2. +// Copyright © 2016年 Alipay. All rights reserved. +// + +#import +#import "RVRLogContext.h" +#import "RVRApp.h" +#import "RVRProtocol.h" + +@interface RVRAppAction : NSObject + +/** + * 准备应用 + * + * @param appId 应用id + * @param version 应用版本号 + * @param process 过程回调 异步请求包信息+异步下载+解压 + * @param finish 完成回调 + */ ++ (void)prepareApp:(NSString *)appId + version:(NSString *)version + params:(NSDictionary *)params + process:(NXRAppPrepareProcess)process + finish:(NXRAppPrepareFinish)finish; + + +/** + * 定制准备应用方式,可自行设置同步、异步策略 + * + * @param appId 应用id + * @param version 应用版本号, 支持版本号模糊匹配 e.g. '*' 匹配最高版本号 '1.*' 匹配1开头的版本号总最高版本号等,最长4位 + * @param params 参数, 现支持: NXRREQ_PARAMKEY_SCENE, NXRREQ_PARAMKEY_DEBUG + * @param reqType 请求方式: 同步更新、异步更新 + * @param offlineType 离线方式: 同步离线、异步离线 + * @param finish 完成结果回调 + */ ++ (void)prepareApp:(NSString *)appId + version:(NSString *)version + reqType:(NXRActionReqType)reqType + offlineType:(NXRActionOfflineType)offlineType + finish:(NXRAppPrepareFinish)finish; + + +/** + * 定制准备应用方式,可自行设置同步、异步策略 + * + * @param appId 应用id + * @param version 应用版本号, 支持版本号模糊匹配 e.g. '*' 匹配最高版本号 '1.*' 匹配1开头的版本号总最高版本号等,最长4位 + * @param params 参数, 现支持: NXRREQ_PARAMKEY_SCENE, NXRREQ_PARAMKEY_DEBUG + * @param reqType 请求方式: 同步更新、异步更新 + * @param offlineType 离线方式: 同步离线、异步离线 + * @param finish 完成结果回调 + */ ++ (void)prepareApp:(NSString *)appId + version:(NSString *)version + params:(NSDictionary *)params + reqType:(NXRActionReqType)reqType + offlineType:(NXRActionOfflineType)offlineType + finish:(NXRAppPrepareFinish)finish; + + +/** + * 准备插件信息 + * + * @param appId 插件宿主id + * @param pluginId 插件id + * @param requireVersison 插件的依赖版本 + * @param process 过程回调 异步请求包信息+异步下载+解压 + * @param finish 完成回调 + */ ++ (void)prepareApp:(NSString *)appId + pluginId:(NSString *)pluginId + requireVersison:(NSString *)requireVersison + finish:(NXRAppPrepareFinish)finish; +/** + * 获取应用状态 + * + * @param app 应用对象 + * + * @return 应用状态枚举值 + */ ++ (NXRAppStatus)appStatus:(RVRApp *)app; + + +/** + * 安装应用 + * + * 注意: 这里的下载不区分下载环境, 强制下载 + * + * @param app 应用对象 + * @param process 过程回调 下载+下载后自动解压 + * @param finish 完成回调 + */ ++ (void)mountPkg:(RVRApp *)app + process:(NXRAppInstallProcess)process + finish:(NXRAppInstallFinish)finish; ++ (void)mountPkg:(RVRApp *)app + params:(NSDictionary *)params + process:(NXRAppInstallProcess)process + finish:(NXRAppInstallFinish)finish; + + +/** + * 单个下载应用 - 不区分网络环境 + * + * @param app 应用对象 + * @param process 过程回调 + * @param finish 完成回调 + */ ++ (void)download:(RVRApp *)app + params:(NSDictionary *)params + process:(NXRDownloadProcess)process + finish:(NXRDownloadFinish)finish; + + +/** + * 解压应用 + * + * @param app 应用对象 + * @param process 过程回调 包含:解压+更新已安装信息+删除老tar包 + * @param finish 成功回调 + */ ++ (void)extractPkg:(RVRApp *)app + process:(NXRZipArchiveProcess)process + finish:(NXRZipArchiveFinish)finish; ++ (void)extractPkg:(RVRApp *)app + params:(NSDictionary *)params + process:(NXRZipArchiveProcess)process + finish:(NXRZipArchiveFinish)finish; + +/** + * 批量解压 + * + * @param 需要解压对象数组 [NXRApp, ...] + */ ++ (void)extractPkgs:(NSArray *)arrApps; + +/** + * 全量请求 + * + * @param param 参数, 暂时无用可传nil + * @param autoDownload 是否自动下载 + * @param finish 完成回调 + */ ++ (void)requestAllApps:(NSDictionary *)param + autoDownload:(BOOL)autoDownload + finish:(NXRRequestFinish)finish; + + +/** + * 单个请求 + * + * @param apps 请求列表 格式:{appid:version} 不指定version时传@"",默认取最高版本 + * @param autoDownload 请求完成后是否自动下载 + * @param param 参数, 暂时无用可传nil + * @param finish 完成回调 + */ ++ (void)requestApps:(NSDictionary *)apps + autoDownload:(BOOL)autoDownload + param:(NSDictionary *)param + finish:(NXRRequestFinish)finish; + ++ (NXRAppPrepareStep)prepareStep:(NXRAppInstallStep)installStep; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverResource.framework/Headers/RVRAppDataSourceProtocol.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverResource.framework/Headers/RVRAppDataSourceProtocol.h new file mode 100644 index 0000000..ffc6782 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverResource.framework/Headers/RVRAppDataSourceProtocol.h @@ -0,0 +1,127 @@ +// +// RVRAppResponseProtocol.h +// NebulaSDK +// +// Created by nico on 2018/11/16. +// Copyright © 2018 Alipay. All rights reserved. +// + +#import +#import "RVAppProtocol.h" + +NS_ASSUME_NONNULL_BEGIN +@protocol RVRAppDataSourceProtocol; +@protocol RVAppProtocol; + +@protocol RVRAppResponseProtocol +@property (nonatomic, copy) NSString *absoluteUrlString; // 绝对地址 +@property (nonatomic, copy) NSString *mimeType; // mimeType +@property (nonatomic, strong) NSData *contentData; // content data +@property (nonatomic, weak) id dataSource; // dataSource +@property (nonatomic, strong) NSDictionary *headers; +@end + +@protocol RVRAppDataSourceProtocol +@property (nonatomic, readonly, strong) id app; +@property (nonatomic, readonly, assign) BOOL verifyResult; +@property (nonatomic, strong) NSMutableArray *loadedSubPackageList; + +/** + * @brief 创建一个H5App数据源,步骤:1.验签app 2.验签成功,将app内容全部加载至内存 + * + * @date 2015-04-28 + * + * @param nbl_id 应用id + * + * @return 返回数据源对象 + */ +- (instancetype)initWithApp:(id)app; + +/** + * @brief 加载app离线数据 + * + * @date 2015-09-17 + * + * @param verify 是否验签 + * + * @return 返回是否加载成功 + */ +- (NSInteger)loadAppData:(BOOL)needVerifyApp; + +/** + * @brief app启动初始url + * + * @date 2015-04-29 + * + * @return 返回完整的url str + */ +- (NSString *)launchUrlString:(NSString *)urlString; + +/** + * @brief 根据相对路径,得到绝对url路径 + * + * @date 2015-04-28 + * + * @param urlString 相对、绝对路径 + * + * @return 返回绝对路径 + */ +- (NSString *)absoluteUrlString:(NSString *)urlString; + +/** + * @brief 获取指定url(相对、绝对)的response + * + * @date 2015-04-28 + * + * @param urlString 相对、绝对路径 + * + * @return 返回response,nil表示未能获取到离线数据(此时应该走网络) + */ +- (id)responseWithUrlString:(NSString *)urlString; + +/** + * @brief 验签安装文件 + * + * @param alert 验签失败时是否显示提示框 + * + * @return BOOL 是否验签成功.如果验签失败,会将应用安装目录删除,如果为增量包则会删除增量字段,下次触发下载时下载全量包 + */ +- (BOOL)verifyWithAlert:(BOOL)alert; + +/** + * @brief 返回当前app的权限控制对象 + * + * @date 2016-12-12 + * + * @return 返回授权数据 + */ +- (NSDictionary *)readPermissionConfig; + +/** + * @brief 返回当前app的配置 + * + * @date 2017-03-06 + * + * @return 返回配置数据 + */ +- (NSDictionary *)readNBAppConfig; + +/** + * @brief 通过指定key(路径)获取内存中对应离线内容 + * 调用前需使用loadAppData加载离线资源 + * + * @param key 路径 + * @return 返回内存中对应离线内容 + */ +- (NSData *)tarDataForKey:(NSString *)key; + + + +/** + @brief 合并子包数据到主包tarData + + @param subTarData 子包数据 + */ +- (void)mergeTarData:(NSDictionary *)subTarData; +@end +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverResource.framework/Headers/RVRAppEnterInfo.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverResource.framework/Headers/RVRAppEnterInfo.h new file mode 100644 index 0000000..6b1e46e --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverResource.framework/Headers/RVRAppEnterInfo.h @@ -0,0 +1,18 @@ +// +// RVRAppEnterInfo.h +// Ariver +// +// Created by zhongweitao on 2019/4/8. +// + +#import + +@interface RVRAppEnterInfo : NSObject + +@property (nonatomic, copy) NSString *appUrl; +@property (nonatomic, copy) NSString *appId; +@property (nonatomic, copy) NSString *page; + +@property (nonatomic, strong) NSDictionary *enterParams; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverResource.framework/Headers/RVRAppSignVerify.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverResource.framework/Headers/RVRAppSignVerify.h new file mode 100644 index 0000000..4b1aee8 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverResource.framework/Headers/RVRAppSignVerify.h @@ -0,0 +1,22 @@ +// +// SHH5AppSignatureVerification.h +// MYBHybridService +// +// Created by theone on 14-7-9. +// Copyright (c) 2014年 Alipay. All rights reserved. +// + +#import + +@interface RVRAppSignVerify : NSObject + +/** + * 验签 + * + * 说明: 验签范围以CERT.json文件为准, 其中带android字符的文件除外 + * + * @param path 验签地址, unzipPath + */ +- (BOOL)verify:(NSString *)path; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverResource.framework/Headers/RVRAppUtils.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverResource.framework/Headers/RVRAppUtils.h new file mode 100644 index 0000000..9231e66 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverResource.framework/Headers/RVRAppUtils.h @@ -0,0 +1,19 @@ +// +// RVRAppUtils.h +// Ariver +// +// Created by zhongweitao on 2019/4/16. +// + +#import +#import "RVRAppEnterInfo.h" + +@interface RVRAppUtils : NSObject + +/// @brief 小程序URL解析 ++ (RVRAppEnterInfo *)extractEnterInfoWithAppUrl:(NSString *)appUrl error:(NSError *__autoreleasing *)error; + +/// @brief 判断是否是小程序URL ++ (BOOL)isAppUrl:(NSString *)url; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverResource.framework/Headers/RVRConfigCenter+Private.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverResource.framework/Headers/RVRConfigCenter+Private.h new file mode 100644 index 0000000..93bff6c --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverResource.framework/Headers/RVRConfigCenter+Private.h @@ -0,0 +1,23 @@ +// +// RVRConfigCenter+Private.h +// AriverResource +// +// Created by nico on 2019/4/21. +// Copyright © 2019 Alipay. All rights reserved. +// + + +#import +#import "RVRProtocol.h" +#import "RVRConfigCenter.h" + +@interface RVRConfigCenter (Private) +//日志监控相关,根据需要设置 +@property(nonatomic, weak)__nullable id logManagerDelegate; +@property(nonatomic, weak)__nullable id monitorDelegate; +@property(nonatomic, weak)__nullable id requestCenterDelegate; +//业务相关配置,可不设置 +@property(nonatomic, weak)__nullable id configManagerDelegate; +@property(nonatomic, weak)__nullable id appInterfaceDelegate; +@end + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverResource.framework/Headers/RVRConfigCenter.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverResource.framework/Headers/RVRConfigCenter.h new file mode 100644 index 0000000..0ba5fa0 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverResource.framework/Headers/RVRConfigCenter.h @@ -0,0 +1,106 @@ +// +// RVRConfigCenter.h +// AriverResource +// +// Created by nico on 2019/3/22. +// Copyright © 2019 Alipay. All rights reserved. +// + +#import +#import "RVRProtocol.h" +#import "RVRDataSource.h" +#define kARVAppxAppId @"66666692" + +//和预置包相关逻辑的delegate +@protocol RVRPresetConfigDelegate +@optional +//当前应用下多投配置的信息 +-(NSString * _Nullable)includeConfig:(RVRDataSource *_Nullable)appDataSource; +- (BOOL)enableFixHexValue; +//预置包plist文件名 +-(NSString *_Nullable)presetPlistName; +//预置包bundle名 +-(NSString *_Nullable)presetBundleName; +//是否是覆盖更新 +-(BOOL )isCoverInstall; +/** + * 查看预置离线包信息 + * @{@"66666692":@""}; + */ +-(NSDictionary *_Nullable)presetAmrApps; +/** + *公共资源包AppId列表; + *@[@"66666692"]; + */ +-(NSArray *_Nullable)commonAppList; + +/** + * 小程序appx依赖的appx appId + */ +-(NSString *_Nullable)appxId; + +/** + * + */ +-(NSString *_Nullable)commonMinAppxVersion; + +/** + * 是否开启appx minAppxVersion判断 + */ +- (BOOL)enableMinAppxVersionCompare; + +/** + 预加载Tar包 + + @param appId tar包对应的AppId + @return 预加载内容 + */ +- (id _Nullable )preloadTarDataForApp:(NSString *_Nonnull)appId; + +/** +获取自定义vhost + +@param app appInfo +@return 预加载内容 +*/ +- (NSString *_Nullable)customVhostForApp:(RVRApp *_Nonnull)app; +@end + +#ifdef __cplusplus +extern "C" { +#endif + id _Nonnull RVRLogMgr(void); + id _Nonnull RVRAppInterfaceGet(void); + id _Nonnull RVRConfigManagerGet(void); + id _Nonnull RVRMonitorManagerGet(void); + id _Nonnull RVRAppPoolGet(NSString * _Nullable scene); + id _Nonnull RVRAppPoolDefaultGet(void); + id _Nonnull RVRRequestCenterGet(void); + id _Nonnull RVRDownloadManagerGet(void); + id _Nonnull RVRZipManagerGet(void); + id _Nonnull RVRPresetConfigGet(void); +#ifdef __cplusplus +} +#endif + +@interface RVRConfigCenter : NSObject ++(_Nonnull instancetype)shared; + +//核心功能相关,必须设置 +@property(nonatomic, weak)__nullable id requestManagerDelegate; +@property(nonatomic, weak)__nullable id downloadManagerDelegate; +@property(nonatomic, weak)__nullable id zipArchiveDelegate; +@property(nonatomic, weak)__nullable id appPoolManagerDelegate; +@property(nonatomic, weak)__nullable id presetConfigDelegate; + +//支付宝侧使用老验签模块进行代理 +@property (nonatomic, weak) __nullable id signVerifyDelegate; +#if PRODUCT_WALLET +//动态配置功能开关 +//使用Cache-Control"设置离线包内子资源缓存,优化二次进入页面的渲染速度 +@property (nonatomic, strong) NSDictionary *_Nullable useBrowserCacheConfig; +#endif +//小程序多语言支持(当前语言环境) +@property (nonatomic, strong) NSString *_Nullable currentLanguage; +@end + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverResource.framework/Headers/RVRDataSource.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverResource.framework/Headers/RVRDataSource.h new file mode 100644 index 0000000..7f69b8d --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverResource.framework/Headers/RVRDataSource.h @@ -0,0 +1,149 @@ +// +// H5AppDataSource.h +// H5AppManager +// +// Created by chenwenhong on 15-4-28. +// Copyright (c) 2015年 Alipay. All rights reserved. +// + +#import +#import "RVRAppDataSourceProtocol.h" + +// App数据响应对象: 离线数据对象 +@class RVRDataSource; +@interface RVRAppResponse : NSObject + +@property (nonatomic, copy) NSString *absoluteUrlString; // 绝对地址 +@property (nonatomic, copy) NSString *mimeType; // mimeType +@property (nonatomic, strong) NSData *contentData; // content data +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wincompatible-property-type" +@property (nonatomic, weak) RVRDataSource *dataSource; // dataSource +#pragma clang diagnostic pop +@property (nonatomic, strong) NSDictionary *headers; + +@end + +@class RVRApp; +@protocol RVRSignVerifyDelegate +@optional +- (BOOL)verify:(NSString *)path; +- (BOOL)verify:(NSString *)path app:(RVRApp *)app; +@end + +// App数据源对象: 离线数据的获取 +@interface RVRDataSource : NSObject +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wincompatible-property-type" +@property (nonatomic, readonly, strong) RVRApp *app; +@property (nonatomic, weak) id signVerifyDelegate; +#pragma clang diagnostic pop +@property (nonatomic, readonly, assign) BOOL verifyResult; +@property (nonatomic, strong) NSMutableArray *loadedSubPackageList; + +/** + * @brief 创建一个H5App数据源,步骤:1.验签app 2.验签成功,将app内容全部加载至内存 + * + * @date 2015-04-28 + * + * @param nbl_id 应用id + * + * @return 返回数据源对象 + */ +- (instancetype)initWithApp:(RVRApp *)app; + +/** + * @brief 加载app离线数据 + * + * @date 2015-09-17 + * + * @param verify 是否验签 + * + * @return 返回是否加载成功 + */ +- (NSInteger)loadAppData:(BOOL)needVerifyApp; + +/** + * @brief app启动初始url + * + * @date 2015-04-29 + * + * @return 返回完整的url str + */ +- (NSString *)launchUrlString:(NSString *)urlString; + +/** + * @brief 根据相对路径,得到绝对url路径 + * + * @date 2015-04-28 + * + * @param urlString 相对、绝对路径 + * + * @return 返回绝对路径 + */ +- (NSString *)absoluteUrlString:(NSString *)urlString; + +/** + * @brief 获取指定url(相对、绝对)的response + * + * @date 2015-04-28 + * + * @param urlString 相对、绝对路径 + * + * @return 返回response,nil表示未能获取到离线数据(此时应该走网络) + */ +- (RVRAppResponse *)responseWithUrlString:(NSString *)urlString; + +/** + * @brief 验签安装文件 + * + * @param alert 验签失败时是否显示提示框 + * + * @return BOOL 是否验签成功.如果验签失败,会将应用安装目录删除,如果为增量包则会删除增量字段,下次触发下载时下载全量包 + */ +- (BOOL)verifyWithAlert:(BOOL)alert; + +/** + * @brief 返回当前app的权限控制对象 + * + * @date 2016-12-12 + * + * @return 返回授权数据 + */ +- (NSDictionary *)readPermissionConfig; + +/** + * @brief 返回当前app的配置 + * + * @date 2017-03-06 + * + * @return 返回配置数据 + */ +- (NSDictionary *)readNBAppConfig; + +/** + * @brief 返回当前app tabbar配置数据源 + * + * @date 2019-06-19 + * + * @return 返回tabbar数据 + */ +- (NSDictionary *)readNBTabBarConfig; + +/** + * @brief 通过指定key(路径)获取内存中对应离线内容 + * 调用前需使用loadAppData加载离线资源 + * + * @param key 路径 + * @return 返回内存中对应离线内容 + */ +- (NSData *)tarDataForKey:(NSString *)key; + +/** + @brief 合并子包数据到主包tarData + + @param subTarData 子包数据 + */ +- (void)mergeTarData:(NSDictionary *)subTarData; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverResource.framework/Headers/RVRDataSourceManager+AppxNG.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverResource.framework/Headers/RVRDataSourceManager+AppxNG.h new file mode 100644 index 0000000..e45fa01 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverResource.framework/Headers/RVRDataSourceManager+AppxNG.h @@ -0,0 +1,30 @@ +// +// RVRDataSourceManager+AppxNG.h +// AriverResource +// +// Created by lyusheng on 2020/2/4. +// Copyright © 2020 Alipay. All rights reserved. +// + +#import "RVRDataSourceManager.h" +#import "RVRDataSourceManager+Load.h" + +NS_ASSUME_NONNULL_BEGIN + +/// \discussion AppxNG支持的实现 +@interface RVRDataSourceManager (AppxNG) + +@property (nonatomic, readonly) BOOL enableAppxNG; +@property (nonatomic) NSDictionary *mergedLaunchParams; +- (NSString *)appxngAppId; + +/// 主包、资源包、分包都要经过 +/// @param url 离线资源的虚拟路径 +- (NSString *)urlRouted2Appxng:(NSString *)url; + +/// 仅主包资源的fallback +/// @param url 离线资源的虚拟路径 +- (NSString *)mainAppFallbackUrlRouted2Appxng:(NSString *)url; +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverResource.framework/Headers/RVRDataSourceManager+Load.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverResource.framework/Headers/RVRDataSourceManager+Load.h new file mode 100644 index 0000000..cd8aa8a --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverResource.framework/Headers/RVRDataSourceManager+Load.h @@ -0,0 +1,62 @@ +// +// RVRDataSourceManager+Load.h +// NebulaResource +// +// Created by fuyao on 2018/8/24. +// Copyright © 2018年 Alipay. All rights reserved. +// + +#import +#import "RVRDataSourceManager.h" + +@interface RVRDataSourceManager (Load) + +@property (nonatomic, strong) NSMutableArray *appDataSources; +@property (nonatomic, strong) NSMutableArray *loadedAppInfo; +@property (nonatomic, strong) RVRDataSource *mainDataSource; + +- (void)loadDataSource; + +/** + * @brief 根据nbl_id加载离线app + * + * @date 2015-09-21 + * + * @param nbl_id 离线app的id + * @param needVerify 是否需要验签 + * + * @return 返回是否验签成功(加载成功) + */ +- (BOOL)loadAppData:(RVRApp *)app needVerify:(BOOL)needVerify; +/** + * @param plugins 需要加载的插件资源 + * + * @return 加载插件资源,并与当前主引用关联(如果插件未安装,有补偿机制) + */ +-(void)loadDataSourceForPlugins:(NSArray *)plugins; +/** + * @brief 批量加载指定App + * + * @param [appId, ...]指定appId数组 + */ +- (void)loadDataSourceForApps:(NSArray *)arrApps; + +/** + * @brief 返回当前资源管理中指定appId的应用实例 + * + * @return 应用实例 + */ +- (RVRApp *)loadedAppInfoForAppId:(NSString *)appId; + +/** + * @brief 卸载app数据 + * + * @date 2015-10-08 + * + * @return 无 + */ +- (void)unloadAppData; + + +-(RVRDataSource *)fetchLatestLoadedDataSource:(NSString *)appId; +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverResource.framework/Headers/RVRDataSourceManager.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverResource.framework/Headers/RVRDataSourceManager.h new file mode 100644 index 0000000..7e696a0 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverResource.framework/Headers/RVRDataSourceManager.h @@ -0,0 +1,105 @@ +// +// NXRResourceController.h +// NebulaResource +// +// Created by fuyao on 18/08/22. +// Copyright © 2015年 Alipay. All rights reserved. +// + +#import +#import "RVRDataSource.h" +#import "RVRDataSourceManagerLogProtocol.h" + +#define kNXRDegradedApp @"kNXRDegradedApp" // degrade +#define kNXRLockDataSource @"kNXRLockDataSource" + +typedef void(^RVRDataSourceManagerDeallocComplete)(NSDictionary *result); + +@interface RVRDataSourceManager : NSObject +{ +@protected + NSDictionary *_mergedLaunchParams; + BOOL _enableAppxNG; + dispatch_once_t _onceToken; +} + +@property (nonatomic, readonly, strong) NSString *appid; +// 主离线app +@property (nonatomic, readonly, strong) RVRApp *mainApp; +@property (nonatomic, readonly, weak) id curSession; +// 实例被销毁时的回调,外部设置 +@property (nonatomic, copy) RVRDataSourceManagerDeallocComplete deallocComplete; +-(RVRApp *)app; + +/** + * NBAppDataSourceManager 初始化方法 + * + * @date 2018-03-29 + * + * @param appid 离线app的id + * @param version 版本号 + * @param session 当前session + * + * @return 返回是否验签成功(加载成功) + */ + - (instancetype)initWithAppid:(NSString *)appid + version:(NSString *)version + session:(id)nbSession; + +/** + * @brief 获取主入口url + * + * @date 2015-12-23 + * + * @return 返回主入口url + */ +- (NSString *)mainUrlString:(NSString *)urlString; + +/** + * @brief 返回当前app的权限控制对象 + * + * @date 2016-12-12 + * + * @return 返回授权数据 + */ +- (NSDictionary *)readPermissionConfig; + +/** + * @brief 返回当前app配置数据源 + * + * @date 2017-03-06 + * + * @return 返回配置数据 + */ +- (NSDictionary *)readAppConfig; + +/** + * @brief 返回当前app tabbar配置数据源 + * + * @date 2019-06-19 + * + * @return 返回tabbar数据 + */ +- (NSDictionary *)readTabBarConfig; + +/** + * @brief 返回当前资源管理中指定url的离线缓存 + * + * @date 2017-03-06 + * + * @return 自定义离线数据源 + */ +- (RVRAppResponse *)appResponseForUrl:(NSString *)url; + +/** + * @brief 返回当前app的fallback 地址 + * + * @date 2019-12-10 + * + * @return 返回fallback之后的地址 + */ +- (NSString *)getFallbackUrlWithApp:(RVRApp *)app url:(NSURL *)url; + +- (void)addEventListener; +- (void)removeEventListener; +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverResource.framework/Headers/RVRDataSourceManagerLogProtocol.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverResource.framework/Headers/RVRDataSourceManagerLogProtocol.h new file mode 100644 index 0000000..30a533c --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverResource.framework/Headers/RVRDataSourceManagerLogProtocol.h @@ -0,0 +1,49 @@ +// +// RVRDataSourceManagerLogProtocol.h +// AriverResource +// +// Created by nico on 2019/3/24. +// Copyright © 2019 Alipay. All rights reserved. +// + +#ifndef NXRDataSourceManagerLogProtocol_h +#define NXRDataSourceManagerLogProtocol_h +#import + +@protocol RVRDataSourceManagerLogProtocol + +@optional +/* + * H5_AL_SESSION_MAP_SUCCESS + */ +- (void)mainResourceDidMap:(RVKProxyEvent *)event; + +/* + * H5_AL_SESSION_HTTPPROXY + * H5_AL_RESOURCE_FIRST_OFFLINE + */ +- (void)commonResouceDidMap:(NSURLRequest *)request dataSource:(RVRDataSource *)dataSource page:(RVKPage *)page; + +/* + * H5_AL_SESSION_FALLBACK + */ +- (void)mainResourceDidFallback:(RVKProxyEvent *)event redirectUrl:(NSURL *)redirectUrl; + +/* + * H5_APP_EXCEP + */ +- (void)mainUrlResourceDidDiscarded:(RVKProxyEvent *)event info:(NSString *)info; + +/* + * pkg of performance + */ +- (void)recordResourceStatus:(RVKProxyEvent *)event; + +/* + * local log info + */ +- (void)logInfo:(NSString *)desc; + +@end + +#endif /* NXRDataSourceManagerLogProtocol_h */ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverResource.framework/Headers/RVRDefine.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverResource.framework/Headers/RVRDefine.h new file mode 100644 index 0000000..34ae5e6 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverResource.framework/Headers/RVRDefine.h @@ -0,0 +1,174 @@ +// +// NXRDefine.h +// NebulaResource +// +// Created by 扶瑶 on 16/3/4. +// Copyright © 2016年 Alipay. All rights reserved. +// + +@class RVRApp; + +#pragma mark - Package Status + +typedef NS_ENUM(NSUInteger, NXRAppStatus) { + NXRAppStatusInstalled = 0, // Installed + NXRAppStatusUninstalled, // Uninstalled + NXRAppStatusInstalling, // Installing (include Downloading and UnZipping) + NXRAppStatusOffline, // Offline +}; + +#pragma mark - App Update Source + +typedef NS_ENUM(NSUInteger, NXRAppSource) { + NXRAppSourceRequest = 0, // http request or rpc + NXRAppSourceSync, // sync + NXRAppSourceBuildIn // built-in +}; + +// app update scene +typedef NS_ENUM(NSUInteger, NXRAppAutoScene) { + NXRAppAutoSceneNormal = 0, // normal, default + NXRAppAutoSceneDebug, // debug +}; + +/* + * NXRNOTI_APP_UPDATED + * + * app update notification (include update and delete) + * + * userinfo params: + * NXRNOTI_APP_UPDATED_LIST: appid list + * NXRNOTI_APP_UPDATED_SOURCE: update source, NSNumber object of NXRAppSource + */ +extern NSString *const NXRNOTI_APP_UPDATED; +extern NSString *const NXRNOTI_APP_UPDATED_LIST; +extern NSString *const NXRNOTI_APP_UPDATED_SOURCE; + + +#pragma mark - Prepare (include Request & Install) + +extern NSString *const NXRPREPARE_OFFTYPE; + +typedef NS_ENUM(NSUInteger, NXRAppPrepareStep) { + NXRAppPrepareStepUnknown, + NXRAppPrepareStepStart, // Start + NXRAppPrepareStepAcquireInfo, // AcquireInfo + NXRAppPrepareStepAcquireInfoFinish, // AcquireInfoFinish + NXRAppPrepareStepDownload, // Download + NXRAppPrepareStepDownloadFinish, // DownloadFinish + NXRAppPrepareStepUnzip, // Unzip + NXRAppPrepareStepUnzipFinish, // UnzipFinish + NXRAppPrepareStepFinished, // Finished + NXRAppPrepareStepBeforeLaunch, // Before LaunchPrepare + NXRAppPrepareStepLaunch // LaunchPrepare +}; + +// prepare finish info key +extern NSString *const NXRPreFinishInfoKeyReqType; +extern NSString *const NXRPreFinishInfoKeyOfflineType; + +typedef void (^NXRAppPrepareProcess)(NXRAppPrepareStep step, id info); // prepare step +typedef void (^NXRAppPrepareFinish)(RVRApp *app, NSError *error); // prepare finished +typedef void (^NXRAppPrepareFinishWithInfo)(RVRApp *app, NSError *error, id info); // prepare finished (include info) + + +/* + * return: can be interrupt + * processor-dicInfo: + * key value + * 'error' error + */ +typedef void (^NXRFinishBlock)(NSError *error); +typedef void (^NXRAppXFinishBlock)(NSError *error,BOOL updated); +typedef NSError *(^NXRAppPrepareProcessor)(NXRAppPrepareStep step, RVRApp *app, NSDictionary *dicInfo, NXRFinishBlock finish); // prepare step + + +// request type +typedef NS_ENUM (NSInteger, NXRActionReqType) { + NXRActionReqAsync = 0, // async request + NXRActionReqSyncTry, // try sync request + NXRActionReqSyncForce, // force sync request + NXRActionReqIfNoCache //return cache info if exist, and never send request rpc +}; + +// request trigger source +typedef NS_ENUM (NSInteger, NXRActionReqTriggerSource) { + NXRActionReqTriggerSourceNormal = 0, + NXRActionReqTriggerSourceSideMgw +}; + +// offline type +typedef NS_ENUM (NSInteger, NXRActionOfflineType) { + NXRActionOfflineAsync = 0, // async offline + NXRActionOfflineSyncForce, // sync force offline + NXRActionOfflineSyncTry, // sync try offline + NXRActionOfflineNone // don't download +}; + + +#pragma mark - Install (include Download & Unzip) + +typedef NS_ENUM(NSUInteger, NXRAppInstallStep) { + NXRAppInstallStepDownload, // Download + NXRAppInstallStepDownloadFinish, // DownloadFinish + NXRAppInstallStepUnzip, // Unzip + NXRAppInstallStepUnzipFinish // UnzipFinish +}; + +typedef void (^NXRAppInstallProcess)(NXRAppInstallStep step, id info); // install step +typedef void (^NXRAppInstallFinish)(RVRApp *app, NSError *error); // install finished + + +#pragma mark - Acquire PackageInfo (include synchronous rpc) + +typedef NS_ENUM(NSUInteger, NXRAcquireAppStep) { + NXRAcquireAppStepRequesting, // Requesting +}; + +typedef void (^NXRAcquireAppProcess)(NXRAcquireAppStep step); +typedef void (^NXRAcquireAppFinish)(RVRApp *app, NSError *error); + + +#pragma mark - ZipArchive + +extern NSString *const NXRNOTI_UNZIP_SUCCESS; + +typedef void (^NXRZipArchiveFinish)(RVRApp *app, NSError *error); +typedef void (^NXRZipArchiveProcess)(float percent); // percent : 0.0 - 1.0 + + +#pragma mark - Download + +extern NSString *const NXRNOTI_DOWNLOAD_FINISHE; + +typedef void (^NXRDownloadFinish)(NSString *path, NSError *error); +typedef void (^NXRDownloadProcess)(float percent); // percent : 0.0 - 1.0 + + +#pragma mark - Request + +typedef void (^NXRRequestFinish)(NSDictionary *data, NSError *error); + +#pragma mark - Verify + +extern NSString *const NXRNOTI_VERIFY_FINISHED; + +// userinfo key: status, alert +extern NSString *const NXRNOTI_VERIFY_FINISHED_STATUS; +extern NSString *const NXRNOTI_VERIFY_FINISHED_ALERT; + + +#pragma mark - Network + +typedef NS_ENUM (NSUInteger, NXRNetworkStatus) { + NXRNetworkNotReachable = 0, + NXRNetworkWWAN = 1, + NXRNetworkWiFi = 2 +}; + + +#pragma mark - Notification + +extern NSString *const NXRNOTI_USER_UPDATED; +extern NSString *const NXRNOTI_USER_STORAGE_RESET; // 用于内部用户重置通知, 业务不用关注 + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverResource.framework/Headers/RVRError.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverResource.framework/Headers/RVRError.h new file mode 100644 index 0000000..b9a2d82 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverResource.framework/Headers/RVRError.h @@ -0,0 +1,18 @@ +// +// RVRError.h +// NebulaResource +// +// Created by 扶瑶 on 16/3/2. +// Copyright © 2016年 Alipay. All rights reserved. +// + +#import +#import "RVRErrorCode.h" + +@interface RVRError : NSObject + ++ (NSError *)errorCode:(NXRErrorCode)code + message:(NSString *)message + options:(id)options; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverResource.framework/Headers/RVRErrorCode.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverResource.framework/Headers/RVRErrorCode.h new file mode 100644 index 0000000..ba5b692 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverResource.framework/Headers/RVRErrorCode.h @@ -0,0 +1,39 @@ +// +// RVRErrorCode.h +// AriverResource +// +// Created by nico on 2019/4/12. +// +// 错误域 +extern NSString *const NXR_ERROR_DOMAIN; +extern NSString *const NXR_ERROR_OPTIONS; + +/** + NXRErrorUnknown = 10000, + NXRErrorCanNotOpenApp = 10001, + NXRErrorUnzipFailed = 10003, + NXRErrorRPCException = 10004, + NXRErrorRPCCalling = 10005, + NXRErrorRPCNoExpired = 10006, + NXRErrorVerifyFailed = 10007, + NXRErrorPatchFailed = 10008, + NXRErrorAppCacheNotExist = 10009, + NXRErrorDownloadFailed = 10010 + */ +typedef NS_ENUM(NSUInteger, NXRErrorCode) { + + NXRErrorUnknown = 10000, // 未知错误 + NXRErrorCanNotOpenApp, // 无法打开包, appId异常 + NXRErrorUnzipFailed, // 解压包失败 + NXRErrorRPCException, // rpc异常, 无应用 + NXRErrorRPCCalling, // 上一个请求尚未结束 + NXRErrorRPCNoExpired, // 请求的app未过期 + NXRErrorVerifyFailed, // 验签失败 + NXRErrorPatchFailed, // 增量更新失败 + NXRErrorAppCacheNotExist, // 应用本地缓存不存在 (e.g. 请求失败,本地无应用缓存) + NXRErrorDownloadFailed, // 下载失败 + NXRErrorPrepareTimeOut, // 准备超时 + NXRErrorOpenAppBreak, // 启动应用打断 + NXRErrorSDKVersionError // 支持最低AppxSDK版本过低 +}; + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverResource.framework/Headers/RVRFastUntar.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverResource.framework/Headers/RVRFastUntar.h new file mode 100644 index 0000000..85ce85f --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverResource.framework/Headers/RVRFastUntar.h @@ -0,0 +1,17 @@ +// +// FastUntar.h +// FastUntar +// +// Created by qiwei on 30/09/2017. +// Copyright © 2017 everettjf. All rights reserved. +// + +#import + +@interface RVRFastUntar : NSObject + ++ (NSDictionary *)readTar:(NSString *)tarPath error:(NSError **)error; + ++ (NSDictionary *)readTar:(NSString *)tarPath error:(NSError **)error filesize:(size_t*)filesize; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverResource.framework/Headers/RVRLogContext.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverResource.framework/Headers/RVRLogContext.h new file mode 100644 index 0000000..89e83b7 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverResource.framework/Headers/RVRLogContext.h @@ -0,0 +1,88 @@ +// +// NXRProtocol.h +// NebulaResource +// +// Created by 扶瑶 on 16/3/11. +// Copyright © 2016年 Alipay. All rights reserved. +// + +typedef NS_ENUM (NSUInteger, NXRLogStep) { + NXRLogStepBegin = 0, + NXRLogStepFinished, +}; + +/** + * 包管理原始埋点类型, 已通过NebulaSDK中NBMonitor输出, 业务方直接使用NBMonitor代理即可 + * + * 埋点seedId: + * + * NXRLogTypePrepareApp H5_APP_PREPARE + * NXRLogTypeDownloadApp H5_APP_DOWNLOAD + * NXRLogTypeUnzipApp H5_APP_UNZIP + * NXRLogTypeVerifyApp H5_APP_VERIFY + * NXRLogTypeRequestApps H5_APP_REQUEST + * NXRLogTypeAppPool H5_APP_POOL + * NXRLogTypeExceptionHandler H5_APP_EXCEP + * + */ +typedef NS_ENUM (NSUInteger, NXRLogType) { + NXRLogTypeUnknown = 0, + NXRLogTypePrepareApp, // 准备应用 + NXRLogTypeDownloadApp, // 下载应用 + NXRLogTypeUnzipApp, // 解压应用 (增量更新) + NXRLogTypeVerifyApp, // 验签应用 + NXRLogTypeRequestApps, // 请求应用 + NXRLogTypeAppPool, // 包管理池变更,增、删、改 + NXRLogTypeExceptionHandler, // 异常管理, 1. 强制请求列表增、删 2. 验证url + + // Webstat + NXRLogTypeWebstatZhuangjiliang, // 装机量埋点 + + // Netstat + NXRLogTypeNetstatChannel // 网络性能埋点 +}; + +@interface RVRLogContext : NSObject; +@property (nonatomic, assign) NXRLogType type; +@property (nonatomic, assign) NXRLogStep step; +@property (nonatomic, strong) NSError *error; +@property (nonatomic, strong) NSDictionary *data; +@property (nonatomic, copy) NSString *customStep; +@property (nonatomic, copy) NSString *seedId; + ++ (RVRLogContext *)type:(NXRLogType)type + step:(NXRLogStep)step; + ++ (RVRLogContext *)type:(NXRLogType)type + step:(NXRLogStep)step + error:(NSError *)error + data:(NSDictionary *)data; + ++ (RVRLogContext *)type:(NXRLogType)type + cusStep:(NSString *)cusStep + data:(NSDictionary *)data; + ++ (RVRLogContext *)type:(NXRLogType)type + cusStep:(NSString *)cusStep + error:(NSError *)error + data:(NSDictionary *)data; + ++ (RVRLogContext *)type:(NXRLogType)type + data:(NSDictionary *)data; + +/** + * 获取log唯一标识 + * + * @return string + */ +- (NSString *)seedId; + +/** + * 获取log参数 + * + * @return {key:value} + */ +- (NSDictionary *)params; +@end + + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverResource.framework/Headers/RVRProtocol+private.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverResource.framework/Headers/RVRProtocol+private.h new file mode 100644 index 0000000..8aa3438 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverResource.framework/Headers/RVRProtocol+private.h @@ -0,0 +1,164 @@ +// +// RVRProtocol+private.h +// Pods +// +// Created by nico on 2019/4/21. +// +#import "RVRApp.h" +#import "RVRLogContext.h" + +@protocol RVRConfigManagerDelegate +- (void)updateConfig:(NSDictionary *)config; +//公共资源包AppId列表; +-(NSArray *)commonAppList; +-(BOOL)callbackInHighPriorityAfterUnzip; +- (NSTimeInterval)resMainDocInvalidTime; +- (NSTimeInterval)limitReqRate; +- (NSTimeInterval)updateReqRate; +-(BOOL)shouldLogResponse;//默认YES; +-(BOOL)shouldUseConditionalResponse;//默认NO +-(BOOL)shouldWKWebViewForceFreshResponse;//默认NO +/** + * 离线资源匹配附加功能开关,如publicUrls匹配 + */ +- (NSDictionary *)resManifestSwitchers; + +-(NSDictionary *)tinyAppPublicURL; + +-(BOOL)cacheReqTime; +-(NSString *)presetAppPackagePath; +-(NSString *)unzipRootPath; +-(NSString *)downloadRootPath; +-(NSString *)templateConfigRootPath; +// 业务方指定的验证包签名的公钥 +-(NSString *)signPublicKey; +/** + * 获取通过代理过滤过的公共资源列表 + * + * 可通过代理函数:supportNebulaApp配置是否支持为NebulaApp,如果为配置该协议默认返回配置的公共列表 + * @return 过滤后的公共应用id及对应版本号, e.g. {'20000196':'1.0.0'} + */ +- (NSDictionary *)filteredCommonApplist; +/*是否需要验签*/ +- (BOOL)isNeed2VerifyApp; +/** + * 模版小程序总开关 + */ +- (BOOL)enableTemplateApp; + +/** + * 模版小程序配置信息等待时间 + */ +- (NSTimeInterval)preferConfigWaitTime; + +/** + 是否转发 + */ +- (BOOL)enableUseAppxHtml; + +/** + 是否允许appxng切流 + */ +- (BOOL)enableUseAppxNG; +- (NSString *)appxngAppId; + +/** + 是否将fallback资源返回头和离线包返回头保持一致 +*/ +- (BOOL)enableRemoveFallbackHeaders; + +/** + fallback资源返回头透回给内核的白名单 +*/ +- (NSArray *)fallbackHeadersWhitelist; + +@optional +- (NSTimeInterval)pluginExpireTime; +@end + +@protocol RVRMonitorDelegate +-(void)logWithLogId:(NSString *)trackId params:(NSDictionary *)params; +-(void)logWithLogId:(NSString *)trackId params:(NSDictionary *)params targetPage:(id )psdPage; +-(void)logWithLogId:(NSString *)trackId params:(NSDictionary *)params targetApp:(RVRApp *)app; +@end + +@protocol RVRLogManagerDelegate +-(void)log:(RVRLogContext *)context; +@optional +-(void)logWithOptions:(NSDictionary *)options inSession:(id)session; +@end + +@class RVRRequestManager; +@protocol RVRRequestCenterDelegate +- (RVRRequestManager *)requestManagerForKey:(NSString *)key; +- (BOOL)fullDoseRequestExpired; +- (void)refreshFullDoseReqTimeWithLimited:(BOOL)limited; +- (void)removeUnavailablelist:(NSArray *)list; + +@optional +-(void)removeRequestManagerForKey:(NSString *)key; +@end + +//以下代理有默认实现 +@protocol RVRAppInterfaceDelegate +/** + * 获取应用场景 + * 注: 仅钱包内调试模式使用 + */ +- (NSString *)sceneForApp:(NSString *)appId; +/** + * 定制应用对象 + */ +- (RVRApp *)findApp:(NSString *)appid version:(NSString *)version; +- (BOOL)isNebulaApp:(NSString *)appId nebulaVersion:(NSString **)nebulaVersion; +- (BOOL)supportNebulaApp:(NSString *)appid version:(NSString *)version nebulaVersion:(NSString **)nebulaVersion; +- (BOOL)enableLoadPubAppId:(NSString *)appid contextApp:(RVRApp *)contextApp version:(NSString **)version; +- (BOOL)enableLoadPkgResApps:(NSNumber **)numLimit; +- (BOOL)isResApp:(NSString *)appId; +- (BOOL)enableCommonResourceDegrade:(NSString *)appId; +- (BOOL)enableStableReq; +- (NSDictionary *)presetAmrApps; +-(BOOL)enableSyncUnzipPresetAmr; +@end + + +@protocol RVRAppPoolOptionalProtocol + +/** + * 删除回滚的包信息 + */ +- (void)removeDiscardApp:(NSString *)appId versions:(NSArray *)versions; +/** + * 获取应用池中所有'需要上报的'应用ID及版本信息 + * + * @param preferApps 期望获取的应用本地版本 + * @return {appId:version} 本地需要上报的版本+期望获取的应用版本 + */ +- (NSDictionary *)allLocalReportApps:(NSArray *)preferApps; +/** + * 获取已过期应用列表 + * + * @param list 待筛选列表, 格式{appid:version} + * + * @return 列表字典, 格式{appid:version} + */ +- (NSDictionary *)expiredApps:(NSDictionary *)list; + +- (NSDictionary *)installedAppVersions:(NSDictionary *)list; +/** + * 获取指定应用本地已有资源的版本 + * + * 逻辑: 查找 已安装版本 -> 预置版本 -> 业务方定制的应用版本 + * 现应用场景: 加载公共资源包资源时,如果本地离线包未安装,会触发加载本地已安装的版本(因降级受包特性影响, 只有纯资源并且和版本无关的应用类型才支持降级。SDK降级开关默认:关, 业务方如需配置请联系@扶瑶, 其他场景勿用)。 + */ +-(RVRApp *)resourcesPreparedApp:(NSString *)appId; + +/** + * 更新应用请求时间,并标记是否被限流 + * + * @param list 应用列表, 格式{appid:version} + * @param limited 是否被限流 + * @param forceRequest 是否为强制请求 + */ +- (void)refreshTime:(NSDictionary *)list limited:(BOOL)limited forceRequest:(BOOL)forceRequest; +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverResource.framework/Headers/RVRProtocol.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverResource.framework/Headers/RVRProtocol.h new file mode 100644 index 0000000..88257e1 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverResource.framework/Headers/RVRProtocol.h @@ -0,0 +1,204 @@ +// +// RVRProtocol.h +// AriverResource +// +// Created by nico on 2019/3/22. +// Copyright © 2019 Alipay. All rights reserved. +// +#import "RVRApp.h" +#import "RVRProtocol+private.h" +#ifndef RVRProtocol_h +#define RVRProtocol_h + +#pragma mark - Request +extern NSString *NXRREQ_PARAMKEY_INSTALLED_APPS; +extern NSString *NXRREQ_PARAMKEY_LOCAL_APPS; +extern NSString *NXRREQ_PARAMKEY_SCENE; +extern NSString *NXRREQ_PARAMKEY_FORCE; // 强制请求,忽略请求频率 +extern NSString *NXRREQ_PARAMKEY_REQTYPE; // 请求类型 异步async/同步尝试synctry/同步强制syncforce +extern NSString *NXRREQ_PARAMKEY_RESAPP; // 请求的资源应用Id [appId, ...] +extern NSString *NXRREQ_PARAMKEY_STABLE; // 强大rpc标记 +extern NSString *NXRREQ_PARAMKEY_REQ_NUM_LIMIT; // rpc个数是否限制 +extern NSString *NXRREQ_PARAMKEY_TRIGGER_SOURCE; // 请求触发来源 (默认:normal, 网关全网化:sideMgw) + +extern NSString *NXRREQ_RESPONSEKEY_DATA; +extern NSString *NXRREQ_RESPONSEKEY_CONFIG; +extern NSString *NXRREQ_RESPONSEKEY_REMOVELIST; +extern NSString *NXRREQ_RESPONSEKEY_SCENE; +extern NSString *NXRREQ_RESPONSEKEY_DISCARDDATA; + +#pragma mark - Log + +extern NSString *const NXRLogParamApp; // NXRApp对象key +extern NSString *const NXRLogParamAppId; // 应用id +extern NSString *const NXRLogParamVersion; // 应用版本号 +extern NSString *const NXRLogParamCustom; // 自定义 +extern NSString *const NXRLogParamBizType; // 业务标识 + +#endif /* RVRProtocol_h */ + +// params +extern NSString *const NXRDOWN_PARAM_KEY_FORCE; +extern NSString *const NXRDOWN_PARAM_KEY_APP; // NXRApp object + +extern NSString * const NXRLogParamBizTypeWebstat; + +@protocol RVRDownloadManagerDelegate +-(void)download:(RVRApp *)app + params:(NSDictionary *)params + process:(NXRDownloadProcess)process + finish:(NXRDownloadFinish)finish; +- (BOOL)isDownloadingApp:(RVRApp *)app; +- (void)cancelAllDownloadTask; +@optional +- (void)deletePackageForApp:(RVRApp *)app; +@end + +@protocol RVRZipArchiveManagerDelegate +- (BOOL)isUnzipping:(RVRApp *)app; +- (void)extractPkg:(RVRApp *)app + process:(NXRZipArchiveProcess)process + finish:(NXRZipArchiveFinish)finish; +- (void)extractPkg:(RVRApp *)app + params:(NSDictionary *)params + process:(NXRZipArchiveProcess)process + finish:(NXRZipArchiveFinish)finish; +@optional +-(NSString *)unzipPathForApp:(RVRApp *)app; +-(BOOL )isInstalledForApp:(RVRApp *)app; +// 是否需要强制cdn下载这个app资源 +- (BOOL)needForceDownloadForApp:(RVRApp *)app; +@end + + + +extern NSString *const NXRReqMgrKeyFullDose; +@protocol RVRRequestManagerDelegate +/** + * 请求应用列表 + * + * @param dicApps 应用列表{appid:version} + * @param params 参数 + * @param finish 完成回调 + */ +- (void)requestApps:(NSDictionary *)dicApps + params:(NSDictionary *)params + finish:(void (^)(id data, NSError *error))finish; +@optional +/** + * 请求插件信息列表 + * + * @param dicApps 应用列表{appid:version} + * @param params 参数 + * @param finish 完成回调 + */ +- (void)requestPlugin:(NSDictionary *)plugin + params:(NSDictionary *)params + finish:(void (^)(id data, NSError *error))finish; +typedef void (^ResourceCallback)(NSData *data,NSError *error); +/* + * 模板小程序能力相关 + */ +- (void)getResourceWithUrl:(NSString *)url callback:(ResourceCallback)callback; +@end + +#pragma mark - App Update Source + +@protocol RVRAppPoolProtocol +/** + * 添加应用 + * + * @param apps 待添加NXRApp应用数组 + * @param source 更新来源 + */ +-(void)addApps:(NSArray *)apps source:(NXRAppSource)source; +/** + * 删除应用 (应用ID+版本维度删除) + * + * @param apps 待删除NXRApp应用数组 + */ +-(void)removeApps:(NSArray *)apps; +/** + * 删除指定应用的包资源 + * + * 删除应用amr、增量amr、tar包 + * + * @param app 应用对象 + * @param updateCache 是否刷新缓存,用于是否变增量包为全量包 + */ +-(void)removeResources:(RVRApp *)app + updateCache:(BOOL)updateCache; +/** + * 更新已安装应用(删除本地该应用的旧版本) + * + * @param app 应用对象 + */ +-(void)updateInstalledApp:(RVRApp *)app; +/** + * 查找指定版本号的应用信息 + * + * @param appId 应用id + * @param version 应用版本号 + * + * @return NXRApp对象 + */ +-(RVRApp *)findApp:(NSString *)appId version:(NSString *)version; +/** + * 获取包信息池内当前应用数 + */ +-(NSUInteger) appCount; +/** + * 删除应用 (应用ID维度删除) + * + * @param apps 待删除应用Id列表 [appId] + * @param source 更新来源 + */ +- (void)removeAppIds:(NSArray *)apps source:(NXRAppSource)source; + +/** +* 查找指定版本号的应用信息 +* +* @param appId 应用id +* @param version 应用版本号(短版本,该版本应是开发者的发布版本) +* +* @return NXRApp对象 +*/ +-(RVRApp *)findPluginApp:(NSString *)appId requreVersion:(NSString *)version; + +/** + * 查找指定版本号的插件信息(不考虑过期时间) + * @param appId 应用id + * @param version 应用版本号(短版本,该版本应是开发者的发布版本) + */ +-(RVRApp *)getLocalPlugin:(NSString *)appId requreVersion:(NSString *)version; + +/** + * 添加插件 + * + * @param apps 待添加NXRApp应用数组 + * @param source 更新来源 + */ +-(void)addPlugins:(NSArray *)apps source:(NXRAppSource)source; +/* +* 查找指定版本号的应用信息 +* +* @param appId 应用id +* @param version 应用版本号(短版本,该版本应是开发者的发布版本) +* @param mainAppId 同时检查订阅关系 +* @return NXRApp对象 +*/ +-(RVRApp *)findPluginApp:(NSString *)appId requreVersion:(NSString *)version inMainApp:(NSString *)mainAppId; + +/** + 更新插件和主应用的订阅关系 + */ +-(void)updateRelationshipWithPluginAppId:(NSString *)pluginId + mainApp:(NSString *)mainAppId + isExist:(BOOL)exist; +@end + +@protocol RVRAppPoolProtocol; +@protocol RVRAppPoolManagerProtocol +-(id)appPool:(NXRAppAutoScene)scene; +-(id)appPool; +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverResource.framework/Headers/RVRRequestManager.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverResource.framework/Headers/RVRRequestManager.h new file mode 100644 index 0000000..77b803d --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverResource.framework/Headers/RVRRequestManager.h @@ -0,0 +1,66 @@ +// +// RVRRequestManager.h +// NebulaResource +// +// Created by 扶瑶 on 16/4/21. +// Copyright © 2016年 Alipay. All rights reserved. +// + +#import + +@protocol RVRRequsetManagerProtocol + +@optional +- (void)processData:(NSDictionary *)data + reqlist:(NSDictionary *)reqlist + params:(NSDictionary *)params; + +@end + +@interface RVRRequestManager : NSObject +-(id)initWithKey:(NSString *)requestKey; +/** + * 全量请求 + * + * @param param 参数, 暂时无用可传nil + * @param autoDownload 是否自动下载 + * @param finish 完成回调 + */ +- (void)requestAllApps:(NSDictionary *)params + autoDownload:(BOOL)autoDownload + finish:(NXRRequestFinish)finish; + + +/** + * 单个请求 + * + * @param param 参数, 暂时无用可传nil + * @param autoDownload 是否自动下载 + * @param finish 完成回调 + */ +- (void)requestApps:(NSDictionary *)dicApps + autoDownload:(BOOL)autoDownload + params:(NSDictionary *)params + finish:(NXRRequestFinish)finish; + +/** + * 其他渠道数据更新处理 + * 注: 仅在合并rpc应用中心触发兜底逻辑时调用, 不支持强大rpc, params默认为nil + */ +- (void)processData:(NSDictionary *)data + reqlist:(NSDictionary *)reqlist + autoDownload:(BOOL)autoDownload; + + + +/** + * 请求插件信息 + * plugin {appId:version} + * @param param 参数, 暂时无用可传nil + * @param autoDownload 是否自动下载 + * @param finish 完成回调 + */ +- (void)requestPlugin:(NSDictionary *)plugin + params:(NSDictionary *)params + finish:(NXRRequestFinish)finish; +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverResource.framework/Headers/RVRService+Template.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverResource.framework/Headers/RVRService+Template.h new file mode 100644 index 0000000..a3462ea --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverResource.framework/Headers/RVRService+Template.h @@ -0,0 +1,14 @@ +// +// NebulaStartApplicationHandler+TemplateApp.h +// NebulaAppBiz +// +// Created by 百喻 on 2018/12/20. +// Copyright © 2018 Alipay. All rights reserved. +// +#import "RVRService.h" + + +@interface RVRService (TemplateApp) +- (void)preHandleTemplateApp:(RVRApp *)app readyToLaunch:(BOOL)isReadyToLaunch; +@end + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverResource.framework/Headers/RVRService.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverResource.framework/Headers/RVRService.h new file mode 100644 index 0000000..ae3cd7b --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverResource.framework/Headers/RVRService.h @@ -0,0 +1,99 @@ +// +// RVRService.h +// AriverResource +// +// Created by nico on 2019/3/22. +// Copyright © 2019 Alipay. All rights reserved. +// + +#import +#import "RVRApp.h" + +typedef void (^RVAppPrepareFinish)(RVRApp *app, NSError *error); // prepare finished + + +@interface RVRService : NSObject ++(instancetype)sharedInstace; + +- (NSInteger)compareVersions:(NSString *)version1 withVersion:(NSString *)version2; +/* + * 通过包信息中的publicURL列表匹配appId + */ +- (NSString *)findAppIdByURL:(NSString *)URLString; +/* + * 通过publicURL匹配主文档的开关 + */ +- (BOOL)enableMatchMainURLByPublicURL; +/* + *通过header.json匹配header的开关 + */ +- (BOOL)enableMatchHeaders; + +/** + * 查找指定id和版本号的应用信息 + * + * @param appId 应用id + * @param version 应用版本号, 支持版本号模糊匹配 e.g. '*' 匹配最高版本号 '1.*' 匹配1开头的版本号总最高版本号等,最长4位 + * + * @return 返回某个appid指定版本号应用对象 + * + * 注意: + * 1. 不区分应用上下线 (即下线的应用也会通过该接口返回) + * 2. 函数内通过NAMAppInterface协议判断是否支持NebulaApp, 并且在未找到应用的情况下通过协议函数:findApp查找. + * NAMAppInterface协议可通过 NAMConfigurationGet().appInterface 指定 + */ +- (RVRApp *)findApp:(NSString *)appId version:(NSString *)version; + +/** + * 查找指定id和版本号的可用应用信息 + * + * 注意: 过滤已下线应用 + */ +- (RVRApp *)findAvailableApp:(NSString *)appId version:(NSString *)version; +/** + * 安装应用 + * + * @param app 应用对象 + * @param process 安装过程回调, 过程包含: 异步下载离线包->解压离线包 + * @param finish 完成回调 + */ +- (void)mountPkg:(RVRApp *)app + process:(NXRAppInstallProcess)process + finish:(NXRAppInstallFinish)finish; + +/** + * 获取指定应用本地已有资源的版本 + * + * 逻辑: 查找 已安装版本 -> 预置版本 -> 业务方定制的应用版本 + * 现应用场景: 加载公共资源包资源时,如果本地离线包未安装,会触发加载本地已安装的版本(因降级受包特性影响, 只有纯资源并且和版本无关的应用类型才支持降级。SDK降级开关默认:关, 业务方如需配置请联系@扶瑶, 其他场景勿用)。 + */ +- (RVRApp *)findResourcesPreparedApp:(NSString *)appId; + + +- (void)prepareApp:(NSString *)appId + version:(NSString *)version + params:(NSDictionary *)params + reqType:(NXRActionReqType)reqType + offlineType:(NXRActionOfflineType)offlineType + finish:(NXRAppPrepareFinish)finish; + +- (void)prepareApp:(NSString *)appId + pluginId:(NSString *)pluginId + requireVersison:(NSString *)pluginVersion + finish:(NXRAppPrepareFinish)finish; + +-(void)checkMinSDKVersion:(NSString *)appId + finish:(NXRAppXFinishBlock)finish; + +- (NSDictionary *)presetAppDics; + +@end + + +#ifdef __cplusplus +extern "C" { +#endif + RVRService * _Nonnull RVRServiceGet(void); +#ifdef __cplusplus +} +#endif diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverResource.framework/Headers/RVRUtils+Version.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverResource.framework/Headers/RVRUtils+Version.h new file mode 100644 index 0000000..764df31 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverResource.framework/Headers/RVRUtils+Version.h @@ -0,0 +1,95 @@ +// +// NXRUtils+Version.h +// NebulaResource +// +// Created by 扶瑶 on 16/3/2. +// Copyright © 2016年 Alipay. All rights reserved. +// + +#import "RVRUtils.h" + +/** + 按版本排序 + + @param version1 + @param version2 + @return + (versionName1格式正确 && versionName2格式错误) || versionName1 > versionName2 : return 1; + ((versionName1 && versionName2)格式错误) || versionName1 = versionName2 : return 0; + (versionName1格式错误 && versionName2格式正确) || versionName1 < versionName2 : return -1; + + 如: + version1[null], version2[null], result["0"]. + version1[null], version2[""], result["0"]. + version1[null], version2[""], result["0"]. + version1[""], version2[""], result["0"]. + version1[""], version2["1.0.0.0"], result["-1"]. + version1[""], version2["1.0"], result["-1"]. + version1["a.b.c"], version2["1.0.1.1"], result["-1"]. + version1["a.b.c"], version2["a.b.c"], result["0"]. + version1["1"], version2["1"], result["0"]. + version1["1"], version2["1.0"], result["0"]. + version1["1"], version2["1.0.0.0"], result["0"]. + version1["1"], version2["2"], result["-1"]. + version1["1"], version2["1.1"], result["-1"]. + version1["1"], version2["1.0.0.1"], result["-1"]. + version1["1"], version2["0.9.9.9"], result["1"]. + version1["1"], version2["0."], result["1"]. + version1["1.1"], version2["1"], result["1"]. + version1["1.1"], version2["1.1"], result["0"]. + version1["1.1"], version2["1.2"], result["-1"]. + version1["1.1"], version2["1.2.3.4"], result["-1"]. + version1["1.2.3.4"], version2["1"], result["1"]. + version1["1.2.3.4"], version2["1.2"], result["1"]. + version1["1.2.3.4"], version2["1.2.3.3"], result["1"]. + version1["1.2.3.4"], version2["1.2.3.4"], result["0"]. + version1["1.2.3.4"], version2["1.3"], result["-1"]. + version1["1.2.3.4"], version2["1.2.3.5"], result["-1"]. + version1["1.2.3.4"], version2["2.2.3.4"], result["-1"]. + version1[".2.3.4"], version2["1.2.3.4"], result["-1"]. + version1[".x"], version2["1"], result["-1"]. + version1[".x"], version2[".x"], result["0"]. + version1["-1.2.3.4"], version2["1.2.3.4"], result["-1"]. + version1["-1.2.3.4"], version2["-1.2.3.4"], result["0"]. + version1["-1.2.3.4"], version2["a.b.c.d"], result["0"]. + + 解释: + 格式错误: null, "", "a.b.c", "-1.2.3.4" 1.2. .2.3 .2.3..4.5.6 + 格式化规则: 1 -> 1.0.0.0 + 1.2 -> 1.2.0.0 + 1.2.3.4 -> 1.2.3.4 + 1.2.3.4.5 -> 1.2.3.4 + */ +NSInteger NXRCompareVersions(NSString *version1, NSString *version2, void *context); + +/** + * 模糊匹配,找出数据源中模糊匹配的最大的版本号 + * + * version: 支持4位模糊查询 * N.* N.*.* N.*.*.* + * + * @param versin 待模糊匹配的版本号 + * @param source 数据源 + * + * @return 模糊匹配的最大版本号 + */ +NSString *NXRFuzzyMatchMaxVersion(NSString *version, NSArray *source); + +/** + * 获取最大/最小版本号 + * + * @param source 待筛选数据源 + * + * @return 返回最大/最小版本号 + */ +NSString *NXRMaxVersion(NSArray *source); +NSString *NXRMinVersion(NSArray *source); + +/** + * 判断是否为支持的模糊查找版本号格式 + */ +BOOL NXRIsFuzzyMatchFormat(NSString *version); + +/** + * 版本号由高到低排序 + */ +NSArray *NXRSoredVersions(NSArray *arrVersions); diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverResource.framework/Headers/RVRUtils.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverResource.framework/Headers/RVRUtils.h new file mode 100644 index 0000000..bb4f69a --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverResource.framework/Headers/RVRUtils.h @@ -0,0 +1,53 @@ +// +// NXIRUtils.h +// AriverResource +// +// Created by nico on 2019/3/22. +// Copyright © 2019 Alipay. All rights reserved. +// + +#import +#import +#import "RVRDefine.h" + + +/******************************** NSDictionary ************************************/ + +NSDictionary *NXRDict(NSDictionary *dict, NSDictionary *defaultValue); + +#pragma mark - string +/******************************** NSString ****************************************/ +NSString *NXRString(NSString *str, NSString *defaultValue); + +#pragma mark array +/******************************** NSArray *****************************************/ +NSArray *NXRArray(NSArray *arr, NSArray *defaultValue); + + + +void NXRPostNotification(NSString *name, id obj, NSDictionary *userinfo); + + +/******************************** Transfer ************************************/ +NSString *NXRJsonObjToString(id object); +NSData *NXRJsonObjToData(id object); + +BOOL NXRRequestExpired(NSTimeInterval lastRefreshDate, BOOL limited, NSNumber *preferUpdateRate); + +NSString *NXRMD5OfString(NSString *string); + +BOOL NXRBoolValue(id obj, BOOL defaultValue); + +NSString *NXRMimeType(NSString *pathExtension); +id NXRDataToJsonObj(NSData *data); +NSDictionary *RVRDictionary(id obj, NSDictionary *defaultValue); +NSURL *RVRURLWithFixedString(NSString *URLString); +BOOL RVRBoolValue(id obj, BOOL defaultValue); +NSURL *NXRURLWithFixedString(NSString *URLString); +NSString *NXRTrimTailingWhiteSpace(NSString *str); +void RVRLogInfo(NSString *message); +double NXRDoubleValue(id obj, double defaultValue); +CGFloat NXRFloatValue(id obj, CGFloat defaultValue); +int NXRIntValue(id obj, int defaultValue); +NXRAppAutoScene NXRSceneType(NSString *scene); + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverResource.framework/Info.plist b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverResource.framework/Info.plist new file mode 100644 index 0000000..2be3768 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverResource.framework/Info.plist @@ -0,0 +1,73 @@ + + + + + BuildMachineOSBuild + 20E241 + CFBundleDevelopmentRegion + English + CFBundleExecutable + AriverResource + CFBundleIdentifier + com.alipay.AriverResource + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + AriverResource + CFBundlePackageType + BNDL + CFBundleShortVersionString + 2.0.0.1-SNAPSHOT + CFBundleSignature + ???? + CFBundleSupportedPlatforms + + iPhoneOS + + CFBundleVersion + 1 + CFPlugInDynamicRegisterFunction + + CFPlugInDynamicRegistration + NO + CFPlugInFactories + + 00000000-0000-0000-0000-000000000000 + MyFactoryFunction + + CFPlugInTypes + + 00000000-0000-0000-0000-000000000000 + + 00000000-0000-0000-0000-000000000000 + + + CFPlugInUnloadFunction + + DTCompiler + com.apple.compilers.llvm.clang.1_0 + DTPlatformBuild + 18B79 + DTPlatformName + iphoneos + DTPlatformVersion + 14.2 + DTSDKBuild + 18B79 + DTSDKName + iphoneos14.2 + DTXcode + 1220 + DTXcodeBuild + 12B45b + MinimumOSVersion + 8.0 + NSHumanReadableCopyright + Copyright © 2013年 Alipay. All rights reserved. + UIDeviceFamily + + 1 + 2 + + + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverRuntime.framework/AriverRuntime b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverRuntime.framework/AriverRuntime new file mode 100644 index 0000000..d7060d4 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverRuntime.framework/AriverRuntime differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverRuntime.framework/AriverRuntime.bundle/H5ES6Promise.js b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverRuntime.framework/AriverRuntime.bundle/H5ES6Promise.js new file mode 100644 index 0000000..d80381c --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverRuntime.framework/AriverRuntime.bundle/H5ES6Promise.js @@ -0,0 +1 @@ +!function(t){"use strict";function n(t){return"function"==typeof t||"object"==typeof t&&null!==t}function e(t){return"function"==typeof t}function r(t){H=t}function o(t){R=t}function i(){return function(){process.nextTick(f)}}function s(){return function(){G(f)}}function u(){var t=0,n=new Z(f),e=document.createTextNode("");return n.observe(e,{characterData:!0}),function(){e.data=t=++t%2}}function c(){var t=new MessageChannel;return t.port1.onmessage=f,function(){t.port2.postMessage(0)}}function a(){return function(){setTimeout(f,1)}}function f(){for(var t=0;Q>t;t+=2){var n=nt[t],e=nt[t+1];n(e),nt[t]=void 0,nt[t+1]=void 0}Q=0}function l(){try{var t=require,n=t("vertx");return G=n.runOnLoop||n.runOnContext,s()}catch(e){return a()}}function h(t,n){var e=this,r=new this.constructor(p);void 0===r[ot]&&Y(r);var o=e._state;if(o){var i=arguments[o-1];R(function(){P(o,r,i,e._result)})}else T(e,r,t,n);return r}function _(t){var n=this;if(t&&"object"==typeof t&&t.constructor===n)return t;var e=new n(p);return A(e,t),e}function p(){}function v(){return new TypeError("You cannot resolve a promise with itself")}function y(){return new TypeError("A promises callback cannot return that same promise.")}function d(t){try{return t.then}catch(n){return ct.error=n,ct}}function m(t,n,e,r){try{t.call(n,e,r)}catch(o){return o}}function w(t,n,e){R(function(t){var r=!1,o=m(e,n,function(e){r||(r=!0,n!==e?A(t,e):j(t,e))},function(n){r||(r=!0,E(t,n))},"Settle: "+(t._label||" unknown promise"));!r&&o&&(r=!0,E(t,o))},t)}function b(t,n){n._state===st?j(t,n._result):n._state===ut?E(t,n._result):T(n,void 0,function(n){A(t,n)},function(n){E(t,n)})}function g(t,n,r){n.constructor===t.constructor&&r===et&&constructor.resolve===rt?b(t,n):r===ct?E(t,ct.error):void 0===r?j(t,n):e(r)?w(t,n,r):j(t,n)}function A(t,e){t===e?E(t,v()):n(e)?g(t,e,d(e)):j(t,e)}function S(t){t._onerror&&t._onerror(t._result),M(t)}function j(t,n){t._state===it&&(t._result=n,t._state=st,0!==t._subscribers.length&&R(M,t))}function E(t,n){t._state===it&&(t._state=ut,t._result=n,R(S,t))}function T(t,n,e,r){var o=t._subscribers,i=o.length;t._onerror=null,o[i]=n,o[i+st]=e,o[i+ut]=r,0===i&&t._state&&R(M,t)}function M(t){var n=t._subscribers,e=t._state;if(0!==n.length){for(var r,o,i=t._result,s=0;si;i++)n.resolve(t[i]).then(e,r)}:function(t,n){n(new TypeError("You must pass an array to race."))})}function F(t){var n=this,e=new n(p);return E(e,t),e}function K(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function L(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}function N(t){this[ot]=k(),this._result=this._state=void 0,this._subscribers=[],p!==t&&("function"!=typeof t&&K(),this instanceof N?x(this,t):L())}function U(t,n){this._instanceConstructor=t,this.promise=new t(p),this.promise[ot]||Y(this.promise),J(n)?(this._input=n,this.length=n.length,this._remaining=n.length,this._result=new Array(this.length),0===this.length?j(this.promise,this._result):(this.length=this.length||0,this._enumerate(),0===this._remaining&&j(this.promise,this._result))):E(this.promise,W())}function W(){return new Error("Array Methods must be provided an Array")}var z=t.Promise;if(!z||"[object Promise]"!==Object.prototype.toString.call(z.resolve())||z.cast){var B;B=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)};var G,H,I,J=B,Q=0,R=function(t,n){nt[Q]=t,nt[Q+1]=n,Q+=2,2===Q&&(H?H(f):I())},V="undefined"!=typeof window?window:void 0,X=V||{},Z=X.MutationObserver||X.WebKitMutationObserver,$="undefined"==typeof self&&"undefined"!=typeof process&&"[object process]"==={}.toString.call(process),tt="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel,nt=new Array(1e3);I=$?i():Z?u():tt?c():void 0===V&&"function"==typeof require?l():a();var et=h,rt=_,ot=Math.random().toString(36).substring(16),it=void 0,st=1,ut=2,ct=new C,at=new C,ft=0,lt=q,ht=D,_t=F,pt=N;N.all=lt,N.race=ht,N.resolve=rt,N.reject=_t,N._setScheduler=r,N._setAsap=o,N._asap=R,N.prototype={constructor:N,then:et,"catch":function(t){return this.then(null,t)}};var vt=U;U.prototype._enumerate=function(){for(var t=this.length,n=this._input,e=0;this._state===it&&t>e;e++)this._eachEntry(n[e],e)},U.prototype._eachEntry=function(t,n){var e=this._instanceConstructor,r=e.resolve;if(r===rt){var o=d(t);if(o===et&&t._state!==it)this._settledAt(t._state,n,t._result);else if("function"!=typeof o)this._remaining--,this._result[n]=t;else if(e===pt){var i=new e(p);g(i,t,o),this._willSettleAt(i,n)}else this._willSettleAt(new e(function(n){n(t)}),n)}else this._willSettleAt(r(t),n)},U.prototype._settledAt=function(t,n,e){var r=this.promise;r._state===it&&(this._remaining--,t===ut?E(r,e):this._result[n]=e),0===this._remaining&&j(r,this._result)},U.prototype._willSettleAt=function(t,n){var e=this;T(t,void 0,function(t){e._settledAt(st,n,t)},function(t){e._settledAt(ut,n,t)})},t.Promise=pt}}(this); \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverRuntime.framework/AriverRuntime.bundle/H5JSCBridge.js b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverRuntime.framework/AriverRuntime.bundle/H5JSCBridge.js new file mode 100644 index 0000000..15a82db --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverRuntime.framework/AriverRuntime.bundle/H5JSCBridge.js @@ -0,0 +1,631 @@ +/** + * Created by xinnian on 2016/12/21. + */ +var setTimeout, setInterval, clearTimeout, clearInterval, AlipayTimersExecution; +if(!this.console){ + this.console = { + log: function () {}, + error: function () {}, + warn: function () {}, + info: function () {} + } +}; +(function () { + AlipayTimersExecution = { + GUID: 1, + Type: { + setTimeout: "setTimeout", + setInterval: "setInterval", + requestAnimationFrame: "requestAnimationFrame", + setImmediate: "setImmediate" + }, + + callbacks: [], + types: [], + timerIDs: [], + immediates: [], + + callTimer: function (timerID) { + + var timerIndex = AlipayTimersExecution.timerIDs.indexOf(timerID); + // timerIndex of -1 means that no timer with that ID exists. There are + // two situations when this happens, when a garbage timer ID was given + // and when a previously existing timer was deleted before this callback + // fired. In both cases we want to ignore the timer id, but in the former + // case we warn as well. + if (timerIndex === -1) { + return; + } + var type = AlipayTimersExecution.types[timerIndex]; + var callback = AlipayTimersExecution.callbacks[timerIndex]; + + // Clear the metadata + if (type === AlipayTimersExecution.Type.setTimeout || type === AlipayTimersExecution.Type.setImmediate || type === AlipayTimersExecution.Type.requestAnimationFrame) { + AlipayTimersExecution._clearIndex(timerIndex); + } + + try { + if (type === AlipayTimersExecution.Type.setTimeout || type === AlipayTimersExecution.Type.setInterval || type === AlipayTimersExecution.Type.setImmediate) { + callback(); + } else if (type === AlipayTimersExecution.Type.requestAnimationFrame) { + var currentTime = performanceNow(); + callback(currentTime); + } else { + console.error('Tried to call a callback with invalid type: ' + type); + return; + } + } catch (e) { + // Don't rethrow so that we can run every other timer. + AlipayTimersExecution.errors = AlipayTimersExecution.errors || []; + AlipayTimersExecution.errors.push(e); + } + }, + + /** + * This is called from the native side. We are passed an array of timerIDs, + * and + */ + callTimers: function (timerIDs) { + //invariant(timerIDs.length !== 0, 'Probably shouldn\'t call "callTimers" with no timerIDs'); + AlipayTimersExecution.errors = null; + timerIDs.forEach(AlipayTimersExecution.callTimer); + + var errors = AlipayTimersExecution.errors; + if (errors) { + var errorCount = errors.length; + if (errorCount > 1) { + // Throw all the other errors in a setTimeout, which will throw each + // error one at a time + for (var ii = 1; ii < errorCount; ii++) { + var error = errors[ii]; + AlipayTimers.setTimeout(function () { + throw error; + }, + 0); + } + } + throw errors[0]; + } + }, + + /** + * This is called after we execute any command we receive from native but + * before we hand control back to native. + */ + callImmediates: function () { + AlipayTimersExecution.errors = null; + while (AlipayTimersExecution.immediates.length !== 0) { + AlipayTimersExecution.callTimer(AlipayTimersExecution.immediates.shift()); + } + if (AlipayTimersExecution.errors) { + AlipayTimersExecution.errors.forEach(function () { + var args = Array.prototype.slice.call(undefined, arguments); + var error = args[0]; + AlipayTimers.setTimeout(function () { + throw error; + }, + 0); + }); + } + }, + + _clearIndex: function (i) { + AlipayTimersExecution.timerIDs[i] = null; + AlipayTimersExecution.callbacks[i] = null; + AlipayTimersExecution.types[i] = null; + } + }; + + function _getFreeIndex() { + var freeIndex = AlipayTimersExecution.timerIDs.indexOf(null); + if (freeIndex === -1) { + freeIndex = AlipayTimersExecution.timerIDs.length; + } + return freeIndex; + } + + function _allocateCallback(func, type) { + const id = AlipayTimersExecution.GUID++; + const freeIndex = _getFreeIndex(); + AlipayTimersExecution.timerIDs[freeIndex] = id; + AlipayTimersExecution.callbacks[freeIndex] = func; + AlipayTimersExecution.types[freeIndex] = type; + return id; + } + + function _freeCallback(timerID) { + // AlipayTimersExecution.timerIDs contains nulls after timers have been removed; + // ignore nulls upfront so indexOf doesn't find them + if (timerID == null) { + return; + } + + var index = AlipayTimersExecution.timerIDs.indexOf(timerID); + // See corresponding comment in `callTimers` for reasoning behind this + if (index !== -1) { + AlipayTimersExecution._clearIndex(index); + const type = AlipayTimersExecution.types[index]; + if (type !== 'setImmediate' && type !== 'requestIdleCallback') { + //call native method + deleteTimer(timerID); + } + } + } + + var AlipayTimers = { + + setTimeout: function () { + var args = Array.prototype.slice.call(arguments); + var func = arguments[0]; + var duration = arguments[1]; + + var id = _allocateCallback((function (fn) { + return function () { + fn.apply(undefined, args.slice(2)); + } + })(func), 'setTimeout'); + //call native method + createTimer(id, duration || 0, Date.now(), false); + return id; + }, + + setInterval: function () { + var args = Array.prototype.slice.call(arguments); + var func = arguments[0]; + var duration = arguments[1]; + + var id = _allocateCallback((function (fn) { + return function () { + fn.apply(undefined, args.slice(2)); + } + })(func), 'setInterval'); + //call native method + createTimer(id, duration || 0, Date.now(), true); + return id; + }, + + clearTimeout: function (timerID) { + _freeCallback(timerID); + }, + + clearInterval: function (timerID) { + _freeCallback(timerID); + } + }; + + setTimeout = setTimeout || AlipayTimers.setTimeout; + setInterval = setInterval || AlipayTimers.setInterval; + clearTimeout = clearTimeout || AlipayTimers.clearTimeout; + clearInterval = clearInterval || AlipayTimers.clearInterval; +})(); + + + +/** + * Created by xinnian on 2016/11/24. + */ +var document, AlipayJSBridge, window, self = {}; +// window self 指向global 对象 +window = self = this; +(function () { + //set global nativeFlushQueueImmediate null + var nativeFlushQueueImmediate = this.nativeFlushQueueImmediate; + this.nativeFlushQueueImmediate = null; + + var useOptimizedMessageChannel = this.useOptimizedMessageChannel; + this.useOptimizedMessageChannel = null; + + var optimizedMessageChannel = this.optimizedMessageChannel; + this.optimizedMessageChannel = null; + + var handlers = {}; + var windowHanders = {}; + var sendMessageQueue = []; + + function Event(name) { + this.name = name; + } + + Event.prototype = { + preventDefault: function () { + this._preventDefault = true; + }, + initEvent: function(name) { + this.name = name; + }, + isDefaultPrevented: function () { + return !!this._preventDefault; + } + }; + function add(eventName, fn) { + handlers[eventName] || (handlers[eventName] = []); + + var handler = {}; + handler.fn = fn; + + handlers[eventName].push(handler); + } + + function windowAddEvent(eventName, fn) { + windowHanders[eventName] || (windowHanders[eventName] = []); + + var handler = {}; + handler.fn = fn; + + windowHanders[eventName].push(handler); + } + + function remove(eventName, fn) { + if (handlers[eventName]) { + for (var i = 0; i < handlers[eventName].length; i++) { + if (fn === handlers[eventName][i].fn) { + handlers[eventName].splice(i, 1); + if (handlers[eventName].length === 0) { + delete handlers[eventName]; + } + break; + } + } + } + } + + function removeWindowEvent(eventName, fn) { + if (windowHanders[eventName]) { + for (var i = 0; i < windowHanders[eventName].length; i++) { + if (fn === windowHanders[eventName][i].fn) { + windowHanders[eventName].splice(i, 1); + if (windowHanders[eventName].length === 0) { + delete windowHanders[eventName]; + } + break; + } + } + } + } + + function createEvent(eventName) { + return new Event(eventName); + } + + function dispatchEvent(eventName, args) { + var evt = createEvent(eventName); + var isDefaultPrevented = false; + if (handlers[eventName]) { + for (var i = 0; i < handlers[eventName].length; i++) { + evt.data = args; + handlers[eventName][i].fn(evt); + if (evt.isDefaultPrevented()) { + isDefaultPrevented = true; + } + } + } + + return !isDefaultPrevented; + } + + function trigger(eventName, args) { + + var isDefaultPrevented = !dispatchEvent(eventName, args); + if (args.callbackId) { + var callbackData = {}; + callbackData.callbackId = args.callbackId; + callbackData[eventName + 'EventCanceled'] = isDefaultPrevented; + if (typeof args["func"] === "string") { + callbackData[args["func"] + 'EventCanceled'] = isDefaultPrevented; + } + AlipayJSBridge.call("__nofunc__",callbackData); + // delete args.callbackId; + } + } + + document = { + addEventListener: add, + removeEventListener: remove, + trigger: trigger, + sendMessageQueue: sendMessageQueue, + createEvent: createEvent, + dispatchEvent: dispatchEvent, + location: { + href: 'about:blank', + toString:function () { + return location.href; + } + }, + + title: '' + }; + window.addEventListener = windowAddEvent; + window.removeEventListener = removeWindowEvent; + var msgPortMap = {}; + + function trasMsgPort(viewId, pageId, msgPort) { + msgPort.postMessage = function (data) { + var _data = { + data: data, + type: 'messagePort', + msgPortId: msgPort.id, + viewId: viewId, + pageId: pageId + }; + AlipayJSBridge.call("postMessage", _data); + }; + if(!msgPortMap['m_'+viewId]){ + msgPortMap['m_'+viewId] = {}; + } + if(!msgPortMap['m_' + viewId]['p_' + pageId]){ + msgPortMap['m_' + viewId]['p_' + pageId] = {}; + } + msgPortMap['m_'+viewId]['p_' + pageId][msgPort.id] = msgPort; + return msgPort; + } + + document.addEventListener('message', function (event) { + if (event.data && event.data.type != 'messagePort' && !event.data.beforeunload) { + var data = event.data.data; + var eventPorts = event.data.eventPorts; + var viewId = event.data.viewId; + var pageId = event.data.pageId || 0; + if (eventPorts && eventPorts[0]) { + eventPorts[0] = trasMsgPort(viewId, pageId, eventPorts[0]); + } + if (windowHanders['message']) { + for (var i = 0; i < windowHanders['message'].length; i++) { + event.data = data; + event.ports = eventPorts; + windowHanders['message'][i].fn(event); + } + } + } else if (event.data && event.data.type == 'messagePort' && event.data.msgPortId) { + var viewId = event.data.viewId; + var pageId = event.data.pageId || 0; + if(!msgPortMap['m_' + viewId] || !msgPortMap['m_' + viewId]['p_' + pageId]){ + console.error('unknown view', event, msgPortMap); + return; + } + var msgPort = msgPortMap['m_' + viewId]['p_' + pageId][event.data.msgPortId]; + if (msgPort && msgPort.onmessage) { + msgPort.onmessage({ + data: event.data.data + }); + } + } else { + console.log('unknown event', event); + } + }); + + Object.defineProperty(document.location, "href", { + get: function () { + return document.location._href; + }, + + set: function (newValue) { + if (typeof newValue !== 'string') return; + + newValue = newValue.trim(); + if(self.AlipayJSBridge._trimLocationHref){ + var rs = self.AlipayJSBridge._trimLocationHref(newValue); + if(rs){ + for(var key in rs){ + if(key != "href" && typeof rs[key] !== "function"){ + document.location[key] = rs[key]; + } + } + } + } + document.location._href = newValue; + } + }); + /***************Param Type*****************/ + var NEBULA_TYPE_INFO = "NEBULATYPEINFO",NEBULA_TYPE_OF_ARRAYBUFFER = "ArrayBuffer"; + + + var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; + var lookup = new Uint8Array(256); + for (var i = 0; i < chars.length; i++) { + lookup[chars.charCodeAt(i)] = i; + } + + function arrayBufferToBase64(arraybuffer) { + var bytes = new Uint8Array(arraybuffer), + i, len = bytes.length, base64 = ""; + + for (i = 0; i < len; i+=3) { + base64 += chars[bytes[i] >> 2]; + base64 += chars[((bytes[i] & 3) << 4) | (bytes[i + 1] >> 4)]; + base64 += chars[((bytes[i + 1] & 15) << 2) | (bytes[i + 2] >> 6)]; + base64 += chars[bytes[i + 2] & 63]; + } + + if ((len % 3) === 2) { + base64 = base64.substring(0, base64.length - 1) + "="; + } else if (len % 3 === 1) { + base64 = base64.substring(0, base64.length - 2) + "=="; + } + + return base64; + } + + function base64ToArrayBuffer(base64) { + var bufferLength = base64.length * 0.75, + len = base64.length, i, p = 0, + encoded1, encoded2, encoded3, encoded4; + + if (base64[base64.length - 1] === "=") { + bufferLength--; + if (base64[base64.length - 2] === "=") { + bufferLength--; + } + } + + var arraybuffer = new ArrayBuffer(bufferLength), + bytes = new Uint8Array(arraybuffer); + + for (i = 0; i < len; i+=4) { + encoded1 = lookup[base64.charCodeAt(i)]; + encoded2 = lookup[base64.charCodeAt(i+1)]; + encoded3 = lookup[base64.charCodeAt(i+2)]; + encoded4 = lookup[base64.charCodeAt(i+3)]; + + bytes[p++] = (encoded1 << 2) | (encoded2 >> 4); + bytes[p++] = ((encoded2 & 15) << 4) | (encoded3 >> 2); + bytes[p++] = ((encoded3 & 3) << 6) | (encoded4 & 63); + } + + return arraybuffer; + } + + function transformCallParam(param){ + var result = param; + for(var key in param){ + if (param.hasOwnProperty(key)) { + var val = param[key]; + if (val instanceof ArrayBuffer) { + param[key] = arrayBufferToBase64(val); + if (!result[NEBULA_TYPE_INFO]) { + result[NEBULA_TYPE_INFO] = {}; + } + result[NEBULA_TYPE_INFO][key] = {"type" : NEBULA_TYPE_OF_ARRAYBUFFER}; + } + } + } + return result; + } + + function transformResponseData(responsedata){ + if(responsedata && responsedata[NEBULA_TYPE_INFO]){ + var nebulaTypeInfo = responsedata[NEBULA_TYPE_INFO]; + if (nebulaTypeInfo) { + for(var key in nebulaTypeInfo){ + if (nebulaTypeInfo.hasOwnProperty(key)) { + var item = nebulaTypeInfo[key]; + if (item.type) { + var typeVal = item["type"]; + if (typeVal === NEBULA_TYPE_OF_ARRAYBUFFER) { + responsedata[key] = base64ToArrayBuffer(responsedata[key]); + } + } + } + } + } + } + return responsedata; + } + + var callbackPoll = []; + + AlipayJSBridge = { + + call: function (func, param, callback) { + + if ('string' !== typeof func) { + return; + } + + if ('function' === typeof param) { + callback = param; + param = null; + } else if (typeof param !== 'object') { + param = null; + } + + var callbackId = func + '_' + new Date().getTime() + (Math.random()); + if ('function' === typeof callback) { + callbackPoll[callbackId] = callback; + } + + if (useOptimizedMessageChannel) { + var message = {}; + if (param && param.callbackId) { + message = { + responseId: param.callbackId, + responseData: param + }; + delete param.callbackId; + } else { + message = { + handlerName: func, + data: param || {} + }; + message.callbackId = '' + callbackId; + } + optimizedMessageChannel(message); + return; + } + + if (param && param.callbackId) { + func = { + responseId: param.callbackId, + responseData: param + }; + delete param.callbackId; + } else { + var dataJson = transformCallParam(param),targetData; + try{ + targetData = JSON.stringify(dataJson); + }catch(ex){ + console.log(ex); + targetData = JSON.stringify({}); + } + func = { + handlerName: func, + data: targetData || {} + }; + func.callbackId = '' + callbackId; + } + nativeFlushQueueImmediate([func]); + }, + + _handleMessageFromObjC: function (message) { + var resp = JSON.parse(message); + var handlerName = resp.handlerName; + var data = resp.data; + data || (data = {}); + data.callbackId = resp.callbackId; + // setTimeout(function() { + //document.trigger(handlerName, data); + AlipayJSBridge._invokeJS(resp); + // },1); + }, + + _invokeJS: function (resp) { + if (resp.responseId) { + var func = callbackPoll[resp.responseId]; + if (!(typeof resp.keepCallback == 'boolean' && resp.keepCallback)) { + delete callbackPoll[resp.responseId]; + } + + if ('function' === typeof func) { + func(transformResponseData(resp.responseData)); + } + } else if (resp.handlerName) { + if (resp.callbackId) { + resp.data = resp.data || {}; + resp.data.callbackId = resp.callbackId; + } + document.trigger(resp.handlerName, resp.data); + } + }, + + _fetchQueue: function () { + var messageQueueString = JSON.stringify(document.sendMessageQueue); + document.sendMessageQueue.length = 0; + return messageQueueString; + }, + + _domReady: function () { + GLOBAL.ALIPAYH5STARTUPPARAMS || {}; + GLOBAL.ALIPAYH5STARTUPPARAMS = null; + document.dispatchEvent('DOMContentLoaded', null); + document.dispatchEvent('AlipayJSBridgeReady', null); + } + }; + + window.history = { + length: 1 + }; + + window.location = document.location; + window.document = document; +})();!function(t){function e(s){if(r[s])return r[s].exports;var n=r[s]={exports:{},id:s,loaded:!1};return t[s].call(n.exports,n,n.exports,e),n.loaded=!0,n.exports}var r={};return e.m=t,e.c=r,e.p="",e(0)}({0:function(t,e,r){"use strict";function s(t){return t&&t.__esModule?t:{default:t}}var n=r(73),o=s(n),h=r(66),a=s(h);window.importScripts=o.default;var i={};if(self.navigator&&(self.navigator.userAgent||self.navigator.swuserAgent)){var l=self.navigator.userAgent||self.navigator.swuserAgent,u=l.match(/\sOS\s\d*_\d*/gi);if(u&&u.length>0){var c=u[0],f=c.match(/\d+/gi);i.version=parseInt(f[0]),i.subVersion=parseInt(f[1])}}self.Promise&&(self.sourcePromise=self.Promise);try{self.Promise=null,(0,o.default)("https://as.alipayobjects.com/g/component/es6-promise/3.2.2/es6-promise.min.js")}catch(t){console.error("加载Promise 出错::",t),self.Promise=self.sourcePromise}self&&self.AlipayJSBridge&&(self.AlipayJSBridge._trimLocationHref=function(t){var e={href:t};try{e=a.default.parse(t),e&&!e.origin&&(e.origin=e.protocol+"//"+e.host),["hash","search","query"].forEach(function(t){null===e[t]&&(e[t]="")});for(var r in e)"function"==typeof e[r]&&delete e[r]}catch(t){console.error("url 解析错误:",t)}return e})},66:function(t,e,r){"use strict";function s(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function n(t,e,r){if(t&&l.isObject(t)&&t instanceof s)return t;var n=new s;return n.parse(t,e,r),n}function o(t){return l.isString(t)&&(t=n(t)),t instanceof s?t.format():s.prototype.format.call(t)}function h(t,e){return n(t,!1,!0).resolve(e)}function a(t,e){return t?n(t,!1,!0).resolveObject(e):e}var i=r(67),l=r(69);e.parse=n,e.resolve=h,e.resolveObject=a,e.format=o,e.Url=s;var u=/^([a-z0-9.+-]+:)/i,c=/:[0-9]*$/,f=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,p=["<",">",'"',"`"," ","\r","\n","\t"],m=["{","}","|","\\","^","`"].concat(p),v=["'"].concat(m),d=["%","/","?",";","#"].concat(v),g=["/","?","#"],y=255,b=/^[+a-z0-9A-Z_-]{0,63}$/,x=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,j={javascript:!0,"javascript:":!0},O={javascript:!0,"javascript:":!0},w={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},A=r(70);s.prototype.parse=function(t,e,r){if(!l.isString(t))throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var s=t.indexOf("?"),n=s!==-1&&s127?"x":_[F];if(!N.match(b)){var $=k.slice(0,q),z=k.slice(q+1),H=_.match(x);H&&($.push(H[1]),z.unshift(H[2])),z.length&&(a="/"+z.join(".")+a),this.hostname=$.join(".");break}}}this.hostname.length>y?this.hostname="":this.hostname=this.hostname.toLowerCase(),P||(this.hostname=i.toASCII(this.hostname));var M=this.port?":"+this.port:"",T=this.hostname||"";this.host=T+M,this.href+=this.host,P&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==a[0]&&(a="/"+a))}if(!j[m])for(var q=0,E=v.length;q0)&&r.host.split("@");C&&(r.auth=C.shift(),r.host=r.hostname=C.shift())}return r.search=t.search,r.query=t.query,l.isNull(r.pathname)&&l.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!j.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var I=j.slice(-1)[0],q=(r.host||t.host||j.length>1)&&("."===I||".."===I)||""===I,U=0,R=j.length;R>=0;R--)I=j[R],"."===I?j.splice(R,1):".."===I?(j.splice(R,1),U++):U&&(j.splice(R,1),U--);if(!b&&!x)for(;U--;U)j.unshift("..");!b||""===j[0]||j[0]&&"/"===j[0].charAt(0)||j.unshift(""),q&&"/"!==j.join("/").substr(-1)&&j.push("");var S=""===j[0]||j[0]&&"/"===j[0].charAt(0);if(A){r.hostname=r.host=S?"":j.length?j.shift():"";var C=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@");C&&(r.auth=C.shift(),r.host=r.hostname=C.shift())}return b=b||r.host&&j.length,b&&!S&&j.unshift(""),j.length?r.pathname=j.join("/"):(r.pathname=null,r.path=null),l.isNull(r.pathname)&&l.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=t.auth||r.auth,r.slashes=r.slashes||t.slashes,r.href=r.format(),r},s.prototype.parseHost=function(){var t=this.host,e=c.exec(t);e&&(e=e[0],":"!==e&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)}},67:function(t,e,r){var s;(function(t,n){!function(o){function h(t){throw RangeError(k[t])}function a(t,e){for(var r=t.length,s=[];r--;)s[r]=e(t[r]);return s}function i(t,e){var r=t.split("@"),s="";r.length>1&&(s=r[0]+"@",t=r[1]),t=t.replace(P,".");var n=t.split("."),o=a(n,e).join(".");return s+o}function l(t){for(var e,r,s=[],n=0,o=t.length;n=55296&&e<=56319&&n65535&&(t-=65536,e+=N(t>>>10&1023|55296),t=56320|1023&t),e+=N(t)}).join("")}function c(t){return t-48<10?t-22:t-65<26?t-65:t-97<26?t-97:j}function f(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function p(t,e,r){var s=0;for(t=r?_(t/C):t>>1,t+=_(t/e);t>E*w>>1;s+=j)t=_(t/E);return _(s+(E+1)*t/(t+A))}function m(t){var e,r,s,n,o,a,i,l,f,m,v=[],d=t.length,g=0,y=q,b=I;for(r=t.lastIndexOf(U),r<0&&(r=0),s=0;s=128&&h("not-basic"),v.push(t.charCodeAt(s));for(n=r>0?r+1:0;n=d&&h("invalid-input"),l=c(t.charCodeAt(n++)),(l>=j||l>_((x-g)/a))&&h("overflow"),g+=l*a,f=i<=b?O:i>=b+w?w:i-b,!(l_(x/m)&&h("overflow"),a*=m;e=v.length+1,b=p(g-o,e,0==o),_(g/e)>x-y&&h("overflow"),y+=_(g/e),g%=e,v.splice(g++,0,y)}return u(v)}function v(t){var e,r,s,n,o,a,i,u,c,m,v,d,g,y,b,A=[];for(t=l(t),d=t.length,e=q,r=0,o=I,a=0;a=e&&v_((x-r)/g)&&h("overflow"),r+=(i-e)*g,e=i,a=0;ax&&h("overflow"),v==e){for(u=r,c=j;m=c<=o?O:c>=o+w?w:c-o,!(u= 0x80 (not a basic code point)","invalid-input":"Invalid input"},E=j-O,_=Math.floor,N=String.fromCharCode;b={version:"1.3.2",ucs2:{decode:l,encode:u},decode:m,encode:v,toASCII:g,toUnicode:d},s=function(){return b}.call(e,r,e,t),!(void 0!==s&&(t.exports=s))}(this)}).call(e,r(68)(t),function(){return this}())},68:function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children=[],t.webpackPolyfill=1),t}},69:function(t,e){"use strict";t.exports={isString:function(t){return"string"==typeof t},isObject:function(t){return"object"==typeof t&&null!==t},isNull:function(t){return null===t},isNullOrUndefined:function(t){return null==t}}},70:function(t,e,r){"use strict";e.decode=e.parse=r(71),e.encode=e.stringify=r(72)},71:function(t,e){"use strict";function r(t,e){return Object.prototype.hasOwnProperty.call(t,e)}t.exports=function(t,e,s,n){e=e||"&",s=s||"=";var o={};if("string"!=typeof t||0===t.length)return o;var h=/\+/g;t=t.split(e);var a=1e3;n&&"number"==typeof n.maxKeys&&(a=n.maxKeys);var i=t.length;a>0&&i>a&&(i=a);for(var l=0;l=0?(u=m.substr(0,v),c=m.substr(v+1)):(u=m,c=""),f=decodeURIComponent(u),p=decodeURIComponent(c),r(o,f)?Array.isArray(o[f])?o[f].push(p):o[f]=[o[f],p]:o[f]=p}return o}},72:function(t,e){"use strict";var r=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};t.exports=function(t,e,s,n){return e=e||"&",s=s||"=",null===t&&(t=void 0),"object"==typeof t?Object.keys(t).map(function(n){var o=encodeURIComponent(r(n))+s;return Array.isArray(t[n])?t[n].map(function(t){return o+encodeURIComponent(r(t))}).join(e):o+encodeURIComponent(r(t[n]))}).join(e):n?encodeURIComponent(r(n))+s+encodeURIComponent(r(t)):""}},73:function(t,e,r){"use strict";function s(t){return t&&t.__esModule?t:{default:t}}function n(t){if(arguments&&arguments.length>1)for(var e=0,r=arguments.length;e 1) { + // Throw all the other errors in a setTimeout, which will throw each + // error one at a time + for (var ii = 1; ii < errorCount; ii++) { + var error = errors[ii]; + AlipayTimers.setTimeout(function () { + throw error; + }, + 0); + } + } + throw errors[0]; + } + }, + + /** + * This is called after we execute any command we receive from native but + * before we hand control back to native. + */ + callImmediates: function () { + AlipayTimersExecution.errors = null; + while (AlipayTimersExecution.immediates.length !== 0) { + AlipayTimersExecution.callTimer(AlipayTimersExecution.immediates.shift()); + } + if (AlipayTimersExecution.errors) { + AlipayTimersExecution.errors.forEach(function () { + var args = Array.prototype.slice.call(undefined, arguments); + var error = args[0]; + AlipayTimers.setTimeout(function () { + throw error; + }, + 0); + }); + } + }, + + _clearIndex: function (i) { + AlipayTimersExecution.timerIDs[i] = null; + AlipayTimersExecution.callbacks[i] = null; + AlipayTimersExecution.types[i] = null; + } + }; + + function _getFreeIndex() { + var freeIndex = AlipayTimersExecution.timerIDs.indexOf(null); + if (freeIndex === -1) { + freeIndex = AlipayTimersExecution.timerIDs.length; + } + return freeIndex; + } + + function _allocateCallback(func, type) { + const id = AlipayTimersExecution.GUID++; + const freeIndex = _getFreeIndex(); + AlipayTimersExecution.timerIDs[freeIndex] = id; + AlipayTimersExecution.callbacks[freeIndex] = func; + AlipayTimersExecution.types[freeIndex] = type; + return id; + } + + function _freeCallback(timerID) { + // AlipayTimersExecution.timerIDs contains nulls after timers have been removed; + // ignore nulls upfront so indexOf doesn't find them + if (timerID == null) { + return; + } + + var index = AlipayTimersExecution.timerIDs.indexOf(timerID); + // See corresponding comment in `callTimers` for reasoning behind this + if (index !== -1) { + AlipayTimersExecution._clearIndex(index); + const type = AlipayTimersExecution.types[index]; + if (type !== 'setImmediate' && type !== 'requestIdleCallback') { + //call native method + deleteTimer(timerID); + } + } + } + + var AlipayTimers = { + + setTimeout: function () { + var args = Array.prototype.slice.call(arguments); + var func = arguments[0]; + var duration = arguments[1]; + + var id = _allocateCallback((function (fn) { + return function () { + fn.apply(undefined, args.slice(2)); + } + })(func), 'setTimeout'); + //call native method + createTimer(id, duration || 0, Date.now(), false); + return id; + }, + + setInterval: function () { + var args = Array.prototype.slice.call(arguments); + var func = arguments[0]; + var duration = arguments[1]; + + var id = _allocateCallback((function (fn) { + return function () { + fn.apply(undefined, args.slice(2)); + } + })(func), 'setInterval'); + //call native method + createTimer(id, duration || 0, Date.now(), true); + return id; + }, + + clearTimeout: function (timerID) { + _freeCallback(timerID); + }, + + clearInterval: function (timerID) { + _freeCallback(timerID); + } + }; + + setTimeout = setTimeout || AlipayTimers.setTimeout; + setInterval = setInterval || AlipayTimers.setInterval; + clearTimeout = clearTimeout || AlipayTimers.clearTimeout; + clearInterval = clearInterval || AlipayTimers.clearInterval; +})(); \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverRuntime.framework/Headers/AriverRuntime.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverRuntime.framework/Headers/AriverRuntime.h new file mode 100644 index 0000000..107613b --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverRuntime.framework/Headers/AriverRuntime.h @@ -0,0 +1,15 @@ +// +// AriverRuntime.h +// AriverRuntime +// +// Created by theone on 2017/12/18. +// Copyright © 2019 Alipay. All rights reserved. +// + +// 类名前缀请使用 RVT + +#ifndef AriverRuntime_h +#define AriverRuntime_h + + +#endif /* AriverRuntime_h */ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverRuntime.framework/Headers/RVTComponent.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverRuntime.framework/Headers/RVTComponent.h new file mode 100644 index 0000000..fcd7f68 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverRuntime.framework/Headers/RVTComponent.h @@ -0,0 +1,120 @@ +// Copyright 2019 Taobao (China) Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#ifndef ARIVER_RUNTIME_COMPONENT +#define ARIVER_RUNTIME_COMPONENT + +#import +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +typedef void (^RVTComponentCallback)(id result, BOOL success); +typedef void (^RVTComponentResourceCallback)(NSData* resource); + +@protocol RVTComponentProtocol +// @optional是为了防止编译问题 +@optional + +// 初始化对应的native view的接口:必须实现 +- (instancetype)initWithComponentId:(NSString*)componentId data:(NSDictionary*)data; + +// 传入对应的componentView的接口:必须实现 +- (UIView*)componentView; + +// 组件数据发生变更时触发的事件:必须实现 +- (void)componentDataDidChangeWithData:(NSDictionary*)data; + +// 组件已经挂载被触发的事件:可选实现 +- (void)componentDidMount; + +// 组件已经卸载被触发的事件:可选实现 +- (void)componentDidUnmount; + +// 组件将要出现被触发的事件:可选实现 +- (void)componentWillAppear; + +// 组件已经出现被触发的事件:可选实现 +- (void)componentDidAppear; + +// 组件将要消失被触发的事件:可选实现 +- (void)componentWillDisappear; + +// 组件已经消失被触发的事件:可选实现 +- (void)componentDidDisappear; + +// 组件将要进入全屏状态被触发的事件:可选实现 +- (void)componentWillEnterFullScreen; + +// 组件已经进入全屏状态被触发的事件:可选实现 +- (void)componentDidEnterFullScreen; + +// 组件将要退出全屏状态被触发的事件:可选实现 +- (void)componentWillExitFullScreen; + +// 组件已经退出全屏状态被触发的事件:可选实现 +- (void)componentDidExitFullScreen; + +// 组件可见性发生变更被触发的事件:可选实现 +- (void)componentVisibleChanged:(BOOL)visible frame:(CGRect)visibleFrame; + +// 组件内存出现警告接口:可选实现 +- (void)componentDidReceiveMemoryWarning; + +// 组件触发布局接口:可选实现 +- (void)componentLayoutSubviews; + +@end + +@interface RVTComponentContext : NSObject + +@property(nonatomic, weak) UIViewController *viewController; + +@property(nonatomic, strong) NSURL *url; + +@end + +@interface RVTComponent : NSObject + +// 组件获取对应WebView的接口 +@property(nonatomic, weak) WKWebView* webView; + +// 组件获取对应componentId的接口 +@property(nonatomic, copy) NSString* componentId; + +// 组件获取对应的 context上下文 +@property(nonatomic, strong) RVTComponentContext* context; + +// 组件给JSAPI发送事件的接口 +@property(nonatomic, copy) void (^dispatchEventHandler)(NSString* eventName, id data); + +// 组件通过离线包获取资源接口 +- (void)getComponentResourceDataWithUrl:(NSString*)url + callback:(RVTComponentResourceCallback)callback; + +// 组件主动设置全屏接口 +- (void)setComponentViewFullScreen:(BOOL)fullScreen shouldRotate:(BOOL)shouldRotate; + +// 获取组件是否入全屏的接口 +- (BOOL)shouldComponentEnterFullScreen; + +// 增加ArrayBuffer接口 +- (void)sendArrayBufferData:(NSString *)handlerName data:(id)data responseCallback:(RVTComponentResourceCallback)responseCallback; + +@end + +NS_ASSUME_NONNULL_END + +#endif // ARIVER_RUNTIME_COMPONENT diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverRuntime.framework/Headers/RVTData.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverRuntime.framework/Headers/RVTData.h new file mode 100644 index 0000000..6f36ab3 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverRuntime.framework/Headers/RVTData.h @@ -0,0 +1,23 @@ +// +// RVTData.h +// AriverRuntime +// +// Created by runfeng.crf on 2019/9/2. +// Copyright © 2019 Alipay. All rights reserved. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +//用于包装NSData避免jsapi调用路径上性能问题 +@interface RVTData : NSObject + +@property (nonatomic, strong, readonly) NSData *data; + +- (instancetype)initWithBytes:(void *)bytes length:(NSUInteger)length; +- (instancetype)initWithData:(NSData *)data; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverRuntime.framework/Headers/RVTDefine.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverRuntime.framework/Headers/RVTDefine.h new file mode 100644 index 0000000..546556e --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverRuntime.framework/Headers/RVTDefine.h @@ -0,0 +1,39 @@ +// +// RVTDefine.h +// AriverRuntime +// +// Created by theone on 2017/12/18. +// Copyright © 2019 Alipay. All rights reserved. +// + +#ifndef RVTDefine_h +#define RVTDefine_h + +typedef void (^RVTJavaScriptCompleteBlock)(NSError *_Nullable error); +typedef void (^RVTJavaScriptCallback)(id _Nullable json, NSError *_Nullable error); +typedef void (^RVTDownloadCallback)(NSDictionary *_Nullable result); +typedef void (^RVTImportJsCallback)(NSDictionary *_Nullable dic, NSError *_Nullable error); + +#define kRVTFROMH5JSC @"FROMH5JSC" +#define kRVTEnableDSL @"enableDSL" + +//*******************************ExpandPropertyKeys***************************// +#define kExpandPropertyKey_PrefetchViewId @"kExpandPropertyKey_PrefetchViewId" +#define kExpandPropertyKey_ComponentManager @"kExpandPropertyKey_ComponentManager" +#define kExpandPropertyKey_JSC @"kExpandPropertyKey_JSC" +#define kExpandPropertyKey_MultiJSC @"kExpandPropertyKey_MultiJSC" +#define kExpandPropertyKey_ComponentManager @"kExpandPropertyKey_ComponentManager" +#define kExpandPropertyKey_JSCViewId @"kExpandPropertyKey_JSCViewId" +#define kExpandPropertyKey_JSCPageId @"kExpandPropertyKey_JSCPageId" +#define kExpandPropertyKey_JSCDebugger @"kExpandPropertyKey_JSCDebugger" + +//*******************************Event***************************// +#define kRVTEvent_Seesion_Worker_Load_JS @"session.worker.load.js" //woker启动过程中加载其他js的扩展点 +#define kRVTEvent_Session_Worker_Before_Load @"session.worker.before.load" //加载worker之前对worker进行修改的时机,用于小程序调试 +#define kRVTEvent_Session_Isolate_Context_Load @"session.worker.isolate.context.load" //isolateContext加载前的注入时机 +#define kRVTEvent_Session_Worker_Jsapi_Callasync @"session.worker.jsapi.callasync" //调试模式下jsapi调用事件 +#define kRVTEvent_Seesion_Worker_Create_After @"session.worker.create.after" //woker启动过程中加载其他js的扩展点 +#define kRVTEvent_Scene_WK_LayerTreeComplete @"scene.wk.ingore" //WKWebViewLayout布局完成 layertreecommitcomplete + + +#endif /* RVTDefine_h */ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverRuntime.framework/Headers/RVTExtensionProtocol4PluginContext.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverRuntime.framework/Headers/RVTExtensionProtocol4PluginContext.h new file mode 100644 index 0000000..de26ab3 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverRuntime.framework/Headers/RVTExtensionProtocol4PluginContext.h @@ -0,0 +1,30 @@ +// +// RVTExtensionProtocol4PluginContext.h +// AriverRuntime +// +// Created by xuyouyang on 2019/7/14. +// Copyright © 2019 Alipay. All rights reserved. +// + +#import + +@class RVTJSCExecutor; + +NS_ASSUME_NONNULL_BEGIN + +@protocol RVTExtensionProtocol4PluginContext + +@optional +/** + 插件JSContext创建后,完成 biz context 属性复制,插件代码执行前的扩展点。 + */ +- (void)beforPluginExecute:(RVTJSCExecutor *)jscExecutor pluginId:(NSString *)pluginId; + +/** + 插件代码执行后的扩展点。 + */ +- (void)afterPluginExecute:(RVTJSCExecutor *)jscExecutor pluginId:(NSString *)pluginId; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverRuntime.framework/Headers/RVTIsolateContextLoadEvent.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverRuntime.framework/Headers/RVTIsolateContextLoadEvent.h new file mode 100644 index 0000000..ca5a488 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverRuntime.framework/Headers/RVTIsolateContextLoadEvent.h @@ -0,0 +1,21 @@ +// +// RVTIsolateContextLoadEvent.h +// AriverRuntime +// +// Created by runfeng.crf on 2019/7/11. +// Copyright © 2019 Alipay. All rights reserved. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface RVTIsolateContextLoadEvent : RVKEvent + +@property (nonatomic, copy) NSString *additionalJS; + ++ (instancetype)event; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverRuntime.framework/Headers/RVTJSCBridge.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverRuntime.framework/Headers/RVTJSCBridge.h new file mode 100644 index 0000000..b87b523 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverRuntime.framework/Headers/RVTJSCBridge.h @@ -0,0 +1,75 @@ +// +// RVTJSCBridge.h +// AriverRuntime +// +// Created by theone on 2017/12/18. +// Copyright © 2019 Alipay. All rights reserved. +// + +#import +#import "RVTDefine.h" +#import + +@class RVTJSCExecutor; +@class RVTJSCTiming; + +NS_ASSUME_NONNULL_BEGIN + +@interface RVTJSCBridge : RVKJsBridge + +@property(nonatomic, copy, nullable) NSString *jsc_workerId; +@property(nonatomic, weak, nullable) RVTJSCExecutor *javaScriptExecutor; +@property(nonatomic, weak, readonly) RVKSession *rvksession; + +- (instancetype _Nonnull)initWithSession:(nonnull RVKSession *)session + isDebugMode:(BOOL)isDebugMode; + +- (void)executeAsyncJavaScript:(nonnull NSString *)javaScript + sourceURL:(nullable NSURL *)sourceURL + onComplete:(nullable RVTJavaScriptCallback)onComplete; + +- (void)executeAsyncJavaScript:(nonnull NSString *)javaScript + sourceURL:(nullable NSURL *)sourceURL + onComplete:(nullable RVTJavaScriptCallback)onComplete + contextId:(NSString *)contextId; + +- (void)executeJavaScript:(nonnull NSString *)javaScript + sourceURL:(nullable NSURL *)sourceURL + onComplete:(nullable RVTJavaScriptCallback)onComplete; + +- (void)doFlushMessageQueue:(nullable id)buffer; + +- (void)doFlushMessageQueue:(nullable NSDictionary *)message + callBack:(nullable RVKJsApiResponseCallbackBlock)callback; + +- (nullable id)doSyncFlushMessageQueue:(nullable NSDictionary *)message; + +- (void)sendMessage:(nonnull NSString *)messageName + data:(nullable id)data + responseCallback:(nullable RVKJsApiResponseCallbackBlock)responseCallback; + +//只向worker发送js事件的方法,调用入参和callhandler方法保持一致。支持nsdata->arraybuffer +- (void)sendJSEvent:(nonnull NSString *)eventName + data:(nullable NSDictionary *)data + callback:(nullable RVKJsApiResponseCallbackBlock)callback; + +//timer +- (void)addUpdateObserver:(nonnull RVTJSCTiming *)timer; +- (void)createTimer:(nonnull NSNumber *)callbackID + duration:(NSTimeInterval)jsDuration + jsSchedulingTime:(nonnull NSDate *)jsSchedulingTime + repeats:(BOOL)repeats + contextId:(NSString *)contextId; + +- (void)deleteTimer:(nonnull NSNumber *)timerID + contextId:(NSString *)contextId; + +- (void)invalidate; +- (void)setUp; + +//importjs +- (void)importJSWithUrl:(nullable NSString *)url callback:(nullable RVTImportJsCallback)callback; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverRuntime.framework/Headers/RVTJSCExecutor.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverRuntime.framework/Headers/RVTJSCExecutor.h new file mode 100644 index 0000000..c94e1c5 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverRuntime.framework/Headers/RVTJSCExecutor.h @@ -0,0 +1,52 @@ +// +// RVTJSCExecutor.h +// AriverRuntime +// +// Created by theone on 2017/12/18. +// Copyright © 2019 Alipay. All rights reserved. +// + +#import +#import +#import "RVTDefine.h" +@class RVTJSCBridge; + +NS_ASSUME_NONNULL_BEGIN +#define kRVTJSCExecutorAppxContext @"kRVTJSCExecutorMainContext" +#define kRVTJSCExecutorBizContext @"kRVTJSCExecutorBizContext" + + +@interface RVTJSCExecutor : NSObject +@property(nonatomic, assign) BOOL canRunIsolateContext; + +- (instancetype)initWithBridge:(RVTJSCBridge *)bridge; +//从外部给javascrpt执行一段js +- (void)executeJavaScript:(NSString *)javaScript + sourceURL:(NSURL *)sourceURL + onComplete:(RVTJavaScriptCallback)onComplete; + +- (void)executeJavaScript:(NSString *)javaScript + sourceURL:(NSURL *)sourceURL + onComplete:(RVTJavaScriptCallback)onComplete + contextId:(NSString *)contextId; + +- (void)executeBlockOnJavaScriptQueue:(dispatch_block_t)block; + +- (void)executeAsyncBlockOnJavaScriptQueue:(dispatch_block_t)block; + +- (void)setUp; + +- (void)executeBizJavaScript:(NSString *)javaScript + sourceURL:(NSURL *)sourceURL + onComplete:(RVTJavaScriptCallback)onComplete; + +- (void)loadPluginsWithConfig:(NSArray *)config + onComplete:(dispatch_block_t)onComplete; + +- (BOOL)isPluginInstalled:(NSString *)appId; + +- (void)dispatchMessage:(NSDictionary *)message; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverRuntime.framework/Headers/RVTJSCManager.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverRuntime.framework/Headers/RVTJSCManager.h new file mode 100644 index 0000000..e219877 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverRuntime.framework/Headers/RVTJSCManager.h @@ -0,0 +1,42 @@ +// +// RVTJSCManager.h +// AriverRuntime +// +// Created by theone on 2017/12/18. +// Copyright © 2019 Alipay. All rights reserved. +// + +#import +#import + +@class RVTJSCBridge; + +NS_ASSUME_NONNULL_BEGIN + +typedef NS_OPTIONS(NSUInteger, RVTJSCWORKERSTATE) { + RVTJSCWORKERSTATEUNINSTAL = 1 << 0, + RVTJSCWORKERSTATEINSTALLING = 1 << 1, + RVTJSCWORKERSTATEINSTALED = 1 << 2, +}; + +@interface RVTJSCWorkerInfo : NSObject +@property(nonatomic, assign, readonly) RVTJSCWORKERSTATE state; +@property(nonatomic, copy, readonly) NSString *workerUrl; +@end + +@interface RVTJSCManager : NSObject + +@property(nonatomic, readonly, assign) BOOL hasStartDebuger; +@property(nonatomic, weak) RVTJSCBridge *bridge; +@property(nonatomic, strong) NSMutableDictionary *workers; +- (instancetype)initWithSession:(RVKSession *)session; +- (void)addWorker:(NSString *)url; +- (BOOL)isWorkerExist:(NSString *)url; +- (BOOL)isWorkerInstalled:(NSString *)url; +- (BOOL)isWorkerInstalling:(NSString *)url; +- (void)setWorkderState:(NSString *)url state:(RVTJSCWORKERSTATE)state; +- (void)loadBaseJS; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverRuntime.framework/Headers/RVTJSCTiming.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverRuntime.framework/Headers/RVTJSCTiming.h new file mode 100644 index 0000000..354d52d --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverRuntime.framework/Headers/RVTJSCTiming.h @@ -0,0 +1,33 @@ +// +// RVTJSCTiming.h +// AriverRuntime +// +// Created by theone on 2017/12/18. +// Copyright © 2019 Alipay. All rights reserved. +// + +#import + +@class RVTJSCBridge; + +NS_ASSUME_NONNULL_BEGIN + +@interface RVTJSCTiming : NSObject + +@property(nonatomic, assign) BOOL paused; +@property (nonatomic, copy) dispatch_block_t pauseCallback; +- (void)invalidate; +- (instancetype)initWithBridge:(RVTJSCBridge *)bridge; +- (void)didUpdateFrame; +- (void)createTimer:(nonnull NSNumber *)callbackID + duration:(NSTimeInterval)jsDuration + jsSchedulingTime:(NSDate *)jsSchedulingTime + repeats:(BOOL)repeats + contextId:(NSString *)contextId; + +- (void)deleteTimer:(nonnull NSNumber *)timerID + contextId:(NSString *)contextId; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverRuntime.framework/Headers/RVTTinyappConfig.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverRuntime.framework/Headers/RVTTinyappConfig.h new file mode 100644 index 0000000..9f1fcc6 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverRuntime.framework/Headers/RVTTinyappConfig.h @@ -0,0 +1,166 @@ +// +// RVTTinyappConfiguration.h +// AriverRuntime +// +// Created by xuyouyang on 2019/3/28. +// Copyright © 2019 Alipay. All rights reserved. +// + +#import +#import "RVTDefine.h" +#import +#import + +#pragma mark - RVTTinyappConfigDelegate +@protocol RVTTinyappConfigDelegate + +/** + 是否需要把事件同步到Worker + + @param eventName 事件名 + @param appId 所属appId + @return YES,同步到Worker + */ +- (BOOL)shouldEventThroughWorker:(NSString *)eventName appId:(NSString *)appId; + +/** + ServiceWork UserAgent + @return NSString + */ +- (NSString *)RVTSWUserAgent; + +/** + 小程序框架资源的fallback地址 + @param url 小程序框架资源的url + @return fallback地址 + */ +- (NSURL *)getAppexFrameworkFallbackUrl:(NSString *)url; +- (NSURL *)getAppexFrameworkFallbackUrl:(NSString *)url session:(RVKSession *)session; + +/** + 通过appId来查找一个RVRApp + + @param appid 小程序appId + @return NAMApp 对象 + */ +- (RVRApp *)findApp:(NSString *)appid; + + +/** + 可以通过某个key来查找已经持久化存储过的对象 + + @param key 查询的key + @param business 业务标识 + @return 持久化存储过的对象 + */ +- (NSData *)getSavedDataWithKey:(NSString*)key business:(NSString*)business; +@end + +#pragma mark - RVTTinyappDownLoadDelegate +@protocol RVTTinyDownLoadDelegate + +/** + 传入一个包含url的字典来下载某个资源,回调资源的的本地路径 + @param data 下载的具体信息 @{@"url": targetUrl, @"appId": @"20000067"} + @param callback 回调的结果 @{@"tempFilePath": tempFilePath} + */ +- (void)downLoadWithData:(NSDictionary *)data callback:(RVTDownloadCallback)callback; +@end + +#pragma mark - RVTTinyappCustomFileManagerDelegate +@protocol RVTTinyappCustomFileManagerDelegate +/** + 按照AppId来清除小程序存储过的资源 + + @param appId 当前小程序的appId + */ +- (void)clearAppTempFilesWithAppId:(NSString *)appId; +@end + +#pragma mark - RVTTinyappRemoteDebugerDelegate +@protocol RVTTinyappRemoteDebugerDelegate +@required +/** + 远程执行JS + + @param javaScript 需要执行的js + @param sourceURL 当前js关联的sourceURL + @param onComplete js执行callback + */ +- (void)executeJavaScriptOnRemoteAgent:(NSString *)javaScript + sourceURL:(NSURL *)sourceURL + onComplete:(RVTJavaScriptCallback)onComplete; + + +/** + 是否要开启调试模式 + + @param session 当前session + @return 是否要开启远程调试 + */ +- (BOOL)shouldStartRemoteDebugerWithSession:(RVKSession *)session; +@end + +@protocol RVTTinyappDebugDelegate +//同步jsapi调用超时时间,用于新的调试模式 +- (NSTimeInterval)syncJsapiTimeoutValue:(NSDictionary *)params; +@end + +@protocol RVTTinyappChInfoDelegate +- (void)configStartupParams:(NSDictionary *)params withAppId:(NSString *)appId; +@end + +@protocol RVTTinyappCanvasDelegate +- (void)configStartupParams:(NSDictionary *)params withAppId:(NSString *)appId; +@end + + +@interface RVTTinyappConfig : NSObject + +@property(nonatomic, weak) id tinyappConfigDelegate; +@property(nonatomic, weak) id tinyDownLoadDelegate; +@property(nonatomic, weak) id tinyappCustomFileManagerDelegate; +@property(nonatomic, weak) id tinyappRemoteDebugerDelegate; +@property(nonatomic, weak) id tinyappDebugDelegate; +@property (nonatomic, weak) id tinyappChInfoDelegate; +@property (nonatomic, weak) id tinyappCanvasDelegate; +@property(nonatomic, copy) NSString *JSCBridgeFilePath;// 默认值为:AriverRuntime.bundle/H5JSCBridge.js +@property(nonatomic) Class tinyappViewControllerCls; // 容器的 VC + +//10.1.35是否启用同层渲染 +@property(nonatomic, assign) BOOL tinyappShouldUseInpageRender; +//10.1.35是否启用同层渲染的类型 +@property(nonatomic, copy) NSArray *tinyappUseInpageRenderTypes; +//10.1.35同层渲染appId +@property(nonatomic, copy) NSArray *tinyappUseInpageRenderappIds; +//10.1.38同层渲染黑名单 +@property(nonatomic, copy) NSArray *tinyappUseInpageRenderBlackList; +//10.1.38同层渲染组件黑名单 +@property(nonatomic, copy) NSArray *tinyappInpageRenderComponentBlackList; +@property(nonatomic, copy) NSArray *tinyInpageRenderGesViewCls; +@property(nonatomic, copy) NSDictionary *tinyEventThroughWorkerConfig; +//10.1.55为了兼容Swiper闪的问题,直接同层的appId列表 +@property(nonatomic, copy) NSArray *tinyInpageRenderDirectRenderList; +@property(nonatomic, assign) NSInteger workerLimitCount; +@property(nonatomic, assign) BOOL syncJsapiSupportTimeout; +//10.1.80注入插件context的一些额外JS,可用来修复bug +@property(nonatomic, copy) NSString *extraJSForPluginContext; +//10.1.80注入主context的一些额外JS,可用来修复插件bug +@property(nonatomic, copy) NSString *extraJSForMainContext; +//10.1.82额外的一些对象暴露给其他Context +@property(nonatomic, copy) NSArray *extraImportNames; +//10.1.92woker是否同步释放 +@property(nonatomic, assign) BOOL shouldWorkerDeallocSync; +@end + + +#ifdef __cplusplus +extern "C" { +#endif // __cplusplus + + RVTTinyappConfig * RVTTinyappConfigGet(); + +#ifdef __cplusplus +} +#endif // __cplusplus + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverRuntime.framework/Headers/RVTUtils.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverRuntime.framework/Headers/RVTUtils.h new file mode 100644 index 0000000..8ac1836 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverRuntime.framework/Headers/RVTUtils.h @@ -0,0 +1,29 @@ +// +// NBTUtils.h +// NebulaTinyapp +// +// Created by theone on 2017/12/18. +// Copyright © 2017年 Alipay. All rights reserved. +// + +#import +#import +#import +#import + +@interface RVTUtils : NSObject ++ (void)reportJSExecuteError:(NSError *)error; ++ (NSString *)JSONString:(id)object; ++ (id)JSONObjct:(NSData *)data; ++ (NSData *)getSourceDataFromCacheWithUrl:(NSURL *)url session:(RVASession *)session; ++ (RVKScene *)getSceneWithViewId:(NSString *)viewId withSession:(RVKSession *)session; ++ (NSString *)getFallbackUrlWithApp:(RVKSession *)session url:(NSURL *)url; ++ (NSString *)getAppLaunchValWithApp:(RVRApp *)app params:(NSDictionary *)params key:(NSString *)key; ++ (BOOL)regexTestWithStr:(NSString *)str patterns:(NSArray *)patterns; ++ (NSString *)getUrlFromScene:(RVKScene *)scene; +@end + +NSDictionary * RVTJsonDicWithData(NSData *data); +NSDictionary * RVTDictionary(id dic); +NSString * RVTString(id string); +NSArray * RVTArray(id array); diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverRuntime.framework/Headers/RVTWorkerLoadBeforeEvent.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverRuntime.framework/Headers/RVTWorkerLoadBeforeEvent.h new file mode 100644 index 0000000..2740b91 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverRuntime.framework/Headers/RVTWorkerLoadBeforeEvent.h @@ -0,0 +1,22 @@ +// +// RVTWorkerLoadBeforeEvent.h +// AriverRuntime +// +// Created by runfeng.crf on 2019/5/22. +// Copyright © 2019 Alipay. All rights reserved. +// + +#import +#import "RVTDefine.h" + +NS_ASSUME_NONNULL_BEGIN + +@interface RVTWorkerLoadBeforeEvent : RVKEvent + +@property (nonatomic, copy) NSString *workerJS; + ++ (instancetype)eventWithWorkerJS:(NSString *)workerJS; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverRuntime.framework/Info.plist b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverRuntime.framework/Info.plist new file mode 100644 index 0000000..2303eee --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverRuntime.framework/Info.plist @@ -0,0 +1,73 @@ + + + + + BuildMachineOSBuild + 20E241 + CFBundleDevelopmentRegion + English + CFBundleExecutable + AriverRuntime + CFBundleIdentifier + com.alipay.AriverRuntime + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + AriverRuntime + CFBundlePackageType + BNDL + CFBundleShortVersionString + 2.0.0.1-SNAPSHOT + CFBundleSignature + ???? + CFBundleSupportedPlatforms + + iPhoneOS + + CFBundleVersion + 1 + CFPlugInDynamicRegisterFunction + + CFPlugInDynamicRegistration + NO + CFPlugInFactories + + 00000000-0000-0000-0000-000000000000 + MyFactoryFunction + + CFPlugInTypes + + 00000000-0000-0000-0000-000000000000 + + 00000000-0000-0000-0000-000000000000 + + + CFPlugInUnloadFunction + + DTCompiler + com.apple.compilers.llvm.clang.1_0 + DTPlatformBuild + 18B79 + DTPlatformName + iphoneos + DTPlatformVersion + 14.2 + DTSDKBuild + 18B79 + DTSDKName + iphoneos14.2 + DTXcode + 1220 + DTXcodeBuild + 12B45b + MinimumOSVersion + 8.0 + NSHumanReadableCopyright + Copyright © 2013年 Alipay. All rights reserved. + UIDeviceFamily + + 1 + 2 + + + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverSecurity.framework/AriverSecurity b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverSecurity.framework/AriverSecurity new file mode 100644 index 0000000..7e8df3f Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverSecurity.framework/AriverSecurity differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverSecurity.framework/Headers/AriverSecurity.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverSecurity.framework/Headers/AriverSecurity.h new file mode 100644 index 0000000..ca2e2a0 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverSecurity.framework/Headers/AriverSecurity.h @@ -0,0 +1,14 @@ +// +// AriverSecurity.h +// AriverSecurity +// +// Created by theone on 2019/4/9. +// Copyright © 2019 Alipay. All rights reserved. +// + +#ifndef AriverSecurity_h +#define AriverSecurity_h + +#import + +#endif /* AriverSecurity_h */ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverSecurity.framework/Headers/RVSConfigService.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverSecurity.framework/Headers/RVSConfigService.h new file mode 100644 index 0000000..9bb0b87 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverSecurity.framework/Headers/RVSConfigService.h @@ -0,0 +1,55 @@ +// +// RVSConfigService.h +// AriverSecurity +// +// Created by theone on 2019/4/9. +// Copyright © 2019 Alipay. All rights reserved. +// + +#import +#import +#import +#import + +NS_ASSUME_NONNULL_BEGIN +typedef void(^RVSConfigServiceInterceptCallback)(NSDictionary *result, NSError *error); + + +@protocol RVSConfigService + + +@optional + +// 判断是否是内部小程序 +// 对内部小程序做权限特殊处理时,会用到 +- (BOOL)isInnerTinyApp:(NSString *)string; + +// 判断是否是官方插件 +- (BOOL)isOfficialPlugin:(NSString *)pluginId mainApp:(RVRApp *)mainApp; + +- (NSData *)permissionDataWithQueryKey:(NSString *)querykey; + +- (void)requestLimitControlDataWithParams:(NSDictionary *)params + callback:(RVSConfigServiceInterceptCallback)callback + timeout:(NSTimeInterval)timeout; + +- (void)requestProxyDataWithParams:(NSDictionary *)params + callback:(RVSConfigServiceInterceptCallback)callback + timeout:(NSTimeInterval)timeout; + +- (BOOL)shouldSkipPermissonJudgeWithWebviewUrl:(NSString *)urlStr config:(NSDictionary *)config; + +/** + 展示特定的错误页面 + */ +- (void)showWebViewErrorPageWithEvent:(RVKEvent *)event; + +/** + 特定错误页面的地址 + */ +- (NSString *)errorPageUrl; + +- (NSDictionary *)getPermissionWithAppId:(NSString *)appId; +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverSecurity.framework/Info.plist b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverSecurity.framework/Info.plist new file mode 100644 index 0000000..1ab35ab --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverSecurity.framework/Info.plist @@ -0,0 +1,73 @@ + + + + + BuildMachineOSBuild + 20E241 + CFBundleDevelopmentRegion + English + CFBundleExecutable + AriverSecurity + CFBundleIdentifier + com.alipay.AriverSecurity + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + AriverSecurity + CFBundlePackageType + BNDL + CFBundleShortVersionString + 2.0.0.1-SNAPSHOT + CFBundleSignature + ???? + CFBundleSupportedPlatforms + + iPhoneOS + + CFBundleVersion + 1 + CFPlugInDynamicRegisterFunction + + CFPlugInDynamicRegistration + NO + CFPlugInFactories + + 00000000-0000-0000-0000-000000000000 + MyFactoryFunction + + CFPlugInTypes + + 00000000-0000-0000-0000-000000000000 + + 00000000-0000-0000-0000-000000000000 + + + CFPlugInUnloadFunction + + DTCompiler + com.apple.compilers.llvm.clang.1_0 + DTPlatformBuild + 18B79 + DTPlatformName + iphoneos + DTPlatformVersion + 14.2 + DTSDKBuild + 18B79 + DTSDKName + iphoneos14.2 + DTXcode + 1220 + DTXcodeBuild + 12B45b + MinimumOSVersion + 8.0 + NSHumanReadableCopyright + Copyright © 2013年 Alipay. All rights reserved. + UIDeviceFamily + + 1 + 2 + + + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverWebSocket.framework/AriverWebSocket b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverWebSocket.framework/AriverWebSocket new file mode 100644 index 0000000..c23245e Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverWebSocket.framework/AriverWebSocket differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverWebSocket.framework/Headers/RVPSocketCraft.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverWebSocket.framework/Headers/RVPSocketCraft.h new file mode 100644 index 0000000..ac25364 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverWebSocket.framework/Headers/RVPSocketCraft.h @@ -0,0 +1,14 @@ +// +// SocketCraft.h +// SocketCraft +// +// Created by yangxiao on 2017/2/23. +// Copyright © 2017年 Alipay. All rights reserved. +// + +#import "RVPWebSocketDefines.h" +#import "RVPWebSocketConfig.h" +#import "RVPWebSocketConfigMgr.h" +#import "RVPWebSocketHandler.h" +#import "RVPWebSocketMgr.h" +#import "RVPWebSocketControl.h" diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverWebSocket.framework/Headers/RVPWebSocketConfig.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverWebSocket.framework/Headers/RVPWebSocketConfig.h new file mode 100644 index 0000000..3b78047 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverWebSocket.framework/Headers/RVPWebSocketConfig.h @@ -0,0 +1,23 @@ +// +// RVPWebSocketConfig.h +// SocketCraft +// +// Created by yangxiao on 2017/2/21. +// Copyright © 2017年 Alipay. All rights reserved. +// + +#import + +@interface RVPWebSocketConfig : NSObject + +@property (nonatomic) NSDictionary* conf; + +-(NSInteger)configDefaultTimeoutMS; + +-(NSArray*)configDomainList; + +-(NSInteger)configMaxTimeoutMS; + +-(NSInteger)configTimeoutMS; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverWebSocket.framework/Headers/RVPWebSocketConfigMgr.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverWebSocket.framework/Headers/RVPWebSocketConfigMgr.h new file mode 100644 index 0000000..7d91e64 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverWebSocket.framework/Headers/RVPWebSocketConfigMgr.h @@ -0,0 +1,22 @@ +// +// RVPWebSocketConfigMgr.h +// SocketCraft +// +// Created by yangxiao on 2017/2/22. +// Copyright © 2017年 Alipay. All rights reserved. +// + +#import +#import "RVPWebSocketConfig.h" + +@interface RVPWebSocketConfigMgr : NSObject + +@property (atomic) NSDictionary* configJson; + ++(instancetype)shareInstance; + +-(void)freshConfig:(NSDictionary*)conf; + +-(RVPWebSocketConfig*)getConfigForAppID:(NSString*)appid; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverWebSocket.framework/Headers/RVPWebSocketControl.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverWebSocket.framework/Headers/RVPWebSocketControl.h new file mode 100644 index 0000000..543cfd2 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverWebSocket.framework/Headers/RVPWebSocketControl.h @@ -0,0 +1,70 @@ +// +// RVPWebSocketControl.h +// SocketCraft +// +// Created by yangxiao on 2017/2/21. +// Copyright © 2017年 Alipay. All rights reserved. +// + +#import + +@protocol RVPWebSocketLogDelegate + +/** + * @brief 打埋点日志接口, + * + * @param pfx ,sybType, content, 扩展字段,共四个item,第四个item是字典,字典内容可自定义, + 字典会被转换成key-value的字符串计入日志 + * + * @return 返回value + */ +-(void)logwithSubType:(NSString*)pfx content:(NSArray*)content; +//用APLogInfo打日志 +-(void)writeLocalLogInfo:(NSString *)tag params:(NSArray*)params; + +@end + +@protocol RVPWebSocketStorageDelegate + +/** + * @brief key-value的存储 + * + * @param value 存储值 + * @param defaultName key + * + * @return 返回 + */ + +- (void)setObject:(id)value forKey:(NSString *)defaultName; +/** + * @brief key根据获取value + * + * @param defaultName key + * + * @return 返回value + */ +- (id)objectForKey:(NSString *)defaultName; +/** + * @brief key根据删除存储的value + * + * @param defaultName key + * + * @return 返回value + */ +- (void)removeObjectForKey:(NSString *)defaultName; +@end + +extern id RVPWebSocketLoggerIns; +extern id RVPWebSocketStorage; + +@interface RVPWebSocketControl : NSObject + ++(instancetype)shareInstance; + +-(void)registLogger:(id)logger; + +-(void)registStorage:(id)storage; + +-(void)freshConfig:(NSDictionary*)config; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverWebSocket.framework/Headers/RVPWebSocketDefines.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverWebSocket.framework/Headers/RVPWebSocketDefines.h new file mode 100644 index 0000000..27fc041 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverWebSocket.framework/Headers/RVPWebSocketDefines.h @@ -0,0 +1,40 @@ +// +// RVPWebSocketDefines.h +// SocketCraft +// +// Created by yangxiao on 2017/2/21. +// Copyright © 2017年 Alipay. All rights reserved. +// + +#ifndef RVPWebSocketDefines_h +#define RVPWebSocketDefines_h + +#define DEFAULT_TIMEOUT_MILLSECOND 30000 + +#define DISPATCH_QUEUE_NAME "com.portal.websocket" + +@class RVPWebSocketHandler; +@protocol RVPWebSocketLogDelegate,RVPWebSocketStorageDelegate; + +extern id RVPWebSocketStorage; + +typedef void (^RVPOpenWebSocketCompetionHandler)(NSString* appid, NSString *socketTaskID, NSError* error); +typedef void (^RVPSendWebSocketMessageCompletionHandler)(NSString* appid, NSString *socketTaskID, NSError* error); + +typedef void (^RVPConnectWebSocketCompletionHandler)(NSString* appid, NSString *socketTaskID,NSError* error); +typedef void (^RVPSendWebSocketMessageCompletionHandler)(NSString* appid, NSString *socketTaskID,NSError* error); +typedef void (^RVPCallBackOnWebSocketOpen)(NSString* appid, NSString *socketTaskID); +typedef void (^RVPCallBackOnWebSocketRecieveMessage)(NSString* appid, NSString *socketTaskID,id data); +typedef void (^RVPCallBackOnWebSocketError)(NSString* appid, NSString *socketTaskID,NSError* error); +typedef void (^RVPCallBackOnWebSocketClose)(NSString* appid, NSString *socketTaskID,NSString* reason); + +typedef NS_ENUM(NSInteger,RVPWebSocketErrorCode) { + RVPErrorCodeSendUnopen = -10001, + RVPErrorCodeMsgNotStringOrData = -10002, + RVPErrorCodeMsgSendToNoSocket = -10003, +}; + +#define RVP_WEBSOCKET_DOMAIN @"RVPWebSocket" +#define RVP_WEBSOCKET_ERROR(errorcode) [[NSError alloc] initWithDomain:RVP_WEBSOCKET_DOMAIN code:errorcode userInfo:nil] + +#endif /* RVPWebSocketDefines_h */ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverWebSocket.framework/Headers/RVPWebSocketHandler.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverWebSocket.framework/Headers/RVPWebSocketHandler.h new file mode 100644 index 0000000..24e44a3 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverWebSocket.framework/Headers/RVPWebSocketHandler.h @@ -0,0 +1,90 @@ +// +// RVPWebSocketHandler.h +// SocketCraft +// +// Created by yangxiao on 2017/2/21. +// Copyright © 2017年 Alipay. All rights reserved. +// + +#import +#import "RVPWebSocketConfig.h" +#import "RVPWebSocketDefines.h" +#import "SRWebSocket.h" + +@class RVPWebSocketHandler; + +@protocol RVPWebSocketHandlerDelegate + +-(void)webSocketDidClose:(RVPWebSocketHandler*)handler; + +@end + +@interface RVPWebSocketHandler : NSObject + +@property (nonatomic) NSString* appID; //小程序的唯一标识 +@property (nonatomic) NSString* socketTaskID; //同一小程序下socketTask唯一标识 + +@property (nonatomic) UInt64 appVersion; //小程序版本 + +@property (nonatomic) RVPWebSocketConfig* webSocketConfig; //当前handler的配置 + +@property (nonatomic) BOOL isOpen; + +@property (nonatomic) SRWebSocket* webSocket; //socket结构 + +@property (nonatomic) dispatch_queue_t workerQueue; + +@property (nonatomic,weak) id delegate; + +@property (nonatomic) RVPCallBackOnWebSocketOpen openCallBack; +@property (nonatomic) RVPCallBackOnWebSocketRecieveMessage messageCallBack; +@property (nonatomic) RVPCallBackOnWebSocketError errorCallBack; +@property (nonatomic) RVPCallBackOnWebSocketClose closeCallBack; + +-(void)callbackWithError:(NSError*)err; + +-(void)close; +-(void)closeWithCode:(NSInteger)code reason:(NSString*)reason; + +-(instancetype)initWithAppID:(NSString*)appid socketTaskID:(NSString *)socketTaskID appVersion:(UInt64)version workerQueue:(dispatch_queue_t)queue; + +-(void)openWithRequest:(NSMutableURLRequest*)request isIgnoreCheckDomain:(BOOL)ignDomain completionHandler:(RVPOpenWebSocketCompetionHandler)handler; + +-(void)sendMessage:(id)msg completionHandler:(RVPSendWebSocketMessageCompletionHandler)handler; + +-(void)webSocketAppid:(NSString*)appid version:(UInt64)version upFlow:(NSInteger)up downFlow:(NSInteger)down; + +@end + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverWebSocket.framework/Headers/RVPWebSocketLogger.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverWebSocket.framework/Headers/RVPWebSocketLogger.h new file mode 100644 index 0000000..df9a1c6 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverWebSocket.framework/Headers/RVPWebSocketLogger.h @@ -0,0 +1,21 @@ +// +// RVPWebSocketLogger.h +// SocketCraft +// +// Created by yangxiao on 2017/2/27. +// Copyright © 2017年 Alipay. All rights reserved. +// + +#import + +#define LOG_TYPE_CONN @"conn" +#define LOG_TYPE_DISCONN @"disconn" +#define LOG_TYPE_ERROR @"error" + +@interface RVPWebSocketLogger : NSObject + ++(void)logWithContentDic:(NSDictionary*)dic type:(NSString*)type; + ++(void)localLogInfo:(NSString*)param; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverWebSocket.framework/Headers/RVPWebSocketMgr.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverWebSocket.framework/Headers/RVPWebSocketMgr.h new file mode 100644 index 0000000..5fb805c --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverWebSocket.framework/Headers/RVPWebSocketMgr.h @@ -0,0 +1,38 @@ +// +// RVPWebSocketMgr.h +// SocketCraft +// +// Created by yangxiao on 2017/2/21. +// Copyright © 2017年 Alipay. All rights reserved. +// + +#import +#import "RVPWebSocketDefines.h" +#import "RVPWebSocketHandler.h" + +@interface RVPWebSocketMgr : NSObject + +@property (nonatomic) NSMutableDictionary* dicAppID2WebSocketHandler; + ++(instancetype)shareInstance; + +-(NSInteger)connectionsCountForAppID:(NSString *)appid; +-(BOOL)hasConnectionForAppID:(NSString *)appid socketTaskId:(NSString *)socketTaskId; + +-(void)closeAndDeleteAllWebSocketHandler; + +-(void)closeAndDeleteHandlerWithAppID:(NSString*)appid; + +-(void)closeAndDeleteHandlerWithAppID:(NSString*)appid socketTaskID:(NSString *)socketTaskID; + +-(void)closeSocketWithAppID:(NSString*)appid socketTaskID:(NSString *)socketTaskID; + +-(void)closeSocketWithAppID:(NSString*)appid socketTaskID:(NSString *)socketTaskID code:(NSInteger)code reason:(NSString*)reason; + +-(void)connectSocketWithAppID:(NSString*)appid socketTaskID:(NSString *)socketTaskID multiple:(BOOL)multiple appVersion:(UInt64)version isIgnoreCheckDomain:(BOOL)ignDomain url:(NSURL*)url httpHeader:(NSDictionary*)headers method:(NSString*)method params:(NSString*)data completionHandler:(RVPConnectWebSocketCompletionHandler)completionHandler openHandler:(RVPCallBackOnWebSocketOpen)openHandler messageHandler:(RVPCallBackOnWebSocketRecieveMessage)messageHandler errorHandler:(RVPCallBackOnWebSocketError)errorHandler closeHandler:(RVPCallBackOnWebSocketClose)closeHandler; + +-(void)sendMessage:(id)msg withAppID:(NSString*)appid socketTaskID:(NSString *)socketTaskID completionHandler:(RVPSendWebSocketMessageCompletionHandler)handler; + + + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverWebSocket.framework/Headers/SRWebSocket.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverWebSocket.framework/Headers/SRWebSocket.h new file mode 100755 index 0000000..2b86efc --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverWebSocket.framework/Headers/SRWebSocket.h @@ -0,0 +1,413 @@ +// +// Copyright 2012 Square Inc. +// Portions Copyright (c) 2016-present, Facebook, Inc. +// +// All rights reserved. +// +// This source code is licensed under the BSD-style license found in the +// LICENSE file in the root directory of this source tree. An additional grant +// of patent rights can be found in the PATENTS file in the same directory. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +typedef NS_ENUM(NSInteger, SRReadyState) { + SR_CONNECTING = 0, + SR_OPEN = 1, + SR_CLOSING = 2, + SR_CLOSED = 3, +}; + +typedef NS_ENUM(NSInteger, SRStatusCode) { + // 0-999: Reserved and not used. + SRStatusCodeNormal = 1000, + SRStatusCodeGoingAway = 1001, + SRStatusCodeProtocolError = 1002, + SRStatusCodeUnhandledType = 1003, + // 1004 reserved. + SRStatusNoStatusReceived = 1005, + SRStatusCodeAbnormal = 1006, + SRStatusCodeInvalidUTF8 = 1007, + SRStatusCodePolicyViolated = 1008, + SRStatusCodeMessageTooBig = 1009, + SRStatusCodeMissingExtension = 1010, + SRStatusCodeInternalError = 1011, + SRStatusCodeServiceRestart = 1012, + SRStatusCodeTryAgainLater = 1013, + // 1014: Reserved for future use by the WebSocket standard. + SRStatusCodeTLSHandshake = 1015, + // 1016-1999: Reserved for future use by the WebSocket standard. + // 2000-2999: Reserved for use by WebSocket extensions. + // 3000-3999: Available for use by libraries and frameworks. May not be used by applications. Available for registration at the IANA via first-come, first-serve. + // 4000-4999: Available for use by applications. +}; + +@class SRWebSocket; +//@class SRSecurityPolicy; + +/** + Error domain used for errors reported by SRWebSocket. + */ +extern NSString *const SRWebSocketErrorDomain; + +/** + Key used for HTTP status code if bad response was received from the server. + */ +extern NSString *const SRHTTPResponseErrorKey; + +@protocol SRWebSocketDelegate; + +///-------------------------------------- +#pragma mark - SRWebSocket +///-------------------------------------- + +/** + A `SRWebSocket` object lets you connect, send and receive data to a remote Web Socket. + */ +@interface SRWebSocket : NSObject + +/** + The delegate of the web socket. + + The web socket delegate is notified on all state changes that happen to the web socket. + */ +@property (nonatomic, weak) id delegate; + +/** + A dispatch queue for scheduling the delegate calls. The queue doesn't need be a serial queue. + + If `nil` and `delegateOperationQueue` is `nil`, the socket uses main queue for performing all delegate method calls. + */ +@property (nullable, nonatomic, strong) dispatch_queue_t delegateDispatchQueue; + +/** + An operation queue for scheduling the delegate calls. + + If `nil` and `delegateOperationQueue` is `nil`, the socket uses main queue for performing all delegate method calls. + */ +@property (nullable, nonatomic, strong) NSOperationQueue *delegateOperationQueue; + +/** + Current ready state of the socket. Default: `SR_CONNECTING`. + + This property is Key-Value Observable and fully thread-safe. + */ +@property (atomic, assign, readonly) SRReadyState readyState; + +/** + An instance of `NSURL` that this socket connects to. + */ +@property (nullable, nonatomic, strong, readonly) NSURL *url; + +/** + All HTTP headers that were received by socket or `nil` if none were received so far. + */ +@property (nullable, nonatomic, assign, readonly) CFHTTPMessageRef receivedHTTPHeaders; + +/** + Array of `NSHTTPCookie` cookies to apply to the connection. + */ +@property (nullable, nonatomic, copy) NSArray *requestCookies; + +/** + The negotiated web socket protocol or `nil` if handshake did not yet complete. + */ +@property (nullable, nonatomic, copy, readonly) NSString *protocol; + +/** + A boolean value indicating whether this socket will allow connection without SSL trust chain evaluation. + For DEBUG builds this flag is ignored, and SSL connections are allowed regardless of the certificate trust configuration + */ +@property (nonatomic, assign, readonly) BOOL allowsUntrustedSSLCertificates; + +///-------------------------------------- +#pragma mark - Constructors +///-------------------------------------- + +/** + Initializes a web socket with a given `NSURLRequest`. + + @param request Request to initialize with. + */ +- (instancetype)initWithURLRequest:(NSURLRequest *)request; + +/** + Initializes a web socket with a given `NSURLRequest`, specifying a transport security policy (e.g. SSL configuration). + + @param request Request to initialize with. + @param securityPolicy Policy object describing transport security behavior. + */ +//- (instancetype)initWithURLRequest:(NSURLRequest *)request securityPolicy:(SRSecurityPolicy *)securityPolicy; + +/** + Initializes a web socket with a given `NSURLRequest` and list of sub-protocols. + + @param request Request to initialize with. + @param protocols An array of strings that turn into `Sec-WebSocket-Protocol`. Default: `nil`. + */ +- (instancetype)initWithURLRequest:(NSURLRequest *)request protocols:(nullable NSArray *)protocols; + +/** + Initializes a web socket with a given `NSURLRequest`, list of sub-protocols and whether untrusted SSL certificates are allowed. + + @param request Request to initialize with. + @param protocols An array of strings that turn into `Sec-WebSocket-Protocol`. Default: `nil`. + @param allowsUntrustedSSLCertificates Boolean value indicating whether untrusted SSL certificates are allowed. Default: `false`. + */ +- (instancetype)initWithURLRequest:(NSURLRequest *)request protocols:(nullable NSArray *)protocols allowsUntrustedSSLCertificates:(BOOL)allowsUntrustedSSLCertificates; + +/** + Initializes a web socket with a given `NSURLRequest`, list of sub-protocols and whether untrusted SSL certificates are allowed. + + @param request Request to initialize with. + @param protocols An array of strings that turn into `Sec-WebSocket-Protocol`. Default: `nil`. + @param securityPolicy Policy object describing transport security behavior. + */ +//- (instancetype)initWithURLRequest:(NSURLRequest *)request protocols:(nullable NSArray *)protocols securityPolicy:(SRSecurityPolicy *)securityPolicy NS_DESIGNATED_INITIALIZER; + +/** + Initializes a web socket with a given `NSURL`. + + @param url URL to initialize with. + */ +- (instancetype)initWithURL:(NSURL *)url; + +/** + Initializes a web socket with a given `NSURL` and list of sub-protocols. + + @param url URL to initialize with. + @param protocols An array of strings that turn into `Sec-WebSocket-Protocol`. Default: `nil`. + */ +- (instancetype)initWithURL:(NSURL *)url protocols:(nullable NSArray *)protocols; + +/** + Initializes a web socket with a given `NSURL`, specifying a transport security policy (e.g. SSL configuration). + + @param url URL to initialize with. + @param securityPolicy Policy object describing transport security behavior. + */ +//- (instancetype)initWithURL:(NSURL *)url securityPolicy:(SRSecurityPolicy *)securityPolicy; + +/** + Initializes a web socket with a given `NSURL`, list of sub-protocols and whether untrusted SSL certificates are allowed. + + @param url URL to initialize with. + @param protocols An array of strings that turn into `Sec-WebSocket-Protocol`. Default: `nil`. + @param allowsUntrustedSSLCertificates Boolean value indicating whether untrusted SSL certificates are allowed. Default: `false`. + */ +- (instancetype)initWithURL:(NSURL *)url protocols:(nullable NSArray *)protocols allowsUntrustedSSLCertificates:(BOOL)allowsUntrustedSSLCertificates; + +/** + Unavailable initializer. Please use any other initializer. + */ +- (instancetype)init NS_UNAVAILABLE; + +/** + Unavailable constructor. Please use any other initializer. + */ ++ (instancetype)new NS_UNAVAILABLE; + +///-------------------------------------- +#pragma mark - Schedule +///-------------------------------------- + +/** + Schedules a received on a given run loop in a given mode. + By default, a web socket will schedule itself on `+[NSRunLoop SR_networkRunLoop]` using `NSDefaultRunLoopMode`. + + @param runLoop The run loop on which to schedule the receiver. + @param mode The mode for the run loop. + */ +- (void)scheduleInRunLoop:(NSRunLoop *)runLoop forMode:(NSString *)mode NS_SWIFT_NAME(schedule(in:forMode:)); + +/** + Removes the receiver from a given run loop running in a given mode. + + @param runLoop The run loop on which the receiver was scheduled. + @param mode The mode for the run loop. + */ +- (void)unscheduleFromRunLoop:(NSRunLoop *)runLoop forMode:(NSString *)mode NS_SWIFT_NAME(unschedule(from:forMode:)); + +///-------------------------------------- +#pragma mark - Open / Close +///-------------------------------------- + +/** + Opens web socket, which will trigger connection, authentication and start receiving/sending events. + An instance of `SRWebSocket` is intended for one-time-use only. This method should be called once and only once. + */ +- (void)open; + +/** + Closes a web socket using `SRStatusCodeNormal` code and no reason. + */ +- (void)close; + +/** + Closes a web socket using a given code and reason. + + @param code Code to close the socket with. + @param reason Reason to send to the server or `nil`. + */ +- (void)closeWithCode:(NSInteger)code reason:(nullable NSString *)reason; + +///-------------------------------------- +#pragma mark Send +///-------------------------------------- + +/** + Send a UTF-8 string or binary data to the server. + + @param message UTF-8 String or Data to send. + + @deprecated Please use `sendString:` or `sendData` instead. + */ +- (void)send:(nullable id)message __attribute__((deprecated("Please use `sendString:error:` or `sendData:error:` instead."))); + +/** + Send a UTF-8 String to the server. + + @param string String to send. + @param error On input, a pointer to variable for an `NSError` object. + If an error occurs, this pointer is set to an `NSError` object containing information about the error. + You may specify `nil` to ignore the error information. + + @return `YES` if the string was scheduled to send, otherwise - `NO`. + */ +- (BOOL)sendString:(NSString *)string error:(NSError **)error NS_SWIFT_NAME(send(string:)); + +/** + Send binary data to the server. + + @param data Data to send. + @param error On input, a pointer to variable for an `NSError` object. + If an error occurs, this pointer is set to an `NSError` object containing information about the error. + You may specify `nil` to ignore the error information. + + @return `YES` if the string was scheduled to send, otherwise - `NO`. + */ +- (BOOL)sendData:(nullable NSData *)data error:(NSError **)error NS_SWIFT_NAME(send(data:)); + +/** + Send binary data to the server, without making a defensive copy of it first. + + @param data Data to send. + @param error On input, a pointer to variable for an `NSError` object. + If an error occurs, this pointer is set to an `NSError` object containing information about the error. + You may specify `nil` to ignore the error information. + + @return `YES` if the string was scheduled to send, otherwise - `NO`. + */ +- (BOOL)sendDataNoCopy:(nullable NSData *)data error:(NSError **)error NS_SWIFT_NAME(send(dataNoCopy:)); + +/** + Send Ping message to the server with optional data. + + @param data Instance of `NSData` or `nil`. + @param error On input, a pointer to variable for an `NSError` object. + If an error occurs, this pointer is set to an `NSError` object containing information about the error. + You may specify `nil` to ignore the error information. + + @return `YES` if the string was scheduled to send, otherwise - `NO`. + */ +- (BOOL)sendPing:(nullable NSData *)data error:(NSError **)error NS_SWIFT_NAME(sendPing(_:)); + +@end + +///-------------------------------------- +#pragma mark - SRWebSocketDelegate +///-------------------------------------- + +/** + The `SRWebSocketDelegate` protocol describes the methods that `SRWebSocket` objects + call on their delegates to handle status and messsage events. + */ +@protocol SRWebSocketDelegate + +@optional + +#pragma mark Receive Messages + +/** + Called when any message was received from a web socket. + This method is suboptimal and might be deprecated in a future release. + + @param webSocket An instance of `SRWebSocket` that received a message. + @param message Received message. Either a `String` or `NSData`. + */ +- (void)webSocket:(SRWebSocket *)webSocket didReceiveMessage:(id)message; + +/** + Called when a frame was received from a web socket. + + @param webSocket An instance of `SRWebSocket` that received a message. + @param string Received text in a form of UTF-8 `String`. + */ +- (void)webSocket:(SRWebSocket *)webSocket didReceiveMessageWithString:(NSString *)string; + +/** + Called when a frame was received from a web socket. + + @param webSocket An instance of `SRWebSocket` that received a message. + @param data Received data in a form of `NSData`. + */ +- (void)webSocket:(SRWebSocket *)webSocket didReceiveMessageWithData:(NSData *)data; + +#pragma mark Status & Connection + +/** + Called when a given web socket was open and authenticated. + + @param webSocket An instance of `SRWebSocket` that was open. + */ +- (void)webSocketDidOpen:(SRWebSocket *)webSocket; + +/** + Called when a given web socket encountered an error. + + @param webSocket An instance of `SRWebSocket` that failed with an error. + @param error An instance of `NSError`. + */ +- (void)webSocket:(SRWebSocket *)webSocket didFailWithError:(NSError *)error; + +/** + Called when a given web socket was closed. + + @param webSocket An instance of `SRWebSocket` that was closed. + @param code Code reported by the server. + @param reason Reason in a form of a String that was reported by the server or `nil`. + @param wasClean Boolean value indicating whether a socket was closed in a clean state. + */ +- (void)webSocket:(SRWebSocket *)webSocket didCloseWithCode:(NSInteger)code reason:(nullable NSString *)reason wasClean:(BOOL)wasClean; + +/** + Called on receive of a ping message from the server. + + @param webSocket An instance of `SRWebSocket` that received a ping frame. + @param data Payload that was received or `nil` if there was no payload. + */ +- (void)webSocket:(SRWebSocket *)webSocket didReceivePingWithData:(nullable NSData *)data; + +/** + Called when a pong data was received in response to ping. + + @param webSocket An instance of `SRWebSocket` that received a pong frame. + @param pongData Payload that was received or `nil` if there was no payload. + */ +- (void)webSocket:(SRWebSocket *)webSocket didReceivePong:(nullable NSData *)pongData; + +/** + Sent before reporting a text frame to be able to configure if it shuold be convert to a UTF-8 String or passed as `NSData`. + If the method is not implemented - it will always convert text frames to String. + + @param webSocket An instance of `SRWebSocket` that received a text frame. + + @return `YES` if text frame should be converted to UTF-8 String, otherwise - `NO`. Default: `YES`. + */ +- (BOOL)webSocketShouldConvertTextFrameToString:(SRWebSocket *)webSocket NS_SWIFT_NAME(webSocketShouldConvertTextFrameToString(_:)); + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverWebSocket.framework/Info.plist b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverWebSocket.framework/Info.plist new file mode 100644 index 0000000..322a219 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Ariver/AriverWebSocket.framework/Info.plist @@ -0,0 +1,73 @@ + + + + + BuildMachineOSBuild + 20E241 + CFBundleDevelopmentRegion + English + CFBundleExecutable + AriverWebSocket + CFBundleIdentifier + com.alipay.AriverWebSocket + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + AriverWebSocket + CFBundlePackageType + BNDL + CFBundleShortVersionString + 2.0.0.1-SNAPSHOT + CFBundleSignature + ???? + CFBundleSupportedPlatforms + + iPhoneOS + + CFBundleVersion + 1 + CFPlugInDynamicRegisterFunction + + CFPlugInDynamicRegistration + NO + CFPlugInFactories + + 00000000-0000-0000-0000-000000000000 + MyFactoryFunction + + CFPlugInTypes + + 00000000-0000-0000-0000-000000000000 + + 00000000-0000-0000-0000-000000000000 + + + CFPlugInUnloadFunction + + DTCompiler + com.apple.compilers.llvm.clang.1_0 + DTPlatformBuild + 18B79 + DTPlatformName + iphoneos + DTPlatformVersion + 14.2 + DTSDKBuild + 18B79 + DTSDKName + iphoneos14.2 + DTXcode + 1220 + DTXcodeBuild + 12B45b + MinimumOSVersion + 8.0 + NSHumanReadableCopyright + Copyright © 2013年 Alipay. All rights reserved. + UIDeviceFamily + + 1 + 2 + + + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Headers b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Headers new file mode 120000 index 0000000..a177d2a --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Headers @@ -0,0 +1 @@ +Versions/Current/Headers \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Resources b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Resources new file mode 120000 index 0000000..953ee36 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Resources @@ -0,0 +1 @@ +Versions/Current/Resources \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/UT b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/UT new file mode 120000 index 0000000..0bce92a --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/UT @@ -0,0 +1 @@ +Versions/Current/UT \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/AppMonitor.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/AppMonitor.h new file mode 100644 index 0000000..3ca42a5 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/AppMonitor.h @@ -0,0 +1,140 @@ +// +// AppMonitor.h +// +// UserTrack +// 开发团队:数据通道团队 +// UT答疑群:11791581(钉钉) +// UT埋点平台答疑群:11779226(钉钉) +// +// Copyright (c) 2014-2017 Taobao. All rights reserved. +// + +#import +#import "AppMonitorAlarm.h" +#import "AppMonitorCounter.h" +#import "AppMonitorStat.h" +#import "AppMonitorOffLineCounter.h" +#import "AppMonitorTable.h" +#import "AppMonitorMeasure.h" +#import "AppMonitorMeasureSet.h" +#import "AppMonitorDimension.h" +#import "AppMonitorDimensionSet.h" +#import "AppMonitorMeasureValue.h" + +@interface AppMonitor : NSObject + +/** + * 在使用UT且有安全黑匣子加密的情况下,不需要调用此接口,APPMonitor会跟UT共享APPKEY。否则, + * 使用前务必调用此方法,传入的appkey和secret同样适用于UT版本 + * 申请地址:http://open.taobao.com + * @param appkey + * @param appSecret + */ +//+ (void)setUTAppKey:(NSString *)appkey secret:(NSString *)appSecret; + + +/** + * 设置淘宝配置中心的app 参数用来同步配置用 + * + * @param appKey + * @param appSecret + */ +//+ (void)setTBCAppkey:(NSString *)appKey secret:(NSString *)appSecret environment:(TBSDKEnvironment)e; + +/** + * 设置配置中心配置文件的名字和key + * + * @param fileName 文件名字 + * @param key 对应的配置key + */ +//+ (void)setTBCFileName:(NSString *)fileName key:(NSString *)key; + +//+ (BOOL)isInit; + +//+ (instancetype)sharedInstance; + +/** + * 开启release模式,关闭所有日志 + */ + +//+ (void)turnOnRelease; + +/** + * 设置渠道,可以用来做区分 + */ + +//+ (void)setChannel:(NSString *)channel; + +/** + * 设置用户ID + * 在定位问题的时候可以从UT的log中找到对于用户 + */ +//+ (void)setUserID:(NSString *)userid; + +/** + * 设置用户nick + * 在定位问题的时候可以从UT的log中找到对于用户 + * @param userNick 用户昵称 + */ +//+ (void)setUserNick:(NSString *)userNick; + +/** + * + * 提交自定义的的性能埋点(范围在性能埋点的id范围内) + * 业务埋点,请走UT。 + */ +//+ (void)comimtEvent:(NSString *)eventid arg1:(NSString *)arg1 arg2:(NSString *)arg2 arg3:(NSString *)arg3 dict:(NSDictionary *)pDict; + + +/////////////////////////////////////////////////////////////////////////////// +//////////////////////////// 以下API 为测试人员专用API //////////////////////// +/////////////////////////////////////////////////////////////////////////////// + +/** + * 开启debug模式,能够打印接收到的日志. + */ ++ (void)turnOnDebug NS_DEPRECATED_IOS(2_0, 6_0, "Use UTAnalytics.turnOnDebug instead"); + +/** + * 当前的开发模式,默认为开发模式 + */ +//+ (AMDevMode)currentMode; + +/** + * 设置log的level + */ +//+ (void)setLogLevel:(AMLogLevel)ll; + + +/** + * 关闭采样,紧开发调试用。线上版本请勿调用此API + */ ++ (void)disableSample; + +/** + * 设置采样率(默认是 50%) 值范围在[0~10000] (0表示不上传,10000表示100%上传,5000表示50%上传) + */ ++ (void)setSampling:(NSString *)sampling; + +/** + * 设置环境 Daily和线上 环境切换。数据整合在meta字段 + */ +//+ (void)setDailyEnvironment; + +////是否开启实时调试模式(与UT同步) +//+ (BOOL)isTurnOnRealTimeDebug; +//+ (NSString*)realTimeDebugUploadUrl; +//+ (NSString*)realTimeDebugId; + ++(void) turnOnAppMonitorRealtimeDebug:(NSDictionary *) pDict; ++(void) turnOffAppMonitorRealtimeDebug; + + +/** + * appmonitor 全局打标 + * 相同的key会覆盖 + */ ++(void) setGlobalProperty:(NSString *) pKey value:(NSString *) pValue; ++(void) removeGlobalProperty:(NSString *) pKey; ++(NSString *) getGlobalProperty:(NSString *) pKey; +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/AppMonitorAlarm.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/AppMonitorAlarm.h new file mode 100644 index 0000000..8c1ae2e --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/AppMonitorAlarm.h @@ -0,0 +1,55 @@ +// +// AppMonitorAlarm.h +// +// UserTrack +// 开发团队:数据通道团队 +// UT答疑群:11791581(钉钉) +// UT埋点平台答疑群:11779226(钉钉) +// +// Copyright (c) 2014-2017 Taobao. All rights reserved. +// + +#import +#import "AppMonitorBase.h" + +@interface AppMonitorAlarm : AppMonitorBase +/** + * 记录业务操作成功接口 + * + * @param page 页面名称,安卓iOS要相同. 命名规范:若之前埋点有页面名,则用原来的; 否则用"业务名_页面名"(无页面则"业务名"); 采用首字母大写驼峰方式. 如Shop_Detail, Shop_List + * @param monitorPoint 监控点名称,安卓iOS要相同,从@雷曼 获取 + * + */ ++ (void)commitSuccessWithPage:(NSString *)page monitorPoint:(NSString *)monitorPoint; + +/** + * 记录业务操作失败接口 + * + * @param page 页面名称,安卓iOS要相同. 命名规范:若之前埋点有页面名,则用原来的; 否则用"业务名_页面名"(无页面则"业务名"); 采用首字母大写驼峰方式. 如Shop_Detail, Shop_List + * @param monitorPoint 监控点名称,安卓iOS要相同,从@雷曼 获取 + * @param errorCode 错误码,若为MTOP请求则传MTOP的错误码,否则请业务方对错误进行分类编码,方便统计错误类型占比 + * @param errorMsg 错误信息,若位MTOP请求则传MTOP的错误信息, 否则请业务方自己描述错误, 方便自己查找原因 + */ ++ (void)commitFailWithPage:(NSString *)page monitorPoint:(NSString *)monitorPoint errorCode:(NSString *)errorCode errorMsg:(NSString *)errorMsg; + +/** + * 记录业务操作成功接口 + * + * @param page 页面名称,安卓iOS要相同. 命名规范:若之前埋点有页面名,则用原来的; 否则用"业务名_页面名"(无页面则"业务名"); 采用首字母大写驼峰方式. 如Shop_Detail, Shop_List + * @param monitorPoint 监控点名称,安卓iOS要相同,从@雷曼 获取 + * @arg 附加参数,用于做横向扩展 + */ ++ (void)commitSuccessWithPage:(NSString *)page monitorPoint:(NSString *)monitorPoint arg:(NSString *)arg; + +/** + * 记录业务操作失败接口 + * + * @param page 页面名称,安卓iOS要相同. 命名规范:若之前埋点有页面名,则用原来的; 否则用"业务名_页面名"(无页面则"业务名"); 采用首字母大写驼峰方式. 如Shop_Detail, Shop_List + * @param monitorPoint 监控点名称,安卓iOS要相同,从@雷曼 获取 + * @param errorCode 错误码,若为MTOP请求则传MTOP的错误码,否则请业务方对错误进行分类编码,方便统计错误类型占比 + * @param errorMsg 错误信息,若位MTOP请求则传MTOP的错误信息, 否则请业务方自己描述错误, 方便自己查找原因 + * @arg 附加参数,用于做横向扩展 + */ ++ (void)commitFailWithPage:(NSString *)page monitorPoint:(NSString *)monitorPoint errorCode:(NSString *)errorCode errorMsg:(NSString *)errorMsg arg:(NSString *)arg; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/AppMonitorBase.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/AppMonitorBase.h new file mode 100644 index 0000000..9e90e54 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/AppMonitorBase.h @@ -0,0 +1,22 @@ +// +// AppMonitorBase.h +// +// UserTrack +// 开发团队:数据通道团队 +// UT答疑群:11791581(钉钉) +// UT埋点平台答疑群:11779226(钉钉) +// +// Copyright (c) 2014-2017 Taobao. All rights reserved. +// + +#import + +@interface AppMonitorBase : NSObject +/** + * 日志写入UT间隔时间(单位秒).默认300秒, -1代表关闭. 会监听配置中心做变化 + */ ++ (void)setWriteLogInterval:(NSInteger)writeLogInterval; + ++ (NSInteger)writeLogInterval; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/AppMonitorCounter.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/AppMonitorCounter.h new file mode 100644 index 0000000..56a694f --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/AppMonitorCounter.h @@ -0,0 +1,38 @@ +// +// AppMonitorCounter.h +// +// UserTrack +// 开发团队:数据通道团队 +// UT答疑群:11791581(钉钉) +// UT埋点平台答疑群:11779226(钉钉) +// +// Copyright (c) 2014-2017 Taobao. All rights reserved. +// + +#import +#import "AppMonitorBase.h" + +@interface AppMonitorCounter : AppMonitorBase + +/** + * 实时计数接口.(每次commit会累加一次count,value也会累加)可用于服务端计算总次数或求平均值。 + * 此接口数据量不应太大, + * + * @param page 操作发生所在的页面 + * @param monitorPoint 监控点名称 + * @param value 数值 + */ ++ (void)commitWithPage:(NSString *)page monitorPoint:(NSString *)monitorPoint value:(double)value; + +/** + * 实时计数接口.(每次commit会累加一次count,value也会累加)可用于服务端计算总次数或求平均值。 + * 此接口数据量不应太大, + * + * @param page 操作发生所在的页面 + * @param monitorPoint 监控点名称 + * @param value 数值 + * @param arg 附加参数 + */ ++ (void)commitWithPage:(NSString *)page monitorPoint:(NSString *)monitorPoint value:(double)value arg:(NSString *)arg; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/AppMonitorDimension.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/AppMonitorDimension.h new file mode 100644 index 0000000..9799027 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/AppMonitorDimension.h @@ -0,0 +1,28 @@ +// +// AppMonitorDimension.h +// +// UserTrack +// 开发团队:数据通道团队 +// UT答疑群:11791581(钉钉) +// UT埋点平台答疑群:11779226(钉钉) +// +// Copyright (c) 2014-2017 Taobao. All rights reserved. +// + +#import + +/** + * 监控维度 + * + */ + +@interface AppMonitorDimension : NSObject + +@property (nonatomic, copy) NSString *name; +@property (nonatomic, copy) NSString *constantValue; + +- (instancetype)initWithName:(NSString *)name; + +- (instancetype)initWithName:(NSString *)name constantValue:(NSString *)constantValue; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/AppMonitorDimensionSet.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/AppMonitorDimensionSet.h new file mode 100644 index 0000000..d14b88e --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/AppMonitorDimensionSet.h @@ -0,0 +1,57 @@ +// +// AppMonitorDimensionSet.h +// +// UserTrack +// 开发团队:数据通道团队 +// UT答疑群:11791581(钉钉) +// UT埋点平台答疑群:11779226(钉钉) +// +// Copyright (c) 2014-2017 Taobao. All rights reserved. +// + +#import +#import "AppMonitorDimensionValueSet.h" +#import "AppMonitorDimension.h" +@interface AppMonitorDimensionSet : NSObject + +/** + * 根据列表初始化指标集合对象 + * + * @param array NSString类型的数组 string为Name; + * @return instance + */ + ++ (instancetype)setWithArray:(NSArray *)array; + +- (BOOL)valid:(AppMonitorDimensionValueSet*)dimensionValues; +/** + * 增加维度 + * + * @param dimension 维度对象 + */ +- (void)addDimension:(AppMonitorDimension *)dimension; + +/** + * 增加维度对象 + * + * @param name 维度名称 + */ +- (void)addDimensionWithName:(NSString *)name; +/** + * 获取维度对象 + * + * @param name 维度名称 + * @return AppMonitorDimension + */ +- (AppMonitorDimension *)dimensionForName:(NSString *)name; + +- (NSMutableOrderedSet *)dimensions; + +/** + * 设置定值维度 + * + * @param dimensionValues key为维度名称,value为内容 + */ +- (void)setConstantValue:(AppMonitorDimensionValueSet *)dimensionValues; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/AppMonitorDimensionValueSet.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/AppMonitorDimensionValueSet.h new file mode 100644 index 0000000..985eac2 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/AppMonitorDimensionValueSet.h @@ -0,0 +1,29 @@ +// +// AppMonitorDimensionValueSet.h +// +// UserTrack +// 开发团队:数据通道团队 +// UT答疑群:11791581(钉钉) +// UT埋点平台答疑群:11779226(钉钉) +// +// Copyright (c) 2014-2017 Taobao. All rights reserved. +// + +#import +/** + 其实就是个字典 + */ +@interface AppMonitorDimensionValueSet : NSObject + +/** + * 存储维度值 + */ +@property (nonatomic, strong) NSMutableDictionary *dict; + +- (instancetype)initWithDictionary:(NSDictionary *)dictionary; + +- (void)setValue:(NSString *)value forName:(NSString *)name; +- (BOOL)containValueForName:(NSString *)name; +- (NSString *)valueForName:(NSString *)name; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/AppMonitorMeasure.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/AppMonitorMeasure.h new file mode 100644 index 0000000..293fd7f --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/AppMonitorMeasure.h @@ -0,0 +1,38 @@ +// +// AppMonitorMeasure.h +// +// UserTrack +// 开发团队:数据通道团队 +// UT答疑群:11791581(钉钉) +// UT埋点平台答疑群:11779226(钉钉) +// +// Copyright (c) 2014-2017 Taobao. All rights reserved. +// + +#import +#import "AppMonitorMeasureValue.h" + +/** + * 监控指标项 + * + */ +@interface AppMonitorMeasure : NSObject + +@property (nonatomic, copy) NSString *name; +@property (nonatomic, strong) NSNumber *constantValue; +@property (nonatomic, strong) NSNumber *min; +@property (nonatomic, strong) NSNumber *max; +@property (nonatomic, copy) NSArray *bounds; + +- (instancetype)initWithName:(NSString *)name; + +- (instancetype)initWithName:(NSString *)name constantValue:(NSNumber *)constantValue; + +- (instancetype)initWithName:(NSString *)name constantValue:(NSNumber *)constantValue min:(NSNumber *)min max:(NSNumber *)max; + +- (instancetype)initWithName:(NSString *)name constantValue:(NSNumber *)constantValue bounds:(NSArray *)bounds; + +- (void)setRangeWithMin:(NSNumber *)min max:(NSNumber *)max; + +- (BOOL)valid:(AppMonitorMeasureValue *)measureValue; +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/AppMonitorMeasureSet.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/AppMonitorMeasureSet.h new file mode 100644 index 0000000..36c90ae --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/AppMonitorMeasureSet.h @@ -0,0 +1,62 @@ +// +// AppMonitorMeasureSet.h +// +// UserTrack +// 开发团队:数据通道团队 +// UT答疑群:11791581(钉钉) +// UT埋点平台答疑群:11779226(钉钉) +// +// Copyright (c) 2014-2017 Taobao. All rights reserved. +// + +#import +#import "AppMonitorMeasure.h" +#import "AppMonitorMeasureValueSet.h" +@interface AppMonitorMeasureSet : NSObject + +/** + * 根据列表初始化指标集合对象 + * + * @param array NSString类型的数组 string为Name; + * @return instance + */ + ++ (instancetype)setWithArray:(NSArray *)array; + +- (BOOL)valid:(NSString*)module MonitorPoint:(NSString*)monitorpoint measureValues:(AppMonitorMeasureValueSet *)measureValues; +/** + * 增加指标 + * + * @param measure 指标对象 + */ +- (void)addMeasure:(AppMonitorMeasure *)measure; + +/** + * 增加指标对象 + * + * @param name 指标名称 + */ +- (void)addMeasureWithName:(NSString *)name; +/** + * 获取指标对象 + * + * @param name 指标名称 + * @return AppMonitorMeasure + */ +- (AppMonitorMeasure *)measureForName:(NSString *)name; + +/** + * 获取指标对象的列表 + * + * @return measures + */ +- (NSMutableOrderedSet *)measures; + +/** + * 设置定值维度 + * + * @param measureValues key为指标名称,value为内容 + */ +- (void)setConstantValue:(AppMonitorMeasureValueSet *)measureValues; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/AppMonitorMeasureValue.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/AppMonitorMeasureValue.h new file mode 100644 index 0000000..61744a2 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/AppMonitorMeasureValue.h @@ -0,0 +1,38 @@ +// +// AppMonitorMeasureValue.h +// +// UserTrack +// 开发团队:数据通道团队 +// UT答疑群:11791581(钉钉) +// UT埋点平台答疑群:11779226(钉钉) +// +// Copyright (c) 2014-2017 Taobao. All rights reserved. +// + +#import + +/** + * 监控指标值 + * + */ + +@interface AppMonitorMeasureValue : NSObject + +/** + * 耗时操作是否已经完成 + */ +@property (nonatomic, assign) BOOL isFinish; +@property (nonatomic, strong) NSNumber * offset; +@property (nonatomic, strong) NSNumber * value;//TODO 改成readonly + +- (instancetype)initWithValue:(NSNumber *)value; +- (instancetype)initWithValue:(NSNumber *)value offset:(NSNumber *)offset; +- (void)merge:(AppMonitorMeasureValue *)measureValue; +//为了json序列化 +- (NSDictionary *)jsonDict; +//json反序列化 +- (instancetype)initWithDictionary:(NSDictionary *)dictionary; + +- (void)setBounds:(NSArray *)bounds; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/AppMonitorMeasureValueSet.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/AppMonitorMeasureValueSet.h new file mode 100644 index 0000000..9461c09 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/AppMonitorMeasureValueSet.h @@ -0,0 +1,44 @@ +// +// AppMonitorMeasureValueSet.h +// +// UserTrack +// 开发团队:数据通道团队 +// UT答疑群:11791581(钉钉) +// UT埋点平台答疑群:11779226(钉钉) +// +// Copyright (c) 2014-2017 Taobao. All rights reserved. +// + +#import +#import "AppMonitorMeasureValue.h" +@interface AppMonitorMeasureValueSet : NSObject + +/** + * 存储指标值 Map + */ +@property (nonatomic, strong) NSMutableDictionary *dict; + +- (instancetype)initWithDictionary:(NSDictionary *)dictionary; + + +/** + * 设置指标值 + * + * @param name name + * @param value value + */ +- (void)setDoubleValue:(double)value forName:(NSString *)name; +- (void)setValue:(AppMonitorMeasureValue *)value forName:(NSString *)name; +- (BOOL)containValueForName:(NSString *)name; +- (AppMonitorMeasureValue *)valueForName:(NSString *)name; +/** + * 合并指标 + * + * @param measureValueSet 目标指标集合 + * 发现相同的name就对MeasureValue做加操作 + */ +- (void)merge:(AppMonitorMeasureValueSet*)measureValueSet; + +- (NSDictionary *)jsonDict; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/AppMonitorOffLineCounter.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/AppMonitorOffLineCounter.h new file mode 100644 index 0000000..55204ce --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/AppMonitorOffLineCounter.h @@ -0,0 +1,25 @@ +// +// AppMonitorOffLineCounter.h +// +// UserTrack +// 开发团队:数据通道团队 +// UT答疑群:11791581(钉钉) +// UT埋点平台答疑群:11779226(钉钉) +// +// Copyright (c) 2014-2017 Taobao. All rights reserved. +// + +#import "AppMonitorCounter.h" + +@interface AppMonitorOffLineCounter : AppMonitorCounter + +/** + * 离线计数接口.(每次commit会累加一次count,value也会累加)可用于服务端离线计算数据量较大的总次数或求平均值 + * + * @param page 操作发生所在的页面 + * @param monitorPoint 监控点名称 + * @param value 数值 + */ ++ (void)commitWithPage:(NSString *)page monitorPoint:(NSString *)monitorPoint value:(double)value; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/AppMonitorStat.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/AppMonitorStat.h new file mode 100644 index 0000000..842b2a6 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/AppMonitorStat.h @@ -0,0 +1,131 @@ +// +// AppMonitorStat.h +// +// UserTrack +// 开发团队:数据通道团队 +// UT答疑群:11791581(钉钉) +// UT埋点平台答疑群:11779226(钉钉) +// +// Copyright (c) 2014-2017 Taobao. All rights reserved. +// + +#import +#import "AppMonitorBase.h" +#import "AppMonitorMeasureSet.h" +#import "AppMonitorDimensionSet.h" + +@interface AppMonitorStatTransaction :NSObject + +- (void)beginWithMeasureName:(NSString *)measureName; + +- (void)endWithMeasureName:(NSString *)measureName; + +@end + +@interface AppMonitorStat : AppMonitorBase + +/** + * 注册性能埋点 + * @param module 模块 + * @param monitorPoint 监控点 + * @param measures 多指标 + */ ++ (void)registerWithModule:(NSString *)module monitorPoint:(NSString *)monitorPoint measureSet:(AppMonitorMeasureSet *)measures; + +/** + * 注册性能埋点 + * @param module 模块 + * @param monitorPoint 监控点 + * @param measures 多指标 + * @param dimensions 多维度 + */ ++ (void)registerWithModule:(NSString *)module monitorPoint:(NSString *)monitorPoint measureSet:(AppMonitorMeasureSet *)measures dimensionSet:(AppMonitorDimensionSet *)dimensions; + +/** + * 注册性能埋点 + * @param module 模块 + * @param monitorPoint 监控点 + * @param measures 多指标 + * @param detail 标记是否提交明细。需要提交明细时设置为YES,否则为NO + */ ++ (void)registerWithModule:(NSString *)module monitorPoint:(NSString *)monitorPoint measureSet:(AppMonitorMeasureSet *)measures isCommitDetail:(BOOL)detail; + +/** + * 注册性能埋点 + * @param module 模块 + * @param monitorPoint 监控点 + * @param measures 多指标 + * @param dimensions 多维度 + * @param detail 标记是否提交明细。需要提交明细时设置为YES,否则为NO + */ ++ (void)registerWithModule:(NSString *)module monitorPoint:(NSString *)monitorPoint measureSet:(AppMonitorMeasureSet *)measures dimensionSet:(AppMonitorDimensionSet *)dimensions isCommitDetail:(BOOL)detail; + +/** + * 注册性能埋点 + * @param module 模块 + * @param monitorPoint 监控点 + * @param measures 多指标 + * @param dimensions 多维度 + * @param detail 标记是否提交明细。需要提交明细时设置为YES,否则为NO + * @param isOffline 是否离线 + */ ++ (void)registerWithModule:(NSString *)module monitorPoint:(NSString *)monitorPoint measureSet:(AppMonitorMeasureSet *)measures dimensionSet:(AppMonitorDimensionSet *)dimensions isCommitDetail:(BOOL)detail offline:(BOOL)isOffline; + +/** + * 提交多维度,多指标 + * @param module 监控模块 + * @param monitorPoint 监控点名称 Page+monitorPoint必须唯一 + * @param dimensionValues 维度值集合 + * @param measureValues 指标值集合 + */ ++ (void)commitWithModule:(NSString*) module monitorPoint:(NSString *)monitorPoint dimensionValueSet:(AppMonitorDimensionValueSet *)dimensionValues measureValueSet:(AppMonitorMeasureValueSet *)measureValues; + +/** + * 提交多维度单指标 + * @param module 监控模块 + * @param monitorPoint 监控点名称 Page+monitorPoint必须唯一 + * @param dimensionValues 维度值集合 + * @param value 指标值 + */ + ++ (void)commitWithModule:(NSString*) module monitorPoint:(NSString *)monitorPoint dimensionValueSet:(AppMonitorDimensionValueSet *)dimensionValues value:(double)value; + +/** + * 提交单指标 + * @param module 监控模块 + * @param monitorPoint 监控点名称 Page+monitorPoint必须唯一 + * @param value 指标值 + */ ++ (void)commitWithModule:(NSString*) module monitorPoint:(NSString *)monitorPoint value:(double)value; + +/** + *开始事件,适合不存在并发的跨多线程事件(比如常见的UI加载渲染)
+ *如果事件跨多线程多并发执行,请使用beginTransaction-endTransaction方法对,此场景较少见 + * @param module 监控模块 + * @param monitorPoint 监控点名称 module+monitorPoint必须唯一 + */ ++ (void)beginWithModule:(NSString *)module monitorPoint:(NSString *)monitorPoint measureName:(NSString *)measureName; + +/** + *结束事件,适合不存在并发的跨多线程事件(比如常见的UI加载渲染)
+ *如果事件跨多线程多并发执行,请使用beginTransaction-endTransaction方法对,此场景较少见 + * @param module 监控模块 + * @param monitorPoint 监控点名称 module+monitorPoint必须唯一 + */ ++ (void)endWithModule:(NSString *)module monitorPoint:(NSString *)monitorPoint measureName:(NSString *)measureName; + +/** + * 埋点事务,可以通过调用事务的begin-end方法对来统计耗时指标的值 + * + * @param module 模块 + * @param monitorPoint 监控点 + * @return 返回埋点事务实例 + */ + ++ (AppMonitorStatTransaction *)createTransactionWithModule:(NSString *)module monitorPoint:(NSString *)monitorPoint; + +@end + + + + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/AppMonitorStatInterface.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/AppMonitorStatInterface.h new file mode 100644 index 0000000..79b1089 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/AppMonitorStatInterface.h @@ -0,0 +1,104 @@ +// +// AppMonitorStatInterface.h +// +// UserTrack +// 开发团队:数据通道团队 +// UT答疑群:11791581(钉钉) +// UT埋点平台答疑群:11779226(钉钉) +// +// Copyright (c) 2014-2017 Taobao. All rights reserved. +// + +#import + +#define MINKEYNAME @"minValue" +#define MAXKEYNAME @"maxValue" +#define CONSTANTKEYNAME @"constantValue" + +@interface AppMonitorStatInterface : NSObject + +/* + * 注册性能埋点时,需要填入的参数(minValue,maxValue,contantValue)其key值固定,可通过如下三个get方法分别获取 + * + */ ++ (NSString*)GetMinKeyName; ++ (NSString*)GetMaxKeyName; ++ (NSString*)GetConstantKeyName; + +/** + * 注册性能埋点 + * @param module 模块 + * @param monitorPoint 监控点 + * @param dimensions 多维度 + dimensions说明:是一个数组,数组中存储一个NSDictionary,该NSDictionary的键为dimensionName,Value为一个可能包含constantValue的NSDictionary,如果不设置该值,则传一个内容为空的NSDictionary进来。 + * @param detail 标记是否提交明细。需要提交明细时设置为YES + */ ++ (BOOL)registerWithModule:(NSString *)module monitorPoint:(NSString *)monitorPoint dimensionSet:(NSArray*)dimensions isCommitDetail:(BOOL)detail; + +/** + * 注册性能埋点 + * @param module 模块 + * @param monitorPoint 监控点 + * @param measures 多指标: + measures说明:是一个数组,数组中存储一个NSDictionary,该NSDictionary的键为measureName,Value为一个可能包含min和max或constantValue的NSDictionary. + * @param detail 标记是否提交明细。需要提交明细时设置为YES,否则为NO + */ ++ (BOOL)registerWithModule:(NSString *)module monitorPoint:(NSString *)monitorPoint measureSet:(NSArray*)measures isCommitDetail:(BOOL)detail; + +/** + * 注册性能埋点 + * @param module 模块 + * @param monitorPoint 监控点 + * @param measures 多指标,详见上个接口的measures说明。 + * @param dimensions 多维度 + dimensions说明:是一个数组,数组中存储一个NSDictionary,该NSDictionary的键为dimensionName,Value为一个可能包含constantValue的NSDictionary,如果不设置该值,则传一个内容为空的NSDictionary进来。 + * @param detail 标记是否提交明细。需要提交明细时设置为YES,否则为NO + */ ++ (BOOL)registerWithModule:(NSString *)module monitorPoint:(NSString *)monitorPoint measureSet:(NSArray*)measures dimensionSet:(NSArray*)dimensions isCommitDetail:(BOOL)detail; + +/** + * 提交多维度,多指标 + * @param module 监控模块 + * @param monitorPoint 监控点名称 Page+monitorPoint必须唯一 + * @param dimensionValues 维度值集合 + dimensionValues说明:为一个NSDictionary,key为dimensionName, Value为dimension的值。 + * @param measureValues 指标值集合 + measureValues说明:为一个NSDictionary,key为measureName,Value为measure的值。 + */ ++ (void)commitWithModule:(NSString*) module monitorPoint:(NSString *)monitorPoint dimensionValueSet:(NSDictionary *)dimensionValues measureValueSet:(NSDictionary *)measureValues; + +/** + * 提交多维度单指标 + * @param module 监控模块 + * @param monitorPoint 监控点名称 Page+monitorPoint必须唯一 + * @param dimensionValues 维度值集合 + * @param value 指标值 + */ + ++ (void)commitWithModule:(NSString*) module monitorPoint:(NSString *)monitorPoint dimensionValueSet:(NSDictionary *)dimensionValues value:(double)value; + +/** + * 提交单指标 + * @param module 监控模块 + * @param monitorPoint 监控点名称 Page+monitorPoint必须唯一 + * @param value 指标值 + */ ++ (void)commitWithModule:(NSString*) module monitorPoint:(NSString *)monitorPoint value:(double)value; + +/** + *开始事件,适合不存在并发的跨多线程事件(比如常见的UI加载渲染)
+ *如果事件跨多线程多并发执行,请使用beginTransaction-endTransaction方法对,此场景较少见 + * @param module 监控模块 + * @param monitorPoint 监控点名称 module+monitorPoint必须唯一 + */ ++ (void)beginWithModule:(NSString *)module monitorPoint:(NSString *)monitorPoint measureName:(NSString *)measureName; + +/** + *结束事件,适合不存在并发的跨多线程事件(比如常见的UI加载渲染)
+ *如果事件跨多线程多并发执行,请使用beginTransaction-endTransaction方法对,此场景较少见 + * @param module 监控模块 + * @param monitorPoint 监控点名称 module+monitorPoint必须唯一 + */ ++ (void)endWithModule:(NSString *)module monitorPoint:(NSString *)monitorPoint measureName:(NSString *)measureName; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/AppMonitorTable.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/AppMonitorTable.h new file mode 100644 index 0000000..35ca1cb --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/AppMonitorTable.h @@ -0,0 +1,68 @@ +// +// AppMonitorTable.h +// +// UserTrack +// 开发团队:数据通道团队 +// UT答疑群:11791581(钉钉) +// UT埋点平台答疑群:11779226(钉钉) +// +// Copyright (c) 2014-2017 Taobao. All rights reserved. +// + +#import + +///////////////////////////////////////////////////////// +// 数据格式以下图为例: +// 启动性能 - 启动时间监控 +// 启动方式 | cpu | 机型 | 网络类型| 总计 +// ---------------------------------- +// 冷启动耗时 |arm7 | 4s | 2G | 5s (约束2-10) +// 热启动耗时 |arm7s| 5s | 4G | 3s (约束1-3) + +// step 1: 创建一个模块空间;monitorForScheme +// step 2: 在空间下面创建表 +// step 3: 添加对应的值的约束,不在约束范围内的点将一噪点方式上报 +// step 4: 更新表数据 +// + +///////////////////////////////////////////////////////// + + +@interface AppMonitorTable : NSObject + +// 创建一个表的模块空间 ++ (instancetype)monitorForScheme:(NSString *)scheme NS_DEPRECATED_IOS(2_0, 2_1, "已废弃,请使用monitorForScheme:tableName:"); +// 新建一张表, 行,列,数据是否聚合 +- (void) registerTableWithName:(NSString *)name rows:(NSArray * )rows columns:(NSArray *)cols aggregate:(BOOL)yn NS_DEPRECATED_IOS(2_0, 2_1, "已废弃,请使用registerTableWithRows:columns:aggregate:"); + +// BEGIN Add by 玄叶 ++ (void)registerWithModule:(NSString *)module monitorPoint:(NSString *)monitorPoint columns:(NSArray *)cols rows:(NSArray * )rows aggregate:(BOOL)aggregate; + ++ (void)addConstraintWithModule:(NSString *)module monitorPoint:(NSString *)monitorPoint name:(NSString *)name min:(double)min max:(double)max defaultValue:(double)value; + ++ (void)addConstraintWithModule:(NSString *)module monitorPoint:(NSString *)monitorPoint name:(NSString *)name bounds:(NSArray *)bounds defaultValue:(double)value; + ++ (BOOL)commitWithModule:(NSString *)module monitorPoint:(NSString *)monitorPoint columns:(NSDictionary *)cols rows:(NSDictionary *)rows; +// END + +// 创建一个表的模块空间 ++ (instancetype)monitorForScheme:(NSString *)scheme tableName:(NSString *)tableName; + +// 新建一张表, 行,列,数据是否聚合 +- (void)registerTableWithRows:(NSArray * )rows columns:(NSArray *)cols aggregate:(BOOL)yn; + +// 添加约束 +- (void)addConstraintWithName:(NSString *)name range:(NSRange)range defaultValue:(NSNumber *)number; + +// 添加多区间约束 add by 玄叶 +- (void)addConstraintWithName:(NSString *)name bounds:(NSArray *)bounds defaultValue:(double)value; + +// 添加约束 +- (void)addConstraintWithName:(NSString *)name min:(double)min max:(double)max defaultValue:(double)value; + +// 更新表 行的名字,列的名字,行的数据,列的数据 +- (BOOL)updateTableForColumns:(NSDictionary *)cols rows:(NSDictionary *)rows; + +// 更新表,不区分行列名字。此接口不允许行列同名,性能偏低,慎用! +- (BOOL)updateTableWithDictionary:(NSDictionary *)dict; +@end \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/UIControl+UTTrack.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/UIControl+UTTrack.h new file mode 100644 index 0000000..8f13146 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/UIControl+UTTrack.h @@ -0,0 +1,20 @@ +// +// UIControl+UTTrack.h +// +// UserTrack +// 开发团队:数据通道团队 +// UT答疑群:11791581(钉钉) +// UT埋点平台答疑群:11779226(钉钉) +// +// Copyright (c) 2014-2017 Taobao. All rights reserved. +// + +#import +#import + +@interface UIControl(UTTrackHook) + +@property(nonatomic, retain) NSString *utActionName; +@property(nonatomic, retain) NSDictionary *utArgs; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/UITableViewCell+UTTrack.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/UITableViewCell+UTTrack.h new file mode 100644 index 0000000..d917727 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/UITableViewCell+UTTrack.h @@ -0,0 +1,20 @@ +// +// UITableViewCell+UTTrack.h +// +// UserTrack +// 开发团队:数据通道团队 +// UT答疑群:11791581(钉钉) +// UT埋点平台答疑群:11779226(钉钉) +// +// Copyright (c) 2014-2017 Taobao. All rights reserved. +// + +#import +#import + +@interface UITableViewCell(UTTrackHook) + +@property(nonatomic, retain) NSString *utActionName; +@property(nonatomic, retain) NSDictionary *utArgs; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/UITapGestureRecognizer+UTTrack.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/UITapGestureRecognizer+UTTrack.h new file mode 100644 index 0000000..bf06181 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/UITapGestureRecognizer+UTTrack.h @@ -0,0 +1,20 @@ +// +// UITapGestureRecognizer+UTTrack.h +// +// UserTrack +// 开发团队:数据通道团队 +// UT答疑群:11791581(钉钉) +// UT埋点平台答疑群:11779226(钉钉) +// +// Copyright (c) 2014-2017 Taobao. All rights reserved. +// + +#import +#import + +@interface UITapGestureRecognizer(UTTrackHook) + +@property(nonatomic, retain) NSString *utActionName; +@property(nonatomic, retain) NSDictionary *utArgs; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/UIView+UTTrack.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/UIView+UTTrack.h new file mode 100644 index 0000000..e3695b5 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/UIView+UTTrack.h @@ -0,0 +1,49 @@ +// +// UIView+UTTrack.h +// +// UserTrack +// 开发团队:数据通道团队 +// UT答疑群:11791581(钉钉) +// UT埋点平台答疑群:11779226(钉钉) +// +// Copyright (c) 2014-2017 Taobao. All rights reserved. +// + +#ifndef UTSDK_UIView_UTTrack_h +#define UTSDK_UIView_UTTrack_h +// +#import +#import + +@interface UIView(UTTrackHook) + +@property(nonatomic, retain) NSString *utActionName; +@property(nonatomic, retain) NSDictionary *utArgs; +@property(nonatomic, retain) NSURL *utNavUrl; +@property(nonatomic, retain) NSString * utPageNameAlias;// 页面别名 + +#pragma mark - spm-pre专用 +/** 新增spm-pre属性 */ +@property (nonatomic, copy) NSString *utSpmPre; +@property (nonatomic, copy) NSString *utSpmUrl; +@property (nonatomic, copy) NSString *utSpmCnt; +/** 默认进入的spm-pre-next值,用于privateNextPageProperties中的数据被销毁之后 用于复原 */ +@property (nonatomic, copy) NSString *utSpmPreNext; + +#pragma mark - utParam带两步专用 +/** 新增utparam属性 */ +@property (nonatomic, copy) NSString *utParamPre; +@property (nonatomic, copy) NSString *utParamUrl; +@property (nonatomic, copy) NSString *utParamCnt; +/** 默认进入的utparam-pre-next值,用于privateNextPageProperties中的数据被销毁之后 用于复原 */ +@property (nonatomic, copy) NSString *utParamPreNext; + +#pragma mark - scm专用 +@property (nonatomic, copy) NSString *utScmPre; +@property (nonatomic, copy) NSString *utScmUrl; +@property (nonatomic, copy) NSString *utScmPreNext; + +@end + + +#endif diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/UIViewController+UTTrack.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/UIViewController+UTTrack.h new file mode 100644 index 0000000..0c1e227 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/UIViewController+UTTrack.h @@ -0,0 +1,76 @@ +// +// UIViewController+UTTrack.h +// +// UserTrack +// 开发团队:数据通道团队 +// UT答疑群:11791581(钉钉) +// UT埋点平台答疑群:11779226(钉钉) +// +// Copyright (c) 2014-2017 Taobao. All rights reserved. +// + +#import +#import + +/** 是否为VC或者View */ +#define UT_IS_VC_OR_VIEW(object) ([object isKindOfClass:[UIViewController class]] || [object isKindOfClass:[UIView class]]) +/** 是否为VC */ +#define UT_IS_VC(object) ([object isKindOfClass:[UIViewController class]]) +/** 是否为VIew */ +#define UT_IS_VIEW(object) ([object isKindOfClass:[UIView class]]) + +@interface UIViewController(UTTrackHook) + +@property(nonatomic, retain) NSString *utActionName; +@property(nonatomic, retain) NSDictionary *utArgs; +@property(nonatomic, retain) NSURL *utNavUrl; +@property(nonatomic, retain) NSDictionary *utProperties; +@property(nonatomic, retain) NSString * utPageNameAlias;// 页面别名 +@property(nonatomic,retain) NSString * utH5HasCalled; +@property(nonatomic,retain) NSString * utHasAppeared; + +#pragma mark - spm-pre专用 +/** 新增spm-pre属性 */ +@property (nonatomic, copy) NSString *utSpmPre; +@property (nonatomic, copy) NSString *utSpmUrl; +@property (nonatomic, copy) NSString *utSpmCnt; +/** 默认进入的spm-pre-next值,用于privateNextPageProperties中的数据被销毁之后 用于复原 */ +@property (nonatomic, copy) NSString *utSpmPreNext; + +#pragma mark - utParam带两步专用 +/** 新增utParam属性 */ +@property (nonatomic, copy) NSString *utParamPre; +@property (nonatomic, copy) NSString *utParamUrl; +@property (nonatomic, copy) NSString *utParamCnt; +/** 默认进入的utparam-pre-next值,用于privateNextPageProperties中的数据被销毁之后 用于复原 */ +@property (nonatomic, copy) NSString *utParamPreNext; + +#pragma mark - scm专用 +@property (nonatomic, copy) NSString *utScmPre; +@property (nonatomic, copy) NSString *utScmUrl; +@property (nonatomic, copy) NSString *utScmPreNext; + +/** 是否为返回 */ +@property (nonatomic, assign) BOOL utIsbk; +/** 是否设置返回,如果设置为返回,不执行返回判断逻辑,直接执行返回计算逻辑 */ +@property (nonatomic, assign) BOOL utIsbkManually; +/** 是否present了一个新VC */ +@property (nonatomic, assign) BOOL utPresentNew; + +/** 仅限于H5调用 */ +- (void)ut_h5UpdateSpmInfo:(NSDictionary *)spmInfo; +- (void)ut_h5UpdateScmInfo:(NSDictionary *)scmInfo; + +/** 当前VC的navi */ +- (UINavigationController *)ut_correctNavigationController; +- (UIViewController *)ut_correctPresentedViewController; + +/** 是否为子VC */ +- (BOOL)ut_isChildViewController; + +/** 是否为返回状态 */ +- (BOOL)ut_isBackWithStackLength:(NSInteger)stackLength; +- (BOOL)ut_isBackWithStackLength:(NSInteger)stackLength navi:(UINavigationController *)navi; +/** 判断是否手淘导航 */ +- (BOOL)isUseTBNav; +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/UT.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/UT.h new file mode 100644 index 0000000..6dabd84 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/UT.h @@ -0,0 +1,390 @@ +// +// UT.h +// +// UserTrack +// 开发团队:数据通道团队 +// UT答疑群:11791581(钉钉) +// UT埋点平台答疑群:11779226(钉钉) +// +// Copyright (c) 2014-2017 Taobao. All rights reserved. +// + +#import +#import +#import +#import +@interface UT : NSObject + + +////=====================================h5&Native接口===================================== +/** + * @brief h5&Native打通 + * + * @warning 调用说明:由windwave封装,供aplus_wap.js调用 + * + * + * + * @param dataDict aplus_wap.js采集的h5信息都通过该字典传进来,该字典中必须有key(funcType) + * 用来区分采集的是哪个事件信息,比如funcType=2001,则h5UT内部会调用 + * pageEnter来处理,funcType=2101,则调用ctrlClicked处理 + * + */ ++(void) h5UT:(NSDictionary *) dataDict view:(UIView *) pView viewController:(UIViewController *) pViewController; + ++(void) h5UT2:(NSDictionary *) dataDict view:(UIView *) pView viewController:(UIViewController *) pViewController; + + ++(void) setH5Url:(NSString *) url ; + + +/** + * @brief 更新ViewController对应的页面名称 + * + * @param viewController UIViewController + * + * @param pPageName UIViewController 对应的新页面名称 + * + */ ++(void) et_updateViewControllerPageName:(UIViewController *) viewController pageName:(NSString *) pPageName ; + + +/** + * @brief 更新view对应的页面名称 + * + * @param aView UIViewController + * + * @param pPageName UIViewController 对应的新页面名称 + * + */ ++(void) et_updateViewPageName:(UIView *) aView pageName:(NSString *) pPageName ; + +/** + * @brief 无痕UIView页面进入. + * 调用顺序:SDK 异步init完成之后. + * 必须配合 easyTraceUIViewPageLeave 一起使用 + * + * @param view UIView形态的页面 + * + * @param pProperties UIView的埋点属性 + * + */ ++(void) et_viewEnter:(UIView *) view properties:(NSDictionary *) pProperties ; + + +/** + * @brief 无痕UIView页面离开. + * 调用顺序:SDK 异步init完成之后. + * 必须配合 easyTraceUIViewPageEnter 一起使用 + * + * @param view UIView形态的页面 + * + * @param pProperties UIView的埋点属性 + * + */ ++(void) et_viewLeave:(UIView *) view properties:(NSDictionary *) pProperties ; + + + +/** + * @brief 更新ViewController页面携带的属性. + * 调用顺序:SDK 异步init完成之后. + * + * @param viewController UIViewController对象 + * + * @param pProperties 页面的埋点属性 + * + */ ++(void) et_updateViewControllerProperties:(UIViewController *) viewController properties:(NSDictionary *) pProperties ; + + + +/** + * @brief 更新UIView页面携带的属性. + * 调用顺序:SDK 异步init完成之后. + * + * @param view UIView对象 + * + * @param pProperties 页面的埋点属性 + * + */ ++(void) et_updateViewProperties:(UIView *) view properties:(NSDictionary *) pProperties ; + ++(void) urlNavigation:(UIViewController *) viewController url:(NSURL *)pUrl ; + ++(void) ctrlClickedWithNoPagePrefix:(NSString *)controlName onPage:(NSObject *)pageName args:(NSDictionary *)dict; + ++(void) ctrlClicked:(NSString *)controlName onPage:(NSObject *) pageName args:(NSDictionary *) dict; + ++(void) ctrlClicked:(NSString *)controlName args:(NSDictionary *) dict; + +/** + * @brief 统计控件点击. + * + * @param controlName 控件名称 + * + * @warning *Important:* 埋点所在的页面必须埋点pageEnter,自动页面埋点除外 + * + * 最佳建议:页面中的元素尽量全部打点,提高统计精度 + * + * 调用顺序:preInit->init->ctrlClicked. + * + * 最佳实践:[UT ctrlClicked:@"Buy"];控件名称必须是全英文,每个单词的首字母大写,建议不包含button,list,listitem等控件相关的名称 + * + * 最佳位置:页面中 + * + * + */ ++(void) ctrlClicked:(NSString *)controlName __deprecated; + ++(void) ctrlClicked:(NSString *)controlName onPage:(NSObject *) pageName ; + +/** + * @brief 统计用户登录/登出. + * + * @param usernick 用户昵称,如 AAAAAA + * + * @warning 必需:希望埋上 + * + * 调用顺序:初始化代码后->updateUserAccount. + * + * 最佳实践:用户登录:[UT updateUserAccount:@"*******A"]. + * 用户切换:[UT updateUserAccount:@"*******B"]. + * 用户注销:[UT updateUserAccount:@""]. + * + * 最佳位置:成功或失败的登录API返回之后 + * + * *Important:* 登录/切换/登出埋点必须是登录Api调用成功之后调用,反之会统计虚高 + * + * + */ ++(void) updateUserAccount:(NSString *)usernick userid:(NSString *) userid ; + ++(void) updateUserAccount:(NSString *) usernick ; + ++(void) updateUserAccount:(NSString *) usernick + userid:(NSString *) userid + args:(NSDictionary *) dict __deprecated; + +/** + * @brief 统计用户注册. + * + * @param usernick 用户昵称,如 "AAAAAA" + * + * @warning 最佳建议:有的话,希望埋上 + * + * 调用顺序:初始化代码后->userRegister. + * + * *Important:* 必须是注册Api调用成功之后调用,反之会统计虚高 + * + * + */ ++(void) userRegister:(NSString *) usernick ; + +/** + * @brief 普通自定义埋点. + * + * @param eventId 事件ID,使用前,需要在我们的网站去登记 + * + * @param pDict 事件携带的属性 + * + * @warning 调用顺序:初始化代码后->commitEvent. + * + * + */ ++ (void)commitEvent:(NSString *) eventId dict:(NSDictionary *) pDict; + +/** + * @brief 自定义埋点(DEPRECATED). + * + * @param eventId 行为ID,若需要使用,需要和我们沟通 + * + * @param arg1 参数1 + * + * @param arg2 参数2 + * + * @param arg3 参数3 + * + * @param dict 需要传递到args中去的kv参数对 + * + * @warning 调用说明:我们可以自主的控制埋点的格式以及内容,eventId这个参数对应行为记录的eventid,arg1对应行为记录的arg1,依次类推. + * + * 调用顺序:preInit->init->commitEvent. + * + * + */ ++ (void)commitEvent:(int)eventId + arg1:(NSString *)arg1 + arg2:(NSString *)arg2 + arg3:(NSString *)arg3 args:(NSDictionary *) dict; + + ++ (void)commitEvent:(NSObject *)page + eventID:(int)eventID + arg1:(NSString *)arg1 + arg2:(NSString *)arg2 + arg3:(NSString *)arg3 + args:(NSDictionary *) dict; + ++ (void)commitEvent:(int)eventId ; + ++ (void)commitEvent:(int)eventId + arg1:(NSString *)arg1 ; ++ (void)commitEvent:(int)eventId + arg1:(NSString *)arg1 + arg2:(NSString *)arg2 ; + ++ (void)commitEvent:(int)eventId + arg1:(NSString *)arg1 + arg2:(NSString *)arg2 + arg3:(NSString *)arg3 ; + +/** + * @brief 时长自定义埋点[开始]. + * + * @param eventId 事件ID,使用前,需要在我们的网站去登记,开始和结束必须使用相同的EventID + * + * @param pDict 事件携带的属性 + * + * @warning 时长统计的EventID必须有且仅有一个路径,也就是全局只能用一次,并且不能把时长和普通的混用 + * + * 调用顺序:初始化代码后->commitEvent. + * + * + */ ++ (void)commitEventBegin:(NSString *) eventId dict:(NSDictionary *) pDict; + +/** + * @brief 时长自定义埋点[结束]. + * + * @param eventId 事件ID,使用前,需要在我们的网站去登记,开始和结束必须使用相同的EventID。 + * + * @param pDict 事件携带的属性 + * + * @warning 时长统计的Event必须有且仅有一个路径,也就是全局只能用一次,并且不能把时长和普通的混用 + * + * 调用顺序:preInit->init->commitEvent. + * + * + */ ++ (void)commitEventEnd:(NSString *) eventId dict:(NSDictionary *) pDict; + +/** + * @brief 获取SDK生成的设备唯一标识. + * + * @warning 调用说明:这个设备唯一标识是持久的,并且格式安全,iOS6以及以下,多应用互通. + * + * 调用顺序:utdid任意时刻都可以调用. + * + * @return 24字节的设备唯一标识. + */ ++(NSString *) utdid; + +/** + * @brief 获取SDK生成的会话ID. + * + * @warning 调用说明:SDK初始化完成之后,会分配一个唯一的会话ID. + * + * 调用顺序:SDK 异步init完成之后. + * + * + * @return 格式:"utdid_appkey_timestamp". + */ ++(NSString *) utsid; + +/** + * @brief 用户塞入参数到reverses字段. + * + * + * @param properties 需要传递到reverse中去的kv参数对 + * + * + * @warning 调用顺序:初始化代码后->updateSessionProperties. + * + * 最佳实践:[UT updateSessionProperties:@"******"] + * + * + * + */ ++(void) updateSessionProperties:(NSDictionary *) properties ; + ++(NSString *) currentPageName; + +#pragma mark 以下接口均为空实现,仅为了编译能通过,千万不要调用该接口 ++(void) turnOffCrashHandler __deprecated; ++(void) pageEnter:(NSObject *) pageName __deprecated; ++(void) pageEnter:(NSObject *) pageName args:(NSDictionary *) dict __deprecated; ++(void) pageLeave:(NSObject *) pageName __deprecated; ++(void) pageLeave:(NSObject *) pageName args:(NSDictionary *) dict __deprecated; ++(void) et_viewControllerCtrlClicked:(UIViewController *) viewController actionName:(NSString *) actionName properties:(NSDictionary *) pProperties __deprecated; ++(void) et_viewCtrlClicked:(UIView *) viewName actionName:(NSString *) actionName properties:(NSDictionary *) pProperties __deprecated; ++(void) et_ctrlClickedWithQueryParentViewController:(UIView *) viewName actionName:(NSString *) actionName properties:(NSDictionary *) pProperties __deprecated; + ++(void) preInit __deprecated; ++(void) setAppVersion : (NSString *) appVersion __deprecated; ++(void) turnOnSecuritySDKSupport __deprecated; ++(void) setChannel : (NSString *) channel __deprecated; ++(void) turnOffLogFriendly __deprecated; ++(void) turnOnDebug __deprecated; ++(void) turnOnGlobalNavigationTrack:(NSArray *) excludePages __deprecated; ++(void) bindPageName:(NSDictionary *) dict __deprecated; ++(void) init __deprecated; ++(void) updatePageProperties:(NSObject *) pPageName properties:(NSDictionary *) pProperties __deprecated; ++(void) userRegister:(NSString *) usernick args:(NSDictionary *) dict __deprecated; + ++(void) turnOffEasyTrace __deprecated; ++(void) uninit __deprecated; ++(void) useSimplePageName __deprecated; + ++(void) itemSelected:(NSString *)controlName + andIndex:(int) index __deprecated; + ++(void) itemSelected:(NSString *)controlName + onPage:(NSObject *) pageName + andIndex:(int) index __deprecated; + + ++(void) itemSelected:(NSString *)controlName + andIndex:(int) index + args:(NSDictionary *) dict __deprecated; + ++(void) itemSelected:(NSString *)controlName + onPage:(NSObject *) pageName + andIndex:(int) index + args:(NSDictionary *) dict __deprecated; + ++(void) updatePageName:(NSObject *) pOPageName newPageName:(NSString *) pageName __deprecated; + ++(void) forceUpload __deprecated; + ++(void) updateGPSInfo:(NSString *) pageName + longitude:(double) longitude + latitude:(double) latitude __deprecated; + ++(void) updateGPSInfo:(NSString *) pageName + longitude:(double)longitude + latitude:(double) latitude + args:(NSDictionary *) dict __deprecated; + ++(void) pushArrive:(NSString *) pushName __deprecated; ++(void) pushArrive:(NSString *) pushName args:(NSDictionary *) dict __deprecated; ++(void) pushDisplay:(NSString *) pushName __deprecated; ++(void) pushDisplay:(NSString *) pushName args:(NSDictionary *) dict __deprecated; ++(void) pushView:(NSString *) pushName __deprecated; ++(void) pushView:(NSString *) pushName args:(NSDictionary *) dict __deprecated; ++(void) searchKeyword:(NSString *) keyword underCategory:(NSString *) category __deprecated; ++(void) searchKeyword:(NSString *) keyword underCategory:(NSString *) category args:(NSDictionary *) dict __deprecated; ++(void) share:(NSString *) content underCategory:(NSString *) category __deprecated; + ++(void) share:(NSString *) content underCategory:(NSString *) category args:(NSDictionary *) dict __deprecated; ++(void) updateUTSIDToCookie:(NSString *) url __deprecated; ++(void) updateUTCookie:(NSString *) url dict:(NSDictionary *) dict __deprecated; ++(void) trade:(NSString *) orderID __deprecated; ++(void) trade:(NSString *) orderID args:(NSDictionary *) dict __deprecated; ++(void) h5UT:(NSDictionary *) dataDict vc:(UIView *) view __deprecated; ++(void) updateViewControllerPageProperties:(UIViewController *) viewController properties:(NSDictionary *) pProperties __deprecated; +//for react native to use,temporary ++(void) rn_pageEnter:(NSObject *) pageName args:(NSDictionary *) dict __deprecated; ++(void) rn_pageLeave:(NSObject *) pageName args:(NSDictionary *) dict __deprecated; ++(void) rn_updatePageProperties:(NSObject *) pPageName properties:(NSDictionary *) pProperties __deprecated; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/UTAnalytics.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/UTAnalytics.h new file mode 100644 index 0000000..2839dde --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/UTAnalytics.h @@ -0,0 +1,140 @@ +// +// UTAnalytics.h +// +// UserTrack +// 开发团队:数据通道团队 +// UT答疑群:11791581(钉钉) +// UT埋点平台答疑群:11779226(钉钉) +// +// Copyright (c) 2014-2017 Taobao. All rights reserved. +// + +#import +#import "UTTracker.h" +#import "UTPlugin.h" +#import "UTIRequestAuthentication.h" + + +@interface UTAnalytics : NSObject + ++(UTAnalytics *) getInstance; + +#pragma mark - ut initialization function + +/** + * @brief if depend on SecurityGuard, use this func to initialize ut + * + * @param appKey appkey + * + */ +- (BOOL) setAppKey:(NSString *)appKey; + +/** + * @brief if depend on SecurityGuard, the securityGuard picture has one more appkey + * and your appkey is not the first position in the securityGuard picture + * use this func to initialize ut + * + * @param appKey appkey + * + * @param index_number the index of appkey in the securityGuard picture + * + */ +- (BOOL) setAppKey:(NSString *)appKey index:(int) index_number; + +/** + * @brief if not depend on SecurityGuard, use appkey-appsecret to initialize ut + * + */ +- (BOOL) setAppKey:(NSString *)appKey secret:(NSString *)secret; + +- (BOOL) setAppKey:(NSString *)appKey authCode:(NSString *)authCode; +/** initialize func which is abandoned,Empty implementation!! */ +- (void) setRequestAuthentication:(id)pRequestAuth NS_DEPRECATED_IOS(2_0, 6_0, "Use setAppKey:secret: instead"); + + +#pragma mark set app info +-(void) setAppVersion:(NSString *) pAppVersion; + +-(void) setChannel:(NSString *) pChannel; + +/** + * @brief login event track, eventid = 1007 + * + * @param pNick login nickname + * + * @param pUserId login userid + * + */ +-(void) updateUserAccount:(NSString *) pNick userid:(NSString *) pUserId; + +/** + 更新用户信息,传@""或者nil置空 + + @param uid userId + @param userNick userNick + @param uidDigest openId + */ +- (void)updateUserCount:(NSString *)uid andUserNick:(NSString *)userNick andDigest:(NSString *)uidDigest; + +/** + * @brief user registration event track, eventid = 1006 + * + * @param pUsernick login nickname + * + */ +-(void) userRegister:(NSString *) pUsernick; + + +#pragma mark get uttracker +-(UTTracker *) getDefaultTracker; + +-(UTTracker *) getTracker:(NSString *) pTrackId; + + +#pragma mark ut log +/** ut log level: all < debug < info < warning < error */ + +/** + * @brief turn on ut log for debug level + * + */ +-(void) turnOnDebug; + +/** + * @brief turn on ut log for info level + * + */ +-(void) turnOnUTInfo; + +/** + * @brief turn off ut log for all level + * + */ +-(void) turnOffAllUTLog; + +#pragma mark ut plugin + ++ (void)registerPlugin:(NSObject *)plugin; + ++ (void)unregisterPlugin:(NSObject *)plugin; + +#pragma mark other + +/** + * @brief openurl for ut realtimedebug + * + */ ++ (BOOL) handleUrl:(NSURL *)url; + +-(void) turnOffCrashHandler; + +-(void) setCrashCaughtListener:(id) aListener; + ++(NSString *) utsid; + +-(void) updateSessionProperties:(NSDictionary *) pDict; + + + + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/UTAutoTrace.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/UTAutoTrace.h new file mode 100644 index 0000000..2b2c093 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/UTAutoTrace.h @@ -0,0 +1,19 @@ +// +// UTAutoTrace.h +// +// UserTrack +// 开发团队:数据通道团队 +// UT答疑群:11791581(钉钉) +// UT埋点平台答疑群:11779226(钉钉) +// +// Copyright (c) 2014-2017 Taobao. All rights reserved. +// + +#import +#import + +@interface UTAutoTrace : NSObject + ++ (void)setShouldAutoExposeView:(UIView *)view; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/UTBaseRequestAuthentication.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/UTBaseRequestAuthentication.h new file mode 100644 index 0000000..8076674 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/UTBaseRequestAuthentication.h @@ -0,0 +1,19 @@ +// +// UTBaseRequestAuthentication.h +// +// UserTrack +// 开发团队:数据通道团队 +// UT答疑群:11791581(钉钉) +// UT埋点平台答疑群:11779226(钉钉) +// +// Copyright (c) 2014-2017 Taobao. All rights reserved. +// + +#import +#import "UTIRequestAuthentication.h" + +@interface UTBaseRequestAuthentication : NSObject + +-(instancetype) initWithAppKey:(NSString *) pAppKey appSecret:(NSString *) pSecret; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/UTControlHitBuilder.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/UTControlHitBuilder.h new file mode 100644 index 0000000..8178823 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/UTControlHitBuilder.h @@ -0,0 +1,24 @@ +// +// UTControlHitBuilder.h +// +// UserTrack +// 开发团队:数据通道团队 +// UT答疑群:11791581(钉钉) +// UT埋点平台答疑群:11779226(钉钉) +// +// Copyright (c) 2014-2017 Taobao. All rights reserved. +// + + + +#import "UTHitBuilder.h" + +@interface UTControlHitBuilder : UTHitBuilder + +-(instancetype) initWithCtrlName:(NSString *) pCtrlName; + +-(instancetype) initWithPageName:(NSString *) pPageName CtrlName:(NSString *) pCtrlName; + + +@end + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/UTCustomHitBuilder.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/UTCustomHitBuilder.h new file mode 100644 index 0000000..250091c --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/UTCustomHitBuilder.h @@ -0,0 +1,22 @@ +// +// UTCustomHitBuilder.h +// +// UserTrack +// 开发团队:数据通道团队 +// UT答疑群:11791581(钉钉) +// UT埋点平台答疑群:11779226(钉钉) +// +// Copyright (c) 2014-2017 Taobao. All rights reserved. +// + +#import "UTHitBuilder.h" + +@interface UTCustomHitBuilder : UTHitBuilder + +-(void) setEventLabel:(NSString *) pEventId; + +-(void) setEventPage:(NSString *) pPageName; + +-(void) setDurationOnEvent:(long long) durationOnEvent; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/UTDevice.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/UTDevice.h new file mode 100644 index 0000000..d3f0497 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/UTDevice.h @@ -0,0 +1,57 @@ +// +// UTDevice.h +// +// UserTrack +// 开发团队:数据通道团队 +// UT答疑群:11791581(钉钉) +// UT埋点平台答疑群:11779226(钉钉) +// +// Copyright (c) 2014-2017 Taobao. All rights reserved. +// + +// Version:utdid4all-1.1.0 + +#ifndef UTDIDDevice_h +#define UTDIDDevice_h + +#import + +@interface UTDevice : NSObject + +/** + * @brief 获取SDK生成的设备唯一标识. + * + * @warning 调用说明:这个设备唯一标识是持久的,并且格式安全,iOS6以及以下,多应用互通. + * + * 调用顺序:utdid任意时刻都可以调用. + * + * @return 24字节的设备唯一标识. + */ ++(NSString *) utdid; + +/** + * @brief 同步获得AID. + * + * @warning 调用说明:若本地端没有最新AID,将耗费远程通信时间并阻塞线程,建议将此调用置于非主线程,或使用{@link getAidAsync}异步获得AID。 + * + * 调用顺序:aid任意时刻都可以调用. + * + * @return AID. + */ ++(NSString *) aid:(NSString *)appName + token:(NSString *)token; + +/** + * @brief 异步请求AID. + * + * @warning 调用说明:若本地端没有最新AID,将建立异步请求获得AID, + * + * 调用顺序:aidAsync任意时刻都可以调用. + */ ++(void) aidAsync:(NSString *)appName + token:(NSString *)token + aidDelegate:(id)aidDelegate; + +@end + +#endif diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/UTExposureViewProtocol.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/UTExposureViewProtocol.h new file mode 100644 index 0000000..d61cb2e --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/UTExposureViewProtocol.h @@ -0,0 +1,51 @@ +// +// UTExposureViewProtocol.h +// +// UserTrack +// 开发团队:数据通道团队 +// UT答疑群:11791581(钉钉) +// UT埋点平台答疑群:11779226(钉钉) +// +// Copyright (c) 2014-2017 Taobao. All rights reserved. +// + +#import +#import +#import "UTExposureViewTag.h" + +@protocol UTExposureViewProtocol + +/** + view是否需要曝光 + + @param view 需要判断的view + @param url url + @return 是否需要曝光 + */ +- (BOOL)shouldExposeView:(UIView *)view withUrl:(NSString *)url; + +/** + 查询当前视图是否需要曝光,无曝光返回null,有曝光请填充相关block,index + + @param view 需要查询的view + @param url url + @return tag + */ +- (UTExposureViewTag *)exposureViewTagWithView:(UIView *)view andUrl:(NSString *)url; + +/** + 获取附加args数据 + + @param view 需要查询的view + @param url url + @return args + */ +- (NSDictionary *)exposureViewPropertiesWithView:(UIView *) view andUrl:(NSString *)url; + +/** + 所有曝光数据清除回调 + */ +- (void)onExposureDataCleared; + + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/UTExposureViewTag.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/UTExposureViewTag.h new file mode 100644 index 0000000..70ed5b9 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/UTExposureViewTag.h @@ -0,0 +1,23 @@ +// +// UTExposureViewTag.h +// +// UserTrack +// 开发团队:数据通道团队 +// UT答疑群:11791581(钉钉) +// UT埋点平台答疑群:11779226(钉钉) +// +// Copyright (c) 2014-2017 Taobao. All rights reserved. +// + +#import + +@interface UTExposureViewTag : NSObject + +//元素的分区,该参数决定该曝光日志和谁一起聚合上传;通常可以填写spm的a.b.c位 +@property (nonatomic, strong) NSString *block; +//元素的唯一标识,该参数决定该曝光日志是否已经曝光;通常可以填写spm的a.b.c.d +@property (nonatomic, strong) NSString *viewId; +//是否需要曝光,用来补偿shouldExposure接口判断错误的情况 +@property (nonatomic, assign) BOOL notExposure; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/UTHitBuilder.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/UTHitBuilder.h new file mode 100644 index 0000000..b04916a --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/UTHitBuilder.h @@ -0,0 +1,24 @@ +// +// UTHitBuilder.h +// +// UserTrack +// 开发团队:数据通道团队 +// UT答疑群:11791581(钉钉) +// UT埋点平台答疑群:11779226(钉钉) +// +// Copyright (c) 2014-2017 Taobao. All rights reserved. +// + +#import + + +@interface UTHitBuilder : NSObject + + +-(NSDictionary *) build; + +-(void) setProperty:(NSString *) pKey value:(NSString *) pValue; + +-(void) setProperties:(NSDictionary *) pPageProperties; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/UTHybridHelper.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/UTHybridHelper.h new file mode 100644 index 0000000..f2c7402 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/UTHybridHelper.h @@ -0,0 +1,31 @@ +// +// UTHybridHelper.h +// +// UserTrack +// 开发团队:数据通道团队 +// UT答疑群:11791581(钉钉) +// UT埋点平台答疑群:11779226(钉钉) +// +// Copyright (c) 2014-2017 Taobao. All rights reserved. +// + +#import +#import + + +@interface UTHybridHelper : NSObject + ++(UTHybridHelper *) getInstance; + +/** old interface for h5 */ +-(void) h5UT:(NSDictionary *) dataDict view:(UIView *) pView viewController:(UIViewController *) pViewController; + +/** new interface for h5 (2017) + * the requirment of new interface:https://aone.alibaba-inc.com/req/10079562 + */ + +-(void) h5UT2:(NSDictionary *) dataDict view:(UIView *) pView viewController:(UIViewController *) pViewController; + +-(void) setH5Url:(NSString *) url; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/UTIRequestAuthentication.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/UTIRequestAuthentication.h new file mode 100644 index 0000000..2e3dca9 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/UTIRequestAuthentication.h @@ -0,0 +1,22 @@ +// +// UTIRequestAuthentication.h +// +// UserTrack +// 开发团队:数据通道团队 +// UT答疑群:11791581(钉钉) +// UT埋点平台答疑群:11779226(钉钉) +// +// Copyright (c) 2014-2017 Taobao. All rights reserved. +// + +#ifndef UTIRequestAuthentication_h +#define UTIRequestAuthentication_h + +#import + +/** RequestAuthentication是废弃方法,空实现 */ +@protocol UTIRequestAuthentication + +@end + +#endif /* UTIRequestAuthentication_h */ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/UTOirginalCustomHitBuilder.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/UTOirginalCustomHitBuilder.h new file mode 100644 index 0000000..d92f3ad --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/UTOirginalCustomHitBuilder.h @@ -0,0 +1,28 @@ +// +// UTOirginalCustomHitBuilder.h +// +// UserTrack +// 开发团队:数据通道团队 +// UT答疑群:11791581(钉钉) +// UT埋点平台答疑群:11779226(钉钉) +// +// Copyright (c) 2014-2017 Taobao. All rights reserved. +// + +#import +#import "UTHitBuilder.h" +@interface UTOirginalCustomHitBuilder : UTHitBuilder + +-(void) setPageName:(NSString *) pPage; + +-(void) setEventId:(NSString *) pEventId; + +-(void) setArg1:(NSString *) pArg1; + +-(void) setArg2:(NSString *) pArg2; + +-(void) setArg3:(NSString *) pArg3; + +-(void) setArgs:(NSDictionary *) pArgs; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/UTPageHitBuilder.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/UTPageHitBuilder.h new file mode 100644 index 0000000..21fa9a1 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/UTPageHitBuilder.h @@ -0,0 +1,22 @@ +// +// UTPageHitBuilder.h +// +// UserTrack +// 开发团队:数据通道团队 +// UT答疑群:11791581(钉钉) +// UT埋点平台答疑群:11779226(钉钉) +// +// Copyright (c) 2014-2017 Taobao. All rights reserved. +// + +#import "UTHitBuilder.h" + +@interface UTPageHitBuilder : UTHitBuilder + +-(void) setPageName:(NSString *) pPageName; + +-(void) setReferPage:(NSString *) pReferPageName; + +-(void) setDurationOnPage:(long long ) durationTimeOnPage; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/UTPlugin.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/UTPlugin.h new file mode 100644 index 0000000..75e0ebd --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/UTPlugin.h @@ -0,0 +1,28 @@ +// +// UTPlugin.h +// +// UserTrack +// 开发团队:数据通道团队 +// UT答疑群:11791581(钉钉) +// UT埋点平台答疑群:11779226(钉钉) +// +// Copyright (c) 2014-2017 Taobao. All rights reserved. +// + +#import + +/** + UTPlugin为特殊接口,一般为UT内部自用,误用会造成重大影响,使用前必须联系@苍井、@芮奇 + */ +@protocol UTPlugin + +- (NSSet *)getAttentionEventIds; + +- (NSDictionary *)onBeforeEventDispatchWithPage:(NSString *)page + eventId:(NSString *)eventId + arg1:(NSString *)arg1 + arg2:(NSString *)arg2 + arg3:(NSString *)arg3 + args:(NSString *)args; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/UTSecuritySDKRequestAuthentication.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/UTSecuritySDKRequestAuthentication.h new file mode 100644 index 0000000..4f5774a --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/UTSecuritySDKRequestAuthentication.h @@ -0,0 +1,19 @@ +// +// UTSecuritySDKRequestAuthentication.h +// +// UserTrack +// 开发团队:数据通道团队 +// UT答疑群:11791581(钉钉) +// UT埋点平台答疑群:11779226(钉钉) +// +// Copyright (c) 2014-2017 Taobao. All rights reserved. +// + +#import +#import "UTIRequestAuthentication.h" + +@interface UTSecuritySDKRequestAuthentication : NSObject + +-(instancetype) initWithAppKey:(NSString *) pAppKey; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/UTTPKItem.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/UTTPKItem.h new file mode 100644 index 0000000..d86b965 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/UTTPKItem.h @@ -0,0 +1,32 @@ +// +// UTTPKItem.h +// +// UserTrack +// 开发团队:数据通道团队 +// UT答疑群:11791581(钉钉) +// UT埋点平台答疑群:11779226(钉钉) +// +// Copyright (c) 2014-2017 Taobao. All rights reserved. +// + +#import + +@interface UTTPKItem : NSObject + +/*透传key + */ +@property NSString * key; +/*透传方式,有两种: + *就近:@"nearby" + *就远:@"far" + */ +@property NSString * type; +/*获取透传key对应的value,有四种来源方式: + *从url获取:${url|keyx} + *从updatePageProperties获取:${ut|keyx} + *先从updatePageProperties获取,然后从url获取:${keyx} + *静态值:valuex + */ +@property NSString * fetchRule; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/UTTeamWork.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/UTTeamWork.h new file mode 100644 index 0000000..6b2e4e1 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/UTTeamWork.h @@ -0,0 +1,65 @@ +// +// UTTeamWork.h +// +// UserTrack +// 开发团队:数据通道团队 +// UT答疑群:11791581(钉钉) +// UT埋点平台答疑群:11779226(钉钉) +// +// Copyright (c) 2014-2017 Taobao. All rights reserved. +// + +#import +#import "UTExposureViewProtocol.h" + +@interface UTTeamWork : NSObject + ++(void) turnOnRealTimeDebug:(NSDictionary *) pDict; + ++(void) trunOffRealTimeDebug; + ++ (void)setConfigMgr:(NSDictionary *) pDict withNameSpace: (NSString *) pName isUpdate:(BOOL) isUpdate; + ++ (void)setHasOrange; + +//UT内部已经可以判断是二方的安全黑匣子还是三方的安全黑匣子 +//该接口已经被空实现,无需调用了 ++ (void)appIsOpenSet __deprecated; + +/** + * @brief 自定义https上传域名 + * + * @param url 指定的https上传域名,比如以https://开头 + * + * @warning 调用说明:需要在初始化UT之前调用(setAppkey之前) + */ ++ (void)setHttpsUploadUrl:(NSString *)url; + +/** + * @brief 自定义tnet上传域名 + * + * @param host 指定的tnet上传域名 + * @param port 指定的tnet上传端口 + * + * @warning 调用说明:需要在初始化UT之前调用(setAppkey之前) + */ ++ (void)setTnetHost:(NSString *)host por:(unsigned int)port; + ++ (void)registerExposureViewHandler:(id)handler; + ++ (id)utExposureViewHandler; + ++ (void)unregisterExposureViewHandler:(id)handler; + +/* + * 忽略当前视图下所有视图的曝光。扫描时遇见该标志时,该视图及视图以下所有子视图均被忽略,不会被计算; + * @param view + */ ++ (void)setIgnoreTagForExposureView:(UIView *) view; + +/* + * 清除View的Ignore标记。View及以下所有子View都会被扫描到,和setIgnoreTagForExposureView:(UIView *) view对应 + * @param view + */ ++ (void)clearIgnoreTagForExposureView:(UIView *) view; +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/UTTraceStack.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/UTTraceStack.h new file mode 100644 index 0000000..4adb969 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/UTTraceStack.h @@ -0,0 +1,29 @@ +// +// UTTraceStack.h +// +// UserTrack +// 开发团队:数据通道团队 +// UT答疑群:11791581(钉钉) +// UT埋点平台答疑群:11779226(钉钉) +// +// Copyright (c) 2014-2017 Taobao. All rights reserved. +// + +#ifndef UTSDK_UTTraceStack_h +#define UTSDK_UTTraceStack_h +#import + +@interface UTTraceStack : NSObject + +@property(readwrite) int capacity; + ++(UTTraceStack *) defaultInstance; + +-(void) addTrace:(NSString *)aTraceContent; + +-(NSArray *) getTraceStack; + +@end + + +#endif diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/UTTracker.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/UTTracker.h new file mode 100644 index 0000000..d8894ae --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/UTTracker.h @@ -0,0 +1,298 @@ +// +// UTTracker.h +// +// UserTrack +// 开发团队:数据通道团队 +// UT答疑群:11791581(钉钉) +// UT埋点平台答疑群:11779226(钉钉) +// +// Copyright (c) 2014-2017 Taobao. All rights reserved. +// + +#import +#import +#import +#import "UTTPKItem.h" +typedef enum _UTPageStatus{ + UT_H5_IN_WebView//设置容器中的H5页面事件的eventid为2001,不设置默认为2006 +} UTPageStatus; + +@interface UTTracker : NSObject + +-(instancetype) initWithTrackId:(NSString *) pTrackId; + +-(void) setGlobalProperty:(NSString *) pKey value:(NSString *) pValue; + +-(void) removeGlobalProperty:(NSString *) pKey; + +-(NSString *) getGlobalProperty:(NSString *) pKey; + +-(void) send:(NSDictionary *) pLogDict; + +#pragma mark 页面埋点 +/** + * @brief 页面进入. + * + * @param pPageObject 页面对象,如viewcontroller指针 + * + * @warning 调用说明:1.必须和pageDisAppear配对使用,否则不会成功埋点 + * 2.确定页面名称优先级:updatePageName > NSStringFromClass(pObject.class) + * + * 最佳位置:若是viewcontroller页面,则需在viewDidAppear函数内调用 + */ +-(void) pageAppear:(id) pPageObject; + +/** + * @brief 页面进入. + * + * @param pPageObject 页面对象,如viewcontroller指针 + * @param pPageName 页面名称,如Page_Detail + * + * @warning 调用说明:1.必须和pageDisAppear配对使用,否则不会成功埋点 + * 2.确定页面名称优先级:updatePageName > pPageName > NSStringFromClass(pObject.class) + * 若当调用pageAppear时已知页面名称,强烈建议使用该接口 + * 最佳位置:若是viewcontroller页面,则需在viewDidAppear函数内调用 + */ +-(void) pageAppear:(id) pPageObject withPageName:(NSString *) pPageName; + +/** + * @brief 页面离开. + * + * @param pPageObject 页面对象,如viewcontroller指针 + * + * @warning 调用说明:必须和pageAppear配对使用,否则不会成功埋点 + * + * 最佳位置:若是viewcontroller页面,则需在viewDidDisAppear函数内调用 + */ +-(void) pageDisAppear:(id) pPageObject; + +/** + * @brief 更新页面业务参数. + * + * @param pPageObject 页面对象,如viewcontroller指针 + * @param pProperties 业务参数,kv对 + * + * @warning 调用说明:必须在pageDisAppear之前调用 + * + * 最佳位置:在pageDisAppear之前调用即可 + */ +-(void) updatePageProperties:(id) pPageObject properties:(NSDictionary *) pProperties; + +/** + * @brief 更新页面业务参数. + * + * @param pProperties 传给下一个页面业务参数,kv对 + * + * @warning 调用说明:必须在下一个页面pageAppear之前调用,否则会携带错误 + * + * 最佳位置:必须在下一个页面pageAppear之前调用 + */ +-(void) updateNextPageProperties:(NSDictionary *) pProperties; + +/** + * @brief 添加业务透传参数. + * + * @param pItem 透传规则 + * + * @warning 调用说明: + * + * 最佳位置:需要进行透传的初始位置,该位置以后的页面事件会进行透传对应参数, + * 切后台超过30秒再切前台,透传参数会被自动清除 + */ +-(void) addTPKItem:(UTTPKItem *) pItem; + + +/** + 只修改tpk数据输出,不执行从页面属性和url中取值 + 数据和Cache数据生命周期相同,Session变更后数据清除 + + @param tpkKey tpk透传key + @param tpkValue tpk透传value + */ +- (void)addTPKCache:(NSString *)tpkKey value:(NSString *)tpkValue; + +#pragma mark 页面埋点的辅助函数 +/** + * @brief 更新页面名称. + * + * @param pPageObject 页面对象,如viewcontroller指针 + * @param pPageName 更新后的页面名称 + * + * @warning 调用说明:只有当调用pageAppear时还未知页面名称,后续可使用该接口更新 + * + * 最佳位置:在pageDisAppear之前调用 + */ +-(void) updatePageName:(id) pPageObject pageName:(NSString *) pPageName; + +/** + * @brief 更新页面url. + * + * @param pPageObject 页面对象,如viewcontroller指针 + * @param pUrl 页面对应的url + * + * @warning 调用说明:如手淘统一导航将每次页面跳转的url塞给对应的viewcontroller + * + * 最佳位置:在pageDisAppear之前调用 + */ +-(void) updatePageUrl:(id) pPageObject url:(NSURL *) pUrl; + +/** + * @brief 更新页面状态. + * + * @param pPageObject 页面对象,如viewcontroller指针 + * @param aStatus 页面状态 enum类型 + * + * @warning 调用说明:告知页面处于某些特殊的业务场景,如回退等 + * + * 最佳位置:必须在pageAppear之前调用 + */ +-(void) updatePageStatus:(id) pPageObject status:(UTPageStatus) aStatus; + + +-(void) skipPage:(id) pPageObject; + +//!!!只提供特殊用途,需要使用时需跟ut方面同学沟通!!! +-(NSDictionary *) getPageProperties:(id) pPageObject; + +/** + !!!只提供特殊用途,需要使用时需跟ut方面同学沟通!!! + 获取页面spm-url,实时计算结果 + + @param pPageObject 推荐为VC对象 + @return 计算出来的spm-url,可能为空 + */ +- (NSString *)getPageSpmUrl:(id)pPageObject; + +/** + !!!只提供特殊用途,需要使用时需跟ut方面同学沟通!!! + 获取页面spm-pre,实时计算结果 + + @param pPageObject 推荐为VC对象 + @return 计算出来的spm-pre,可能为空 + */ +- (NSString *)getPageSpmPre:(id)pPageObject; + +/** + !!!只提供特殊用途,需要使用时需跟ut方面同学沟通!!! + 获取utparam-url,实时计算结果 + + @param pPageObject 推荐为VC对象 + @return 计算出来的utparam-url,可能为空 + */ +- (NSString *)getUtParamUrl:(id)pPageObject; + +/** + !!!只提供特殊用途,需要使用时需跟ut方面同学沟通!!! + 获取utparam-pre,实时计算结果 + + @param pPageObject 推荐为VC对象 + @return 计算出来的utparam-pre,可能为空 + */ +- (NSString *)getUtParamPre:(id)pPageObject; + +/** + !!!只提供特殊用途,需要使用时需跟ut方面同学沟通!!! + 获取scm-pre,实时计算结果 + + @param pPageObject 推荐为VC对象 + @return 计算出来的scm-pre,可能为空 + */ +- (NSString *)getScmPre:(id)pPageObject; + +/** + * 获取页面属性. 包括:spm-cnt,spm-url,spm-pre,utparam-cnt,utparam-url,utparam-pre + * + * 注意: + * 1.该方法必须在pageAppear和pageDisappear的中间过程调用 + * 2.传入的pageObject必须和pageAppear的pageObject为同一对象 + * 3.该方法不支持H5容器页面 + * 4.异常情况返回值为null,请注意做非空判断 + */ + +- (NSDictionary *)getPageAllProperties:(id)pPageObject; + +#pragma mark utparam interface +/** 新增接口:更新utparam到这一个页面 **/ +-(void) updatePageUtparam:(id) pPageObject utParamJson:(NSString *) utParamJsonStr; + +/** 新增接口:更新utparam-url到下一个页面 **/ +-(void) updateNextPageUtparam:(NSString *) utParamJsonStr; +/** 新增接口:更新utparam-cnt到下一个页面 **/ +-(void) updateNextPageUtparamCnt:(NSString *) utParamJsonStr; +#pragma mark exposure interface + +/** + @deprecated This method has been deprecated.Please using setExposureView:block:viewId:args: + */ + +- (void) setExposureView:(UIView *) view + controlName:(NSString *)controlName + viewIndex:(NSString *) viewIndex + args:(NSDictionary *)dict DEPRECATED_ATTRIBUTE; + +/** + 设置曝光元素标识 + + @param view 需要曝光的视图 + @param block 曝光所属的分区 + @param viewId 视图唯一id + @param args 附加信息,如果有spm、scm,请按照spm,scm小写字符串为key传入 + */ +- (void)setExposureView:(UIView *)view + block:(NSString *)block + viewId:(NSString *)viewId + args:(NSDictionary *)args; + +/** + 设置曝光元素标识 + + @param view 需要曝光的视图 + @param block 曝光所属的分区 + @param viewId 视图唯一id + @param pageName 页面名称 + @param args 附加信息,如果有spm、scm,请按照spm,scm小写字符串为key传入 + */ +- (void)setExposureView:(UIView *)view + block:(NSString *)block + viewId:(NSString *)viewId + pageName:(NSString *)pageName + args:(NSDictionary *)args; + +/** + 刷新当前页面的曝光数据;当应用更新数据后,可以通过该接口主动更新,SDK会重新曝光。否则当前页面已经曝光的数据不再曝光 + */ +- (void) refreshPageExposure; + +/** + 刷新当前页面的曝光数据;当应用更新数据后,可以通过该接口主动更新,SDK会重新曝光。否则当前页面已经曝光的数据不再曝光 + + @param block 刷新范围为区块 + */ +- (void) refreshBlockExposure:(NSString *)block; + +/** + @deprecated This method has been deprecated.Please using refreshExposureViewWithBlock:andViewId: + */ +- (void) refreshViewExposure:(NSString *)block viewIndex:(NSString *) viewIndex DEPRECATED_ATTRIBUTE; + +/** + 刷新当前页面的曝光数据;当应用更新数据后,可以通过该接口主动更新,SDK会重新曝光。否则当前页面已经曝光的数据不再曝光 + + @param block 曝光所属的分区 + @param viewId 视图唯一id + */ +- (void) refreshExposureViewWithBlock:(NSString *)block andViewId:(NSString *)viewId; + +/** + 触发提交自动曝光数据,已提交的曝光坑位,在离开页面前不会再次曝光(除非调用refresh) + */ +- (void)commitExposureData; + +/** + 用于设置自动曝光取消聚合的block,被设置的block(即自动曝光的arg1)内的view,满足曝光条件的view消失后会立即产生曝光日志 + + @param block block + */ +- (void)setCommitImmediatelyExposureBlock:(NSString *)block; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/UTTrackerListenerMgr.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/UTTrackerListenerMgr.h new file mode 100644 index 0000000..91bf773 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/UTTrackerListenerMgr.h @@ -0,0 +1,30 @@ +// +// UTTrackerListenerMgr.h +// miniUTSDK +// +// Created by ljianfeng on 2019/3/5. +// Copyright © 2019 Taobao.com. All rights reserved. +// + +#import +#import "UTTracker.h" +NS_ASSUME_NONNULL_BEGIN +@protocol UTTrackerListener +@required +- (NSString *)trackerListenerName; +@optional +- (void)send:(NSDictionary *)logMap tracker:(UTTracker *)tracker; +- (void)updatePageProperties:(id)pPageObject properties:(NSDictionary *)pProperties tracker:(UTTracker *)tracker; +- (void)updatePageName:(id)pPageObject pageName:(NSString *)pPageName tracker:(UTTracker *)tracker; +- (void)updateNextPageProperties:(NSDictionary *)properties tracker:(UTTracker *)tracker; +- (void)pageDisAppear:(id)pPageObject tracker:(UTTracker *)tracker; +- (void)pageAppear:(id)pPageObject withPageName:(NSString *)pPageName tracker:(UTTracker *)tracker; +@end +@interface UTTrackerListenerMgr : NSObject ++ (void)registerTrackerListener:(id )listener; ++ (void)unregisterTrackerListener:(id )listener; + ++ (NSArray > *)getActiveListeners; +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/WVTBUserTrack.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/WVTBUserTrack.h new file mode 100644 index 0000000..b2513d0 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/WVTBUserTrack.h @@ -0,0 +1,58 @@ +// +// WVTBUserTrack.h +// +// UserTrack +// 开发团队:数据通道团队 +// UT答疑群:11791581(钉钉) +// UT埋点平台答疑群:11779226(钉钉) +// +// Copyright (c) 2014-2017 Taobao. All rights reserved. +// +#ifdef nowv +#import +#import +//#import + +@interface WVTBUserTrack : WVDynamicHandler + +/** + * 连接UT和H5的接口 + * + * @param data + */ +//+ (void)toUT:(NSDictionary*)data withCallback:(WVJSBResponse) callback withWebView:(UIView *) webview withViewController:(UIViewController *) viewController; + ++ (void)toUT:(NSDictionary*)data withCallback:(WVJSBResponse) callback withWebView:(UIView * ) webview withViewController:(UIViewController *) viewController; + ++ (void)toUT2:(NSDictionary*)data withCallback:(WVJSBResponse) callback withWebView:(UIView * ) webview withViewController:(UIViewController *) viewController; + +/** + * 运行时开始实时调试模式接口 + * + * @param data + */ +//+ (void)turnOnUTRealtimeDebug:(NSDictionary*)data withCallback:(WVJSBResponse) callback withWebView:(UIView *) webview withViewController:(UIViewController *) viewController; + +/** + * 运行时关闭实时调试模式接口 + * + * @param data + */ +//+ (void)turnOffUTRealtimeDebug:(NSDictionary*)data withCallback:(WVJSBResponse) callback withWebView:(UIView *) webview withViewController:(UIViewController *) viewController; + +//+ (void)turnOnAppMonitorRealtimeDebug:(NSDictionary*)data withCallback:(WVJSBResponse) callback withWebView:(UIView *) webview withViewController:(UIViewController *) viewController; + +//+ (void)turnOffAppMonitorRealtimeDebug:(NSDictionary*)data withCallback:(WVJSBResponse) callback withWebView:(UIView *) webview withViewController:(UIViewController *) viewController; + ++ (void)turnOnRealtimeDebug:(NSDictionary*)data withCallback:(WVJSBResponse) callback withWebView:(UIView *) webview withViewController:(UIViewController *) viewController; ++ (void)turnOnUTRealtimeDebug:(NSDictionary*)data withCallback:(WVJSBResponse) callback withWebView:(UIView *) webview withViewController:(UIViewController *) viewController; + ++ (void)turnOffRealtimeDebug:(NSDictionary*)data withCallback:(WVJSBResponse) callback withWebView:(UIView *) webview withViewController:(UIViewController *) viewController; + ++ (NSDictionary *)GetPageUtparamToAplus; + ++ (void)skipPage:(NSDictionary *)params withWVBridgeContext:(id)context; + +@end + +#endif diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/ut_c_api.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/ut_c_api.h new file mode 100644 index 0000000..b1770cb --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Headers/ut_c_api.h @@ -0,0 +1,132 @@ +//// +//// ut_c_api.h +//// +//// UserTrack +//// 开发团队:数据通道团队 +//// UT答疑群:11791581(钉钉) +//// UT埋点平台答疑群:11779226(钉钉) +//// +//// Copyright (c) 2014-2017 Taobao. All rights reserved. +//// +// +//#ifndef ut_c_api_h +//#define ut_c_api_h +// +//#include +//#include +// +//#ifdef __cplusplus +//extern "C" { +//#endif /* __cplusplus */ +// +//// 性能埋点表字段名struct +//typedef struct ut_stat_table_field_names { +// char **col_names;//数组,列字段名列表:注,数组最后需要以NULL结尾,如 {"col1","col2","col3", NULL}; +// char **row_names;//数组,行字段名列表 +// bool is_aggregate;//标记是否提交明细。需要提交明细时设置为false,否则为true +//} ut_stat_table_field_names; +// +//// 性能埋点表内容struct +//typedef struct ut_stat_table_contents { +// char **col_names;//数组,与ut_stat_table_field_names列字段名列表一一对应 +// char **row_names;//数组,与ut_stat_table_field_names行字段名列表一一对应 +// char **col_values;//数组,与列字段名列表一一对应列值 +// char **row_values;//数组,与列字段名列表一一对应行值 +//} ut_stat_table_contents; +// +//// COUNTER +// +///** +// * 实时计数接口.(每次commit会累加一次count,value也会累加)可用于服务端计算总次数或求平均值。 +// * 此接口数据量不应太大, +// * +// * @param module 操作发生所在的页面 +// * @param monitorPoint 监控点名称 +// * @param value 数值 +// */ +//void ut_counter_commit(const char *module, const char *monitorPoint, double value); +// +///** +// * 实时计数接口.(每次commit会累加一次count,value也会累加)可用于服务端计算总次数或求平均值。 +// * 此接口数据量不应太大, +// * +// * @param module 操作发生所在的页面 +// * @param monitorPoint 监控点名称 +// * @param value 数值 +// * @param arg 附加参数 +// */ +//void ut_counter_commit_arg(const char *module, const char *monitorPoint, double value, const char *arg); +// +//// ALARM +// +///** +// * 记录业务操作成功接口 +// * +// * @param module 模块 +// * @param monitorPoint 监控点 +// */ +//void ut_alarm_commitSuccess(const char *module, const char *monitorPoint); +// +///** +// * 记录业务操作成功接口 +// * +// * @param module 模块 +// * @param monitorPoint 监控点 +// * @arg 附加参数,用于做横向扩展 +// */ +//void ut_alarm_commitSuccess_arg(const char *module, const char *monitorPoint, const char *arg); +// +///** +// * 记录业务操作失败接口 +// * +// * @param module 模块 +// * @param monitorPoint 监控点 +// * @param errCode 错误码,若为MTOP请求则传MTOP的错误码,否则请业务方对错误进行分类编码,方便统计错误类型占比 +// * @param errMsg 错误信息,若位MTOP请求则传MTOP的错误信息, 否则请业务方自己描述错误, 方便自己查找原因 +// */ +//void ut_alarm_commitFail(const char *module, const char *monitorPoint, const char *errCode, const char *errMsg); +// +///** +// * 记录业务操作失败接口 +// * +// * @param module 模块 +// * @param monitorPoint 监控点 +// * @param errCode 错误码,若为MTOP请求则传MTOP的错误码,否则请业务方对错误进行分类编码,方便统计错误类型占比 +// * @param errMsg 错误信息,若位MTOP请求则传MTOP的错误信息, 否则请业务方自己描述错误, 方便自己查找原因 +// * @arg 附加参数,用于做横向扩展 +// */ +//void ut_alarm_commitFail_arg(const char *module, const char *monitorPoint, const char *errCode, const char *errMsg, const char *arg); +// +//// STAT +// +///** +// * 注册性能埋点 +// * +// * @param module 模块 +// * @param monitorPoint 监控点 +// * @param fieldNames 注册表字段名列表 +// */ +//void ut_stat_table_register(const char *module, const char *monitorPoint, ut_stat_table_field_names *fieldNames); +// +///** +// * 添加性能埋点的表约束([行]指标) +// * +// * @param name 表字段名 +// * @param min 最小约束值 +// * @param max 最大约束值 +// * @param defaultValue 默认值 +// */ +//void ut_stat_table_addConstraint(const char *module, const char *monitorPoint, const char *name, double min, double max, double defaultValue); +// +///** +// * 提交性能埋点的表([行]指标)数据 +// * +// * @param contents 表数据内容 +// */ +//void ut_stat_table_commit(const char *module, const char *monitorPoint, ut_stat_table_contents *contents); +// +//#ifdef __cplusplus +//} +//#endif +// +//#endif /* ut_c_api_h */ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Resources/Info.plist b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Resources/Info.plist new file mode 100644 index 0000000..4165149 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/Resources/Info.plist differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/UT b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/UT new file mode 100644 index 0000000..5fa95ab Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/6.0.0/UT differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/Current b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/Current new file mode 120000 index 0000000..f4965a3 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT.framework/Versions/Current @@ -0,0 +1 @@ +6.0.0 \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT_AppMonitor.framework/Headers/UT_Appmonitor.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT_AppMonitor.framework/Headers/UT_Appmonitor.h new file mode 100644 index 0000000..12592ec --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT_AppMonitor.framework/Headers/UT_Appmonitor.h @@ -0,0 +1,19 @@ +// +// UT_Appmonitor.h +// UT_Appmonitor +// +// Created by ljianfeng on 2019/6/4. +// Copyright © 2019 Taobao.com. All rights reserved. +// + +#import + +//! Project version number for UT_Appmonitor. +FOUNDATION_EXPORT double UT_AppmonitorVersionNumber; + +//! Project version string for UT_Appmonitor. +FOUNDATION_EXPORT const unsigned char UT_AppmonitorVersionString[]; + +// In this header, you should import all the public headers of your framework using statements like #import + + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT_AppMonitor.framework/Info.plist b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT_AppMonitor.framework/Info.plist new file mode 100644 index 0000000..887dc37 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT_AppMonitor.framework/Info.plist @@ -0,0 +1,51 @@ + + + + + BuildMachineOSBuild + 17G65 + CFBundleDevelopmentRegion + English + CFBundleExecutable + UT_AppMonitor + CFBundleIdentifier + com.alibaba-inc.UT-Appmonitor + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + UT_AppMonitor + CFBundlePackageType + FMWK + CFBundleShortVersionString + 7.0.9.9-SNAPSHOT + CFBundleSupportedPlatforms + + iPhoneOS + + CFBundleVersion + 1 + DTCompiler + com.apple.compilers.llvm.clang.1_0 + DTPlatformBuild + 16B91 + DTPlatformName + iphoneos + DTPlatformVersion + 12.1 + DTSDKBuild + 16B91 + DTSDKName + iphoneos12.1 + DTXcode + 1010 + DTXcodeBuild + 10B61 + MinimumOSVersion + 8.0 + UIDeviceFamily + + 1 + 2 + + + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT_AppMonitor.framework/Modules/module.modulemap b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT_AppMonitor.framework/Modules/module.modulemap new file mode 100644 index 0000000..bc3ea9c --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT_AppMonitor.framework/Modules/module.modulemap @@ -0,0 +1,6 @@ +framework module UT_AppMonitor { + umbrella header "UT_AppMonitor.h" + + export * + module * { export * } +} diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT_AppMonitor.framework/UT_AppMonitor b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT_AppMonitor.framework/UT_AppMonitor new file mode 100644 index 0000000..5d5b7c7 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT_AppMonitor.framework/UT_AppMonitor differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT_Common.framework/Headers/UT_Common.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT_Common.framework/Headers/UT_Common.h new file mode 100644 index 0000000..faf354b --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT_Common.framework/Headers/UT_Common.h @@ -0,0 +1,19 @@ +// +// UT_Common.h +// UT_Common +// +// Created by ljianfeng on 2019/6/4. +// Copyright © 2019 Taobao.com. All rights reserved. +// + +#import + +//! Project version number for UT_Common. +FOUNDATION_EXPORT double UT_CommonVersionNumber; + +//! Project version string for UT_Common. +FOUNDATION_EXPORT const unsigned char UT_CommonVersionString[]; + +// In this header, you should import all the public headers of your framework using statements like #import + + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT_Common.framework/Info.plist b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT_Common.framework/Info.plist new file mode 100644 index 0000000..f241432 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT_Common.framework/Info.plist @@ -0,0 +1,51 @@ + + + + + BuildMachineOSBuild + 18A391 + CFBundleDevelopmentRegion + English + CFBundleExecutable + UT_Common + CFBundleIdentifier + com.alibaba-inc.UT-Common + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + UT_Common + CFBundlePackageType + FMWK + CFBundleShortVersionString + 7.0.9.9-SNAPSHOT + CFBundleSupportedPlatforms + + iPhoneOS + + CFBundleVersion + 1 + DTCompiler + com.apple.compilers.llvm.clang.1_0 + DTPlatformBuild + 16B91 + DTPlatformName + iphoneos + DTPlatformVersion + 12.1 + DTSDKBuild + 16B91 + DTSDKName + iphoneos12.1 + DTXcode + 1010 + DTXcodeBuild + 10B61 + MinimumOSVersion + 8.0 + UIDeviceFamily + + 1 + 2 + + + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT_Common.framework/Modules/module.modulemap b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT_Common.framework/Modules/module.modulemap new file mode 100644 index 0000000..2df883e --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT_Common.framework/Modules/module.modulemap @@ -0,0 +1,6 @@ +framework module UT_Common { + umbrella header "UT_Common.h" + + export * + module * { export * } +} diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT_Common.framework/UT_Common b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT_Common.framework/UT_Common new file mode 100644 index 0000000..505f31f Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT_Common.framework/UT_Common differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT_Core.framework/Headers/UT_Core.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT_Core.framework/Headers/UT_Core.h new file mode 100644 index 0000000..1124ea7 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT_Core.framework/Headers/UT_Core.h @@ -0,0 +1,19 @@ +// +// UT_Core.h +// UT_Core +// +// Created by ljianfeng on 2019/6/3. +// Copyright © 2019 Taobao.com. All rights reserved. +// + +#import + +//! Project version number for UT_Core. +FOUNDATION_EXPORT double UT_CoreVersionNumber; + +//! Project version string for UT_Core. +FOUNDATION_EXPORT const unsigned char UT_CoreVersionString[]; + +// In this header, you should import all the public headers of your framework using statements like #import + + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT_Core.framework/Info.plist b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT_Core.framework/Info.plist new file mode 100644 index 0000000..db5fb1b --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT_Core.framework/Info.plist @@ -0,0 +1,51 @@ + + + + + BuildMachineOSBuild + 21G83 + CFBundleDevelopmentRegion + English + CFBundleExecutable + UT_Core + CFBundleIdentifier + com.alibaba-inc.UT-Core + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + UT_Core + CFBundlePackageType + FMWK + CFBundleShortVersionString + 7.2.0.9-bc + CFBundleSupportedPlatforms + + iPhoneOS + + CFBundleVersion + 1 + DTCompiler + com.apple.compilers.llvm.clang.1_0 + DTPlatformBuild + 19C51 + DTPlatformName + iphoneos + DTPlatformVersion + 15.2 + DTSDKBuild + 19C51 + DTSDKName + iphoneos15.2 + DTXcode + 1321 + DTXcodeBuild + 13C100 + MinimumOSVersion + 8.0 + UIDeviceFamily + + 1 + 2 + + + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT_Core.framework/Modules/module.modulemap b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT_Core.framework/Modules/module.modulemap new file mode 100644 index 0000000..7976bdc --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT_Core.framework/Modules/module.modulemap @@ -0,0 +1,6 @@ +framework module UT_Core { + umbrella header "UT_Core.h" + + export * + module * { export * } +} diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT_Core.framework/UT_Core b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT_Core.framework/UT_Core new file mode 100644 index 0000000..97d7091 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/BCUserTrack/UT_Core.framework/UT_Core differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/AliHADeviceEvaluation.framework/AliHADeviceEvaluation b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/AliHADeviceEvaluation.framework/AliHADeviceEvaluation new file mode 100644 index 0000000..20309b5 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/AliHADeviceEvaluation.framework/AliHADeviceEvaluation differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/AliHADeviceEvaluation.framework/Headers/AliHADeviceEvaluation.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/AliHADeviceEvaluation.framework/Headers/AliHADeviceEvaluation.h new file mode 100644 index 0000000..26fe94f --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/AliHADeviceEvaluation.framework/Headers/AliHADeviceEvaluation.h @@ -0,0 +1,146 @@ +// +// DeviceDiagnose.h +// 硬件信息检查 +// +// Created by hansong.lhs on 2017/12/27. +// Copyright © 2017年 alibaba. All rights reserved. +// +#import +#import +#import + +/** + * evaluation for each target(cpu, memory, storage, display, battery, and the overall device) + */ +typedef NS_ENUM(NSUInteger, AliHADeviceEvaluationLevel) { + UNKNOW_LEVEL, + HIGH_END_DEVICE, + MEDIUM_DEVICE, + LOW_END_DEVICE +}; + +/** + * evaluation for each target(cpu, memory, storage, display, battery, and the overall device) at runtime + */ +typedef NS_ENUM(NSUInteger, AliHARuntimeEvaluationLevel) { + DEVICE_IS_GOOD, + DEVICE_IS_NORMAL, + DEVICE_IS_RISKY, + DEVICE_IS_FATAL, +}; + +/** + * general device info, including device brand and model + */ +@interface AliHADeviceInfo : NSObject + +@property (nonatomic, copy) NSString *deviceBrand; +@property (nonatomic, copy) NSString *deviceModel; +@property (nonatomic, copy) NSString *osVersion; + +@end + +/** + * cpu info + */ +@interface AliHACPUInfo : NSObject + +@property (nonatomic, assign) float frequency; +@property (nonatomic, copy) NSString *model; +@property (nonatomic, assign) NSUInteger numCores; +@property (nonatomic, assign) float cpuUsageOfApp; // cpu usage of app, percentage * 100 +@property (nonatomic, assign) float cpuUsageOfDevice; // cpu usage of device, percentage * 100 +@property (nonatomic, assign) AliHADeviceEvaluationLevel deviceLevel; // static device level +@property (nonatomic, assign) AliHARuntimeEvaluationLevel runtimeLevel; // dynamic runtime level + +@end + +/** + * memory info + */ +@interface AliHAMemoryInfo : NSObject + +@property (nonatomic, assign) unsigned long long totalMemeory; // total memory in M +@property (nonatomic, assign) float freeMemory; // free memory in M +@property (nonatomic, assign) float residentMemory; // resident memory in M +@property (nonatomic, assign) float virtualMemory; // virtual memory size in M +@property (nonatomic, assign) float internal_plus_compressed; // internal + compressed in M +@property (nonatomic, assign) float physFootprint; // physical footprint +@property (nonatomic, assign) NSInteger systemMemoryLevel; // memory level +@property (nonatomic, assign) AliHADeviceEvaluationLevel deviceLevel; // static device level +@property (nonatomic, assign) AliHARuntimeEvaluationLevel runtimeLevel; // dynamic runtime level + +@end + +/** + * screen display info + */ +@interface AliHADisplayInfo : NSObject + +@property (nonatomic, assign) CGSize screenSize; +@property (nonatomic, assign) NSUInteger density; +@property (nonatomic, assign) CGSize resolution; +@property (nonatomic, assign) AliHADeviceEvaluationLevel deviceLevel; // static device level + +@end + +/** + * storage info + */ +@interface AliHAStorageInfo : NSObject + +@property (nonatomic, assign) unsigned long long maxStorage; // max storage in M +@property (nonatomic, assign) unsigned long long freeStorage; // free storage in M +@property (nonatomic, assign) NSUInteger readSpeed; // read speed, M/s +@property (nonatomic, assign) NSUInteger writeSpeed; // write speed, M/s +@property (nonatomic, assign) AliHADeviceEvaluationLevel deviceLevel; // static device level + +@end + +/** + * battery info + */ +@interface AliHABatteryInfo : NSObject + +@end + +@interface AliHADeviceEvaluation : NSObject + ++ (AliHADeviceInfo *)getDeviceInfo; + +/** + * get memory info(no cache) + */ ++ (AliHAMemoryInfo *)getMemoryInfo; + +/** + * get cpu info(no cache) + */ ++ (AliHACPUInfo *)getCPUInfo; + +/** + * get storage info(cached) + */ ++ (AliHAStorageInfo *)getStorageInfo; + +/** + * get battery info(no cache) + */ ++ (AliHABatteryInfo *)getBatteryInfo; + +/** + * get display info + */ ++ (AliHADisplayInfo *)getDisplayInfo; + +/** + * overall evaluation for device + */ ++ (AliHADeviceEvaluationLevel)evaluationForDeviceLevel; + +/** + * runtime device level + */ ++ (AliHARuntimeEvaluationLevel)evaluationForRuntimeLevel; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/AliHADeviceEvaluation.framework/Info.plist b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/AliHADeviceEvaluation.framework/Info.plist new file mode 100644 index 0000000..dc2e044 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/AliHADeviceEvaluation.framework/Info.plist @@ -0,0 +1,52 @@ + + + + + BuildMachineOSBuild + 17G65 + CFBundleDevelopmentRegion + en + CFBundleDisplayName + Cloakroom + CFBundleExecutable + AliHADeviceEvaluation + CFBundleIdentifier + com.taobao.alihadeviceevaluation + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + AliHADeviceEvaluation + CFBundleShortVersionString + 10.0.3.4-SNAPSHOT + CFBundleSignature + ???? + CFBundleSupportedPlatforms + + iPhoneOS + + CFBundleVersion + 1 + DTCompiler + com.apple.compilers.llvm.clang.1_0 + DTPlatformBuild + 16B91 + DTPlatformName + iphoneos + DTPlatformVersion + 12.1 + DTSDKBuild + 16B91 + DTSDKName + iphoneos12.1 + DTXcode + 1010 + DTXcodeBuild + 10B61 + MinimumOSVersion + 7.0 + UIDeviceFamily + + 1 + + + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/AliHADeviceEvaluation.framework/Modules/module.modulemap b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/AliHADeviceEvaluation.framework/Modules/module.modulemap new file mode 100644 index 0000000..b87401b --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/AliHADeviceEvaluation.framework/Modules/module.modulemap @@ -0,0 +1,6 @@ +framework module AliHADeviceEvaluation { + umbrella header "AliHADeviceEvaluation.h" + + export * + module * { export * } +} diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/AliHADeviceEvaluation.framework/alihadeviceevaluation_bundle.plist b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/AliHADeviceEvaluation.framework/alihadeviceevaluation_bundle.plist new file mode 100644 index 0000000..00f5873 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/AliHADeviceEvaluation.framework/alihadeviceevaluation_bundle.plist differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/AliReachability.framework/AliReachability b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/AliReachability.framework/AliReachability new file mode 100644 index 0000000..7521de1 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/AliReachability.framework/AliReachability differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/AliReachability.framework/Headers/NWIPv6Helper.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/AliReachability.framework/Headers/NWIPv6Helper.h new file mode 100644 index 0000000..e284ea3 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/AliReachability.framework/Headers/NWIPv6Helper.h @@ -0,0 +1,24 @@ +// +// NWIPv6Helper.h +// ALINetworkSDK +// +// Created by wuchen.xj on 5/15/16. +// Copyright © 2016 wuchen.xj. All rights reserved. +// + +#import + +@interface NWIPv6Helper : NSObject +@property (atomic, strong) NSString *ipv4onlyArpa; + ++ (instancetype)sharedInstance; + ++ (BOOL)isIPv4address:(NSString *)ip; + +- (BOOL)isIPv6only; + +- (NSString *)convertIPv4toIPv6:(NSString *)ipv4; + +- (void)reset; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/AliReachability.framework/Headers/NWLog.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/AliReachability.framework/Headers/NWLog.h new file mode 100644 index 0000000..dcf285e --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/AliReachability.framework/Headers/NWLog.h @@ -0,0 +1,67 @@ +// +// NWLog.h +// ALINetworkSDK +// +// Created by Roger.Mu on 3/24/15. +// Copyright (c) 2015 Taobao.com. All rights reserved. +// + + +#import + + +// ----------------------------------------------------------------------------- +// 网络SDK版本号,每次有新版本集成都需要变更 +#define NETWORK_V @"6.2.1.29" + + +#define TLOG_MODEL_NAME @"NetworkSDK" +// ----------------------------------------------------------------------------- +// NWLog宏定义 +#define NW_LOG_ERROR(...) \ +[NWLog log:NW_LOG_ERROR file:__FILE__ func:__func__ line:__LINE__ module:TLOG_MODEL_NAME msg:__VA_ARGS__] + +#define NW_LOG_WARNING(...) \ +[NWLog log:NW_LOG_WARNING file:__FILE__ func:__func__ line:__LINE__ module:TLOG_MODEL_NAME msg:__VA_ARGS__] + +#define NW_LOG_INFO(...) \ +[NWLog log:NW_LOG_INFO file:__FILE__ func:__func__ line:__LINE__ module:TLOG_MODEL_NAME msg:__VA_ARGS__] + +#define NW_LOG_DEBUG(...) \ +[NWLog log:NW_LOG_DEBUG file:__FILE__ func:__func__ line:__LINE__ module:TLOG_MODEL_NAME msg:__VA_ARGS__] + +// ----------------------------------------------------------------------------- +// 不拼装 + +#define NW_LOG_ERROR_NO_FORMAT(log) [NWLog log:NW_LOG_ERROR msg:log] +#define NW_LOG_WARNING_NO_FORMAT(log) [NWLog log:NW_LOG_WARNING msg:log] +#define NW_LOG_INFO_NO_FORMAT(log) [NWLog log:NW_LOG_INFO msg:log] +#define NW_LOG_DEBUG_NO_FORMAT(log) [NWLog log:NW_LOG_DEBUG msg:log] + +/** + * 日志级别 + */ +typedef enum { + NW_LOG_NONE = -1, + NW_LOG_ERROR = 0, + NW_LOG_WARNING = 1, + NW_LOG_INFO = 2, + NW_LOG_DEBUG = 3, + NW_LOG_ALL = 4, +} NW_LOG_LEVEL; + + +@interface NWLog : NSObject + ++ (void)log:(NSInteger)level file:(const char *)file func:(const char *)func line:(int)line module:(NSString *)module msg:(NSString *)fmt, ...; + ++ (void)log:(NSInteger)level msg:(NSString *)msg; + ++ (void)setUserLogDelegate:(id)delegate; + ++ (NW_LOG_LEVEL)currentLevel; + ++ (void)setLogLevel:(NW_LOG_LEVEL)level; + +@end + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/AliReachability.framework/Headers/NWReachabilityManager.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/AliReachability.framework/Headers/NWReachabilityManager.h new file mode 100644 index 0000000..eec4d15 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/AliReachability.framework/Headers/NWReachabilityManager.h @@ -0,0 +1,67 @@ +// +// SPDYNetworkStatusManager.h +// SPDY +// +// Created by 亿刀 on 14-1-9. +// Copyright (c) 2014年 Twitter. All rights reserved. +// + +#import + +/** + * 通过[NSNotificationCenter defaultCenter]监听网络状态变化通知。 + * 收到通知后,可以通过 NWReachabilityManager.currentNetworkStatus 获取当前网络状态。 + * + * 注意:该通知在非主线程通知。 + */ +#define NW_NETWOEK_STATUS_NOTIFY @"TBNetworkStatusChangeNotify" + +extern NSString* const NETWOEK_STATUS_NOTIFY; // same as NW_NETWOEK_STATUS_NOTIFY, for swift + + +/** + * 网络状态 + */ +typedef NS_ENUM(NSUInteger, NetworkStatus) { + NotReachable = 0, + ReachableViaWiFi, + ReachableVia2G, + ReachableVia3G, + ReachableVia4G +}; + + +/** + * Reachability 接口 + */ +@interface NWReachabilityManager : NSObject + ++ (NWReachabilityManager *)shareInstance; + +- (NSString *)currentIMSI; + +- (NSString *)currentCarrierName; + +- (NetworkStatus)currentNetworkStatus; + +- (NetworkStatus)preNetworkStatus; + +- (NSString *)currentNetworkStatusString:(NetworkStatus)status; + +- (NSString *)currentNetworkStatusString; + +- (NSString *)currentAPN; + +- (NSString *)getWifiSSID; + +- (NSString *)getWifiBSSID; + +- (NSString *)uniqueSSID; + +- (NSString *)getWiFiSSIDMD5; + +- (void)updateWifiSSID; + ++ (BOOL)configureProxies; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/AliReachability.framework/Info.plist b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/AliReachability.framework/Info.plist new file mode 100644 index 0000000..f989d84 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/AliReachability.framework/Info.plist @@ -0,0 +1,53 @@ + + + + + BuildMachineOSBuild + 17C88 + CFBundleDevelopmentRegion + en + CFBundleExecutable + AliReachability + CFBundleIdentifier + com.taobao.AliReachability.AliReachability + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + AliReachability + CFBundlePackageType + FMWK + CFBundleShortVersionString + 6.2.1.32-EMAS-SNAPSHOT + CFBundleSignature + ???? + CFBundleSupportedPlatforms + + iPhoneOS + + CFBundleVersion + 1 + DTCompiler + com.apple.compilers.llvm.clang.1_0 + DTPlatformBuild + 15A372 + DTPlatformName + iphoneos + DTPlatformVersion + 11.0 + DTSDKBuild + 15A372 + DTSDKName + iphoneos11.0 + DTXcode + 0900 + DTXcodeBuild + 9A235 + MinimumOSVersion + 6.0 + UIDeviceFamily + + 1 + 2 + + + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/AliReachability.framework/Modules/module.modulemap b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/AliReachability.framework/Modules/module.modulemap new file mode 100644 index 0000000..d181472 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/AliReachability.framework/Modules/module.modulemap @@ -0,0 +1,6 @@ +framework module AliReachability { + umbrella header "AliReachability.h" + + export * + module * { export * } +} diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK new file mode 100644 index 0000000..62088a2 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Contents.json b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Contents.json new file mode 100644 index 0000000..38f0c81 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Contents.json @@ -0,0 +1,9 @@ +{ + "info" : { + "version" : 1, + "author" : "xcode" + }, + "properties" : { + "provides-namespace" : true + } +} \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/Contents.json b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/Contents.json new file mode 100644 index 0000000..1bf9a1c --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/Contents.json @@ -0,0 +1 @@ +{"info":{"version":1,"author":"xcode"},"properties":{"provides-namespace":true}} diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/anchor_item.imageset/Contents.json b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/anchor_item.imageset/Contents.json new file mode 100644 index 0000000..c60a69c --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/anchor_item.imageset/Contents.json @@ -0,0 +1 @@ +{"images": [{"idiom": "universal", "scale": "1x"}, {"idiom": "universal", "scale": "2x", "filename": "anchor_item@2x.png"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/anchor_item.imageset/anchor_item@2x.png b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/anchor_item.imageset/anchor_item@2x.png new file mode 100644 index 0000000..0dad636 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/anchor_item.imageset/anchor_item@2x.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/back.imageset/Contents.json b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/back.imageset/Contents.json new file mode 100644 index 0000000..6718a8e --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/back.imageset/Contents.json @@ -0,0 +1 @@ +{"images": [{"idiom": "universal", "scale": "1x"}, {"idiom": "universal", "scale": "2x", "filename": "back@2x.png"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/back.imageset/back@2x.png b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/back.imageset/back@2x.png new file mode 100644 index 0000000..46adc55 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/back.imageset/back@2x.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/closeDanmaku.imageset/Contents.json b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/closeDanmaku.imageset/Contents.json new file mode 100644 index 0000000..678cd21 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/closeDanmaku.imageset/Contents.json @@ -0,0 +1 @@ +{"images": [{"idiom": "universal", "scale": "1x", "filename": "closeDanmaku.png"}, {"idiom": "universal", "scale": "2x"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/closeDanmaku.imageset/closeDanmaku.png b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/closeDanmaku.imageset/closeDanmaku.png new file mode 100644 index 0000000..edbb24c Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/closeDanmaku.imageset/closeDanmaku.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/controllers_background.imageset/Contents.json b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/controllers_background.imageset/Contents.json new file mode 100644 index 0000000..bbfbcfd --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/controllers_background.imageset/Contents.json @@ -0,0 +1 @@ +{"images": [{"idiom": "universal", "scale": "1x"}, {"idiom": "universal", "scale": "2x", "filename": "controllers_background@2x.png"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/controllers_background.imageset/controllers_background@2x.png b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/controllers_background.imageset/controllers_background@2x.png new file mode 100644 index 0000000..79b8ad0 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/controllers_background.imageset/controllers_background@2x.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/floating_window_close_btn.imageset/Contents.json b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/floating_window_close_btn.imageset/Contents.json new file mode 100644 index 0000000..65dcea1 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/floating_window_close_btn.imageset/Contents.json @@ -0,0 +1 @@ +{"images": [{"idiom": "universal", "scale": "1x"}, {"idiom": "universal", "scale": "2x", "filename": "floating_window_close_btn@2x.png"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/floating_window_close_btn.imageset/floating_window_close_btn@2x.png b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/floating_window_close_btn.imageset/floating_window_close_btn@2x.png new file mode 100644 index 0000000..c87da51 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/floating_window_close_btn.imageset/floating_window_close_btn@2x.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/frontcover_playtimes.imageset/Contents.json b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/frontcover_playtimes.imageset/Contents.json new file mode 100644 index 0000000..d4d9882 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/frontcover_playtimes.imageset/Contents.json @@ -0,0 +1 @@ +{"images": [{"idiom": "universal", "scale": "1x", "filename": "frontcover_playtimes.png"}, {"idiom": "universal", "scale": "2x"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/frontcover_playtimes.imageset/frontcover_playtimes.png b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/frontcover_playtimes.imageset/frontcover_playtimes.png new file mode 100644 index 0000000..7c53637 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/frontcover_playtimes.imageset/frontcover_playtimes.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/icon_backward.imageset/Contents.json b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/icon_backward.imageset/Contents.json new file mode 100644 index 0000000..7c8d01b --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/icon_backward.imageset/Contents.json @@ -0,0 +1 @@ +{"images": [{"idiom": "universal", "scale": "1x"}, {"idiom": "universal", "scale": "2x", "filename": "icon_backward@2x.png"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/icon_backward.imageset/icon_backward@2x.png b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/icon_backward.imageset/icon_backward@2x.png new file mode 100644 index 0000000..60e261e Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/icon_backward.imageset/icon_backward@2x.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/icon_brightness.imageset/Contents.json b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/icon_brightness.imageset/Contents.json new file mode 100644 index 0000000..bbfb1db --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/icon_brightness.imageset/Contents.json @@ -0,0 +1 @@ +{"images": [{"idiom": "universal", "scale": "1x"}, {"idiom": "universal", "scale": "2x", "filename": "icon_brightness@2x.png"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/icon_brightness.imageset/icon_brightness@2x.png b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/icon_brightness.imageset/icon_brightness@2x.png new file mode 100644 index 0000000..2aa95d9 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/icon_brightness.imageset/icon_brightness@2x.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/icon_forward.imageset/Contents.json b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/icon_forward.imageset/Contents.json new file mode 100644 index 0000000..f7cf745 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/icon_forward.imageset/Contents.json @@ -0,0 +1 @@ +{"images": [{"idiom": "universal", "scale": "1x"}, {"idiom": "universal", "scale": "2x", "filename": "icon_forward@2x.png"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/icon_forward.imageset/icon_forward@2x.png b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/icon_forward.imageset/icon_forward@2x.png new file mode 100644 index 0000000..721ac22 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/icon_forward.imageset/icon_forward@2x.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/icon_volume.imageset/Contents.json b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/icon_volume.imageset/Contents.json new file mode 100644 index 0000000..96080e9 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/icon_volume.imageset/Contents.json @@ -0,0 +1 @@ +{"images": [{"idiom": "universal", "scale": "1x"}, {"idiom": "universal", "scale": "2x", "filename": "icon_volume@2x.png"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/icon_volume.imageset/icon_volume@2x.png b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/icon_volume.imageset/icon_volume@2x.png new file mode 100644 index 0000000..4775067 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/icon_volume.imageset/icon_volume@2x.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/landscape_back.imageset/Contents.json b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/landscape_back.imageset/Contents.json new file mode 100644 index 0000000..3ac7e1f --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/landscape_back.imageset/Contents.json @@ -0,0 +1 @@ +{"images": [{"idiom": "universal", "scale": "1x"}, {"idiom": "universal", "scale": "2x", "filename": "landscape_back@2x.png"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/landscape_back.imageset/landscape_back@2x.png b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/landscape_back.imageset/landscape_back@2x.png new file mode 100644 index 0000000..d741283 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/landscape_back.imageset/landscape_back@2x.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/loading.imageset/Contents.json b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/loading.imageset/Contents.json new file mode 100644 index 0000000..4bb08d5 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/loading.imageset/Contents.json @@ -0,0 +1 @@ +{"images": [{"idiom": "universal", "scale": "1x"}, {"idiom": "universal", "scale": "2x", "filename": "loading@2x.png"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/loading.imageset/loading@2x.png b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/loading.imageset/loading@2x.png new file mode 100644 index 0000000..6319c8f Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/loading.imageset/loading@2x.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/open.imageset/Contents.json b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/open.imageset/Contents.json new file mode 100644 index 0000000..9c9c0c2 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/open.imageset/Contents.json @@ -0,0 +1 @@ +{"images": [{"idiom": "universal", "scale": "1x"}, {"idiom": "universal", "scale": "2x", "filename": "open@2x.png"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/open.imageset/open@2x.png b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/open.imageset/open@2x.png new file mode 100644 index 0000000..0a1be9d Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/open.imageset/open@2x.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/openDanmaku.imageset/Contents.json b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/openDanmaku.imageset/Contents.json new file mode 100644 index 0000000..d53bf22 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/openDanmaku.imageset/Contents.json @@ -0,0 +1 @@ +{"images": [{"idiom": "universal", "scale": "1x", "filename": "openDanmaku.png"}, {"idiom": "universal", "scale": "2x"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/openDanmaku.imageset/openDanmaku.png b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/openDanmaku.imageset/openDanmaku.png new file mode 100644 index 0000000..575e57b Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/openDanmaku.imageset/openDanmaku.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/play_btn.imageset/Contents.json b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/play_btn.imageset/Contents.json new file mode 100644 index 0000000..28696e5 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/play_btn.imageset/Contents.json @@ -0,0 +1 @@ +{"images": [{"idiom": "universal", "scale": "1x"}, {"idiom": "universal", "scale": "2x", "filename": "play_btn@2x.png"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/play_btn.imageset/play_btn@2x.png b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/play_btn.imageset/play_btn@2x.png new file mode 100644 index 0000000..22ed43c Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/play_btn.imageset/play_btn@2x.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/play_fill_btn.imageset/Contents.json b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/play_fill_btn.imageset/Contents.json new file mode 100644 index 0000000..42e0ac1 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/play_fill_btn.imageset/Contents.json @@ -0,0 +1 @@ +{"images": [{"idiom": "universal", "scale": "1x"}, {"idiom": "universal", "scale": "2x", "filename": "play_fill_btn@2x.png"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/play_fill_btn.imageset/play_fill_btn@2x.png b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/play_fill_btn.imageset/play_fill_btn@2x.png new file mode 100644 index 0000000..b99890a Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/play_fill_btn.imageset/play_fill_btn@2x.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/refresh.imageset/Contents.json b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/refresh.imageset/Contents.json new file mode 100644 index 0000000..8865910 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/refresh.imageset/Contents.json @@ -0,0 +1 @@ +{"images": [{"idiom": "universal", "scale": "1x"}, {"idiom": "universal", "scale": "2x", "filename": "refresh@2x.png"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/refresh.imageset/refresh@2x.png b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/refresh.imageset/refresh@2x.png new file mode 100644 index 0000000..22e04e6 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/refresh.imageset/refresh@2x.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/sendDanmaku.imageset/Contents.json b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/sendDanmaku.imageset/Contents.json new file mode 100644 index 0000000..721c875 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/sendDanmaku.imageset/Contents.json @@ -0,0 +1 @@ +{"images": [{"idiom": "universal", "scale": "1x"}, {"idiom": "universal", "scale": "2x", "filename": "sendDanmaku@2x.png"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/sendDanmaku.imageset/sendDanmaku@2x.png b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/sendDanmaku.imageset/sendDanmaku@2x.png new file mode 100644 index 0000000..7edc5be Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/sendDanmaku.imageset/sendDanmaku@2x.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/slider.imageset/Contents.json b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/slider.imageset/Contents.json new file mode 100644 index 0000000..60bda8c --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/slider.imageset/Contents.json @@ -0,0 +1 @@ +{"images": [{"idiom": "universal", "scale": "1x"}, {"idiom": "universal", "scale": "2x", "filename": "slider@2x.png"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/slider.imageset/slider@2x.png b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/slider.imageset/slider@2x.png new file mode 100644 index 0000000..a4e8341 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/slider.imageset/slider@2x.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/stop_btn.imageset/Contents.json b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/stop_btn.imageset/Contents.json new file mode 100644 index 0000000..4abcc7a --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/stop_btn.imageset/Contents.json @@ -0,0 +1 @@ +{"images": [{"idiom": "universal", "scale": "1x"}, {"idiom": "universal", "scale": "2x", "filename": "stop_btn@2x.png"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/stop_btn.imageset/stop_btn@2x.png b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/stop_btn.imageset/stop_btn@2x.png new file mode 100644 index 0000000..fcc8e47 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/stop_btn.imageset/stop_btn@2x.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/tbavsdk_video_close.imageset/Contents.json b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/tbavsdk_video_close.imageset/Contents.json new file mode 100644 index 0000000..766eff9 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/tbavsdk_video_close.imageset/Contents.json @@ -0,0 +1 @@ +{"images": [{"idiom": "universal", "scale": "1x"}, {"idiom": "universal", "scale": "2x", "filename": "tbavsdk_video_close@2x.png"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/tbavsdk_video_close.imageset/tbavsdk_video_close@2x.png b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/tbavsdk_video_close.imageset/tbavsdk_video_close@2x.png new file mode 100644 index 0000000..059436d Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/tbavsdk_video_close.imageset/tbavsdk_video_close@2x.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/volume_off.imageset/Contents.json b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/volume_off.imageset/Contents.json new file mode 100644 index 0000000..8440fc2 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/volume_off.imageset/Contents.json @@ -0,0 +1 @@ +{"images": [{"idiom": "universal", "scale": "1x"}, {"idiom": "universal", "scale": "2x", "filename": "volume_off@2x.png"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/volume_off.imageset/volume_off@2x.png b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/volume_off.imageset/volume_off@2x.png new file mode 100644 index 0000000..ab5a48d Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/Player/volume_off.imageset/volume_off@2x.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/arrowUpflod.imageset/Contents.json b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/arrowUpflod.imageset/Contents.json new file mode 100644 index 0000000..d126715 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/arrowUpflod.imageset/Contents.json @@ -0,0 +1 @@ +{"images": [{"idiom": "universal", "scale": "1x", "filename": "arrowUpflod.png"}, {"idiom": "universal", "scale": "2x"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/arrowUpflod.imageset/arrowUpflod.png b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/arrowUpflod.imageset/arrowUpflod.png new file mode 100644 index 0000000..16f0359 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/arrowUpflod.imageset/arrowUpflod.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/cart_light.imageset/Contents.json b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/cart_light.imageset/Contents.json new file mode 100644 index 0000000..b7c0946 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/cart_light.imageset/Contents.json @@ -0,0 +1 @@ +{"images": [{"idiom": "universal", "scale": "1x", "filename": "cart_light.png"}, {"idiom": "universal", "scale": "2x"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/cart_light.imageset/cart_light.png b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/cart_light.imageset/cart_light.png new file mode 100644 index 0000000..bd19a9d Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/cart_light.imageset/cart_light.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/dwfreeflow.imageset/Contents.json b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/dwfreeflow.imageset/Contents.json new file mode 100644 index 0000000..72fdbc9 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/dwfreeflow.imageset/Contents.json @@ -0,0 +1 @@ +{"images": [{"idiom": "universal", "scale": "1x"}, {"idiom": "universal", "scale": "2x", "filename": "dwfreeflow@2x.png"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/dwfreeflow.imageset/dwfreeflow@2x.png b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/dwfreeflow.imageset/dwfreeflow@2x.png new file mode 100644 index 0000000..d33de59 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/dwfreeflow.imageset/dwfreeflow@2x.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/dwgoshop.imageset/Contents.json b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/dwgoshop.imageset/Contents.json new file mode 100644 index 0000000..2ce7597 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/dwgoshop.imageset/Contents.json @@ -0,0 +1 @@ +{"images": [{"idiom": "universal", "scale": "1x", "filename": "dwgoshop.png"}, {"idiom": "universal", "scale": "2x"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/dwgoshop.imageset/dwgoshop.png b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/dwgoshop.imageset/dwgoshop.png new file mode 100644 index 0000000..444c823 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/dwgoshop.imageset/dwgoshop.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/dwmoreitem.imageset/Contents.json b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/dwmoreitem.imageset/Contents.json new file mode 100644 index 0000000..814eede --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/dwmoreitem.imageset/Contents.json @@ -0,0 +1 @@ +{"images": [{"idiom": "universal", "scale": "1x", "filename": "dwmoreitem.png"}, {"idiom": "universal", "scale": "2x"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/dwmoreitem.imageset/dwmoreitem.png b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/dwmoreitem.imageset/dwmoreitem.png new file mode 100644 index 0000000..a8c921c Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/dwmoreitem.imageset/dwmoreitem.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/dwreplace.imageset/Contents.json b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/dwreplace.imageset/Contents.json new file mode 100644 index 0000000..19289df --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/dwreplace.imageset/Contents.json @@ -0,0 +1 @@ +{"images": [{"idiom": "universal", "scale": "1x", "filename": "dwreplace.png"}, {"idiom": "universal", "scale": "2x"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/dwreplace.imageset/dwreplace.png b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/dwreplace.imageset/dwreplace.png new file mode 100644 index 0000000..10c8b91 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/dwreplace.imageset/dwreplace.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/dwreplay.imageset/Contents.json b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/dwreplay.imageset/Contents.json new file mode 100644 index 0000000..fa452d9 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/dwreplay.imageset/Contents.json @@ -0,0 +1 @@ +{"images": [{"idiom": "universal", "scale": "1x", "filename": "dwreplay.png"}, {"idiom": "universal", "scale": "2x"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/dwreplay.imageset/dwreplay.png b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/dwreplay.imageset/dwreplay.png new file mode 100644 index 0000000..d622390 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/dwreplay.imageset/dwreplay.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/dwround_down.imageset/Contents.json b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/dwround_down.imageset/Contents.json new file mode 100644 index 0000000..5cc7be7 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/dwround_down.imageset/Contents.json @@ -0,0 +1 @@ +{"images": [{"idiom": "universal", "scale": "1x", "filename": "dwround_down.png"}, {"idiom": "universal", "scale": "2x"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/dwround_down.imageset/dwround_down.png b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/dwround_down.imageset/dwround_down.png new file mode 100644 index 0000000..d43556e Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/dwround_down.imageset/dwround_down.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/dwround_up.imageset/Contents.json b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/dwround_up.imageset/Contents.json new file mode 100644 index 0000000..a29244d --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/dwround_up.imageset/Contents.json @@ -0,0 +1 @@ +{"images": [{"idiom": "universal", "scale": "1x", "filename": "dwround_up.png"}, {"idiom": "universal", "scale": "2x"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/dwround_up.imageset/dwround_up.png b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/dwround_up.imageset/dwround_up.png new file mode 100644 index 0000000..29af7ef Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/dwround_up.imageset/dwround_up.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/dwshare.imageset/Contents.json b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/dwshare.imageset/Contents.json new file mode 100644 index 0000000..cb85eb3 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/dwshare.imageset/Contents.json @@ -0,0 +1 @@ +{"images": [{"idiom": "universal", "scale": "1x", "filename": "dwshare.png"}, {"idiom": "universal", "scale": "2x"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/dwshare.imageset/dwshare.png b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/dwshare.imageset/dwshare.png new file mode 100644 index 0000000..0574f00 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/dwshare.imageset/dwshare.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/fullScreenCloseBtn.imageset/Contents.json b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/fullScreenCloseBtn.imageset/Contents.json new file mode 100644 index 0000000..c9ecee2 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/fullScreenCloseBtn.imageset/Contents.json @@ -0,0 +1 @@ +{"images": [{"idiom": "universal", "scale": "1x", "filename": "fullScreenCloseBtn.png"}, {"idiom": "universal", "scale": "2x"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/fullScreenCloseBtn.imageset/fullScreenCloseBtn.png b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/fullScreenCloseBtn.imageset/fullScreenCloseBtn.png new file mode 100644 index 0000000..3487ab4 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/fullScreenCloseBtn.imageset/fullScreenCloseBtn.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/fullScreenEndGoshopBtn.imageset/Contents.json b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/fullScreenEndGoshopBtn.imageset/Contents.json new file mode 100644 index 0000000..bba43cd --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/fullScreenEndGoshopBtn.imageset/Contents.json @@ -0,0 +1 @@ +{"images": [{"idiom": "universal", "scale": "1x", "filename": "fullScreenEndGoshopBtn.png"}, {"idiom": "universal", "scale": "2x"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/fullScreenEndGoshopBtn.imageset/fullScreenEndGoshopBtn.png b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/fullScreenEndGoshopBtn.imageset/fullScreenEndGoshopBtn.png new file mode 100644 index 0000000..5f746f2 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/fullScreenEndGoshopBtn.imageset/fullScreenEndGoshopBtn.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/fullScreenEndReplyBtn.imageset/Contents.json b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/fullScreenEndReplyBtn.imageset/Contents.json new file mode 100644 index 0000000..1d67fd4 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/fullScreenEndReplyBtn.imageset/Contents.json @@ -0,0 +1 @@ +{"images": [{"idiom": "universal", "scale": "1x", "filename": "fullScreenEndReplyBtn.png"}, {"idiom": "universal", "scale": "2x"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/fullScreenEndReplyBtn.imageset/fullScreenEndReplyBtn.png b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/fullScreenEndReplyBtn.imageset/fullScreenEndReplyBtn.png new file mode 100644 index 0000000..a8444f6 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/fullScreenEndReplyBtn.imageset/fullScreenEndReplyBtn.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/fullScreenEndShareBtn.imageset/Contents.json b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/fullScreenEndShareBtn.imageset/Contents.json new file mode 100644 index 0000000..68aee8d --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/fullScreenEndShareBtn.imageset/Contents.json @@ -0,0 +1 @@ +{"images": [{"idiom": "universal", "scale": "1x", "filename": "fullScreenEndShareBtn.png"}, {"idiom": "universal", "scale": "2x"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/fullScreenEndShareBtn.imageset/fullScreenEndShareBtn.png b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/fullScreenEndShareBtn.imageset/fullScreenEndShareBtn.png new file mode 100644 index 0000000..a81fa9a Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/fullScreenEndShareBtn.imageset/fullScreenEndShareBtn.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/fullScreenShareBtn.imageset/Contents.json b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/fullScreenShareBtn.imageset/Contents.json new file mode 100644 index 0000000..f9a4eda --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/fullScreenShareBtn.imageset/Contents.json @@ -0,0 +1 @@ +{"images": [{"idiom": "universal", "scale": "1x", "filename": "fullScreenShareBtn.png"}, {"idiom": "universal", "scale": "2x"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/fullScreenShareBtn.imageset/fullScreenShareBtn.png b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/fullScreenShareBtn.imageset/fullScreenShareBtn.png new file mode 100644 index 0000000..834b8cc Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/fullScreenShareBtn.imageset/fullScreenShareBtn.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/fullScreengoLikeBtn.imageset/Contents.json b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/fullScreengoLikeBtn.imageset/Contents.json new file mode 100644 index 0000000..f83303c --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/fullScreengoLikeBtn.imageset/Contents.json @@ -0,0 +1 @@ +{"images": [{"idiom": "universal", "scale": "1x", "filename": "fullScreengoLikeBtn.png"}, {"idiom": "universal", "scale": "2x"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/fullScreengoLikeBtn.imageset/fullScreengoLikeBtn.png b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/fullScreengoLikeBtn.imageset/fullScreengoLikeBtn.png new file mode 100644 index 0000000..e3282cd Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/fullScreengoLikeBtn.imageset/fullScreengoLikeBtn.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/fullScreengoLikedBtn.imageset/Contents.json b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/fullScreengoLikedBtn.imageset/Contents.json new file mode 100644 index 0000000..1f60634 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/fullScreengoLikedBtn.imageset/Contents.json @@ -0,0 +1 @@ +{"images": [{"idiom": "universal", "scale": "1x", "filename": "fullScreengoLikedBtn.png"}, {"idiom": "universal", "scale": "2x"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/fullScreengoLikedBtn.imageset/fullScreengoLikedBtn.png b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/fullScreengoLikedBtn.imageset/fullScreengoLikedBtn.png new file mode 100644 index 0000000..02159bd Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/fullScreengoLikedBtn.imageset/fullScreengoLikedBtn.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/fullScreengoShopBtn.imageset/Contents.json b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/fullScreengoShopBtn.imageset/Contents.json new file mode 100644 index 0000000..60358bf --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/fullScreengoShopBtn.imageset/Contents.json @@ -0,0 +1 @@ +{"images": [{"idiom": "universal", "scale": "1x", "filename": "fullScreengoShopBtn.png"}, {"idiom": "universal", "scale": "2x"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/fullScreengoShopBtn.imageset/fullScreengoShopBtn.png b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/fullScreengoShopBtn.imageset/fullScreengoShopBtn.png new file mode 100644 index 0000000..5db8f2f Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/fullScreengoShopBtn.imageset/fullScreengoShopBtn.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/goods_list_btn.imageset/Contents.json b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/goods_list_btn.imageset/Contents.json new file mode 100644 index 0000000..df7e94f --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/goods_list_btn.imageset/Contents.json @@ -0,0 +1 @@ +{"images": [{"idiom": "universal", "scale": "1x", "filename": "goods_list_btn.png"}, {"idiom": "universal", "scale": "2x"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/goods_list_btn.imageset/goods_list_btn.png b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/goods_list_btn.imageset/goods_list_btn.png new file mode 100644 index 0000000..cd721cf Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/goods_list_btn.imageset/goods_list_btn.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/goshop.imageset/Contents.json b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/goshop.imageset/Contents.json new file mode 100644 index 0000000..df2e693 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/goshop.imageset/Contents.json @@ -0,0 +1 @@ +{"images": [{"idiom": "universal", "scale": "1x", "filename": "goshop.png"}, {"idiom": "universal", "scale": "2x"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/goshop.imageset/goshop.png b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/goshop.imageset/goshop.png new file mode 100644 index 0000000..b853e36 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/goshop.imageset/goshop.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/interactiveTips.imageset/Contents.json b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/interactiveTips.imageset/Contents.json new file mode 100644 index 0000000..f33a3fb --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/interactiveTips.imageset/Contents.json @@ -0,0 +1 @@ +{"images": [{"idiom": "universal", "scale": "1x", "filename": "interactiveTips.png"}, {"idiom": "universal", "scale": "2x"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/interactiveTips.imageset/interactiveTips.png b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/interactiveTips.imageset/interactiveTips.png new file mode 100644 index 0000000..8ff47d2 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/interactiveTips.imageset/interactiveTips.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/tb_interactive_menu.imageset/Contents.json b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/tb_interactive_menu.imageset/Contents.json new file mode 100644 index 0000000..f457181 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/tb_interactive_menu.imageset/Contents.json @@ -0,0 +1 @@ +{"images": [{"idiom": "universal", "scale": "1x"}, {"idiom": "universal", "scale": "2x", "filename": "tb_interactive_menu@2x.png"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/tb_interactive_menu.imageset/tb_interactive_menu@2x.png b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/tb_interactive_menu.imageset/tb_interactive_menu@2x.png new file mode 100644 index 0000000..cc3ad9b Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/tb_interactive_menu.imageset/tb_interactive_menu@2x.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/tb_menu_btn.imageset/Contents.json b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/tb_menu_btn.imageset/Contents.json new file mode 100644 index 0000000..9089da8 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/tb_menu_btn.imageset/Contents.json @@ -0,0 +1 @@ +{"images": [{"idiom": "universal", "scale": "1x"}, {"idiom": "universal", "scale": "2x", "filename": "tb_menu_btn@2x.png"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/tb_menu_btn.imageset/tb_menu_btn@2x.png b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/tb_menu_btn.imageset/tb_menu_btn@2x.png new file mode 100644 index 0000000..49dc814 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/tb_menu_btn.imageset/tb_menu_btn@2x.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/tb_video_report.imageset/Contents.json b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/tb_video_report.imageset/Contents.json new file mode 100644 index 0000000..4d67d50 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/tb_video_report.imageset/Contents.json @@ -0,0 +1 @@ +{"images": [{"idiom": "universal", "scale": "1x", "filename": "tb_video_report.png"}, {"idiom": "universal", "scale": "2x"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/tb_video_report.imageset/tb_video_report.png b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/tb_video_report.imageset/tb_video_report.png new file mode 100644 index 0000000..3ef532b Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/tb_video_report.imageset/tb_video_report.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/videoMuteCloseButton.imageset/Contents.json b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/videoMuteCloseButton.imageset/Contents.json new file mode 100644 index 0000000..a68d910 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/videoMuteCloseButton.imageset/Contents.json @@ -0,0 +1 @@ +{"images": [{"idiom": "universal", "scale": "1x", "filename": "videoMuteCloseButton.png"}, {"idiom": "universal", "scale": "2x"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/videoMuteCloseButton.imageset/videoMuteCloseButton.png b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/videoMuteCloseButton.imageset/videoMuteCloseButton.png new file mode 100644 index 0000000..bea8f6a Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/videoMuteCloseButton.imageset/videoMuteCloseButton.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/videoMuteOpenButton.imageset/Contents.json b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/videoMuteOpenButton.imageset/Contents.json new file mode 100644 index 0000000..6ca5f13 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/videoMuteOpenButton.imageset/Contents.json @@ -0,0 +1 @@ +{"images": [{"idiom": "universal", "scale": "1x", "filename": "videoMuteOpenButton.png"}, {"idiom": "universal", "scale": "2x"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/videoMuteOpenButton.imageset/videoMuteOpenButton.png b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/videoMuteOpenButton.imageset/videoMuteOpenButton.png new file mode 100644 index 0000000..1cca8fe Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/DWInteractiveSDK.xcassets/DWInteractiveSDK.bundle/videoMuteOpenButton.imageset/videoMuteOpenButton.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/Config.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/Config.h new file mode 100644 index 0000000..d435a65 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/Config.h @@ -0,0 +1,14 @@ +// +// Config.h +// DWInteractiveSDK +// +// Created by Yongchao Lao on 2020/9/30. +// Copyright © 2020 alibaba. All rights reserved. +// + +#ifndef Config_h +#define Config_h + +#define BUILD_FOR_BAICHUAN 1 + +#endif /* Config_h */ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWAdapterMgr.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWAdapterMgr.h new file mode 100644 index 0000000..55f38aa --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWAdapterMgr.h @@ -0,0 +1,34 @@ +// +// DWAdapterMgr.h +// DWInteractiveSDK +// +// Created by 凌言 on 16/4/7. +// Copyright © 2016年 alibaba. All rights reserved. +// + +#import + +@protocol DWUserTrackProtocol, DWImgLoaderProtocol, DWNetWorkProtocol,DWVideoSourceProtocol,DWFollowBtnProtocol; + +@interface DWAdapterMgr : NSObject + ++ (DWAdapterMgr *)shareInstance; + +/** + * 注册adapter + * @param name : 模块名称 + * @param clazz : 模块类名 + **/ +- (void)registerAdapter:(NSString *)name withClass:(id)clazz; + +/** + * 可替换的注册方式,仅测试使用 + * + * @param name <#name description#> + * @param clazz <#clazz description#> + */ +- (void)registerNewAdapter:(NSString *)name withClass:(id)clazz; + +- (id)classWithAdapterName:(NSString *)name; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWAllNewHPInstance.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWAllNewHPInstance.h new file mode 100644 index 0000000..ca71064 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWAllNewHPInstance.h @@ -0,0 +1,149 @@ +// +// DWAllNewHPInstance.h +// Pods +// +// Created by fernando on 2020/3/26. +// + +#import +#import +#import +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface DWAllNewHPInstance : NSObject + +typedef void(^onDWHPEventFired)(DWHPEvent event, NSDictionary* info); + +- (instancetype) initWithVideoInfo:(DWVideoInfo*)videoInfo + interactiveInfo:(DWInteractiveInfo*)interactiveInfo + UTParms:(NSDictionary*)UTParms + eventHandler:(onDWHPEventFired)handler; + +@property (nonatomic, strong) DWVideoInfo *videoInfo; + +@property (nonatomic, strong) DWInteractiveInfo *interactiveInfo; + +@property (nonatomic, strong) NSDictionary *UTParms; + +@property (nonatomic, strong) NSDictionary *playerConfig; + +@property (nonatomic, copy) void (^onDWHPEventFired)(DWHPEvent event, NSDictionary* info); + +/** + * 播放相关资源准备 + 1. auoPlay: 必填,默认NO,即不自动播放; + 2. playScenario: 必填,0表示直播,1表示点播,2表示纯音频播放;默认是1,即点播; + 3. loop: 默认NO,即不循环播放; + 4. usePlayerManager: 选择是否使用播放器内核多实例管理,默认YES,即使用; + 5. useCustomVideoURL: 选择是否使用特殊转码的视频地址,默认NO,即不使用; + 6. useEGLRenderer: 选择是否在TaobaoPlayer下使用EGL渲染,默认NO,即不用EGL; + 7. useDefaultAVAudioSessionCategery: 选择是否使用播放器默认的AVAudioSessionCategery,默认YES,即播放器内部会主动设置AVAudioSessionCategery; + 8. disableTimeUpdate: 选择是否实时上报视频播放时间进度,默认为NO,即实时上报; + 9. disableAudio: 选择是否禁掉音频(禁掉音频,即播放器内核会禁止音频的解码和播放),默认为NO,即不禁音频; + 9. businessId: 业务ID,比如淘宝直播业务下传"TBLive"; + 10. subBusinessId: 子业务ID,比如淘宝直播下,频道页播放时用"LiveCard",直播间播放时用"live" + 11.mute:默认NO,即不静音 + 12.useInputUrl:默认NO,是否使用用户输入videoUrl进行播放,在videoID与URL同时设置时使用 + 13.cache:默认NO,是否需要缓存,点播模式下在useInputUrl为YES时生效 + 14.preDownloadBytes,默认1M,cache启用时进行预下载请求大小 + 15.videoUrlResources,使用url进行播放时,播放播放地址列表 + 16.experienceTrackExInfo,非必填,体验埋点补充信息,NSDICTIONARY类型,需保证与播放器内部已有埋点不同名,详见《播放器埋点》 + * + */ +- (void)setupWithPlayerConfig:(NSDictionary*)config; + +/** + * 视频播放, + * 注意:非自动播放时,必须在至少收到DWHPVideoPlayerServiceReady事件后才开始调用videoPlay + **/ +- (void)videoPlay; + +/** + * 视频暂停 + **/ +- (void)videoPause; + +- (void)videoRefresh; + +/** + * dealloc之前调用此接口释放依赖和资源,重复使用需要调用setup (暂时还不支持复用) + */ +- (void) destroy; + +-(BOOL) isVideoViewPlaying; + +- (void)UTBusinessSwitchWithType:(NSString *)type extraParam:(NSDictionary *)params; + +#pragma mark - common +/** + * 设置页面的frame + **/ +@property (nonatomic, assign) CGRect frame; + +/** + * + **/ +@property (nonatomic, readonly) UIView *interactiveView; + +/* + * 是否循静音 + */ +@property (nonatomic, assign) BOOL muted; +//@property (nonatomic, readonly) UIViewController *interactiveViewController; + +/** + * 画面填充模式,目前支持aspectFit、aspectFill、fill三个字段,对视频和封面图都生效 + **/ +@property (nonatomic, copy) NSString* aspectMode; + +/** + * 是否隐藏mini进度条,默认隐藏 + **/ +@property (nonatomic, assign) BOOL hidenMiniProgressView; + +/** + * 永久隐藏控制层(空实现,不做任何动作) + */ +@property (nonatomic, assign) BOOL controlsViewHidden; + +/** + * 原始视频尺寸(宽*高) + */ +@property (nonatomic, readonly) CGSize videoSize; + +/** + * 播放器内核View + **/ +@property (weak, readonly, nonatomic) UIView* playerCoreView; +/** + * 获取当前视频总时长 + * onVideoPrepared后此值才有效 + * + * @return 返回当前视频总时长(秒) + */ +@property (assign, nonatomic) CGFloat videoDuration; + +/** + * 获取当前视频播放的时间 + * + * @return 当前视频播放到第几秒 + */ +- (CGFloat)getVideoCurrentTime; + +/** + * 视频播放时要seek到第几秒 + * + * @param seekTime 单位秒 + */ +- (void)videoPlaySeekTo:(CGFloat)seekTime; +/* + * 是否循环播放 + */ +@property (nonatomic, assign) BOOL loop; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWComponent.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWComponent.h new file mode 100644 index 0000000..53cf6be --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWComponent.h @@ -0,0 +1,72 @@ +// +// DWComponent.h +// DWInteractiveSDK +// +// Created by 凌言 on 16/4/6. +// Copyright © 2016年 alibaba. All rights reserved. +// + +#import + +#import +#import +#import +typedef NS_ENUM(NSInteger, DWComponentRenderState) +{ + DWRenderState_None = 1, //未开始 + DWRenderState_Rendering = 2, //渲染中 + DWRenderState_Success = 3, //渲染成功 + DWRenderState_Failure = 4, //渲染失败 +}; + +@interface DWComponentWrapView : UIView +@property (nonatomic, strong) DWInteractiveModel* model; +- (void)startAnimation:(BOOL)animated; +- (void)removeFromSuperviewAnimated:(BOOL)animated; +@end + +typedef void(^DWComponentRenderFinishBlock)(UIView *view); +@protocol DWComponentProtocol + +- (void)renderView; + +- (void)refreshComponent:(NSDictionary*)params; + +- (BOOL)isRenderFinished; + +- (UIView*)getView; + +- (void)onShow; + +- (void)onHidden; + +- (void)onFullScreen; + +- (void)onNormalScreen; + +@end + +@interface DWComponent : UIView + +@property (nonatomic, strong) DWContext *context; + +@property (nonatomic, assign) BOOL portrait; +@property (nonatomic, assign) BOOL staredRender; + +@property (nonatomic, assign) CGRect instanceFrame; +@property (nonatomic, strong) DWInteractiveModel* model; +@property (nonatomic, strong) NSDictionary* utParams; +@property (nonatomic, strong) NSDictionary *outBizData; + +@property (nonatomic, copy) DWComponentRenderFinishBlock finishBlock; +@property (nonatomic, assign) DWComponentRenderState renderState; + +@end + + + + + + + + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWComponentDataMgr.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWComponentDataMgr.h new file mode 100644 index 0000000..d87d7fc --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWComponentDataMgr.h @@ -0,0 +1,28 @@ +// +// DWComponentDataMgr.h +// DWInteractiveSDK +// +// Created by zzqiltw on 16/5/4. +// Copyright © 2016年 alibaba. All rights reserved. +// + +#import +#import +@interface DWComponentDataInstancePair : NSObject + +@property (nonatomic, strong) DWComponent *landscapeInstance; +@property (nonatomic, strong) DWComponent *portraitInstance; + +- (instancetype)initWithLandscapeInstance:(DWComponent *)landscapeInstance portraitInstance:(DWComponent *)protraitInstance; + +@end + +@interface DWComponentDataMgr : NSObject + ++ (DWComponentDataMgr *)shareInstance; + +- (void)clearAllData; +- (void)addInstancePairToListLandScape:(DWComponent *)landscape andPortrait:(DWComponent *)portrait; +- (DWComponent *)getAnotherInstanceWith:(DWComponent *)instance; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWContainerViewController.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWContainerViewController.h new file mode 100644 index 0000000..6b1f16e --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWContainerViewController.h @@ -0,0 +1,13 @@ +// +// DWContainerViewController.h +// DWInteractiveSDK +// +// Created by Jyi on 2017/9/18. +// Copyright © 2017年 alibaba. All rights reserved. +// + +#import + +@interface DWContainerViewController : UIViewController + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWContext.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWContext.h new file mode 100644 index 0000000..7bf25f2 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWContext.h @@ -0,0 +1,80 @@ +// +// DWContext.h +// Pods +// +// Created by jyi on 2016/12/6. +// +// + +#import + +@class DWInstance; +@class DWHighPerformanceInstance; +@class DWAllNewHPInstance; +@class DWVideoFrontModel; +@class DWVideoResources; + +@interface DWContext : NSObject + +@property (nonatomic, weak) DWInstance *dwInstance; +@property (nonatomic, weak) DWHighPerformanceInstance *dwHPInstance; +@property (nonatomic, weak) DWAllNewHPInstance *dwAllNewHPInstance; +@property (nonatomic, weak) DWVideoFrontModel* frontModel; +//只容许存储环境信息 +@property (nonatomic, strong) NSMutableDictionary *properties; +@property (nonatomic, strong) NSDictionary* recommendVideos; +//Config +@property (nonatomic, assign) BOOL muted; +@property (nonatomic, assign) BOOL interactiveHidden; +@property (nonatomic, assign) BOOL onlyShowFullscreen; +@property (nonatomic, assign) float controlsViewTopMargin; +@property (nonatomic, assign) BOOL notAutoPlay; +@property (nonatomic, assign) BOOL hiddenPlayingIcon; +@property (nonatomic, assign) BOOL shownMuteBtn; + +@property (nonatomic, copy) NSDictionary *outBizData; + +@property (copy, nonatomic) NSDictionary *interactiveParms; + +//fangying +@property (nonatomic, strong) NSMutableDictionary *parameters; ++ (BOOL) enableCacheWith:(NSString*)bizcode; ++ (BOOL) enableMediaCacheWith:(NSString*)bizcode; ++ (BOOL) enablePlayControlWith:(NSString*)bizcode; ++ (BOOL) enableH265ForMachine; ++ (BOOL) enablePlayControlServiceBackupLogicWith:(NSString*)bizcode; ++ (BOOL) deferPlayControlRequestWith:(NSString *)bizcode; + + ++ (NSString *)interactiveVideoPlayerCoreMode; ++ (BOOL)isPlayerCoreABTestEnabledForBusiness:(NSString *)bizcode; ++ (NSString *)playerCoreABTestBucket; ++ (NSDictionary *)getDWInteractiveSDKOrangeConfig; ++ (NSDictionary *)getTBMediaPlayerBundleOrangeConfig; ++ (BOOL)isFreeFlowGuideEnabledForBusiness:(NSString *)bizcode; + ++ (void) setFullScreen:(BOOL)fullScreen; ++ (BOOL) fullScreen; ++ (void) startNetworkProxyServerOnce; ++ (void) initSDKEnvironment; + +//UT +//使用过全屏 +@property (nonatomic, assign) BOOL UTFull; +//完整播放过 +@property (nonatomic, assign) BOOL UTComplete; +//视频时间 +@property (nonatomic, assign) float UTVideoDuration; +//用户调用开始播放 +@property (nonatomic, assign) NSTimeInterval userStartPlayTime; +//开始预加载时间 +@property (nonatomic, assign) NSTimeInterval preloadStartTime; +//视频资源信息 +@property (nonatomic, strong) DWVideoResources *videoResources; +//视频播放链路统一埋点标识 +@property (nonatomic, strong) NSString *UTLogToken; + +- (void)tLog:(NSString*)timingName msg:(NSString*)msg; + +@end + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWDefine.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWDefine.h new file mode 100644 index 0000000..5b6cd98 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWDefine.h @@ -0,0 +1,72 @@ +// +// DWDefine.h +// DWInteractiveSDK +// +// Created by 凌言 on 16/4/7. +// Copyright © 2016年 alibaba. All rights reserved. +// + +#ifndef DWDefine_h +#define DWDefine_h + +#define DWCONFIGADAPTER @"DWCONFIGADAPTER" + +#define DWNETWORKADAPTER @"dwnetwork" +#define DWIMGLOADERADAPTER @"dwimgloader" +#define DWUSERTRACKADAPTER @"dwusertrack" +#define DWCELLHANDLERADAPTER @"dwcellhandler" +#define DWEVENTADAPTER @"dwevent" +#define DWVIDEOSOURCEADAPTER @"videosource" +#define DWFOLLOWBTNAPTER @"dwfollowbtn" +#define DWADD2CARDADAPTER @"dwadd2card" +#define DWSHAREADAPTER @"dwshare" +#define DWLOGINSTATUSADAPTER @"dwloginstatus" +#define DWPMESGADAPTER @"dwpowermsg" +#define DWGOODLISTADAPTER @"dwgoodlist" + +#define DWLIKESERVICEADAPTER @"likeservice" + +#define DWChangePlayModeNotification @"DWChangePlayModeNotification" + +//微淘浮层播放消失消息 +#define kDWRecieveWeitaoFullScreenPlayViewWillDisappearNotification @"TBSNSFullScreenPlayerViewWillDisAppear" + +typedef NS_ENUM(NSInteger, DWHPContentMode) { + DWHPContentModeNone, + DWHPContentModeImage, + DWHPContentModeVideo, +}; + +typedef NS_ENUM(NSInteger, DWHPEvent) { + DWHPVideoPlayerPrepared, + DWHPVideoPlayerStartRendering, + DWHPVideoPlayerFirstVideoFrameRendered, + DWHPVideoPlayerTimeupdated, + DWHPVideoPlayerFailedToStart, + DWHPVideoPlayerPaused, + DWHPVideoPlayerEnded, + DWHPVideoPlayerError, + DWHPVideoPlayerStalled, + DWHPVideoPlayerInterrupted, + DWHPVideoPlayerDataUserSEI, + DWHPVideoPlayerDataNetworkTraffic, + DWHPVideoPlayerWillBeRecycled, + DWHPVideoPlayerException, + DWHPVideoPlayerSeekingForward, + DWHPVideoPlayerSeekingBackward, + DWHPVideoPlayerViewTapped, + DWHPVideoPlayerUnknown, + DWHPImageLoadStarted, + DWHPImageLoadFailed, + DWHPImageLoadSucceed +}; + +#define MKTAG(a,b,c,d) ((a) | ((b) << 8) | ((c) << 16) | ((unsigned)(d) << 24)) + +typedef NS_ENUM(NSInteger, DWHPErrorCode) { + DWHPQueryVideoResourceFailed = (-(int)MKTAG(0xF8, 'Q', 'U', 'E')), // -1163219448 +}; + + + +#endif /* DWDefine_h */ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWEventProtocol.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWEventProtocol.h new file mode 100644 index 0000000..84b7091 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWEventProtocol.h @@ -0,0 +1,31 @@ +// +// DWEventProtocol.h +// DWInteractiveSDK +// +// Created by 凌言 on 16/5/12. +// Copyright © 2016年 alibaba. All rights reserved. +// + +#ifndef DWEventProtocol_h +#define DWEventProtocol_h + +#import +@protocol DWEventProtocol + +- (void)openUrl:(NSString*)url; + + + +//addCart 接口使用 +- (void)pullLoginWithCompletionHandler:(void(^)())completion cancelHandler:(void(^)())cancel; +- (void)addCart:(UIView*)SKUInView goodsID:(NSString*)goodsID SKUCancleBlock:(void(^)())SKUCancleBlock; +- (void)closeAddCartView; + +//DWInstanceModule openWebViewLayer时使用 +- (UIViewController*)getCurrentSelectedViewController; +- (void)openWebView:(NSDictionary*)data VC:(UIViewController*)VC component:(DWComponent*)component; +- (void)closeWebView:(UIView *)webView; + +@end + +#endif /* DWEventProtocol_h */ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWFlowPromptView.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWFlowPromptView.h new file mode 100644 index 0000000..dd2c6b5 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWFlowPromptView.h @@ -0,0 +1,24 @@ +// +// DWFlowPromptView.h +// Pods +// +// Created by wentao.wwt on 2017/4/5. +// +// + +#import + + +@interface DWFlowPromptView : UIView + +- (void) setUpView; + +@property (nonatomic, strong) NSString *titleText; +@property (nonatomic, strong) NSString *btnText; + +@property (nonatomic, assign) BOOL btnHidden; + +@property (nonatomic, copy) dispatch_block_t btnClickBlock; + + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWFollowBtnProtocol.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWFollowBtnProtocol.h new file mode 100644 index 0000000..ba36164 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWFollowBtnProtocol.h @@ -0,0 +1,33 @@ +// +// DWFollowBtnProtocol.h +// DWInteractiveSDK +// +// Created by wentao.wwt on 2017/2/23. +// Copyright © 2017年 alibaba. All rights reserved. +// + +#ifndef DWFollowBtnProtocol_h +#define DWFollowBtnProtocol_h + +#import + + +typedef void (^DWFollowBtnOprationBlock) (BOOL isSuccess, BOOL isFollow); + +@protocol DWFollowBtnProtocol + +- (UIButton*)getFollowBtnWithAccountId:(NSString*)accountId + originBiz:(NSString*)originBiz + originFlag:(NSString*)originFlag + originOpration:(DWFollowBtnOprationBlock)block; + + +- (void)addFollowWithAccountId:(NSString*)accountId + originBiz:(NSString*)originBiz + originFlag:(NSString*)originFlag + originOpration:(DWFollowBtnOprationBlock)block; + +@end + + +#endif /* DWFollowBtnProtocol_h */ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWGoodListProtocol.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWGoodListProtocol.h new file mode 100644 index 0000000..fe92a0d --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWGoodListProtocol.h @@ -0,0 +1,26 @@ +// +// DWGoodListProtocol.h +// DWInteractiveSDK +// +// Created by Sapphire on 2018/1/5. +// Copyright © 2018年 alibaba. All rights reserved. +// + +#ifndef DWGoodListProtocol_h +#define DWGoodListProtocol_h + +#endif /* DWGoodListProtocol_h */ + +#import +@protocol DWGoodListProtocol + +- (void)showNewGoodList:(DWContext *)context + items:(NSArray *)items + coverImage:(NSString *)imageUrl + onView:(UIView *)view + delegate:(id)delegate + completion:(void (^)(void))completion; + +- (void)hideNewGoodList; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWHandleCellSelectProtocol.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWHandleCellSelectProtocol.h new file mode 100644 index 0000000..327b001 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWHandleCellSelectProtocol.h @@ -0,0 +1,15 @@ +// +// DWHandleCellSelectProtocol.h +// DWInteractiveSDK +// +// Created by zzqiltw on 16/4/25. +// Copyright © 2016年 alibaba. All rights reserved. +// + +#import + +@protocol DWHandleCellSelectProtocol + +- (void)handleSelectedCellWithURLString:(NSString *)URLString target:(id)target modelData:(id)modelData; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWHighPerformanceInstance.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWHighPerformanceInstance.h new file mode 100644 index 0000000..9142692 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWHighPerformanceInstance.h @@ -0,0 +1,588 @@ +// +// DWInstance.h +// DWInteractiveSDK +// +// Created by 凌言 on 16/4/5. +// Copyright © 2016年 alibaba. All rights reserved. +// +#ifndef BUILD_FOR_BAICHUAN + +#import +#import +#import +#import +#import +#import +#import +#import + +@class TBSVideoIconModel; + +//@protocol DWInteractiveSDKProtocol +// +//- (void)handleLikeStatusChange:(NSNumber*)bLike; +// +//- (void)handleAttentionStatusChange:(NSNumber*)bAttention; +// +//@end + +@interface DWHighPerformanceInstance : NSObject + +#pragma mark - lifecycle + + +typedef void(^onDWHPEventFired)(DWHPEvent event, NSDictionary* info); + +/** + * 不需要互动,interactiveInfo传nil + * playerConfig字段可以为nil,目前支持以下参数: + 1. disableAudio: 选择是否禁掉音频(禁掉音频,即播放器内核会禁止音频的解码和播放),默认为YES,即禁掉音频; + 2. disableTimeUpdate: 选择是否实时上报视频播放时间进度,默认为YES,即不实时上报; + 3. usePlayerManager: 选择是否使用播放器内核多实例管理,默认YES,即使用; + 4. useCustomVideoURL: 选择是否使用特殊转码的视频地址,默认YES,即使用; + 5. useEGLRenderer: 选择是否在TaobaoPlayer下使用EGL渲染,默认NO,即不用EGL; + 6. mute:默认NO,即不静音 + * + * + */ +- (instancetype) initWithVideoInfo:(DWVideoInfo*)videoInfo + interactiveInfo:(DWInteractiveInfo*)interactiveInfo + UTParms:(NSDictionary*)UTParms + playerConfig:(NSDictionary*)config + eventHandler:(onDWHPEventFired)handler; + +@property (nonatomic, strong) DWVideoInfo *videoInfo; + +@property (nonatomic, strong) DWInteractiveInfo *interactiveInfo; + +@property (nonatomic, strong) NSDictionary *UTParms; + +@property (nonatomic, strong) NSDictionary *playerConfig; + +@property (nonatomic, copy) void (^onDWHPEventFired)(DWHPEvent event, NSDictionary* info); + +/** + * 视频播放 + **/ +- (void)videoPlay; + +/** + * 视频暂停 + **/ +- (void)videoPause; + +- (void)videoRefresh; + +/** + * dealloc之前调用此接口释放依赖和资源,重复使用需要调用setup (暂时还不支持复用) + */ +- (void) destroy; + +-(BOOL) isVideoViewPlaying; + +- (void)UTBusinessSwitchWithType:(NSString *)type extraParam:(NSDictionary *)params; + +#pragma mark - common + +//+ (NSString*)getSDKVersion; + +/** + * 播放模式,图片或者视频,默认图片; + */ +@property (nonatomic, assign) DWHPContentMode contentMode; + +/** + * 设置页面的frame + **/ +@property (nonatomic, assign) CGRect frame; + +/** + * + **/ +@property (nonatomic, readonly) UIView *interactiveView; + +/* + * 是否循环播放 + */ +@property (nonatomic, assign) BOOL loop; + +/* + * 是否循静音 + */ +@property (nonatomic, assign) BOOL muted; +//@property (nonatomic, readonly) UIViewController *interactiveViewController; + +/** + * 画面填充模式,目前支持aspectFit、aspectFill、fill三个字段,对视频和封面图都生效 + **/ +@property (nonatomic, copy) NSString* aspectMode; + +/** + * 是否隐藏mini进度条,默认隐藏 + **/ +@property (nonatomic, assign) BOOL hidenMiniProgressView; + +/** + * 永久隐藏控制层(空实现,不做任何动作) + */ +@property (nonatomic, assign) BOOL controlsViewHidden; + +/** + * 原始视频尺寸(宽*高) + */ +@property (nonatomic, readonly) CGSize videoSize; + +/** + * 播放器内核View + **/ +@property (weak, readonly, nonatomic) UIView* playerCoreView; + +#pragma mark - video + +//@property (weak, nonatomic) id lifecycleDelegate; + +/** + * 控制是否需要在播放结束后退出全屏,默认不需要 + * 请先添加interactiveView作为subView和设置frame,并在调用requestInteractiveVideo之前设置,否则以下属性会有使用问题 + */ +//@property (nonatomic, assign) BOOL shouldExitFullScreenWhenComplete; + +/** + * 控制是否需要在播放结束后显示封底,默认不需要 + * 请先添加interactiveView作为subView和设置frame,并在调用requestInteractiveVideo之前设置,否则以下属性会有使用问题 + */ +//@property (nonatomic, assign) BOOL backCoverDisplay; + +/** + * 是否显示右上角关注、进店等按钮 + */ +//@property (nonatomic, assign) BOOL rightMixBtnHiden; + +/** + * 切换全屏和退出全屏时,是否需要动画 + * default = YES + **/ +//@property (nonatomic, assign) BOOL switchScreenAnimation; + +/** + * 设置视频是要全屏播放还是半屏播放 + * 请先添加interactiveView作为subView和设置frame,并在调用requestInteractiveVideo之前设置,否则以下属性会有使用问题 + **/ +//@property (nonatomic, assign) BOOL fullScreen; + +/** + * 设置视频是否隐藏close按钮,默认不隐藏; 而如果直接使用TBAVPlayerView,则是隐藏的 + * 请先添加interactiveView作为subView和设置frame,并在调用requestInteractiveVideo之前设置,否则以下属性会有使用问题 + */ +//@property (nonatomic, assign) BOOL needHideCloseButton; + +/** + * 设置视频的封面图 + * 请先添加interactiveView作为subView和设置frame,否则以下属性会有使用问题 + */ +//@property (nonatomic, strong) UIImage *thumbnailImage; + +/** + * 封面图的View + * 用来自定义业务方需求 + */ +//@property (nonatomic, readonly) UIImageView *thumbnailImageView; + +/** + * 控制显示隐藏宝贝列表按钮 + * default = NO + */ +//@property (nonatomic, assign) BOOL goodsListBtnHidden; + +/** + * 控制显示隐藏宝贝列表按钮 + * default = NO + */ +//@property (nonatomic, assign) BOOL goodsListBtnFullScreenHidden; +/** + * 控制小屏时显示隐藏喜欢按钮 + * default = YES + */ +//@property (nonatomic, assign) BOOL likeBtnHidden; + +/** + * 控制大屏时显示隐藏喜欢按钮 + * default = YES + */ +//@property (nonatomic, assign) BOOL likeBtnFullScreenHidden; +/** + * 控制显示隐藏举报 + * default = YES + */ +//@property (nonatomic, assign) BOOL reportHidden; + +/** + * 播放器静音按钮, default = NO + */ +//@property (nonatomic, assign) BOOL mutedBtnDisplay; +//是否开启弹幕功能 +//@property (nonatomic, assign) BOOL danmakuHidden; + + +/** + * 互动隐藏, default = NO + */ +//@property (nonatomic, assign) BOOL interactiveHidden; + +/** + * 隐藏视频控制栏上的全屏按钮 + */ +//@property (nonatomic, assign) BOOL hideFullScreenButton; + +/* + * 全屏下点击返回按钮,不进入详情页面。default = NO + */ +//@property (nonatomic, assign) BOOL onlyShowFullscreen; + +/* + * 业务方是否需要封面图。请在调用setUp之前设置。 defalut = NO + */ +//@property (nonatomic, assign) BOOL needVideoFrontView; + +/* + * 隐藏SmallBar时显示的倒计时组件 + */ +//@property (nonatomic, assign) BOOL hiddenPlayingIcon; + +/* + * 静默下显示打开声音的按钮 + */ +//@property (nonatomic, assign) BOOL shownMuteBtn; + +/* + * For 详情定制。请在setUp之后调用,removeView后请set成nil(通知我去显示全屏按钮) + */ +//@property (nonatomic, weak) UIView* customView; + +/* + * 互动SDK对外protocol接口 + */ +//@property (nonatomic, weak) id interactiveDelegate; + +/* + * weex组件对外protocol接口,提供给GoHi,给他weexView自己处理 + */ +//@property (nonatomic, weak) id addWeexCallbackDelegate; + +/* + * 隐藏网络错误提示 + */ +//@property (nonatomic, assign) BOOL networkErrorViewHidden; + +/* + * 隐藏播放器错误提示 + */ +//@property (nonatomic, assign) BOOL playErrorViewHidden; + +/* + * 隐藏所有toast显示 + */ +//@property (nonatomic, assign) BOOL toastHidden; + +/* + * 隐藏所有手势操作显示 + */ +//@property (nonatomic, assign) BOOL gestureViewHidden; + +/* + * 是否关闭免流按钮展示逻辑。 + */ +//@property (nonatomic, assign) BOOL disableFreeFlowButton; + +/* + * 视频控制栏高度 + */ +//@property (nonatomic, readonly) CGFloat controlBarHeight; + +/** + * 隐藏封面图上的播放按钮 + * setup之后调用此接口 + */ +//@property (nonatomic, assign) BOOL thumbnailPlayBtnHidden; + +/** + * 永久隐藏控制层,用户点击视频区域也不会显示控制层 + */ +//@property (nonatomic, assign) BOOL controlsViewHidden; + +/** + * weex发起点赞,点赞成功后的回调 + */ +//@property (nonatomic, copy) DWLikeServiceComplete handleLikeStatus; +/** + * 开启小窗模式 + */ +//@property (nonatomic, assign) BOOL floating; + +/** + * 显示播放器的控制层并设置几秒后隐藏 + * delay 设置为0,显示后不自动隐藏 + */ +//- (void) showControlBarWithDelay:(NSTimeInterval)delay; + +/** + * 延迟几秒后隐藏播放器的控制层 + * delay 设置为0,立即隐藏 + */ +//- (void) hideControlBarWithDelay:(NSTimeInterval)delay; + +/** + * 临时暴露,后续优化 + * + */ +//- (DWPlayer*) player; + +/** + * 视频停止 + **/ +//TODO 这个接口不好用了 +//- (void)videoStop; + +/** + * 获取当前视频总时长 + * onVideoPrepared后此值才有效 + * + * @return 返回当前视频总时长(秒) + */ +- (CGFloat)videoDuration; + +/** + * 获取当前视频播放的时间 + * + * @return 当前视频播放到第几秒 + */ +- (CGFloat)getVideoCurrentTime; + +/** + * 视频播放时要seek到第几秒 + * + * @param seekTime 单位秒 + */ +- (void)videoPlaySeekTo:(CGFloat)seekTime; + +/** + * 添加/删除自定义封面 + */ +//- (void) addCoverView:(UIView*)view; +//- (void) removeCoverView:(UIView*)view; + +/** + * 加入购物车 + */ +//- (void)addCart:(NSDictionary *)itemInfo; +/** + * 暴露给直接进入视频全屏页的需求用,在context里面加个环境变量标识是否是打开直接进入全屏页 + */ +//- (void)setDWInstanceFromFullScreen:(BOOL)isFromFullScreen; +/** + * 取消点赞请求,暴露给container全屏页使用 + */ +//- (void)requestCancleLike:(DWLikeServiceComplete) completionBlock; +/** + * 点赞请求,暴露给container全屏页使用 + */ +//- (void)requestAddLike:(DWLikeServiceComplete) completionBlock; +/** + * 更新点赞状态 + */ +//- (void)updateLikeButton:(BOOL)like num:(NSInteger)num; + +//- (void)queryAliBaoCardFreeFlow:(NSString *)bizCode result:(void (^)(BOOL isSuccess, NSString *code, NSString *returnDesc))result; +//- (BOOL)isChinaUnicom; + +/** + * weex处理点赞事件 + */ +//- (void)handleWeexLikedOperation:(BOOL)bliked callback:(DWLikeServiceComplete)completionBlock; + +/** + * weex处理发弹幕事件 + */ +//- (void)handleWeexSendDanma:(void (^)(BOOL))complete; + +/** + * weex调用关注功能入口 + */ +//- (void)handleWeexAddFollow:(void(^)(BOOL success))complete; + +/** + * 设置weex组件显示白名单 + * 在调用DWInstance的setupNotAutoPlay和setUp方法之前设置 + */ +//- (void)addWhiteWeexCmpList:(NSArray *)list; + +/** + * 设置全屏weex组件显示白名单 + * 在调用DWInstance的setupNotAutoPlay和setUp方法之前设置 + */ +//- (void)addFullScreenWeexCmpList:(NSArray *)list; + +/** + * 设置隐藏外互动的weex组件白名单 + * 在调用DWInstance的setupNotAutoPlay和setUp方法之前设置 + */ +//- (void)addHideOuterViewWeexCmpList:(NSArray *)list; + +/** + * weex组件消失回调 + */ +//- (void)onWXCmpDismiss:(NSString *)source; + +/** + * 设置weex组件显示位置 + * 在调用DWInstance的setupNotAutoPlay和setUp方法之前设置 + */ +//- (void)changeWeexCmpFrame:(NSArray *)list; + +/** + * 获取所有按钮的开关状态,给weex调用 + */ +//- (NSDictionary *)getAllInteractiveBtnStatus; + +/** + * 重新请求互动信息 + */ +//- (void)reloadInteractive; + +/** + * 为详情增加插入右侧按钮坑位,所有按钮居中展示的功能,此方法加入的view在右侧只有一个点赞按钮时才会显示,其他情况均不显示。 + * @params up 在点赞按钮的上方/下方 + * @params layout 加入按钮后是否立刻布局,如果同时加入两个按钮建议第一个传NO,第二个传YES,两个按钮加完后一起布局,否则会影响性能。 + * 注意view的frame是50*47,右侧互动按钮都是这个尺寸,麻烦按照我们的尺寸来。 + **/ +//- (void)addViewToRightInteractiveView:(UIView *)view upOfLikeBtn:(BOOL)up needLayout:(BOOL)layout; + +//- (void)addRightBarIconWithItems:(NSArray *)iconModel; + +/** + * 配合套娃项目修改,打开新的视频 + **/ + +//- (void)openNewVideo:(NSUInteger)level index:(NSUInteger)index; + +/** + * 配合套娃项目修改,分享套娃视频 + **/ +//- (void)share:(NSUInteger)level index:(NSUInteger)index type:(NSUInteger)type; + +//- (void)postEventForWeexComponent:(NSString *)eventName params:(NSDictionary *)params; + +/** + * 配合套娃项目修改,套娃中的数据需要透传到业务方 + **/ +//- (NSDictionary *)taowaData; +//- (NSDictionary *)shareData; + +/** + * 提供给weex的接口在当前页面打开一个weex浮层 + **/ +//- (void)openWeexViewLayer:(NSDictionary *)weexData; + +/** + * 关闭weex组件 + **/ +//- (void)closeWeexViewLayer; + +/** + * 提供给weex的接口在业务页面打开一个weex浮层 + **/ +//- (void)openViewOnFullScreenLayer:(NSDictionary *)weexData; + +/** + * 关闭weex业务层组件 + **/ +//- (void)closeFullScreenLayer; + +/** + * weex触发,通知映像淘宝全屏页隐藏所有互动 +**/ +//- (void)showAllInteractiveCmp:(BOOL)show; + +/** + * weex触发,在时间点之前主动隐藏weex + **/ +//- (void)invisibaleWXCmp:(id)component; + +// 强制隐藏视频右上角的logo +//- (void)forceHideVideoLogoView; + +// 强制隐藏播放进度条上的剩余时间展示; +//- (void)forceHideVideoRemainTime; + +#pragma mark - Private + +@property (nonatomic, strong) DWContext *context; + +//@property (nonatomic, weak) DWPlayer *curPlayer; + +//- (void) quitFullScreen; + +/** + * 视频唤起登陆回调 + **/ +//@property (nonatomic, copy) void (^onReceivedLoginNotification)(); + + +//- (instancetype) init __attribute__((unavailable("init not available, call initWithVideoInfo:interactiveInfo:UTParms"))); + +//+ (instancetype) new __attribute__((unavailable("new not available, call initWithVideoInfo:interactiveInfo:UTParms"))); + +//- (void) openUrlAction:(NSString*)URL; + +//- (void)openUrlActionNotQuitFullScreen:(NSString*)URL; + +//! 播前或者播后展示右侧的bar +//- (void)predisplayInteractiveRightBar; +//! 即将播放时或暂停时恢复右侧bar的状态 +//- (void)restoreInteractiveRightBar; + +#pragma mark - Deprecated + +/** + * 设置视频的播放模式 + * 请先添加interactiveView作为subView和设置frame,并在调用requestInteractiveVideo之前设置,否则以下属性会有使用问题 + */ +//typedef NS_ENUM(NSInteger, DWPlayerViewMode) { +// DWPlayerViewModeUnknown = 0, +// DWPlayerViewModeNormal, +// DWPlayerViewModeMute +//}; +//@property (nonatomic, assign) DWPlayerViewMode playMode DEPRECATED_MSG_ATTRIBUTE("请使用拆分后的接口 muted, interactiveHidden"); + +/** + * 外部关闭视频浮层时设置埋点状态 + */ +//- (void)change2VideoCloseUTStatus DEPRECATED_MSG_ATTRIBUTE("这个接口没工作过,不要了"); + +/** + * 控制是否需要在播放结束后显示大的播放按钮,默认需要 + * 请先添加interactiveView作为subView和设置frame,并在调用requestInteractiveVideo之前设置,否则以下属性会有使用问题 + */ +//@property (nonatomic, assign) BOOL shouldShowBigPlayBtnWhenComplete DEPRECATED_MSG_ATTRIBUTE("现在控制栏的播放按扭,移到屏幕中间去了,所以这个接口没意义了"); + + +/** + * 此接口为了兼容老逻辑,不要使用此接口,请使用setupNotAutoPlay。 + * 初始化完成后,或者destory后设置完参数,调用此接口 (为了兼容老逻辑,setup后自动播放) + */ +//- (void) setup; + +/** + * 不要使用,为了兼容老逻辑 + * Wi-Fi下普通视屏播放 + * 如果有直播小窗,SDK会禁止WiFi自动播放(新接入业务方不要使用此接口) + **/ +//- (void)wifiStartVideo DEPRECATED_MSG_ATTRIBUTE("废弃"); +@end + +#endif // BUILD_FOR_BAICHUAN + + + + + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWHighPerformanceVideoController.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWHighPerformanceVideoController.h new file mode 100644 index 0000000..dd86f5d --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWHighPerformanceVideoController.h @@ -0,0 +1,54 @@ +// +// DWInteractiveViewController.h +// DWInteractiveSDK +// +// Created by jyi on 2016/10/13. +// Copyright © 2016年 alibaba. All rights reserved. +// + +#import +#import +typedef NS_ENUM(NSInteger, DWHPVideoPlayerEvent) { + DWHPVideoPlayerEventPrepared, + DWHPVideoPlayerEventStartRendering, + DWHPVideoPlayerEventFirstVideoFrameRendered, + DWHPVideoPlayerEventPaused, + DWHPVideoPlayerEventEnded, + DWHPVideoPlayerEventTimeupdated, + DWHPVideoPlayerEventError, + DWHPVideoPlayerEventStalled, + DWHPVideoPlayerEventInterrupted, + DWHPVideoPlayerEventDataUserSEI, + DWHPVideoPlayerEventDataNetworkTraffic, + DWHPVideoPlayerEventWillBeRecycled, + DWHPVideoPlayerEventException, + DWHPVideoPlayerEventSeekingForward, + DWHPVideoPlayerEventSeekingBackward, + DWHPVideoPlayerEventViewTapped, + DWHPVideoPlayerEventUnknown, +}; + +@interface DWHighPerformanceVideoController : UIViewController + +-(void)play; +-(void)pause; +- (void)refresh; +-(void)stop; + +@property (nonatomic, weak) DWContext *context; +@property (nonatomic, assign, readonly) BOOL isPlaying; +@property (nonatomic, copy) void (^DWHPVideoPlayerEventHandler)(DWHPVideoPlayerEvent event, NSDictionary* info); +@property (nonatomic, assign) CGRect frame; +@property (nonatomic, assign) BOOL loop; +@property (nonatomic, assign) BOOL muted; +@property (assign, readonly, nonatomic) BOOL isLoadingFromCache; +@property (copy, nonatomic) NSString* aspectMode; +@property (assign, readonly, nonatomic) NSTimeInterval duration; +@property (assign, nonatomic) NSTimeInterval currentTime; +@property (nonatomic, copy) NSString* url; +@property (nonatomic, assign) BOOL hidenMiniProgressView; +@property (nonatomic, readonly) CGSize videoSize; +@property (weak, readonly, nonatomic) UIView* playerCoreView; + + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWImgLoaderProtocol.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWImgLoaderProtocol.h new file mode 100644 index 0000000..8b384c7 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWImgLoaderProtocol.h @@ -0,0 +1,31 @@ +// +// DWImgLoaderProtocol.h +// DWInteractiveSDK +// +// Created by 凌言 on 16/4/5. +// Copyright © 2016年 alibaba. All rights reserved. +// + +#ifndef DWImgLoaderProtocol_h +#define DWImgLoaderProtocol_h + +#import + + +@protocol DWImgLoaderProtocol + +/** + * 下载图片 + * @param url : 图片URL + * @param userInfo : 用户信息 + * imageQuality : 图片质量 + * imageSharp : 图片策略 + * @param completedBlock : 下载结束回调 + * + **/ +- (void)setImageByURL:(NSString *)url imageView:(UIImageView *)imageView userInfo:(NSDictionary *)userInfo completed:(void(^)(UIImage *image, NSError *error, BOOL finished))completedBlock; + +- (UIImageView *)generateImageViewForGIFNamed:(NSString *)name frame:(CGRect)frame; + +@end +#endif /* DWImgLoaderProtocol_h */ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWInstance+Interface.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWInstance+Interface.h new file mode 100644 index 0000000..007518f --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWInstance+Interface.h @@ -0,0 +1,90 @@ +// +// DWInstance+Interface.h +// DWInteractiveSDK +// +// Created by Jyi on 2018/1/12. +// Copyright © 2018年 alibaba. All rights reserved. +// + + +#import +@interface DWInstance (Interface) + +/** + * 视频播放 + **/ +- (void)videoPlay; + +/** + * 视频暂停 + **/ +- (void)videoPause; + +/** + * 视频是否正在播放 + * + * @return 是否正在播放 + */ +- (BOOL)isVideoViewPlaying; + +/* + * 是否使用视频预加载 default YES + * 在调用setup之前调用此接口 + */ +@property (nonatomic, assign) BOOL preload; + +/* + * preload = NO的情况下,业务方主动调用此接口,进行视频预加载 + */ +- (void) loadVideo; + +/* + * 是否循环播放 + */ +@property (nonatomic, assign) BOOL loop; + +/* + * 隐藏loading状态显示的UI,需要setup之前调用,不然第一次loading会被显示 + */ +@property (nonatomic, assign) BOOL loadingHidden; + +/** + * 播放器静音, default = NO + */ +@property (nonatomic, assign) BOOL muted; + +/* + * 控件层,相对interactiView的间距。 defalut = 0.0 + */ +@property (nonatomic, assign) CGFloat controlsViewTopMargin; + +/* + * 隐藏mini进度条,因是UI操作,请在setup后调用。 + */ +@property (nonatomic, assign) BOOL miniProgressViewHidden; + +/* + * 隐藏mini进度条上的锚点,默认为YES + */ +@property (nonatomic, assign) BOOL miniProgressAnchorHidden; + +/* + * 自定义弹出的toast的上边距 + */ +@property (nonatomic, assign) CGFloat toastTopMargin; + +/* + * 正常视频屏幕状态下,并且非静音状态下,开启手势控制视频播放进度 default = NO + * setup之后调用此接口 + */ +@property (nonatomic, assign) BOOL normalScreenAndNotMutedForGestureSeekOperation; + +@end + + + + + + + + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWInstance+RegisterAdapter.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWInstance+RegisterAdapter.h new file mode 100644 index 0000000..e797240 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWInstance+RegisterAdapter.h @@ -0,0 +1,50 @@ +// +// DWInstance+RegisterAdapter.h +// DWInteractiveSDK +// +// Created by Jyi on 2018/2/5. +// Copyright © 2018年 alibaba. All rights reserved. +// + + +#import +@interface DWInstance (RegisterAdapter) + +#pragma mark - 注册adapter +/** + * 手淘内不需要注册 + **/ ++ (void)registerUserTrackAdapterWithClass:(id)class; + ++ (void)registerImgLoaderAdapterWithClass:(id)class; + ++ (void)registerNetworkAdapterWithClass:(id)class; + ++ (void)registerVideoSourceAdapterWithClass:(id)class; + ++ (void)registerFollowBtnAdapterWithClass:(id)class; + ++ (void)registerAdd2CardAdapterWithClass:(id)class; + ++ (void)registerCellSelectHandlerAdapterWithClass:(id)class; + ++ (void)registerEventAdapterWithClass:(id)class; + ++ (void)registerShareAdapterWithClass:(id)class; + ++ (void)registerLoginStatusAdapterWithClass:(id)class; + ++ (void)registerPMesgAdapterWithClass:(id)class; + ++ (void)registerComponentName:(NSString*)name withClass:(Class)class; + ++ (void)registerLikeServiceAdapterWithClass:(id)class; + ++ (void)registerGoodListAdapterWithClass:(id)class; + +/** + * 仅供测试同学跑demo使用 + */ ++ (void)registerNewNetworkAdapterWithClass:(id)class; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWInstance.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWInstance.h new file mode 100644 index 0000000..9d28e88 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWInstance.h @@ -0,0 +1,561 @@ +// +// DWInstance.h +// DWInteractiveSDK +// +// Created by 凌言 on 16/4/5. +// Copyright © 2016年 alibaba. All rights reserved. +// + +#import +#import +#import +#import +#import +#import +@class TBSVideoIconModel; + +@protocol DWInteractiveSDKProtocol + +- (void)handleLikeStatusChange:(NSNumber*)bLike; + +- (void)handleAttentionStatusChange:(NSNumber*)bAttention; + +@end + +@interface DWInstance : NSObject + +#pragma mark - lifecycle + +/** + * 不需要互动,interactiveInfo传nil + */ +- (instancetype) initWithVideoInfo:(DWVideoInfo*)videoInfo + interactiveInfo:(DWInteractiveInfo*)interactiveInfo + UTParms:(NSDictionary*)UTParms; + +- (instancetype) initWithVideoInfo:(DWVideoInfo*)videoInfo + interactiveInfo:(DWInteractiveInfo*)interactiveInfo + UTParms:(NSDictionary*)UTParms + playerConfig:(NSDictionary *)config; + +@property (nonatomic, strong) DWVideoInfo *videoInfo; + +@property (nonatomic, strong) DWInteractiveInfo *interactiveInfo; + +@property (nonatomic, strong) NSDictionary *UTParms; + +/* + * 初始化完成后,或者destory后设置完参数,调用此接口 + */ +- (void) setupNotAutoPlay; + +/** + * dealloc之前调用此接口释放依赖和资源,重复使用需要调用setup (暂时还不支持复用) + */ +- (void) destroy; + +#pragma mark - common + ++ (NSString*)getSDKVersion; + +/** + * 设置页面的frame + **/ +@property (nonatomic, assign) CGRect frame; + +/** + * + **/ +@property (nonatomic, readonly) UIView *interactiveView; +@property (nonatomic, readonly) UIViewController *interactiveViewController; +@property (nonatomic, strong) NSDictionary *playerConfig; +/** + * 视频互动数据成功回调 + **/ +@property (nonatomic, copy) void (^onSuccess)(UIView *); + +/** + * 视频互动数据失败回调 + **/ +@property (nonatomic, copy) void (^onError)(NSError *error); + +/** + * 视频从全屏返回回调 + **/ +@property (nonatomic, copy) void (^onBackToNormalScreen)(); + +#pragma mark - video + +@property (weak, nonatomic) id lifecycleDelegate; + +/** + * 控制是否需要在播放结束后退出全屏,默认不需要 + * 请先添加interactiveView作为subView和设置frame,并在调用requestInteractiveVideo之前设置,否则以下属性会有使用问题 + */ +@property (nonatomic, assign) BOOL shouldExitFullScreenWhenComplete; + +/** + * 控制是否需要在播放结束后显示封底,默认不需要 + * 请先添加interactiveView作为subView和设置frame,并在调用requestInteractiveVideo之前设置,否则以下属性会有使用问题 + */ +@property (nonatomic, assign) BOOL backCoverDisplay; + +/** + * 是否显示右上角关注、进店等按钮 + */ +@property (nonatomic, assign) BOOL rightMixBtnHiden; + +/** + * 画面填充模式,目前支持aspectFit、aspectFill、fill三个字段 + **/ +@property (nonatomic, copy) NSString* aspectMode; + +/** + * 切换全屏和退出全屏时,是否需要动画 + * default = YES + **/ +//@property (nonatomic, assign) BOOL switchScreenAnimation; + +/** + * 设置视频是要全屏播放还是半屏播放 + * 请先添加interactiveView作为subView和设置frame,并在调用requestInteractiveVideo之前设置,否则以下属性会有使用问题 + **/ +@property (nonatomic, assign) BOOL fullScreen; + +/** + * 设置视频是否隐藏close按钮,默认不隐藏; 而如果直接使用TBAVPlayerView,则是隐藏的 + * 请先添加interactiveView作为subView和设置frame,并在调用requestInteractiveVideo之前设置,否则以下属性会有使用问题 + */ +@property (nonatomic, assign) BOOL needHideCloseButton; + +/** + * 设置视频的封面图 + * 请先添加interactiveView作为subView和设置frame,否则以下属性会有使用问题 + */ +@property (nonatomic, strong) UIImage *thumbnailImage; + +/** + * 封面图的View + * 用来自定义业务方需求 + */ +@property (nonatomic, readonly) UIImageView *thumbnailImageView; + +/** + * 控制显示隐藏宝贝列表按钮 + * default = NO + */ +@property (nonatomic, assign) BOOL goodsListBtnHidden; + +/** + * 控制显示隐藏宝贝列表按钮 + * default = NO + */ +@property (nonatomic, assign) BOOL goodsListBtnFullScreenHidden; +/** + * 控制小屏时显示隐藏喜欢按钮 + * default = YES + */ +@property (nonatomic, assign) BOOL likeBtnHidden; + +/** + * 控制大屏时显示隐藏喜欢按钮 + * default = YES + */ +@property (nonatomic, assign) BOOL likeBtnFullScreenHidden; +/** + * 控制显示隐藏举报 + * default = YES + */ +@property (nonatomic, assign) BOOL reportHidden; + +/** + * 播放器静音按钮, default = NO + */ +@property (nonatomic, assign) BOOL mutedBtnDisplay; +//是否开启弹幕功能 +@property (nonatomic, assign) BOOL danmakuHidden; + + +/** + * 互动隐藏, default = NO + */ +@property (nonatomic, assign) BOOL interactiveHidden; + +/** + * 隐藏视频控制栏上的全屏按钮 + */ +@property (nonatomic, assign) BOOL hideFullScreenButton; + +/* + * 全屏下点击返回按钮,不进入详情页面。default = NO + */ +@property (nonatomic, assign) BOOL onlyShowFullscreen; + +/* + * 业务方是否需要封面图。请在调用setUp之前设置。 defalut = NO + */ +@property (nonatomic, assign) BOOL needVideoFrontView; + +/* + * 隐藏SmallBar时显示的倒计时组件 + */ +@property (nonatomic, assign) BOOL hiddenPlayingIcon; + +/* + * 静默下显示打开声音的按钮 + */ +@property (nonatomic, assign) BOOL shownMuteBtn; + +/* + * For 详情定制。请在setUp之后调用,removeView后请set成nil(通知我去显示全屏按钮) + */ +@property (nonatomic, weak) UIView* customView; + +/* + * 互动SDK对外protocol接口 + */ +@property (nonatomic, weak) id interactiveDelegate; + +/* + * weex组件对外protocol接口,提供给GoHi,给他weexView自己处理 + */ +@property (nonatomic, weak) id addWeexCallbackDelegate; + +/* + * 隐藏网络错误提示 + */ +@property (nonatomic, assign) BOOL networkErrorViewHidden; + +/* + * 隐藏播放器错误提示 + */ +@property (nonatomic, assign) BOOL playErrorViewHidden; + +/* + * 隐藏所有toast显示 + */ +@property (nonatomic, assign) BOOL toastHidden; + +/* + * 隐藏所有手势操作显示 + */ +@property (nonatomic, assign) BOOL gestureViewHidden; + +/* + * 是否关闭免流按钮展示逻辑。 + */ +@property (nonatomic, assign) BOOL disableFreeFlowButton; + +/* + * 视频控制栏高度 + */ +@property (nonatomic, readonly) CGFloat controlBarHeight; + +/** + * 隐藏封面图上的播放按钮 + * setup之后调用此接口 + */ +@property (nonatomic, assign) BOOL thumbnailPlayBtnHidden; + +/** + * 永久隐藏控制层,用户点击视频区域也不会显示控制层 + */ +@property (nonatomic, assign) BOOL controlsViewHidden; + +/** + * weex发起点赞,点赞成功后的回调 + */ +@property (nonatomic, copy) DWLikeServiceComplete handleLikeStatus; +/** + * 开启小窗模式 + */ +@property (nonatomic, assign) BOOL floating; + +/** + * 对外透出全屏按钮 + */ +@property (nonatomic, weak) UIButton *fullscreenButton; + +/** + * 显示播放器的控制层并设置几秒后隐藏 + * delay 设置为0,显示后不自动隐藏 + */ +- (void) showControlBarWithDelay:(NSTimeInterval)delay; + +/** + * 延迟几秒后隐藏播放器的控制层 + * delay 设置为0,立即隐藏 + */ +- (void) hideControlBarWithDelay:(NSTimeInterval)delay; + +/** + * 临时暴露,后续优化 + * + */ +- (DWPlayer*) player; + +/** + * 视频停止 + **/ +//TODO 这个接口不好用了 +- (void)videoStop; + +/** + * 获取当前视频总时长 + * onVideoPrepared后此值才有效 + * + * @return 返回当前视频总时长(秒) + */ +- (CGFloat)videoDuration; + +/** + * 获取当前视频播放的时间 + * + * @return 当前视频播放到第几秒 + */ +- (CGFloat)getVideoCurrentTime; + +/** + * 视频播放时要seek到第几秒 + * + * @param seekTime 单位秒 + */ +- (void)videoPlaySeekTo:(CGFloat)seekTime; + +/** + * 添加/删除自定义封面 + */ +- (void) addCoverView:(UIView*)view; +- (void) removeCoverView:(UIView*)view; + +/** + * 加入购物车 + */ +- (void)addCart:(NSDictionary *)itemInfo; +/** + * 暴露给直接进入视频全屏页的需求用,在context里面加个环境变量标识是否是打开直接进入全屏页 + */ +- (void)setDWInstanceFromFullScreen:(BOOL)isFromFullScreen; +/** + * 取消点赞请求,暴露给container全屏页使用 + */ +- (void)requestCancleLike:(DWLikeServiceComplete) completionBlock; +/** + * 点赞请求,暴露给container全屏页使用 + */ +- (void)requestAddLike:(DWLikeServiceComplete) completionBlock; +/** + * 更新点赞状态 + */ +- (void)updateLikeButton:(BOOL)like num:(NSInteger)num; + +- (void)queryAliBaoCardFreeFlow:(NSString *)bizCode result:(void (^)(BOOL isSuccess, NSString *code, NSString *returnDesc))result; +- (BOOL)isChinaUnicom; + +#if !defined(BUILD_FOR_BAICHUAN) || !(BUILD_FOR_BAICHUAN) +/** + * weex处理点赞事件 + */ +- (void)handleWeexLikedOperation:(BOOL)bliked callback:(DWLikeServiceComplete)completionBlock; + +/** + * weex处理发弹幕事件 + */ +- (void)handleWeexSendDanma:(void (^)(BOOL))complete; + +/** + * weex调用关注功能入口 + */ +- (void)handleWeexAddFollow:(void(^)(BOOL success))complete; + +/** + * 设置weex组件显示白名单 + * 在调用DWInstance的setupNotAutoPlay和setUp方法之前设置 + */ +- (void)addWhiteWeexCmpList:(NSArray *)list; + +/** + * 设置全屏weex组件显示白名单 + * 在调用DWInstance的setupNotAutoPlay和setUp方法之前设置 + */ +- (void)addFullScreenWeexCmpList:(NSArray *)list; + +/** + * 设置隐藏外互动的weex组件白名单 + * 在调用DWInstance的setupNotAutoPlay和setUp方法之前设置 + */ +- (void)addHideOuterViewWeexCmpList:(NSArray *)list; + +/** + * weex组件消失回调 + */ +- (void)onWXCmpDismiss:(NSString *)source; + +/** + * 设置weex组件显示位置 + * 在调用DWInstance的setupNotAutoPlay和setUp方法之前设置 + */ +- (void)changeWeexCmpFrame:(NSArray *)list; + +/** + * 获取所有按钮的开关状态,给weex调用 + */ +- (NSDictionary *)getAllInteractiveBtnStatus; +#endif // !defined(BUILD_FOR_BAICHUAN) || !(BUILD_FOR_BAICHUAN) + +/** + * 重新请求互动信息 + */ +- (void)reloadInteractive; + +/** + * 为详情增加插入右侧按钮坑位,所有按钮居中展示的功能,此方法加入的view在右侧只有一个点赞按钮时才会显示,其他情况均不显示。 + * @params up 在点赞按钮的上方/下方 + * @params layout 加入按钮后是否立刻布局,如果同时加入两个按钮建议第一个传NO,第二个传YES,两个按钮加完后一起布局,否则会影响性能。 + * 注意view的frame是50*47,右侧互动按钮都是这个尺寸,麻烦按照我们的尺寸来。 + **/ +- (void)addViewToRightInteractiveView:(UIView *)view upOfLikeBtn:(BOOL)up needLayout:(BOOL)layout; + +- (void)addRightBarIconWithItems:(NSArray *)iconModel; + +/** + * 配合套娃项目修改,打开新的视频 + **/ + +- (void)openNewVideo:(NSUInteger)level index:(NSUInteger)index; + +/** + * 配合套娃项目修改,分享套娃视频 + **/ +- (void)share:(NSUInteger)level index:(NSUInteger)index type:(NSUInteger)type; + +#if !defined(BUILD_FOR_BAICHUAN) || !(BUILD_FOR_BAICHUAN) +- (void)postEventForWeexComponent:(NSString *)eventName params:(NSDictionary *)params; +#endif // !defined(BUILD_FOR_BAICHUAN) || !(BUILD_FOR_BAICHUAN) + +/** + * 配合套娃项目修改,套娃中的数据需要透传到业务方 + **/ +- (NSDictionary *)taowaData; +- (NSDictionary *)shareData; + +#if !defined(BUILD_FOR_BAICHUAN) || !(BUILD_FOR_BAICHUAN) +/** + * 提供给weex的接口在当前页面打开一个weex浮层 + **/ +- (void)openWeexViewLayer:(NSDictionary *)weexData; + +/** + * 关闭weex组件 + **/ +- (void)closeWeexViewLayer; + +/** + * 提供给weex的接口在业务页面打开一个weex浮层 + **/ +- (void)openViewOnFullScreenLayer:(NSDictionary *)weexData; + +/** + * 关闭weex业务层组件 + **/ +- (void)closeFullScreenLayer; + +/** + * weex触发,通知映像淘宝全屏页隐藏所有互动 +**/ +- (void)showAllInteractiveCmp:(BOOL)show; + +/** + * weex触发,在时间点之前主动隐藏weex + **/ +- (void)invisibaleWXCmp:(id)component; +#endif // !defined(BUILD_FOR_BAICHUAN) || !(BUILD_FOR_BAICHUAN) + +// 强制隐藏视频右上角的logo +- (void)forceHideVideoLogoView; + +// 强制隐藏播放进度条上的剩余时间展示; +- (void)forceHideVideoRemainTime; + +// 业务设置播放器的背景图,设置了背景图后,播放区域的黑色部分用该图片覆盖。 +- (void)setVideoBackgroundImage:(UIImage *)image; + +- (void)UTBusinessSwitchWithType:(NSString *)type extraParam:(NSDictionary *)params; + +#pragma mark - Private + +@property (nonatomic, strong) DWContext *context; + +@property (nonatomic, weak) DWPlayer *curPlayer; + +- (void) quitFullScreen; + +/** + * 视频唤起登陆回调 + **/ +@property (nonatomic, copy) void (^onReceivedLoginNotification)(); + +@property (nonatomic, assign) BOOL deferredRequestPlayControlService; + + +//- (instancetype) init __attribute__((unavailable("init not available, call initWithVideoInfo:interactiveInfo:UTParms"))); + +//+ (instancetype) new __attribute__((unavailable("new not available, call initWithVideoInfo:interactiveInfo:UTParms"))); + +- (void) openUrlAction:(NSString*)URL; + +- (void)openUrlActionNotQuitFullScreen:(NSString*)URL; + +//! 播前或者播后展示右侧的bar +- (void)predisplayInteractiveRightBar; +//! 即将播放时或暂停时恢复右侧bar的状态 +- (void)restoreInteractiveRightBar; + +- (void)requestPlayUrlWithAutoPlay:(BOOL)autoPlay; + +#pragma mark - Deprecated + +/** + * 设置视频的播放模式 + * 请先添加interactiveView作为subView和设置frame,并在调用requestInteractiveVideo之前设置,否则以下属性会有使用问题 + */ +typedef NS_ENUM(NSInteger, DWPlayerViewMode) { + DWPlayerViewModeUnknown = 0, + DWPlayerViewModeNormal, + DWPlayerViewModeMute +}; +@property (nonatomic, assign) DWPlayerViewMode playMode DEPRECATED_MSG_ATTRIBUTE("请使用拆分后的接口 muted, interactiveHidden"); + +/** + * 外部关闭视频浮层时设置埋点状态 + */ +- (void)change2VideoCloseUTStatus DEPRECATED_MSG_ATTRIBUTE("这个接口没工作过,不要了"); + +/** + * 控制是否需要在播放结束后显示大的播放按钮,默认需要 + * 请先添加interactiveView作为subView和设置frame,并在调用requestInteractiveVideo之前设置,否则以下属性会有使用问题 + */ +@property (nonatomic, assign) BOOL shouldShowBigPlayBtnWhenComplete DEPRECATED_MSG_ATTRIBUTE("现在控制栏的播放按扭,移到屏幕中间去了,所以这个接口没意义了"); + + +/** + * 此接口为了兼容老逻辑,不要使用此接口,请使用setupNotAutoPlay。 + * 初始化完成后,或者destory后设置完参数,调用此接口 (为了兼容老逻辑,setup后自动播放) + */ +- (void) setup; + +/** + * 不要使用,为了兼容老逻辑 + * Wi-Fi下普通视屏播放 + * 如果有直播小窗,SDK会禁止WiFi自动播放(新接入业务方不要使用此接口) + **/ +- (void)wifiStartVideo DEPRECATED_MSG_ATTRIBUTE("废弃"); +@end + +#import + + + + + + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWInstanceModule.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWInstanceModule.h new file mode 100644 index 0000000..036fb26 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWInstanceModule.h @@ -0,0 +1,36 @@ +// +// DWInstanceModule.h +// DWInteractiveSDK +// +// Created by jyi on 16/4/15. +// Copyright © 2016年 alibaba. All rights reserved. +// + +#import +#import +#if !defined(BUILD_FOR_BAICHUAN) || !(BUILD_FOR_BAICHUAN) +#import +#endif // !defined(BUILD_FOR_BAICHUAN) || !(BUILD_FOR_BAICHUAN) +#import +extern NSString * const kDWInstanceModuleShowToastNotification; +extern NSString * const kDWInstanceModuleShowToastUserInfoKeyName; +extern NSString * const kDWInstanceModuleShowToastDuring; + +extern NSString * const kDWInstanceModuleSyncDataNotification; +extern NSString * const kDWInstanceModuleOpenUrlActionNotification; +extern NSString * const kDWInstanceModuleQuitFullScreenNotification; + +@interface DWWeakObject : NSObject + +@property (nonatomic, weak) id weakObject; + +@end + +@interface DWInstanceModule : NSObject +#if !defined(BUILD_FOR_BAICHUAN) || !(BUILD_FOR_BAICHUAN) + +// 暂时放在这里,抽工具类 ++ (UILabel *)toast:(NSString *)hint inView:(UIView *)view dismissAfterSeconds:(NSTimeInterval)seconds delayTime:(NSTimeInterval)delayTime isFullScreen:(BOOL)isFullScreen; +#endif // !defined(BUILD_FOR_BAICHUAN) || !(BUILD_FOR_BAICHUAN) +@end + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWInteractiveInfo.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWInteractiveInfo.h new file mode 100644 index 0000000..d9f36c6 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWInteractiveInfo.h @@ -0,0 +1,44 @@ +// +// DWInteractiveInfo.h +// DWInteractiveSDK +// +// Created by jyi on 2016/12/14. +// Copyright © 2016年 alibaba. All rights reserved. +// + +#import + +typedef NS_ENUM(NSInteger, DWVideoMeasureType) { + DWVideoMeasureTypeUnknown = 0, + DWVideoMeasureType1to1, + DWVideoMeasureType16to9, + DWVideoMeasureType9to16 +}; + + +@interface DWInteractiveInfo : NSObject + +@property (nonatomic, strong) NSString *interactiveID; + +//视频作者ID +@property (nonatomic, strong) NSString *userID; +@property (nonatomic, copy) NSString *contentID;// 内容平台id + +//临时 -- fangying +@property (nonatomic, copy) NSString *mediaContentID;// 媒资平台id +@property (nonatomic, assign) BOOL bNewInteractiveInfo; +@property (nonatomic, assign) BOOL bSupportMute; +@property (nonatomic, assign) DWVideoMeasureType videoMeasureType; +@property (nonatomic, copy) NSDictionary *outBizData;// 透传外部的业务数据 +//临时 -- fangying +@property (copy, nonatomic) NSDictionary *interactiveParms; + +//内部使用,业务方无需传 +@property (nonatomic, strong) NSDictionary* recommendVideos; +// 标识互动应用的大场景 比如timeline +@property (nonatomic, strong) NSString *scenes; +// 标识互动的玩法 比如套娃 +@property (nonatomic, strong) NSString *interactiveType; + + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWInteractiveModel.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWInteractiveModel.h new file mode 100644 index 0000000..56c96f1 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWInteractiveModel.h @@ -0,0 +1,31 @@ +// +// DWInteractiveModel.h +// DWInteractiveSDK +// +// Created by 凌言 on 16/4/7. +// Copyright © 2016年 alibaba. All rights reserved. +// + +#import + +@class DWTrackerModel; + +@interface DWInteractiveModel : NSObject + +@property (strong, nonatomic) NSString * type; //类型, weex or h5 or... +@property (strong, nonatomic) NSString * jsTemplate; //jsbundle +@property (strong, nonatomic) NSString * jsUrl; +@property (strong, nonatomic) NSDictionary * jsData; //数据 +@property (strong, nonatomic) NSString * layout; //组件基于视频的坐标布局 +@property (nonatomic, strong) NSArray *anchorArray;//用于描述视频追踪的某一时刻的位置信息 +@property (nonatomic, copy) NSString* renderOrientation; //用于描述渲染方向,取值为LT、RT、RB、LB +// 3.0 新增 +@property (nonatomic, strong) NSDictionary *margin; +@property (nonatomic, strong) NSArray *startAnimations; +@property (nonatomic, strong) NSArray *endAnimations; +// timelinemodel的source +@property (nonatomic, strong) NSString *source; + ++ (instancetype)modelWithJSONDictionary:(NSDictionary *)dict; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWInteractiveProtocol.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWInteractiveProtocol.h new file mode 100644 index 0000000..d20a2e1 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWInteractiveProtocol.h @@ -0,0 +1,18 @@ +// +// DWInteractiveProtocol.h +// Pods +// +// Created by yingfang on 2017/7/15. +// +// + +#import + +@protocol DWInteractiveProtocol + +- (void)handleLikeStatusChange:(NSNumber*)bLike; + + +- (void)handleAttentionStatusChange:(NSNumber*)bAttention; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWInteractiveSDK.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWInteractiveSDK.h new file mode 100644 index 0000000..7396d17 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWInteractiveSDK.h @@ -0,0 +1,60 @@ + + + +#import + +//! Project version number for DWInteractiveSDK. +FOUNDATION_EXPORT double DWInteractiveSDKVersionNumber; + +//! Project version string for DWInteractiveSDK. +FOUNDATION_EXPORT const unsigned char DWInteractiveSDKVersionString[]; + +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import +#import diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWInteractiveViewController.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWInteractiveViewController.h new file mode 100644 index 0000000..04cf3f6 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWInteractiveViewController.h @@ -0,0 +1,13 @@ +// +// DWInteractiveViewController.h +// DWInteractiveSDK +// +// Created by jyi on 2016/10/13. +// Copyright © 2016年 alibaba. All rights reserved. +// + +#import + +@interface DWInteractiveViewController : UIViewController + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWLikeServiceProtocol.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWLikeServiceProtocol.h new file mode 100644 index 0000000..18a7506 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWLikeServiceProtocol.h @@ -0,0 +1,34 @@ +// +// DWLikeServiceProtocol.h +// Pods +// +// Created by yingfang on 2017/7/11. +// +// + +#import + +typedef void(^DWLikeServiceComplete)(NSDictionary *responseData,BOOL isSuccess); + +@protocol DWLikeServiceProtocol + + +/** + 点赞. + + @param params 赞的字典. + @param completionBlock @see DWLikeServiceComplete. + */ +- (void) likeWithParamsDictionary:(NSDictionary *) params completion:(DWLikeServiceComplete) completionBlock ; + + +/** + 取消赞. + + @param params 取消赞的参数字典. + @param completionBlock @see DWLikeServiceComplete. + */ +- (void) cancelLikeWithParamsDictionary:(NSDictionary *) params + completion:(DWLikeServiceComplete) completionBlock ; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWLonginStatusProtocol.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWLonginStatusProtocol.h new file mode 100644 index 0000000..9b62034 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWLonginStatusProtocol.h @@ -0,0 +1,18 @@ +// +// DWLonginStatusProtocol.h +// DWInteractiveSDK +// +// Created by wentao.wwt on 2017/3/7. +// Copyright © 2017年 alibaba. All rights reserved. +// + +#import + +@protocol DWLonginStatusProtocol + +- (BOOL)isValidLogin; + +- (NSString*)currentUserName; + +- (void)loginWitCompletion:(void(^)(BOOL))compltete; +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWNetWorkProtocol.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWNetWorkProtocol.h new file mode 100644 index 0000000..2ff87fd --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWNetWorkProtocol.h @@ -0,0 +1,110 @@ +// +// DWNetWorkProtocol.h +// DWInteractiveSDK +// +// Created by 凌言 on 16/4/7. +// Copyright © 2016年 alibaba. All rights reserved. +// + +#import + +@interface DWNetWorkRequest : NSObject +/** + * 请求类型 + **/ +@property (nonatomic, strong) NSString * requestType; +/** + * 请求URL + **/ +@property (nonatomic, strong) NSString * requestURL; +/** + * api名称 + **/ +@property (nonatomic, strong) NSString * apiName; +/** + * api版本 + **/ +@property (nonatomic, strong) NSString * apiVersion; +/** + * 是否需要登录 + **/ +@property (nonatomic, assign) BOOL needLogin; +/** + * 是否需要缓存 + **/ +@property (nonatomic, assign) BOOL needCache; +/** + * 是否需要安全签名 + **/ +@property (nonatomic, assign) BOOL needSign; +/** + * 是否需要WUA + **/ +@property (nonatomic, assign) BOOL isEnableWUA; +/** + * 用户参数,返回带回 + **/ +@property (nonatomic, strong) id userInfo; +/** + * 参数列表 + **/ +@property (nonatomic, strong) NSDictionary * requestParams; +/** + * 超时时间,单位秒 + **/ +@property (nonatomic, assign) double timeoutSeconds; + +/** + * 请求初始化 + * @param data : 初始化数据 + **/ +- (instancetype)initWithData:(NSMutableDictionary *)data; + +@end + +@interface DWNetWorkResponse : NSObject +/** + * 状态参数 + **/ +@property (nonatomic, strong) NSString * statusCode; +/** + * 返回数据 + **/ +@property (nonatomic, strong) NSDictionary * responseData; +/** + * 错误码 + **/ +@property (nonatomic, strong) NSString * errorCode; +/** + * 错误信息 + **/ +@property (nonatomic, strong) NSString * errorMsg; +/** + * 扩展参数 + **/ +@property (nonatomic, strong) id userInfo; + +/** + * 初始化响应 + **/ +- (instancetype)initWithData:(NSDictionary *)responseData; + +@end + +@protocol DWNetWorkProtocol + +@required +/** + * 发送数据请求,响应 + * @param request : 请求对象 + * @param onResponse: 响应回调 + **/ +- (void)sendRequest:(DWNetWorkRequest *)request onComplete:(void (^)(BOOL success, DWNetWorkResponse *response))onComplete; +- (void)queryAliBaoCardFreeFlow:(NSString *)bizCode result:(void (^)(BOOL,NSString *, NSString *))result; +- (BOOL)isChinaUnicom; + +@optional //废弃 quanlitao用的 +- (void)uploadImage:(UIImage *)image onComplete:(void (^)(BOOL success, NSURL *successURL))onComplete; + + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWPlayer.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWPlayer.h new file mode 100644 index 0000000..8f612f7 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWPlayer.h @@ -0,0 +1,61 @@ +// +// DWPlayer.h +// DWInteractiveSDK +// +// Created by jyi on 2017/2/6. +// Copyright © 2017年 alibaba. All rights reserved. +// + +#import + +#import +#import +#import +#import + +@interface DWPlayer : NSObject + +@property (nonatomic, strong) DWContext *context; + +@property (nonatomic, assign) CGRect frame; +@property (nonatomic, readonly) CGRect videoFrame; +@property (readonly, nonatomic) Float64 videoTime; + +@property (nonatomic, assign) DWViewMode viewMode; + +@property (nonatomic, strong) DWPlayerView *playerView; +@property (nonatomic, assign) BOOL progressDraging; + +@property (nonatomic, weak) id delegate; + +//@property (nonatomic, assign) BOOL wifiNetwork; +@property (nonatomic, strong) NSString *videoURL; + +@property (nonatomic, assign) BOOL loop; +@property (nonatomic, assign) BOOL thumbnailPlayBtnHidden; + +- (void)play; +- (void)pause; +- (void)stop; +- (BOOL)playing; +- (NSTimeInterval)currentVideoTime; +- (void)seekTo:(CGFloat)progress; +- (void)closeVideo; + +//@property (nonatomic, assign) BOOL fullscreen; + +- (void)setExitFullScreenWhenComplete:(BOOL)shouldExit; + +@property (nonatomic, assign) BOOL hidenCloseBtn; + +- (void)showToast:(NSString *)toast; + +- (void)setThumbnailImage:(UIImage *)image; + +@end + + + + + + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWPlayerAdapterManager.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWPlayerAdapterManager.h new file mode 100644 index 0000000..0225e40 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWPlayerAdapterManager.h @@ -0,0 +1,24 @@ +// +// DWPlayerAdapterManager.h +// DWPlayerSDK +// +// Created by zzqiltw on 16/4/18. +// Copyright © 2016年 Taobao.com. All rights reserved. +// + +#import + +@interface DWPlayerAdapterManager : NSObject + ++ (DWPlayerAdapterManager *)shareInstance; + +/** + * 注册adapter + * @param name : 模块名称 + * @param clazz : 模块类名 + **/ +- (void)registerAdapter:(NSString *)name withClass:(id)clazz; + +- (id)classWithAdapterName:(NSString *)name; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWPlayerConfigProtocol.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWPlayerConfigProtocol.h new file mode 100644 index 0000000..54187b2 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWPlayerConfigProtocol.h @@ -0,0 +1,33 @@ +// +// DWPlayerConfigProtocol.h +// Pods +// +// Created by zzqiltw on 16/4/18. +// +// + +#import + +@protocol DWPlayerConfigProtocol + +@optional +- (BOOL)getConfigForAllowWiFiAutoPlay DEPRECATED_MSG_ATTRIBUTE("实现逻辑改了,不需要这个接口了"); +- (NSDictionary *)getDWInteractiveSDKOrangeConfig; +- (NSDictionary *)getTBMediaPlayerBundleOrangeConfig; +- (BOOL)getConfigForVideoCacheEnable; +- (NSArray*) bizcodeForDisableCache; +- (NSString *) bizcodeForEnableMediaCache; +- (NSString*) bizcodeForEnabledPlayControl; +- (NSString *) machineForEnableH265; +- (NSString *) bizcodeForPlayControlServiceBackupLogic; +- (NSString *) bizcodeForDeferPlayControlRequst; + +- (NSString *)interactiveVideoPlayerCoreMode; +- (NSArray *)bizcodesForPlayerCoreABTest; +- (NSString *)playerCoreABTestBucket; +- (BOOL)getConfigForInteractiveButton:(NSString *)buttonName; + +- (NSString *)bizcodeStringForDisableFreeFlowGuide; + +- (void)getConfigOfAllowWiFiAutoPlayFromMyTaoBao:(void(^)(BOOL))callback; +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWPlayerImageLoaderProtocol.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWPlayerImageLoaderProtocol.h new file mode 100644 index 0000000..429f920 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWPlayerImageLoaderProtocol.h @@ -0,0 +1,16 @@ +// +// DWPlayerImageLoaderProtocol.h +// DWPlayerSDK +// +// Created by zzqiltw on 16/6/2. +// Copyright © 2016年 Taobao.com. All rights reserved. +// + +#import + +@protocol DWPlayerImageLoaderProtocol + +@required +- (UIImageView *)generateImageViewForGIFNamed:(NSString *)name frame:(CGRect)frame; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWPlayerLifecycleProtocol.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWPlayerLifecycleProtocol.h new file mode 100644 index 0000000..2ec5864 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWPlayerLifecycleProtocol.h @@ -0,0 +1,74 @@ +// +// VideoPlayerLifecycleProtocol.h +// DWAVPlayerSDK +// +// Created by 凌言 on 16/4/3. +// Copyright © 2016年 Taobao.com. All rights reserved. +// + + +#import +#import +@protocol DWPlayerLifecycleProtocol + +@optional + +- (void)onVideoStart; +- (void)onVideoClose; + +- (void)onVideoPause; +- (void)onVideoResignActive; +- (void)onVideoBecomeActive; +- (void)onVideoTapToPause; +- (void)onVideoPlay; +- (void)onVideoTapToPlay; +//- (void)onVideoSeekTo:(CGFloat)percent; +- (void)onVideoPrepared; +- (void)onVideoError:(NSError*)error; +- (void)onVideoComplete; +- (void)onVideoFullScreen; +- (void)onVideoNormalScreen; +- (void)onVideoFloatingWindow; +- (void)onVideoTimeChanged:(CGFloat)time; +- (void)onVideoLoadedProgressChanged:(CGFloat)progress; + +- (void)onVideoStartLoading; +- (void)onVideoEndLoading; +- (void)onVideoSliderStartDrag; + +//弹出阻塞播放的Prompt View +- (void)onShowPromptView; + +// 展示免流窗口 +- (void)onShowFreeView; + +// 隐藏免流窗口 +- (void)onHideFreeView; + +// 首帧渲染完成 +- (void)onFirstVideoFrameRendered:(NSDictionary *)info; + +//小窗被点击 +- (void) onFloatingWindowTap; + +//静音播放 +- (void) onMuted:(BOOL)b; + +//- (void)onVideoModeChangeTo:(DWPlayerViewMode)mode; +- (void)onVideoViewTapAtPlayedTime:(CGFloat)playedTime; + +- (void) onVideoControlBarHidden:(BOOL)hidden; + + +//出网络提示错误页时点击重试按钮 +- (void)onNetWorkErrorTapToRetry; + +- (void) switchFullScreen; + + +//fangying +- (void)shouldHideView; +- (void)shouldShowView; + +@end + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWPlayerView.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWPlayerView.h new file mode 100644 index 0000000..ee4ce8d --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWPlayerView.h @@ -0,0 +1,414 @@ +// +// DWPlayerView.h +// DWPlayerView +// +// Created by Zhubicheng on 08/12/14. +// Copyright (c) 2014 Taobao. All rights reserved. +// + +#import + +#import +#import + +#import +//#import +#import +#import +#import +#import +#import +#import +//extern BOOL DWFlowPromptViewAllowToShow; + +static const CGFloat ControllersBarHeight = 48; + +@class DWPlayerView; +@class DWContext; +@class DWPlayerErrorView; +@class DWPlayerControlHUD; +@class DWThumbnailView; +@class DWError; +@class TBSVideoIconModel; + +// 内容导航锚点数据模型 +@interface DWAnchorModel : NSObject + +@property (nonatomic, assign) NSTimeInterval timestamp; +@property (nonatomic, copy) NSString *type; // item-小卡;coupon-优惠劵;alipayCoupon-红包 +@property (nonatomic, assign) BOOL enableAction; + +@end + +@protocol DWDanmakuDelelgate + +- (void)sendDanmakuWithContent:(NSString*)content; + +- (void)showDanmakuView; + +- (void)hideDanmakuView; + +@optional + +- (void)sendDanmakuBtnClicked; + +@end + + +@protocol DWPlayerViewDelegate + +@optional +- (void)playerViewWillPlay:(DWPlayerView *)playerView; +- (void)playerViewWillPause:(DWPlayerView *)playerView; +- (void)playerViewDidPause:(DWPlayerView *)playerView; +- (void)playerViewWillResume:(DWPlayerView *)playerView; +- (void)playerViewWillEndPlaying:(DWPlayerView *)playerView; +- (void)playerViewDidEndPlaying:(DWPlayerView *)playerView; +- (void)playerViewWillStartLoading:(DWPlayerView *)playerView; +- (void)playerViewWillEndLoading:(DWPlayerView *)playerView; +- (void)playerViewTimeSliderStartDrag:(DWPlayerView *)playerView; +- (void)playerViewTimeSliderFinishDrag:(DWPlayerView *)playerView; +//- (void)playerView:(DWPlayerView *)playerView timeSliderValueDidChanged:(CGFloat)second; +- (void)playerViewShowFailView:(DWPlayerView *)playerView error:(NSError*)error; +- (void)playerViewShowPromptView:(DWPlayerView *)playerView; +- (void)playerViewStalled:(DWPlayerView *)playerView; +- (void)playerViewTimeChanged:(double)time; +- (void)playerViewPreload:(DWPlayerView *)playerView; +- (void)playerViewDidTap:(DWPlayerView *)playerView; +- (void)playerViewWillResignActive:(DWPlayerView *)playerView; +- (void)playerViewWillBecomActive:(DWPlayerView *)playerView; +- (void)playerViewControlBarHidden:(BOOL)hidden; +- (void)playerLoadedProgressChanged:(CGFloat)progress; +- (void)playerViewWillShowFreeTip:(DWPlayerView *)playerView; +- (void)playerViewWillHideFreeTip:(DWPlayerView *)playerView; +- (void)playerView:(DWPlayerView *)playerView firstVideoFrameRendered:(NSDictionary *)info; +/** + * 用户手动触发play,互动层埋点用 + * + */ +- (void)playerViewDidTapToPlay:(DWPlayerView *)playerView; +- (void)playerViewDidTapToPause:(DWPlayerView *)playerView; + +- (void) fullscreenButtonClicked; +- (void) muteBtnClicked; + +//fangying +- (void)startToHideView; +- (void)startToShowView; + +- (void)playerViewNetWorkErrorViewTapToRetry; + +-(void)hiddenThumbnailPlayBtn:(BOOL)hidden; + +@end + +extern const NSInteger DWPlayerViewActivityIndicatorPriority; +extern const NSInteger DWPlayerViewErrorIndicatorPriority; + +//extern NSString * const kDWPlayerViewNotReachableMessage; +extern NSString * const kDWPlayerViewWWANMessage; +extern NSString * const kDWPlayerViewWWANMessage2; +extern NSString * const kDWPlayerViewFreeFlowMessage; + +typedef NS_ENUM (NSInteger, DWPlayerStatus) { + DWPlayerStatusUnknown = 0, + DWPlayerStatusReady, + DWPlayerStatusWaiting, + DWPlayerStatusPlaying, + DWPlayerStatusPaused, + DWPlayerStatusError, + DWPlayerStatusEnd, +}; + +typedef NS_ENUM(NSInteger, DWPlayerViewNetworkStatus) { + DWPlayerViewNetworkStatusUnknown = 0, + DWPlayerViewNetworkStatusNotReachable, + DWPlayerViewNetworkStatusWiFi, + DWPlayerViewNetworkStatusWWAN +}; + +typedef void(^DWPlayerViewBigPlayButtonClickHandler)(UIButton *bigPlayButton); + +#define DWAVPlayerImageLoader_ADAPTER @"DWAVPlayerImageLoader_ADAPTER" + +//#define DWAVPlayerVolumeHasBeenChangedUserDefaultKey @"DWAVPlayerVolumeHasBeenChangedUserDefaultKey" + +@interface DWPlayerView : DWPopLayerView + +@property (nonatomic, strong) DWContext *context; + +@property (strong, nonatomic) NSURL *videoURL; +@property (assign, nonatomic) NSInteger controlsTimeoutPeriod; +@property (nonatomic, assign) BOOL exitFullScreenWhenFinish; +@property (nonatomic, assign) BOOL shouldShowCloseButton; +// default NO +@property (nonatomic, assign) BOOL disableCache; +// default YES +@property (nonatomic, assign) BOOL preload; + +@property (nonatomic, assign) BOOL normalScreenAndNotMutedForGestureSeekOperation; + +//视频播放时长,指视频实际播放自然时长 +@property (nonatomic, assign) NSTimeInterval playTime; +//视频播放时长,指视频实际播放自然时长,播放完成后重新计算此时间 +@property (nonatomic, assign) NSTimeInterval playOnceTime; + +/** + * 解决详情自动播放和直播小窗的冲突问题 + */ +@property (nonatomic, assign) BOOL allowWiFiAutoPlay; + +/** + * 自定义按钮,默认隐藏。 + */ +- (TBSVideoIconView *) customBtn; +@property (nonatomic, assign) BOOL showCustomBtn; +@property (nonatomic, assign) BOOL hasGoods; +@property (nonatomic, assign) BOOL showLikeBtn; +@property (nonatomic, assign) BOOL showReport; // 是否展示举报 +@property (nonatomic, assign) BOOL isMenuViewShow; + +//弹幕按钮 +@property (nonatomic, assign) BOOL showDanmakuBtn; +@property (nonatomic, assign) BOOL showSendDanmakuBtn; + +/** + * 隐藏视频控制栏上的全屏按钮 + */ +@property (nonatomic, assign) BOOL hideFullScreenButton; + +/** + * 详情需求:需要自定义大播放按钮的处理事件,不传默认处理为播放 + */ +@property (nonatomic, copy) DWPlayerViewBigPlayButtonClickHandler bigPlayButtonHandler; + +@property (weak, nonatomic) id delegate; +@property (nonatomic, weak) id danmakuDelegate; +@property (nonatomic, weak) id menuActionDelegate; +/** + * 视频是否load成功,是否可以读取视频宽高等数据 + */ +@property (nonatomic, assign) BOOL playReady; + +// UI +@property (nonatomic, strong) UIView *controlsView; +@property (nonatomic, strong) UIImageView *headerBar; +@property (nonatomic, strong) UIView *headerBarContentView; +@property (nonatomic, strong) DWThumbnailView *thumbnailView; +//@property (nonatomic, strong) UIImageView *thumbnailImageView; +@property (nonatomic, strong) UIButton *danmakuBtn; +@property (nonatomic, strong) UIView *rightInteractiveView; +@property (nonatomic, strong) TBSVideoIconView *customBtn; +@property (nonatomic, strong) UIButton *menuBtn; +@property (nonatomic, strong) TBSVideoIconView *likeBtn; +@property (nonatomic, strong) TBSVideoMenuView *menuView; +@property (nonatomic, strong) UIButton *menuFullscreenBgBtn; +//@property (nonatomic, strong) UILabel* goodsListLabel; +@property (nonatomic, strong) TBSVideoIconView* sendDanmakuBtn; + +@property (nonatomic, strong) UIView *indicatorOverlayView; +@property (nonatomic, strong) UIButton *closeButton; +@property (nonatomic, strong) UIView *controllersBar; +@property (nonatomic, strong) DWSmallProgressView *smallProgressView; +@property (nonatomic, strong) UIButton *muteBtn; + +@property (nonatomic, strong) UIButton *freeFlowButton; +@property (nonatomic, copy) NSString *freeFlowURL; + +// UI Config +@property (nonatomic, assign) BOOL miniProgressViewHidden; +@property (nonatomic, assign) BOOL miniProgressAnchorHidden; +@property (nonatomic, assign) BOOL networkErrorViewHidden; +@property (nonatomic, assign) BOOL playErrorViewHidden; +@property (nonatomic, assign) BOOL toastViewHidden; +@property (nonatomic, assign) BOOL gestureViewHidden; +@property (nonatomic, assign) BOOL disableFreeFlowButton; + +// Header Bar +@property (nonatomic, strong) UIButton *landscapeBackBtn; + +// controls +@property (strong, nonatomic) UIButton *playButton; +@property (strong, nonatomic) DWSlider *progressIndicator; +@property (strong, nonatomic) UIButton *fullscreenButton; +@property (strong, nonatomic) UIPanGestureRecognizer *panGesture; +@property (strong, nonatomic) UITapGestureRecognizer *tapGesture; +@property (strong, nonatomic) UILabel *playerTimeLabel; +@property (strong, nonatomic) UILabel *playerTimeLabel2; +@property (strong, nonatomic) UIButton *playRateButton; +@property (strong, nonatomic) DWPlayerControlHUD *controlHUD; + +@property (nonatomic, strong) DWPlayerErrorView *activityIndicator; +@property (nonatomic, strong) DWFlowPromptView *promptView; + +// status +/** + * 切换全屏和退出全屏时,是否需要动画 + * default = YES + **/ +//@property (nonatomic, assign) BOOL switchScreenAnimation; +//@property (nonatomic, assign) BOOL fullscreen; +@property (nonatomic, assign) BOOL isDragingProgress; +@property (nonatomic, assign) BOOL isComplete; + +@property (nonatomic, assign) DWPlayerViewNetworkStatus networkStatus; + +@property (nonatomic, assign) NSTimeInterval totalTime; +@property (nonatomic, assign) BOOL isPlaying; +@property (nonatomic, assign) Float64 playNeedSeekTime; +@property (nonatomic, assign) CGFloat playNeedSeekProgress; + + +/** + * 内部使用 + */ +@property (nonatomic, assign) BOOL allowShowControls; +@property (nonatomic, assign) BOOL allowShowIndicator; + +/** + * networkHandler + */ +@property (nonatomic, copy) void(^networkHandler)(DWPlayerViewNetworkStatus status); + + +/** + * UT see:http://tbdocs.alibaba-inc.com/pages/viewpage.action?pageId=283607984 + */ +/** + * 以下可以获取到 + */ +@property (nonatomic, copy) NSString *dimensions; +@property (nonatomic, copy) NSString *volume; +@property (nonatomic, copy) NSString *URL; +/** + * 以下暂时没有 + */ +@property (nonatomic, copy) NSString *playDelayTime; +@property (nonatomic, copy) NSString *mimeType; +@property (nonatomic, copy) NSString *connectionSpeed; +@property (nonatomic, copy) NSString *droppedFrames; + + +//@property (nonatomic, strong) DWFlowPromptView* landScapeNetworkErrorView; +//@property (nonatomic, strong) DWFlowPromptView* portraitNetworkErrorView; + +//@property (nonatomic, strong) DWFlowPromptView* portraitFlowPromptView; +//@property (nonatomic, strong) DWFlowPromptView* landScapeFlowPromptView; + +@property (nonatomic, assign) BOOL isOperating; // 下拉菜单动画,防止快速点击 +@property (nonatomic, assign) BOOL isHideNotWiFiToast; // 是否隐藏非WiFi提醒 + +@property (nonatomic, assign) CGFloat toastTopMargin; + +// 为详情增加插入右侧按钮坑位,upLikeView布局在likeBtn上方,downLikeView布局在lkeBtn下方 +@property (nonatomic, strong) UIView *upLikeView; +@property (nonatomic, strong) UIView *downLikeView; + +/** + * 为详情增加插入右侧按钮坑位,所有按钮居中展示的功能 + * @params up 在点赞按钮的上方/下方 + * @params layout 加入按钮后是否立刻布局,如果同时加入两个按钮建议第一个传NO,第二个传YES,两个按钮加完后一起布局,否则会影响性能。 +**/ +- (void)addViewToRightInteractiveView:(UIView *)view upOfLikeBtn:(BOOL)up needLayout:(BOOL)layout; + +- (void)addIconWithItems:(NSArray *)iconModel; + +- (void)play; + +/** + * 解决详情自动播放和直播小窗的冲突问题。 + */ +- (void)pause; +- (void)stop; + +- (void)loadVideo; + +- (void) refreshPlayer; + +- (void)seekToProgress:(CGFloat)progress; +- (void)seekToTime:(CGFloat)time; + +- (void)setBufferTintColor:(UIColor *)tintColor; + +- (void)showPromptView:(DWError*)error retryBlock:(dispatch_block_t)retryBlock; +- (void)showErrorPromptView:(DWError *)error retryBlock:(dispatch_block_t)retryBlock; +- (void)showNetworkPromptView; +- (BOOL)promptViewHidden; + +- (void)showIndicatorView:(UIView *)indicator withPriority:(NSInteger)priority; +- (void)hideIndicatorView:(UIView *)indicator; + +- (void)showToast:(NSString *)toast inView:(UIView *)view dismissAfterSeconds:(NSTimeInterval)seconds delayTime:(NSTimeInterval)delayTime; + +/** + * 注册是否需要缓存机制, 手淘忽略,自动走orange配置,默认配置为true + */ ++ (void)registerConfigWithClass:(id)class; +/** + * 注册获取GIF动画的adapter,手淘忽略 + * + */ ++ (void)registerImageLoaderWithClass:(id)class; + +/** + * 设置内容导航的锚点信息 + */ +- (void)setupAnchorNaviView:(NSArray *)models; + +@property (nonatomic, assign) TBMPBPlayerError playerErrorCode; + +@property (nonatomic, weak) TBMPBPlayerView *videoView; + +@property (nonatomic, strong) NSDateFormatter *dateFormatter; + +@property (nonatomic, assign) BOOL seeking; + +@property (nonatomic, strong) NSMapTable *indicatorViews; +@property (nonatomic, strong) UIView *currentIndicatorView; + +@property (nonatomic, assign) DWPlayerStatus playerStatus; + +@property (nonatomic, assign) DWViewMode viewMode; + +@property (nonatomic, assign) BOOL enterForegroundShouldPlay; + +@property (nonatomic, strong) MPVolumeView *volumeView; + +@property (nonatomic, weak) UIView* customView; +@property (nonatomic, strong) UISlider *volumeViewSlider; + +//@property (nonatomic, strong) NSTimer *fadeInVolumeTimer; + +@property (nonatomic, strong) NSTimer *controlsTimer; + +@property (nonatomic, assign) BOOL loadingHidden; + +- (void) updateCustomLayout; + +//- (void)showFlowPromptView; +//- (void)hideFlowPromptView; +//- (BOOL)flowPromptViewisHidden; + +- (void)danmakuBtnClick; + +- (void)updateVideoFrontViewWithData:(id)data; + +- (void) showSmallProgressView; +- (void) hideSmallProgressView; + +- (void)debugHUD:(UIGestureRecognizer *)recognizer; + +- (void) hideBaseControllers; +- (void) showBaseControllers; + +- (void)changeDanmaBtn:(BOOL)selected; + +- (void)showThumbnailImageView; +- (void)hideThumbnailImageView; + +/** + * 聚划算用,隐藏时间标签,默认不隐藏 + */ +@property (nonatomic, assign) BOOL shouldHideTimeLabel DEPRECATED_MSG_ATTRIBUTE("应该没人用了,两个版本后删除。"); + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWPopLayerView.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWPopLayerView.h new file mode 100644 index 0000000..61b0369 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWPopLayerView.h @@ -0,0 +1,18 @@ +// +// DWPopLayerView.h +// DWInteractiveSDK +// +// Created by jyi on 16/9/6. +// Copyright © 2016年 alibaba. All rights reserved. +// + +#import + +@interface DWPopLayerView : UIView + +@property (nonatomic, assign) CGFloat modalThreshold; + +- (CGFloat)alphaOfPointFromViewScreenShot:(CGPoint)point; +- (CGFloat)alphaOfPointFromLayer:(CGPoint)point; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWShareProtocol.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWShareProtocol.h new file mode 100644 index 0000000..64498e8 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWShareProtocol.h @@ -0,0 +1,31 @@ +// +// DWShareProtocol.h +// DWInteractiveSDK +// +// Created by wentao.wwt on 2017/3/3. +// Copyright © 2017年 alibaba. All rights reserved. +// + +#import +#import + +@protocol DWShareProtocol + +- (void)shareWithurl:(NSString*)shareUrl + imgUrl:(NSString*)imgurl + title:(NSString*)title; + +- (void)shareWithurl:(NSString*)shareUrl + imgUrl:(NSString*)imgurl + title:(NSString*)title + businessId:(NSString*)businessId + description:(NSString*)des; + +- (void)shareWithurl:(NSString*)shareUrl + imgUrl:(NSString*)imgurl + title:(NSString*)title + businessId:(NSString*)businessId + description:(NSString*)des + delegate:(id)delegate; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWSlider.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWSlider.h new file mode 100755 index 0000000..e8c9f62 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWSlider.h @@ -0,0 +1,55 @@ +// +// DWSlider.h +// DWPlayerView +// +// Created by Zhubicheng on 08/12/14. +// Copyright (c) 2014 Taobao. All rights reserved. +// + +#import +@class DWAnchorModel; + +@interface DWSmallProgressView : UIView +@property (nonatomic, assign) double progress; +@property (nonatomic, assign, readonly) double maxProgress; +//@property (nonatomic, strong) UIImageView *gifImageView; +@property (nonatomic, assign) CGFloat totalDuration; +@property (nonatomic, assign) CGFloat curDuration; + +@property (nonatomic, strong) UILabel *timeLabel; + +@property (nonatomic, assign) double secondaryValue; + +@property (nonatomic, assign) BOOL progressViewHidden; + +@property (nonatomic, assign) BOOL anchorHidden; + +// 设置锚点数据 +- (void)updateAnchorNaviWithModels:(NSArray *)models duration:(Float64)duration; +- (void)updateAnchorNaviWithDuration:(Float64)duration; + +@end + + +//////////////////////////// + +@interface DWSlider : UISlider + +- (void)setSecondaryValue:(float)value; +- (void)setSecondaryTintColor:(UIColor *)tintColor; + +/** + * size参数废弃,原先传size是为了使用Quartz2D计算尺寸,现在是直接给图片 + * + * @param size <#size description#> + */ +- (void)setThumbSize:(CGSize)size; + +// 设置锚点数据 +- (void)updateAnchorNaviWithModels:(NSArray *)models duration:(Float64)duration; +- (void)updateAnchorNaviWithDuration:(Float64)duration; + +// 隐藏/隐藏气泡提示信息 +- (void)hideAnchorBubbleView:(BOOL)hidden; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWThumbnailView.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWThumbnailView.h new file mode 100644 index 0000000..cfc1e5b --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWThumbnailView.h @@ -0,0 +1,23 @@ +// +// DWThumbnailView.h +// DWInteractiveSDK +// +// Created by Jyi on 2017/8/10. +// Copyright © 2017年 alibaba. All rights reserved. +// + +#import + +@interface DWThumbnailView : UIView + +@property (nonatomic, strong) UIImageView *backgroundImageView; +@property (nonatomic, strong) UIImageView *bigPlayBtn; +@property (nonatomic, strong) UILabel *durationLabel; + +@property (nonatomic, strong) NSString *playTimesText; + +@property (nonatomic, assign) BOOL needAnimation; + +@property (nonatomic, assign) BOOL foreverHidden; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWTimeLineModel.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWTimeLineModel.h new file mode 100644 index 0000000..49743e2 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWTimeLineModel.h @@ -0,0 +1,41 @@ +// +// DWTimeLineModel.h +// DWInteractiveSDK +// +// Created by 凌言 on 16/4/5. +// Copyright © 2016年 alibaba. All rights reserved. +// + +#import +#import +#import +#import +@interface DWTimeLineModel : NSObject + +@property (nonatomic) BOOL isShowed; + +@property (strong, nonatomic) NSString * index; //索引 +@property (strong, nonatomic) NSString * startTime; //启动时间点 +@property (strong, nonatomic) NSString * endTime; //结束时间点 +@property (strong, nonatomic) NSString * source; //业务属性 +@property (strong, nonatomic) DWInteractiveModel * portraitMode; //类型 +@property (strong, nonatomic) DWInteractiveModel * landscapeMode; //类型 + +@property (nonatomic, strong) NSDictionary *utParams; + +@property (strong, nonatomic) DWComponent * portComponent; +@property (strong, nonatomic) DWComponent * landComponent; + +//@property (strong, nonatomic) DWComponent* anchorPortComponent; +//@property (strong, nonatomic) DWComponent* anchorLandComponent; +// 3.0 新增, 由VideoModel传来 +@property (nonatomic, assign) DWVideoInteractiveModelType videoInteractiveType; + +//@property (nonatomic, strong) NSDictionary* portIndexedAnchor; +//@property (nonatomic, strong) NSDictionary* landIndexedAnchor; +@property (nonatomic, strong) NSArray *portraitVideoList; + + ++ (instancetype)modelWithJSONDictionary:(NSDictionary *)dict; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWUserTrackMgr.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWUserTrackMgr.h new file mode 100644 index 0000000..e851dde --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWUserTrackMgr.h @@ -0,0 +1,48 @@ +// +// DWUserTrackMgr.h +// DWInteractiveSDK +// +// Created by jyi on 16/8/5. +// Copyright © 2016年 alibaba. All rights reserved. +// + +#import + +//action +#define DWUT_WEEX_RENDER_SUCCESS @"DWUT_WEEX_RENDER_SUCCESS" +#define DWUT_WEEX_RENDER_FAILED @"DWUT_WEEX_RENDER_FAILED" +#define DWUT_H5_LOAD_SUCCESS @"DWUT_H5_LOAD_SUCCESS" +#define DWUT_H5_LOAD_FAILED @"DWUT_H5_LOAD_FAILED" + +#define DWUT_COLLECTLOGO_COLLECT @"DWUT_COLLECTLOGO_COLLECT" + +#define DWUT_GOSHOP_SHOW @"DWUT_GOSHOP_SHOW" +#define DWUT_GOSHOP_CLICK @"DWUT_GOSHOP_CLICK" + +#define DWUT_CONTENTTAG_CLICK @"DWUT_CONTENTTAG_CLICK" +#define DWUT_TRACKERTAG_CLICK @"DWUT_TRACKERTAG_CLICK" + +#define DWUT_ADDCARD_CALL @"DWUT_ADDCARD_CALL" + +@protocol DWDirectorProtocol + +//director +- (void) receive:(NSString*)action error:(NSError*)error arg:(NSObject*)arg; + +@end + +@protocol DWActorProtocol + +//actor +@property (nonatomic, weak) NSObject* director; + +@end + + +@interface DWUserTrackMgr : NSObject + ++ (DWUserTrackMgr *) instance; + +- (void) notifyDirector:(id)director action:(NSString*)action error:(NSError*)error arg:(NSObject*)arg; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWUserTrackProtocol.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWUserTrackProtocol.h new file mode 100644 index 0000000..39ba686 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWUserTrackProtocol.h @@ -0,0 +1,44 @@ +// +// DWUserTrackProtocol.h +// DWInteractiveSDK +// +// Created by 凌言 on 16/4/5. +// Copyright © 2016年 alibaba. All rights reserved. +// + +#ifndef DWUserTrackProtocol_h +#define DWUserTrackProtocol_h + +typedef enum +{ + DWCommitType_Click = 0, + DWCommitType_Expose, +// DWCommitType_UpdateProp, +// DWCommitType_UpdateNextProp, + DWCommitType_12002 = 12002, + DWCommitType_12003 = 12003, + +} DWCommitType; + +@protocol DWUserTrackProtocol + +- (void) commit:(DWCommitType)type arg1:(NSString *)arg1 arg2:(NSString *)arg2 arg3:(NSString *)arg3 args:(NSDictionary *)args; + +- (void)commit:(DWCommitType)type name:(NSString*)pageName comName:(NSString*)comName param:(NSDictionary*)params; + +- (void)commitAppMonitorArgs:(NSDictionary *)args; + +- (void)commitAppMonitorAlarm:(NSString *)pageName monitorPoint:(NSString *)monitorPoint success:(BOOL)success errorCode:(NSString *)errorCode errorMsg:(NSString *)errorMsg arg:(NSString *)arg; + +- (void)pageAppear:(NSString *)pageName pageObject:(id)pageObject; +- (void)pageDisAppeaPageObject:(id)pageObject; + +- (void)log:(NSString*)module message:(NSString *)message; + +- (NSString *) utdid; + +- (NSString *)currentPageName; + +@end + +#endif /* DWUserTrackProtocol_h */ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWUtility.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWUtility.h new file mode 100644 index 0000000..8c36748 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWUtility.h @@ -0,0 +1,81 @@ +// +// DWUtility.h +// DWInteractiveSDK +// +// Created by jyi on 16/8/29. +// Copyright © 2016年 alibaba. All rights reserved. +// + +#import +#import + +#define KeyPath(s) NSStringFromSelector(@selector(s)) + +#define WeakSelf(type) __weak typeof(type) weak##type = type; // weak +#define StrongSelf(type) __strong typeof(type) type = weak##type; // strong + +#define DWNSLog(fmt,...) NSLog((@"DWHandsome: " fmt), ##__VA_ARGS__) +#define DWNSLogv(fmt,...) NSLogv((@"DWHandsome: " fmt), ##__VA_ARGS__) + +typedef NS_ENUM(NSUInteger,DWLogLevel){ + DWLogDebug, + DWLogWarning, + DWLogError, +}; + +void _DWAssert(NSString *func, NSString *file, int lineNum, NSString *format, ...); + +#if DEBUG +#define DWAssert(condition, ...) \ +do{ \ +if(!(condition)){ \ +_DWAssert(@(__func__), @(__FILE__), __LINE__, __VA_ARGS__); \ +} \ +}while(0) +#else +#define DWAssert(condition, ...) +#endif + +void _DWLogInternal(DWLogLevel level, const char *file, NSUInteger line, NSString *format, ...); + +#if DEBUG +#define DWLogInternal(level, fmt, ...) \ +do { \ +_DWLogInternal(level, __FILE__, __LINE__, (fmt), ## __VA_ARGS__); \ +} while(0) +#else +#define DWLogInternal(level, fmt, ...) +#endif + + +#define DWLogDebug(format, ...) DWLogInternal(DWLogDebug, format, ##__VA_ARGS__) +#define DWLogWarning(format, ...) DWLogInternal(DWLogWarning, format ,##__VA_ARGS__) +#define DWLogError(format, ...) DWLogInternal(DWLogError, format, ##__VA_ARGS__) + +#define RGB(r, g, b) [UIColor colorWithRed:r/255.0 green:g/255.0 blue:b/255.0 alpha:1.0] +#define RGB_A(r, g, b, a) [UIColor colorWithRed:r/255.0 green:g/255.0 blue:b/255.0 alpha:a] + +typedef NS_ENUM(NSInteger, DWViewMode) { + DWViewModeUnknown = 0, + DWViewModeNormal, + DWViewModeFullScreen, + DWViewModePortraitFullScreen, + DWViewModeFloatWindow +}; + +@interface DWUtility : NSObject + ++ (NSTimeInterval) dateFrom:(NSString*) str; + ++ (BOOL) validString:(NSString*)str; + ++ (CGFloat) random_between:(CGFloat)min max:(CGFloat)max; + +//判断用户在2G,3G,4G等状态下 ++ (NSString *)networkingStatesFromStatebar; + ++ (BOOL) iPhoneX; + +@end + + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWVideoFrontModel.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWVideoFrontModel.h new file mode 100644 index 0000000..32fc1fb --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWVideoFrontModel.h @@ -0,0 +1,36 @@ +// +// DWVideoFrontModel.h +// Pods +// +// Created by 南知 on 16/12/28. +// +// + +#import +#import +@interface DWVideoADInterModel : NSObject + +@property (nonatomic, copy) NSString *jsTemplate; +@property (nonatomic, copy) NSString *jsUrl; +@property (nonatomic, strong) DWTimeLineModel *begin; +@property (nonatomic, strong) DWTimeLineModel *pause; +@property (nonatomic, strong) DWTimeLineModel *end; + ++ (instancetype)modelWithJSONDictionary:(NSDictionary *)dict; + +@end + +@interface DWVideoFrontModel : NSObject + +@property (nonatomic, strong) DWVideoADInterModel* ad; +@property (nonatomic, copy) NSString* coverUrl; +@property (nonatomic, assign) CGFloat duration; +@property (nonatomic, assign) CGFloat videoPlayTimes; +//@property (nonatomic, assign) CGFloat videoSize4G; +//@property (nonatomic, assign) CGFloat videoSize3G; +//@property (nonatomic, assign) CGFloat videoSize2G; + + ++ (instancetype)modelWithJSONDictionary:(NSDictionary *)dict; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWVideoInfo.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWVideoInfo.h new file mode 100644 index 0000000..e916497 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWVideoInfo.h @@ -0,0 +1,54 @@ +// +// DWVideoInfo.h +// DWInteractiveSDK +// +// Created by jyi on 2016/12/14. +// Copyright © 2016年 alibaba. All rights reserved. +// + +#import + + +@interface DWVideoInfo : NSObject + +/** + * 视频来源 (强校验) 淘宝视频源传"TBVideo",优酷视频源传@“YKVideo”,淘宝直播下传“TBLive”,其他场景下传任意非空字符串 + */ +@property (nonatomic, strong) NSString *videoSource; + +/** + * 视频ID (强校验),直播模式下不校验 + */ +@property (nonatomic, strong) NSString *videoID; + +/** + * 视频业务标识 (强校验),直播模式下不校验 + */ +@property (nonatomic, strong) NSString *bizCode; + +/** + * 视频URL (强校验),直播模式下不校验 + */ +@property (nonatomic, strong) NSString *videoURL; + +/** + * 视频时长(用于视频缓存策略),直播模式下不校验 + */ +@property (nonatomic, copy) NSString* videoDuration; + +/** + * 封面图片URL,直播模式下不校验 + */ +@property (nonatomic, copy) NSString* imageURL; + +/** +* 目前只给手淘内的全屏页业务使用,来标识全屏页业务 +*/ +@property (nonatomic, copy) NSString* videoPlayScenes; + +/** +* 目前用在直播模式下,透传直播liveDetail接口内的所有字段给播放器 +*/ +@property (nonatomic, copy) NSDictionary* liveDetailInfo; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWVideoModel.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWVideoModel.h new file mode 100644 index 0000000..a7fb5fe --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWVideoModel.h @@ -0,0 +1,58 @@ +// +// DWVideoModel.h +// DWInteractiveSDK +// +// Created by 凌言 on 16/4/5. +// Copyright © 2016年 alibaba. All rights reserved. +// + +#import + +//(真!)互动类型 +#define DWVideoInteractiveModelTypeItem @"item" +#define DWVideoInteractiveModelTypeCoupon @"coupon" +#define DWVideoInteractiveModelTypeAlicoupon @"alicoupon" +#define DWVideoInteractiveModelTypeContentTag @"contentTag" +#define DWVideoInteractiveModelTypecontentTagTrace @"contentTagTrace" +#define DWVideoInteractiveModelTypeTaoWa @"taowa" + +typedef NS_ENUM(NSInteger, DWVideoInteractiveModelType) { + DWVideoInteractiveModelTypeTimeLine = 1, + //DEPRECATED = 2 +// DWVideoInteractiveModelTypeLive = 3, + DWVideoInteractiveModelTypeLabel = 4, //贴片 + DWVideoInteractiveModelTrackTag = 5 +}; + +@class DWTimeLineModel; + +@interface DWVideoModel : NSObject + +@property (strong, nonatomic) NSString * id; +@property (strong, nonatomic) NSString * videoId; +@property (strong, nonatomic) NSString * source; +@property (strong, nonatomic) NSString * duration; +@property (strong, nonatomic) NSString * videoUrl; +@property (strong, nonatomic) NSString * userId; +@property (strong, nonatomic) NSString * title; +@property (strong, nonatomic) NSDictionary * begin; +@property (strong, nonatomic) NSDictionary * end; +@property (strong, nonatomic) NSArray * timeline; +@property (strong, nonatomic) NSDictionary * jsTemplates; +@property (strong, nonatomic) NSDictionary * jsUrls; +@property (nonatomic, copy) NSString* userName; + +@property (strong, nonatomic) NSString * shopUrl; +@property (nonatomic, copy) NSString* coverUrl; + +//@property (nonatomic, strong) NSDictionary *comprehensionType; + +@property (nonatomic, strong) NSDictionary *interactiveMap; + +@property (nonatomic, strong) NSDictionary *extendsParam; + +@property (nonatomic, strong) NSDictionary *taokeRelation; + ++ (instancetype)modelWithJSONDictionary:(NSDictionary *)dict; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWVideoSourceProtocol.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWVideoSourceProtocol.h new file mode 100644 index 0000000..aaca923 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/DWVideoSourceProtocol.h @@ -0,0 +1,16 @@ +// +// DWVideoSourceProtocol.h +// DWInteractiveSDK +// +// Created by wentao.wwt on 2017/2/17. +// Copyright © 2017年 alibaba. All rights reserved. +// + +#import + +@protocol DWVideoSourceProtocol + +- (void)getVideoInfoWithVideoId:(NSString*)videoId complete:(void(^)(BOOL,NSString*,NSDictionary*))complete; + +@end + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/TBIctAddWeexCallbackProtocol.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/TBIctAddWeexCallbackProtocol.h new file mode 100644 index 0000000..39ef994 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/TBIctAddWeexCallbackProtocol.h @@ -0,0 +1,59 @@ +// +// TBIctAddWeexCallbackProtocol.h +// DWInteractiveSDK +// +// Created by Sapphire on 2017/11/8. +// Copyright © 2017年 alibaba. All rights reserved. +// + +#import + +@protocol TBIctAddWeexCallbackProtocol + +@optional + +- (void)interactiveRequestFail; + +- (BOOL)add:(UIView *)view cmpType:(NSString *)cmpType screenType:(NSString *)screenType; + +// 展示全屏组件 +- (void)showFullScreenView:(UIView *)view; +- (void)dismissFullScreenView; +- (CGSize)fullScreenSize; + +- (NSDictionary *)currentBizOrientationInfo; + +/** + 互动中存在的所有互动组件名称 + @param wxCmps 互动组件名称字符串组成的数据 + */ +- (void)onWXCmpExistOrNot:(NSArray *)wxCmps; + +/** + 互动组件消失回调 + + @param source 当前消失的组件名称 + */ +- (void)onWXCmpDismiss:(NSString *)source; + + +/** + weex互动触发打开新视频 + videoListInfo中的videoInfo包含的key-value如下: + videoId、interactiveId、userId、utParams + */ +- (void)openNewVideoWithLevel:(NSUInteger)level + index:(NSUInteger)index + videoListInfo:(NSArray *)videoList + isUserChecked:(BOOL)userChecked; +/** + weex触发分享 + shareData中包含的key-value如下: + icon、url、desc + */ +- (void)share:(NSDictionary *)shareData level:(NSUInteger)level index:(NSUInteger)index type:(NSUInteger)type; + +- (void)showAllInteractiveCmp:(BOOL)show; + +@end + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/TBSVideoIconView.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/TBSVideoIconView.h new file mode 100644 index 0000000..eb46e7b --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/TBSVideoIconView.h @@ -0,0 +1,17 @@ +// +// TBSVideoIconView.h +// DWInteractiveSDK +// +// Created by Sapphire on 2017/9/14. +// Copyright © 2017年 alibaba. All rights reserved. +// + +#import + +@interface TBSVideoIconView : UIButton + +@property (nonatomic, strong) UIImageView *icon; + +@property (nonatomic, strong) UILabel *title; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/TBSVideoMenuView.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/TBSVideoMenuView.h new file mode 100644 index 0000000..ec8404a --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/TBSVideoMenuView.h @@ -0,0 +1,36 @@ +// +// TBSVideoMenuView.h +// DWInteractiveSDK +// +// Created by Sapphire on 2017/9/13. +// Copyright © 2017年 alibaba. All rights reserved. +// + +#import + +@protocol TBSVideoMenuActionProtocol +@optional +- (void)shareAction; + +- (void)reportAction; + +@end + +@interface TBSVideoMenuView : UIView + +@property (nonatomic, strong) NSArray *sourceData; +@property (nonatomic, weak) id actionDelegate; + +@end + +@interface TBSVideoMenuCell : UITableViewCell + +@property (nonatomic, strong) UIImageView *icon; + +@property (nonatomic, strong) UILabel *label; + +@property (nonatomic, strong) UIView *line; + +- (void)bindData:(NSDictionary *)data; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/TBSVideoShopItem.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/TBSVideoShopItem.h new file mode 100644 index 0000000..cc3c2a9 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Headers/TBSVideoShopItem.h @@ -0,0 +1,25 @@ +// +// TBSVideoShopItem.h +// Pods +// +// Created by yingfang on 2017/7/25. +// +// + +#import + +@interface TBSVideoShopItem : NSObject + +@property (strong, nonatomic) NSString* itemId; +@property (strong, nonatomic) NSString* picUrl; +@property (strong, nonatomic) NSString* price; +@property (strong, nonatomic) NSDictionary* promotionInfo; +@property (strong, nonatomic) NSString* promotionTitle; +@property (strong, nonatomic) NSString* targetUrl; +@property (strong, nonatomic) NSString* title; +@property (strong, nonatomic) NSDictionary* promotionPic; +@property (strong, nonatomic) NSDictionary* taokeInfo; + +- (void)updateVideoShopItemData:(NSDictionary*)json; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Info.plist b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Info.plist new file mode 100644 index 0000000..38ca170 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Info.plist @@ -0,0 +1,50 @@ + + + + + BuildMachineOSBuild + 20E232 + CFBundleDevelopmentRegion + en + CFBundleExecutable + DWInteractiveSDK + CFBundleIdentifier + com.taobao.TBLiveSDK + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + DWInteractiveSDK + CFBundleShortVersionString + 2.0.7.54-bcdevfix-SNAPSHOT + CFBundleSignature + ???? + CFBundleSupportedPlatforms + + iPhoneOS + + CFBundleVersion + 1 + DTCompiler + com.apple.compilers.llvm.clang.1_0 + DTPlatformBuild + 18B79 + DTPlatformName + iphoneos + DTPlatformVersion + 14.2 + DTSDKBuild + 18B79 + DTSDKName + iphoneos14.2 + DTXcode + 1220 + DTXcodeBuild + 12B45b + MinimumOSVersion + 8.0 + UIDeviceFamily + + 1 + + + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Modules/module.modulemap b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Modules/module.modulemap new file mode 100644 index 0000000..cf69afe --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/DWInteractiveSDK/DWInteractiveSDK.framework/Modules/module.modulemap @@ -0,0 +1,6 @@ +framework module DWInteractiveSDK { + umbrella header "DWInteractiveSDK.h" + + export * + module * { export * } +} diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/MunionBcAdSDK/MunionBcAdSDK.framework/Headers/MunionBcAdSDK.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/MunionBcAdSDK/MunionBcAdSDK.framework/Headers/MunionBcAdSDK.h new file mode 100644 index 0000000..e05ae32 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/MunionBcAdSDK/MunionBcAdSDK.framework/Headers/MunionBcAdSDK.h @@ -0,0 +1,20 @@ +// +// MunionBcAdSDK.h +// MunionBcAdSDK +// +// Created by 江滔 on 2019/11/27. +// Copyright © 2019 江滔. All rights reserved. +// + +#import + +//! Project version number for MunionBcAdSDK. +FOUNDATION_EXPORT double MunionBcAdSDKVersionNumber; + +//! Project version string for MunionBcAdSDK. +FOUNDATION_EXPORT const unsigned char MunionBcAdSDKVersionString[]; + +// In this header, you should import all the public headers of your framework using statements like #import + +#import +#import diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/MunionBcAdSDK/MunionBcAdSDK.framework/Headers/TKCpsManage.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/MunionBcAdSDK/MunionBcAdSDK.framework/Headers/TKCpsManage.h new file mode 100644 index 0000000..ba17d7c --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/MunionBcAdSDK/MunionBcAdSDK.framework/Headers/TKCpsManage.h @@ -0,0 +1,32 @@ +// +// TKCpsManage.h +// MunionBcAdSDK +// +// Created by 江滔 on 2019/11/27. +// Copyright © 2019 江滔. All rights reserved. +// + +#import +#import + + + +typedef void (^ successBlock)(NSDictionary *result); +typedef void (^ failBlock)(MtopError * error); + +@interface TKCpsManage : NSObject ++(instancetype)shareInstance; + +/* + * 手淘/天猫 detail/shop页面直接调用广告sdk上传cps日志 + * @param url 落地url + * @param extPrams + * 返回预留字段 + */ +-(void)uploadCpsTrack:(NSString *)url + extParams:(NSDictionary *)extParams + onSuccessBlock:(successBlock)successBlock + onFailBlock:(failBlock)failBlock; + +@end + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/MunionBcAdSDK/MunionBcAdSDK.framework/Headers/munion.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/MunionBcAdSDK/MunionBcAdSDK.framework/Headers/munion.h new file mode 100644 index 0000000..0695eb6 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/MunionBcAdSDK/MunionBcAdSDK.framework/Headers/munion.h @@ -0,0 +1,33 @@ +// +// munion.h +// MunionBcAdSDK +// +// Created by 江滔 on 2019/11/27. +// Copyright © 2019 江滔. All rights reserved. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface munion : NSObject + ++(instancetype)sharedInstance; + +/** + * @ 传入现有的跳转URL 返回拼接ClickID参数后的新URL + * @ param currentUrl 当前URL + * + */ +-(NSString *) handleADUrl:(NSString *) currentURL; + +/** + * @ 传入现有的跳转URL 返回Clickid + * @ param currentUrl 当前URL + * + */ +-(NSString *) handleADUrlForClickid:(NSString *) currentURL; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/MunionBcAdSDK/MunionBcAdSDK.framework/Info.plist b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/MunionBcAdSDK/MunionBcAdSDK.framework/Info.plist new file mode 100644 index 0000000..8fa2c76 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/MunionBcAdSDK/MunionBcAdSDK.framework/Info.plist @@ -0,0 +1,51 @@ + + + + + BuildMachineOSBuild + 18F132 + CFBundleDevelopmentRegion + en + CFBundleExecutable + MunionBcAdSDK + CFBundleIdentifier + com.taobao.MunionBcAdSDK + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + MunionBcAdSDK + CFBundlePackageType + FMWK + CFBundleShortVersionString + 1.0.0-SNAPSHOT + CFBundleSupportedPlatforms + + iPhoneOS + + CFBundleVersion + 1 + DTCompiler + com.apple.compilers.llvm.clang.1_0 + DTPlatformBuild + 17B102 + DTPlatformName + iphoneos + DTPlatformVersion + 13.2 + DTSDKBuild + 17B102 + DTSDKName + iphoneos13.2 + DTXcode + 1120 + DTXcodeBuild + 11B500 + MinimumOSVersion + 9.0 + UIDeviceFamily + + 1 + 2 + + + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/MunionBcAdSDK/MunionBcAdSDK.framework/Modules/module.modulemap b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/MunionBcAdSDK/MunionBcAdSDK.framework/Modules/module.modulemap new file mode 100644 index 0000000..fe22b5c --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/MunionBcAdSDK/MunionBcAdSDK.framework/Modules/module.modulemap @@ -0,0 +1,6 @@ +framework module MunionBcAdSDK { + umbrella header "MunionBcAdSDK.h" + + export * + module * { export * } +} diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/MunionBcAdSDK/MunionBcAdSDK.framework/MunionBcAdSDK b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/MunionBcAdSDK/MunionBcAdSDK.framework/MunionBcAdSDK new file mode 100644 index 0000000..ad03e90 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/MunionBcAdSDK/MunionBcAdSDK.framework/MunionBcAdSDK differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBMediaPlayer.framework/Headers/IJKFFMoviePlayerController.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBMediaPlayer.framework/Headers/IJKFFMoviePlayerController.h new file mode 100644 index 0000000..3ac0092 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBMediaPlayer.framework/Headers/IJKFFMoviePlayerController.h @@ -0,0 +1,163 @@ +/* + * IJKFFMoviePlayerController.h + * + * Copyright (c) 2013 Zhang Rui + * + * This file is part of ijkPlayer. + * + * ijkPlayer is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * ijkPlayer is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with ijkPlayer; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#import +#import +// media meta +#define k_IJKM_KEY_FORMAT @"format" +#define k_IJKM_KEY_DURATION_US @"duration_us" +#define k_IJKM_KEY_START_US @"start_us" +#define k_IJKM_KEY_BITRATE @"bitrate" + +// stream meta +#define k_IJKM_KEY_TYPE @"type" +#define k_IJKM_VAL_TYPE__VIDEO @"video" +#define k_IJKM_VAL_TYPE__AUDIO @"audio" +#define k_IJKM_VAL_TYPE__UNKNOWN @"unknown" + +#define k_IJKM_KEY_CODEC_NAME @"codec_name" +#define k_IJKM_KEY_CODEC_PROFILE @"codec_profile" +#define k_IJKM_KEY_CODEC_LONG_NAME @"codec_long_name" + +// stream: video +#define k_IJKM_KEY_WIDTH @"width" +#define k_IJKM_KEY_HEIGHT @"height" +#define k_IJKM_KEY_FPS_NUM @"fps_num" +#define k_IJKM_KEY_FPS_DEN @"fps_den" +#define k_IJKM_KEY_TBR_NUM @"tbr_num" +#define k_IJKM_KEY_TBR_DEN @"tbr_den" +#define k_IJKM_KEY_SAR_NUM @"sar_num" +#define k_IJKM_KEY_SAR_DEN @"sar_den" +// stream: audio +#define k_IJKM_KEY_SAMPLE_RATE @"sample_rate" +#define k_IJKM_KEY_CHANNEL_LAYOUT @"channel_layout" + +#define kk_IJKM_KEY_STREAMS @"streams" + +typedef enum IJKLogLevel { + k_IJK_LOG_UNKNOWN = 0, + k_IJK_LOG_DEFAULT = 1, + + k_IJK_LOG_VERBOSE = 2, + k_IJK_LOG_DEBUG = 3, + k_IJK_LOG_INFO = 4, + k_IJK_LOG_WARN = 5, + k_IJK_LOG_ERROR = 6, + k_IJK_LOG_FATAL = 7, + k_IJK_LOG_SILENT = 8, +} IJKLogLevel; + +__attribute__((annotate("IgnoreChecker:notification_miss_pair"))) +@interface IJKFFMoviePlayerController : NSObject + ++ (instancetype)defalutPlayerWithUrl:(NSString *)url; + ++ (instancetype)defalutPlayerWithUrl:(NSString *)url options:(IJKFFOptions *)options; + +- (instancetype)initWithContentURL:(NSURL *)aUrl + withOptions:(IJKFFOptions *)options; + +- (instancetype)initWithContentURLString:(NSString *)aUrlString + withOptions:(IJKFFOptions *)options; + +- (void)setConfig:(NSDictionary *)config; +- (int)prepareToPlay; +- (void)play; +- (void)pause; +- (void)stop; +- (BOOL)isPlaying; +- (BOOL)isSeeking; + +- (void)setPauseInBackground:(BOOL)pause; +- (BOOL)isVideoToolboxOpen; + +- (BOOL)hasNewVideoPixelBufferToDraw; +- (CVPixelBufferRef)copyCurrentVideoPixelBuffer; + +- (UIImage *)thumbnailImageAtCurrentTime; + ++ (void)setLogReport:(BOOL)preferLogReport; ++ (void)setLogLevel:(IJKLogLevel)logLevel; ++ (BOOL)checkIfFFmpegVersionMatch:(BOOL)showAlert; ++ (BOOL)checkIfPlayerVersionMatch:(BOOL)showAlert + major:(unsigned int)major + minor:(unsigned int)minor + micro:(unsigned int)micro; + +@property(nonatomic, readonly) CGFloat fpsInMeta; +@property(nonatomic, readonly) CGFloat fpsAtOutput; +@property(nonatomic) BOOL shouldShowHudView; +@property (assign, nonatomic) BOOL muted; + +@property (assign, readonly, nonatomic) CGRect videoRect; +@property (strong, readonly, nonatomic) NSValue *videoRectValue; + +@property (assign, nonatomic) UIInterfaceOrientation renderViewOrientation; + +- (NSString *)getLiveStreamServerIP; +- (NSString *)getLocalIP; +- (NSString *)getRouteNodes; +- (NSDictionary *)getIJKPlayerProperties; +- (NSString *)getIJKPlayerStringWithType:(int)type; + +- (void)setOptionValue:(NSString *)value + forKey:(NSString *)key + ofCategory:(IJKFFOptionCategory)category; + +- (void)setOptionIntValue:(int64_t)value + forKey:(NSString *)key + ofCategory:(IJKFFOptionCategory)category; + + +@property (nonatomic, readonly) NSValue *videoSize; + +- (void)setFormatOptionValue: (NSString *)value forKey:(NSString *)key; +- (void)setCodecOptionValue: (NSString *)value forKey:(NSString *)key; +- (void)setSwsOptionValue: (NSString *)value forKey:(NSString *)key; +- (void)setPlayerOptionValue: (NSString *)value forKey:(NSString *)key; + +- (void)setFormatOptionIntValue: (int64_t)value forKey:(NSString *)key; +- (void)setCodecOptionIntValue: (int64_t)value forKey:(NSString *)key; +- (void)setSwsOptionIntValue: (int64_t)value forKey:(NSString *)key; +- (void)setPlayerOptionIntValue: (int64_t)value forKey:(NSString *)key; + +- (double)switchVideoResolutionSmoothly; +- (void)setPropertyFloat:(float)value forKey:(NSString*)key; +- (void)setPropertyInt64:(float)value forKey:(NSString *)key; + +@property (nonatomic, retain) id segmentOpenDelegate; +@property (nonatomic, retain) id tcpOpenDelegate; +@property (nonatomic, retain) id httpOpenDelegate; +@property (nonatomic, retain) id liveOpenDelegate; + +@end + +#define IJK_FF_IO_TYPE_READ (1) +void IJKFFIOStatDebugCallback(const char *url, int type, int bytes); +void IJKFFIOStatRegister(void (*cb)(const char *url, int type, int bytes)); + +void IJKFFIOStatCompleteDebugCallback(const char *url, + int64_t read_bytes, int64_t total_size, + int64_t elpased_time, int64_t total_duration); +void IJKFFIOStatCompleteRegister(void (*cb)(const char *url, + int64_t read_bytes, int64_t total_size, + int64_t elpased_time, int64_t total_duration)); diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBMediaPlayer.framework/Headers/IJKFFOptions.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBMediaPlayer.framework/Headers/IJKFFOptions.h new file mode 100644 index 0000000..d3c49ec --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBMediaPlayer.framework/Headers/IJKFFOptions.h @@ -0,0 +1,101 @@ +/* + * IJKFFOptions.h + * + * Copyright (c) 2013-2015 Zhang Rui + * + * This file is part of ijkPlayer. + * + * ijkPlayer is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * ijkPlayer is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with ijkPlayer; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#import + +typedef enum IJKFFOptionCategory { + kIJKFFOptionCategoryFormat = 1, + kIJKFFOptionCategoryCodec = 2, + kIJKFFOptionCategorySws = 3, + kIJKFFOptionCategoryPlayer = 4, +} IJKFFOptionCategory; + +// for codec option 'skip_loop_filter' and 'skip_frame' +typedef enum IJKAVDiscard { + /* We leave some space between them for extensions (drop some + * keyframes for intra-only or drop just some bidir frames). */ + IJK_AVDISCARD_NONE =-16, ///< discard nothing + IJK_AVDISCARD_DEFAULT = 0, ///< discard useless packets like 0 size packets in avi + IJK_AVDISCARD_NONREF = 8, ///< discard all non reference + IJK_AVDISCARD_BIDIR = 16, ///< discard all bidirectional frames + IJK_AVDISCARD_NONKEY = 32, ///< discard all frames except keyframes + IJK_AVDISCARD_ALL = 48, ///< discard all +} IJKAVDiscard; + +struct IjkMediaPlayer; + +@interface IJKFFOptions : NSObject + ++ (IJKFFOptions *)optionsByDefault; + +- (void)applyTo:(struct IjkMediaPlayer *)mediaPlayer; + +- (void)setOptionValue:(NSString *)value + forKey:(NSString *)key + ofCategory:(IJKFFOptionCategory)category; + +- (void)setOptionIntValue:(int64_t)value + forKey:(NSString *)key + ofCategory:(IJKFFOptionCategory)category; + + +- (void)setFormatOptionValue:(NSString *)value forKey:(NSString *)key; +- (void)setCodecOptionValue:(NSString *)value forKey:(NSString *)key; +- (void)setSwsOptionValue:(NSString *)value forKey:(NSString *)key; +- (void)setPlayerOptionValue:(NSString *)value forKey:(NSString *)key; +- (int64_t)getPlayerOptionValueWithKey:(NSString*)key; + +- (void)setFormatOptionIntValue:(int64_t)value forKey:(NSString *)key; +- (void)setCodecOptionIntValue:(int64_t)value forKey:(NSString *)key; +- (void)setSwsOptionIntValue:(int64_t)value forKey:(NSString *)key; +- (void)setPlayerOptionIntValue:(int64_t)value forKey:(NSString *)key; + +-(void)setServerDispatchedIntValue:(int64_t)value forKey:(NSString*)key; +- (int64_t)getServerDispatchedOptionIntValueForKey:(NSString *)key; + +- (void)setPlayScenarioOptionIntValue:(int64_t)value forKey:(NSString *)key; + +@property (assign, nonatomic) BOOL showHudView; +//@property (assign, nonatomic) BOOL isLive; // Deprecated, use 'playScenario' to mark media type. +@property (assign, nonatomic) int32_t playScenario; // 0: normal live; 1: link live; 2: playback. +@property (copy, nonatomic) NSString *cdnIP; +@property (strong, nonatomic, readonly) NSMutableDictionary *playScenarioConfig; // 与 playScenario 对应的播放器参数配置。 +@property (assign, nonatomic) BOOL shouldAutoplay; +@property (assign, nonatomic) BOOL shouldUpthrowImage; // 是否要上抛解码后的视频数据 +@property (assign, nonatomic) int32_t renderType; // 0: defalut glViewRender; 1: VR render +@property (assign, nonatomic) int32_t playerRenderOrientation; // 默认是0,表示UIInterfaceOrientationPortrait,1表示UIInterfaceOrientationLandscapeRight +- (NSDictionary *)getAllOptions; +@property (assign, nonatomic) BOOL useOptimizedHEVC; +@property (assign, nonatomic) BOOL enablePlaybackRate; + +//是否使用videotoolboxHEVC +@property (assign, nonatomic) BOOL videotoolboxHEVC; +//是否启用动态刷新vtb +@property (assign, nonatomic) BOOL vtbHandleResolutionChange; + +@property (assign, nonatomic) int32_t maxnormalplay; +@property (assign, nonatomic) int32_t minnormalplay; +@property (assign, nonatomic) int32_t maxfastplay; + +@property (assign, nonatomic) BOOL simpleMode; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBMediaPlayer.framework/Headers/IJKMediaPlayback.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBMediaPlayer.framework/Headers/IJKMediaPlayback.h new file mode 100644 index 0000000..56f4401 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBMediaPlayer.framework/Headers/IJKMediaPlayback.h @@ -0,0 +1,239 @@ +/* + * IJKMediaPlayback.h + * + * Copyright (c) 2013 Zhang Rui + * + * This file is part of ijkPlayer. + * + * ijkPlayer is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * ijkPlayer is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with ijkPlayer; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#import +#import + +#ifdef DEBUG +#define debugLog(...) NSLog(__VA_ARGS__) +#define debugMethod() NSLog(@"%s", __func__); +#else +#define debugLog(...) +#define debugMethod() +#endif + + +typedef NS_ENUM(NSInteger, IJKMPMovieScalingMode) { + IJKMPMovieScalingModeNone, // No scaling + IJKMPMovieScalingModeAspectFit, // Uniform scale until one dimension fits + IJKMPMovieScalingModeAspectFill, // Uniform scale until the movie fills the visible bounds. One dimension may have clipped contents + IJKMPMovieScalingModeFill // Non-uniform scale. Both render dimensions will exactly match the visible bounds +}; + +typedef NS_ENUM(NSInteger, IJKMPMoviePlaybackState) { + IJKMPMoviePlaybackStateStopped, + IJKMPMoviePlaybackStatePlaying, + IJKMPMoviePlaybackStatePaused, + IJKMPMoviePlaybackStateInterrupted, + IJKMPMoviePlaybackStateSeekingForward, + IJKMPMoviePlaybackStateSeekingBackward, + IJKMPMoviePlaybackStatePrepared +}; + +typedef NS_OPTIONS(NSUInteger, IJKMPMovieLoadState) { + IJKMPMovieLoadStateUnknown = 0, + IJKMPMovieLoadStatePlayable = 1 << 0, + IJKMPMovieLoadStatePlaythroughOK = 1 << 1, // Playback will be automatically started in this state when shouldAutoplay is YES + IJKMPMovieLoadStateStalled = 1 << 2, // Playback will be automatically paused in this state, if started +}; + +typedef NS_ENUM(NSInteger, IJKMPMovieFinishReason) { + IJKMPMovieFinishReasonPlaybackEnded, + IJKMPMovieFinishReasonPlaybackError, + IJKMPMovieFinishReasonUserExited, + IJKMPMovieFinishReasonARTPError +}; + +// ----------------------------------------------------------------------------- +// Thumbnails + +typedef NS_ENUM(NSInteger, IJKMPMovieTimeOption) { + IJKMPMovieTimeOptionNearestKeyFrame, + IJKMPMovieTimeOptionExact +}; + +@protocol IJKMediaPlayback; + +#pragma mark IJKMediaPlayback + +@protocol IJKMediaPlayback + +- (void)prepareToPlay; +- (void)play; +- (void)pause; +- (void)stop; +- (BOOL)isPlaying; +- (void)shutdown; +- (void)setPauseInBackground:(BOOL)pause; + +@property(nonatomic, readonly) UIView *view; +@property(nonatomic) NSTimeInterval currentPlaybackTime; +@property(nonatomic, readonly) NSTimeInterval duration; +@property(nonatomic, readonly) NSTimeInterval playableDuration; +@property(nonatomic, readonly) NSInteger bufferingProgress; + +@property(nonatomic, readonly) BOOL isPreparedToPlay; +@property(nonatomic, readonly) IJKMPMoviePlaybackState playbackState; +@property(nonatomic, readonly) IJKMPMovieLoadState loadState; + +@property(nonatomic, readonly) int64_t numberOfBytesTransferred; + +@property(nonatomic, readonly) CGSize naturalSize; +@property(nonatomic) IJKMPMovieScalingMode scalingMode; +@property(nonatomic) BOOL shouldAutoplay; + +@property (nonatomic) BOOL allowsMediaAirPlay; +@property (nonatomic) BOOL isDanmakuMediaAirPlay; +@property (nonatomic, readonly) BOOL airPlayMediaActive; + +@property (nonatomic) float playbackRate; + +- (UIImage *)thumbnailImageAtCurrentTime; + +#pragma mark Notifications + +#ifdef __cplusplus +#define IJK_EXTERN extern "C" __attribute__((visibility ("default"))) +#else +#define IJK_EXTERN extern __attribute__((visibility ("default"))) +#endif + +// ----------------------------------------------------------------------------- +// MPMediaPlayback.h + +// Posted when the prepared state changes of an object conforming to the MPMediaPlayback protocol changes. +// This supersedes MPMoviePlayerContentPreloadDidFinishNotification. +IJK_EXTERN NSString *const IJKMPMediaPlaybackIsPreparedToPlayDidChangeNotification; + +// ----------------------------------------------------------------------------- +// MPMoviePlayerController.h +// Movie Player Notifications + +// Posted when the scaling mode changes. +IJK_EXTERN NSString* const IJKMPMoviePlayerScalingModeDidChangeNotification; + +// Posted when movie playback ends or a user exits playback. +IJK_EXTERN NSString* const IJKMPMoviePlayerPlaybackDidFinishNotification; +IJK_EXTERN NSString* const IJKMPMoviePlayerPlaybackDidFinishReasonUserInfoKey; // NSNumber (IJKMPMovieFinishReason) + +// Posted when the playback state changes, either programatically or by the user. +IJK_EXTERN NSString* const IJKMPMoviePlayerPlaybackStateDidChangeNotification; + +// Posted when the network load state changes. +IJK_EXTERN NSString* const IJKMPMoviePlayerLoadStateDidChangeNotification; + +// Posted when the movie player begins or ends playing video via AirPlay. +IJK_EXTERN NSString* const IJKMPMoviePlayerIsAirPlayVideoActiveDidChangeNotification; + +// ----------------------------------------------------------------------------- +// Movie Property Notifications + +// Calling -prepareToPlay on the movie player will begin determining movie properties asynchronously. +// These notifications are posted when the associated movie property becomes available. +IJK_EXTERN NSString* const IJKMPMovieNaturalSizeAvailableNotification; + +// ----------------------------------------------------------------------------- +// Extend Notifications + +IJK_EXTERN NSString *const IJKMPMoviePlayerVideoDecoderOpenNotification; +IJK_EXTERN NSString *const IJKMPMoviePlayerFirstVideoFrameRenderedNotification; +IJK_EXTERN NSString *const IJKMPMoviePlayerFirstAudioFrameRenderedNotification; + +IJK_EXTERN NSString *const IJKMPMoviePlayerReceivePTSDTSNotifcation; +IJK_EXTERN NSString *const IJKMPMoviePlayerReceivePTSUserInfoKey; +IJK_EXTERN NSString *const IJKMPMoviePlayerReceiveDTSUserInfoKey; + +// Stream Monitor Notifications. +typedef NS_ENUM(int32_t, IJKMPMoviePlayerStreamAbnormalType) { + IJKMPMoviePlayerStreamAbnormalTypeAdjoin = 0, + IJKMPMoviePlayerStreamAbnormalTypeVideo = 1, + IJKMPMoviePlayerStreamAbnormalTypeAudio = 2, + IJKMPMoviePlayerStreamAbnormalTypeAVStream = 3, + IJKMPMoviePlayerStreamAbnormalTypeVideoDTSZero = 4 +}; + +IJK_EXTERN NSString *const IJKMPMoviePlayerStreamAbnormalNotification; +IJK_EXTERN NSString *const IJKMPMoviePlayerStreamAbnormalTypeInfoKey; +IJK_EXTERN NSString *const IJKMPMoviePlayerPrePTSInfoKey; +IJK_EXTERN NSString *const IJKMPMoviePlayerCurrentPTSInfoKey; + +IJK_EXTERN NSString *const IJKMPMoviePlayerNetworkShakeNotification; +IJK_EXTERN NSString *const IJKMPMoviePlayerDelayTimeInfoKey; + +IJK_EXTERN NSString *const IJKMPMoviePlayerAVFormatTimeNotification; +IJK_EXTERN NSString *const IJKMPMoviePlayerOpenTimeInfoKey; +IJK_EXTERN NSString *const IJKMPMoviePlayerFindStreamInfoTimeInfoKey; + +IJK_EXTERN NSString *const IJKMPMoviePlayerDecodeErrorNotification; +IJK_EXTERN NSString *const IJKMPMoviePlayerFrameQueueNullNotification; +IJK_EXTERN NSString *const IJKMPMoviePlayerVideoToolboxFailNotification; + +IJK_EXTERN NSString *const IJKMPMoviePlayerNetworkTrafficNotification; +IJK_EXTERN NSString *const IJKMPMoviePlayerNetworkTrafficInfoKey; + +IJK_EXTERN NSString *const IJKMPMoviePlayerUserDefinedSEINotification; +IJK_EXTERN NSString *const IJKMPMoviePlayerUserDefinedSEIIDInfoKey; +IJK_EXTERN NSString *const IJKMPMoviePlayerUserDefinedSEIPTSInfoKey; +IJK_EXTERN NSString *const IJKMPMoviePlayerUserDefinedSEIMessageInfoKey; + +IJK_EXTERN NSString *const IJKMPMoviePlayerAudioPCMNotification; +IJK_EXTERN NSString *const IJKMPMoviePlayerAudioPCMData; + +IJK_EXTERN NSString *const IJKMPMoviePlayerSwitchResolutionNotification; + +IJK_EXTERN NSString *const IJKMPMoviePlayerEnd2EndDelayNotification; +IJK_EXTERN NSString *const IJKMPMoviePlayerEnd2EndDelayDetail; + +@end + +#pragma mark IJKMediaUrlOpenDelegate + +typedef NS_ENUM(NSInteger, IJKMediaUrlOpenType) { + IJKMediaUrlOpenEvent_ConcatResolveSegment = 0x10000, + IJKMediaUrlOpenEvent_TcpOpen = 0x10001, + IJKMediaUrlOpenEvent_HttpOpen = 0x10002, + IJKMediaUrlOpenEvent_LiveOpen = 0x10004, +}; + +@interface IJKMediaUrlOpenData: NSObject + +- (instancetype)initWithUrl:(NSString *)url + openType:(IJKMediaUrlOpenType)openType + segmentIndex:(int)segmentIndex + retryCounter:(int)retryCounter; + +@property(nonatomic, readonly) IJKMediaUrlOpenType openType; +@property(nonatomic, readonly) int segmentIndex; +@property(nonatomic, readonly) int retryCounter; + +@property(nonatomic, retain) NSString *url; +@property(nonatomic) int error; // set a negative value to indicate an error has occured. +@property(nonatomic, getter=isHandled) BOOL handled; // auto set to YES if url changed +@property(nonatomic, getter=isUrlChanged) BOOL urlChanged; // auto set to YES by url changed + +@end + +@protocol IJKMediaUrlOpenDelegate + +- (void)willOpenUrl:(IJKMediaUrlOpenData*) urlOpenData; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBMediaPlayer.framework/Headers/IJKMediaPlayer.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBMediaPlayer.framework/Headers/IJKMediaPlayer.h new file mode 100644 index 0000000..e241c46 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBMediaPlayer.framework/Headers/IJKMediaPlayer.h @@ -0,0 +1,28 @@ +/* + * IJKMediaPlayer.h + * + * Copyright (c) 2013 Zhang Rui + * + * This file is part of ijkPlayer. + * + * ijkPlayer is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * ijkPlayer is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with ijkPlayer; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#import +#import +#import +#import +#import +#import diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBMediaPlayer.framework/Headers/TBMediaPlayer.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBMediaPlayer.framework/Headers/TBMediaPlayer.h new file mode 100644 index 0000000..c42ee7e --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBMediaPlayer.framework/Headers/TBMediaPlayer.h @@ -0,0 +1,27 @@ +// +// TBMediaPlayer.h +// TBMediaPlayer +// +// Created by qiufu on 3/2/16. +// Copyright © 2016 CX. All rights reserved. +// + +#import + +//! Project version number for TBMediaPlayer. +FOUNDATION_EXPORT double TBMediaPlayerVersionNumber; + +//! Project version string for TBMediaPlayer. +FOUNDATION_EXPORT const unsigned char TBMediaPlayerVersionString[]; + +// In this header, you should import all the public headers of your framework using statements like #import +// 2016-05-18 + +#import +#import +#import +#import + + +#import +#import diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBMediaPlayer.framework/Info.plist b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBMediaPlayer.framework/Info.plist new file mode 100644 index 0000000..08029b3 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBMediaPlayer.framework/Info.plist @@ -0,0 +1,53 @@ + + + + + BuildMachineOSBuild + 18G95 + CFBundleDevelopmentRegion + en + CFBundleExecutable + TBMediaPlayer + CFBundleIdentifier + com.taobao.TBMediaPlayer + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + TBMediaPlayer + CFBundlePackageType + FMWK + CFBundleShortVersionString + 2.0.7 + CFBundleSignature + ???? + CFBundleSupportedPlatforms + + iPhoneOS + + CFBundleVersion + 1 + DTCompiler + com.apple.compilers.llvm.clang.1_0 + DTPlatformBuild + 17A820 + DTPlatformName + iphoneos + DTPlatformVersion + 13.1 + DTSDKBuild + 17A820 + DTSDKName + iphoneos13.1 + DTXcode + 1110 + DTXcodeBuild + 11A1027 + MinimumOSVersion + 8.0 + UIDeviceFamily + + 1 + 2 + + + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBMediaPlayer.framework/Modules/module.modulemap b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBMediaPlayer.framework/Modules/module.modulemap new file mode 100644 index 0000000..610e8db --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBMediaPlayer.framework/Modules/module.modulemap @@ -0,0 +1,6 @@ +framework module TBMediaPlayer { + umbrella header "TBMediaPlayer.h" + + export * + module * { export * } +} diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBMediaPlayer.framework/TBMediaPlayer b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBMediaPlayer.framework/TBMediaPlayer new file mode 100755 index 0000000..9f6d913 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBMediaPlayer.framework/TBMediaPlayer differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBMediaPlayerBundle.framework/Headers/TBMPBAVPlayerView.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBMediaPlayerBundle.framework/Headers/TBMPBAVPlayerView.h new file mode 100644 index 0000000..b63bd0b --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBMediaPlayerBundle.framework/Headers/TBMPBAVPlayerView.h @@ -0,0 +1,14 @@ +// +// TBMPBAVPlayerView.h +// TBMediaPlayerBundle +// +// Created by qiufu on 10/11/16. +// Copyright © 2016 CX. All rights reserved. +// + +#import +#import + +@interface TBMPBAVPlayerView : UIView + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBMediaPlayerBundle.framework/Headers/TBMPBFFOptions.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBMediaPlayerBundle.framework/Headers/TBMPBFFOptions.h new file mode 100644 index 0000000..9ff617b --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBMediaPlayerBundle.framework/Headers/TBMPBFFOptions.h @@ -0,0 +1,67 @@ +// +// TBMPBFFOptions.h +// TBMediaPlayerBundle +// +// Created by qiufu on 3/30/16. +// Copyright © 2016 CX. All rights reserved. +// + +#import + +@interface TBMPBFFOptions : NSObject // 'IJKFFOptions' Wrapper + +@property (strong, nonatomic) id ijkFFOptions; // IJKFFOptions + +@property (assign, nonatomic) BOOL showHudView; +@property (assign, nonatomic) int32_t playScenario; // 0: normal live; 1: link live; 2: playback. +@property (assign, nonatomic) BOOL shouldAutoplay; +@property (assign, nonatomic) BOOL loop; +@property (copy, nonatomic) NSString *cdnIP; +@property (assign, nonatomic) BOOL useOptimizedHEVC; +@property (assign, nonatomic) BOOL videotoolboxHEVC; +@property (assign, nonatomic) BOOL vtbHandleResolutionChange; + +@property (copy, nonatomic) NSString *businessID; // 用于区别不同业务的埋点。比如:淘宝直播的 businessID 为 "TBLive"。 +@property (copy, nonatomic) NSString *subBusinessType; // 业务细分类型。 +@property (copy, nonatomic) NSString *videoChannel; // 视频业务承接渠道。 +@property (copy, nonatomic) NSString *userID; // 用于埋点时区分用户。由业务方传入。 +@property (copy, nonatomic) NSString *feedID; // 直播间 Feed ID。由业务方传入。 +@property (assign, nonatomic) BOOL isSelected; // 内容是否为精选。 +@property (copy, nonatomic) NSString *anchorAccountID; // 直播间主播的用户 ID。由业务方传入。 +@property (copy, nonatomic) NSString *videoDefinition; // 视频清晰度。由业务方传入。 +@property (copy, nonatomic) NSString *logToken; // 日志标识。 +@property (copy, nonatomic) NSString *mediaSourceType; +@property (copy, nonatomic) NSString *spm; + +@property (assign, nonatomic) BOOL isUseProxy; + +@property (assign, nonatomic) BOOL playerShouldUpthrowImage; +@property (assign, nonatomic) BOOL playerShouldNotRenderAfterUpthrowImage; +@property (assign, nonatomic) int32_t renderType; // 默认为0,普通glView渲染,1为VR渲染 +@property (assign, nonatomic) int32_t playerRenderOrientation; // 默认是0,表示UIInterfaceOrientationPortrait,1表示UIInterfaceOrientationLandscapeRight +@property (assign, nonatomic) int32_t maxnormalplay; +@property (assign, nonatomic) int32_t minnormalplay; +@property (assign, nonatomic) int32_t maxfastplay; + +@property (assign, nonatomic) BOOL simpleMode; +@property (copy, nonatomic) NSString* expectedVideoInfo; +@property (copy, nonatomic) NSDictionary *extraConfig; + ++ (instancetype)defaultPlayerOptions; + +- (void)setFormatOptionValue:(NSString *)value forKey:(NSString *)key; +- (void)setCodecOptionValue:(NSString *)value forKey:(NSString *)key; +- (void)setSwsOptionValue:(NSString *)value forKey:(NSString *)key; +- (void)setPlayerOptionValue:(NSString *)value forKey:(NSString *)key; + +- (void)setFormatOptionIntValue:(int64_t)value forKey:(NSString *)key; +- (void)setCodecOptionIntValue:(int64_t)value forKey:(NSString *)key; +- (void)setSwsOptionIntValue:(int64_t)value forKey:(NSString *)key; +- (void)setPlayerOptionIntValue:(int64_t)value forKey:(NSString *)key; + +- (void)setPlayScenarioOptionIntValue:(int64_t)value forKey:(NSString *)key; +- (void)setServerDispatchedOptionIntValue:(int64_t)value forKey:(NSString *)key; + +- (NSDictionary *)getAllOptions; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBMediaPlayerBundle.framework/Headers/TBMPBFFPlayerController.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBMediaPlayerBundle.framework/Headers/TBMPBFFPlayerController.h new file mode 100644 index 0000000..625f490 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBMediaPlayerBundle.framework/Headers/TBMPBFFPlayerController.h @@ -0,0 +1,168 @@ +// +// TBMPBFFPlayerController.h +// TBMediaPlayerBundle +// +// Created by qiufu on 3/29/16. +// Copyright © 2016 CX. All rights reserved. +// + +#import +#import +#import +#import + +#pragma mark - Common Define +// Player Info Notificcation. +extern NSString *const TBMPBPlaybackIsPreparedToPlayDidChangeNotification; +extern NSString *const TBMPBPlayerPlaybackDidFinishNotification; +extern NSString *const TBMPBPlayerPlaybackDidFinishReasonUserInfoKey; +extern NSString *const TBMPBPlayerPlaybackStateDidChangeNotification; +extern NSString *const TBMPBPlayerLoadStateDidChangeNotification; +extern NSString *const TBMPBPlayerIsAirPlayVideoActiveDidChangeNotification; +extern NSString *const TBMPBNaturalSizeAvailableNotification; +extern NSString *const TBMPBPlayerVideoDecoderOpenNotification; +extern NSString *const TBMPBPlayerFirstVideoFrameRenderedNotification; +extern NSString *const TBMPBPlayerFirstAudioFrameRenderedNotification; +extern NSString *const TBMPBPlayerReceivePTSDTSNotifcation; +extern NSString *const TBMPBPlayerReceivePTSUserInfoKey; +extern NSString *const TBMPBPlayerReceiveDTSUserInfoKey; + +// Stream Monitor Notification. +extern NSString *const TBMPBPlayerStreamAbnormalNotification; +extern NSString *const TBMPBPlayerStreamAbnormalTypeInfoKey; +extern NSString *const TBMPBPlayerPrePTSInfoKey; +extern NSString *const TBMPBPlayerCurrentPTSInfoKey; + +extern NSString *const TBMPBPlayerNetworkShakeNotification; +extern NSString *const TBMPBPlayerDelayTimeInfoKey; + +extern NSString *const TBMPBPlayerAVFormatTimeNotification; +extern NSString *const TBMPBPlayerOpenTimeInfoKey; +extern NSString *const TBMPBPlayerFindStreamInfoTimeInfoKey; + +extern NSString *const TBMPBPlayerDecodeErrorNotification; +extern NSString *const TBMPBPlayerFrameQueueNullNotification; +extern NSString *const TBMPBPlayerVideoToolboxFailNotification; + +extern NSString *const TBMPBPlayerShouldSwitchToLowQualityStreamNotification; + +// Network Traffic Notification. +extern NSString *const TBMPBPlayerNetworkTrafficNotification; +extern NSString *const TBMPBPlayerNetworkTrafficInfoKey; + +extern NSString *const TBMPBPlayerUserDefinedSEINotification; +extern NSString *const TBMPBPlayerUserDefinedSEIIDInfoKey; +extern NSString *const TBMPBPlayerUserDefinedSEIPTSInfoKey; +extern NSString *const TBMPBPlayerUserDefinedSEIMessageInfoKey; + +extern NSString *const TBMPBPlayerARTPErrorCode; + +typedef NS_ENUM(int32_t, TBMPBPlayerStreamAbnormalType) { + TBMPBPlayerStreamAbnormalTypeAdjoin = 0, + TBMPBPlayerStreamAbnormalTypeVideo = 1, + TBMPBPlayerStreamAbnormalTypeAudio = 2, + TBMPBPlayerStreamAbnormalTypeAVStream = 3, + TBMPBPlayerStreamAbnormalTypeVideoDTSZero = 4 +}; + +// Use TBMPBPlayerContentMode instead. +//typedef NS_ENUM(NSInteger, TBMPBMovieScalingMode) { // Equal to 'IJKMPMovieScalingMode'. +// TBMPBMovieScalingModeNone, // No scaling +// TBMPBMovieScalingModeAspectFit, // Uniform scale until one dimension fits +// TBMPBMovieScalingModeAspectFill, // Uniform scale until the movie fills the visible bounds. One dimension may have clipped contents +// TBMPBMovieScalingModeFill // Non-uniform scale. Both render dimensions will exactly match the visible bounds +//}; + +typedef NS_ENUM(NSInteger, TBMPBMoviePlaybackState) { // Equal to 'IJKMPMoviePlaybackState'. + TBMPBMoviePlaybackStateStopped, + TBMPBMoviePlaybackStatePlaying, + TBMPBMoviePlaybackStatePaused, + TBMPBMoviePlaybackStateInterrupted, + TBMPBMoviePlaybackStateSeekingForward, + TBMPBMoviePlaybackStateSeekingBackward, + TBMPBMoviePlaybackStatePrepared +}; + +typedef NS_OPTIONS(NSUInteger, TBMPBMovieLoadState) { // Equal to 'IJKMPMovieLoadState'. + TBMPBMovieLoadStateUnknown = 0, + TBMPBMovieLoadStatePlayable = 1 << 0, + TBMPBMovieLoadStatePlaythroughOK = 1 << 1, // Playback will be automatically started in this state when shouldAutoplay is YES + TBMPBMovieLoadStateStalled = 1 << 2, // Playback will be automatically paused in this state, if started +}; + +typedef NS_ENUM(NSInteger, TBMPBMovieFinishReason) { // Equal to 'IJKMPMovieFinishReason'. + TBMPBMovieFinishReasonPlaybackEnded, + TBMPBMovieFinishReasonPlaybackError, + TBMPBMovieFinishReasonUserExited, + IJKMPMovieFinishReasonARTPError +}; + +typedef NS_ENUM(int, RTCSTREAM_TRANSPORT_TYPE) { + FFP_PROP_ARTP_FFDECODER_THREAD = 21801, //设置ff解码线程数 + RTCSTREAM_STATSTYPE_RTT = 21901, //RTT + RTCSTREAM_STATSTYPE_RECV_BUFFER_DELAY = 21902, //音视频缓存延时长度 + RTCSTREAM_STATSTYPE_RECV_JITTER = 21903, //音视频抖动 + RTCSTREAM_STATSTYPE_RECV_LOSS_RATE = 21904, //音视频丢包率 + RTCSTREAM_STATSTYPE_NACK_REQ_RSP_NUM = 21905, //nack请求响应次数 + RTCSTREAM_STATSTYPE_FEC_RECOVERED_NUM = 21906, //fec 恢复次数 + RTCSTREAM_STATSTYPE_NET_RECV_RATE = 21907, //音视频网络接收码率 + RTCSTREAM_TRANSPORT_STREAM_INFO = 21990, //traceid和sfu_ip + RTCSTREAM_TRANSPORT_START_INFO = 21991, //启播各项耗时 + RTCSTREAM_TRANSPORT_INFO_SNAPSHOT = 21992, //卡顿瞬间获取rtc状态信息 SeqNO=9999 + RTCSTREAM_TRANSPORT_DELAY_INFO = 21993, //端到端延时相关信息 + RTCSTREAM_TRANSPORT_STATS_INCYCLE = 21994, //周期性指标计算 +}; + +#pragma mark - TBMPBFFPlayerController Interface +@interface TBMPBFFPlayerController : NSObject // 'IJKFFMoviePlayerController' Wrapper +@property (strong, atomic) id ijkFFPlayer; // IJKFFMoviePlayerController +@property (weak, nonatomic) UIView *playerView; // Retained by ijkFFPlayer, so use 'weak' here. + +@property (assign, nonatomic) BOOL shouldShowHudView; +@property (assign, readonly, nonatomic) BOOL isPreparedToPlay; +@property (assign, nonatomic) BOOL muted; // Default is NO. +@property (assign, nonatomic) TBMPBPlayerContentMode contentMode; // Default is AspectFill. +@property (assign, nonatomic) float playbackRate; + +- (instancetype)initWithUrl:(NSString *)url; +- (instancetype)initWithUrl:(NSString *)url options:(TBMPBFFOptions *)options; + +- (void)setConfig:(NSDictionary *)config; +- (void)setInfo:(NSDictionary *)info; + +- (void)prepareToPlay; +- (void)play; +- (void)pause; +- (void)stop; +- (void)shutdown; +- (void)prepareToRecycle; + +- (BOOL)isPlaying; +- (BOOL)shouldPlayAfterLoadingOrSeeking; +- (NSTimeInterval)playableDuration; +- (BOOL)isVideoToolboxOpen; + +- (BOOL)hasNewVideoPixelBufferToDraw; +- (CVPixelBufferRef)copyCurrentVideoPixelBuffer; +@property (assign, nonatomic) UIInterfaceOrientation renderViewOrientation; + +@property (assign, nonatomic) NSTimeInterval currentPlaybackTime; +@property (assign, readonly, nonatomic) NSTimeInterval duration; +@property (assign, readonly, nonatomic) CGRect videoRect; +@property (assign, readonly, nonatomic) CGSize naturalSize; +- (UIImage *)thumbnailImageAtCurrentTime; +- (NSDictionary *)playerStatusData; +@property (copy, readonly, nonatomic) NSString *liveIP; +@property (copy, readonly, nonatomic) NSString *localIP; +@property (copy, readonly, nonatomic) NSString *routeNodes; + +@property (copy, nonatomic) void (^playerEventFired)(TBMPBPlayerEvent event, NSDictionary *info); +@property (copy, nonatomic) void (^playerDataPopped)(TBMPBPlayerData dataType, NSDictionary *data); + +- (TBMPBMovieLoadState)loadState; +- (TBMPBMoviePlaybackState)playbackState; +- (void)clearBackgroundColor; + +-(void) switchVideoResolutionSmoothlyWithNewUrl:(NSString*)url; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBMediaPlayerBundle.framework/Headers/TBMPBFFPlayerView.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBMediaPlayerBundle.framework/Headers/TBMPBFFPlayerView.h new file mode 100644 index 0000000..466231a --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBMediaPlayerBundle.framework/Headers/TBMPBFFPlayerView.h @@ -0,0 +1,16 @@ +// +// TBMPBFFPlayerView.h +// TBMediaPlayerBundle +// +// Created by qiufu on 10/11/16. +// Copyright © 2016 CX. All rights reserved. +// + +#import +#import + +@interface TBMPBFFPlayerView : UIView + +@end + + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBMediaPlayerBundle.framework/Headers/TBMPBObserver.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBMediaPlayerBundle.framework/Headers/TBMPBObserver.h new file mode 100644 index 0000000..fe098e8 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBMediaPlayerBundle.framework/Headers/TBMPBObserver.h @@ -0,0 +1,33 @@ +// +// TBMPBObserver.h +// TBMediaPlayerBundle +// +// Created by qiufu on 04/08/2017. +// Copyright © 2017 CX. All rights reserved. +// + +#import +#import +#import + +@class TBMPBObserver; + +#pragma mark - TBMPBObserverDelegate +@protocol TBMPBObserverDelegate + +- (void)observer:(TBMPBObserver *)observer willResignActive:(NSNotification *)notification; +- (void)observer:(TBMPBObserver *)observer didBecomeActive:(NSNotification *)notification; +- (void)observer:(TBMPBObserver *)observer didEnterBackground:(NSNotification *)notification; +- (void)observer:(TBMPBObserver *)observer willEnterForeground:(NSNotification *)notification; +- (void)observer:(TBMPBObserver *)observer audioSessionInterrupt:(NSNotification *)notification; + +@end + + +// 为了规避 UT 会删除 UIView 的切前后台的 observer 的问题。 +#pragma mark - TBMPBObserver +@interface TBMPBObserver : NSObject + +@property (weak, nonatomic) id delegate; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBMediaPlayerBundle.framework/Headers/TBMPBPlayerConst.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBMediaPlayerBundle.framework/Headers/TBMPBPlayerConst.h new file mode 100644 index 0000000..42de1fd --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBMediaPlayerBundle.framework/Headers/TBMPBPlayerConst.h @@ -0,0 +1,160 @@ +// +// TBMPBPlayerConst.h +// TBMediaPlayerBundle +// +// Created by qiufu on 11/21/16. +// Copyright © 2016 CX. All rights reserved. +// + +#ifdef DEBUG +#define debugLog(...) NSLog(__VA_ARGS__) +#define debugMethod() NSLog(@"%s", __func__); +#else +#define debugLog(...) +#define debugMethod() +#endif + +#ifndef TBMPBPlayerConst_h +#define TBMPBPlayerConst_h + +/*! + * 播放器类型。 + * 设置不同的播放器类型将选择不同的播放器进行播放。 + */ +typedef NS_ENUM(int32_t, TBMPBPlayerType) { + TBMPBPlayerTypeFFPlayer = 0, //!< 基于 FFmpeg 的播放器。支持 flv/m3u8/mp4,即将废弃。 + TBMPBPlayerTypeAVPlayer = 1, //!< 基于系统 AVPlayer 的播放器。支持 mp4/m3u8。 + TBMPBPlayerTypeTBPlayer = 2 //!< 基于 FFmpeg 的自研播放器。支持 flv/m3u8/mp4,相比FFPlayer性能提升明显,推荐使用 +}; + +/*! + * 播放场景类型。 + * 设置不同的播放场景将在播放时自动配置不同的播放参数。 + */ +typedef NS_ENUM(int32_t, TBMPBPlayScenario) { + TBMPBPlayScenarioLive = 0, //!< 普通直播。 + TBMPBPlayScenarioLinkLive = 1, //!< 连麦直播。 + TBMPBPlayScenarioPlayback = 2 //!< 点播。 +}; + +/*! + * 播放器状态。 + */ +typedef NS_ENUM(int32_t, TBMPBPlayerStatus) { + TBMPBPlayerStatusStopped = 0, //!< 播放器停止。 + TBMPBPlayerStatusLoading = 1, //!< 播放器缓冲中。 + TBMPBPlayerStatusPlaying = 2, //!< 播放器正在播放。 + TBMPBPlayerStatusPaused = 3, //!< 播放器暂停。 + TBMPBPlayerStatusStalled = 4, //!< 播放器卡顿。 + TBMPBPlayerStatusSeekingForward = 5, //!< 播放器向前追帧中。 + TBMPBPlayerStatusSeekingBackward = 6, //!< 播放器向后追帧中。 +}; + +/*! + * 播放器事件类型。 + * 播放器播放视频的过程中会通过 playerEventFired 回调函数上报相关事件。 + */ +typedef NS_ENUM(int32_t, TBMPBPlayerEvent) { + TBMPBPlayerEventPlayerPrepared = 0, //!< 播放器完成初始化。目前兼容性支持该事件,后续会废弃。 + TBMPBPlayerEventCanPlay = 1, //!< 播放器已经可以开始播放。 + TBMPBPlayerEventPlaying = 2, //!< 播放器开始播放。 + TBMPBPlayerEventPause = 3, //!< 播放器暂停。 + TBMPBPlayerEventStalled = 4, //!< 播放器卡顿。 + TBMPBPlayerEventInterrupted = 5, //!< 播放器被中断。 + TBMPBPlayerEventSeekingForward = 6, //!< 播放器向前追帧中。 + TBMPBPlayerEventSeekingBackward = 7, //!< 播放器向后追帧中。 + TBMPBPlayerEventEnded = 8, //!< 播放结束。 + TBMPBPlayerEventException = 9, //!< 播放器异常。播放器尚可播放。 + TBMPBPlayerEventError = 10, //!< 播放器报错。播放器不可播放。 + TBMPBPlayerEventUnknown = 11, //!< 未知。 + TBMPBPlayerEventFirstVideoFrameRendered = 12, //!< 首帧渲染。 + TBMPBPlayerEventWillBeRecycled = 13, //!< 播放器实例将被回收。 + TBMPBPlayerEventFirstAudioFrameRendered = 14, //!< 音频首帧开始渲染,不对外透出 + TBMPBPlayerEventPlayerPreparing = 15, //!< 播放器开始初始化,外部无需处理 + TBMPBPlayerEventRetryingOpenInput = 16, //!< 播放器网络出错正在重连 + TBMPBPlayerEventVideoRenderingStalled = 17 //!< 播放器视频渲染卡顿 +}; + +/*! + * 播放器异常类型。 + * 播放器播放视频的过程中通过 playerEventFired 回调函数上报 TBMPBPlayerEventException 事件时,回调函数的参数 info 中,info[@"exceptionCode"] 会带上异常码,这个枚举定义了其中常用的异常码。 + */ +typedef NS_ENUM(int64_t, TBMPBPlayerException) { + TBMPBPlayerExceptionShouldSwitchToLowQualityStream = -20000 //!< 播放器频繁卡顿建议切换低档位流。 +}; + +/*! + * 播放器错误类型。 + * 播放器播放视频的过程中通过 playerEventFired 回调函数上报 TBMPBPlayerEventError 事件时,回调函数的参数 info 中,info[@"errorCode"] 会带上错误码,这个枚举定义了其中常用的错误码。 + */ +typedef NS_ENUM(int64_t, TBMPBPlayerError) { + TBMPBPlayerErrorTimeout = -60, //!< 播放器连接超时。 + TBMPBPlayerErrorInputOutputError = -5, //!< 媒体资源出错。 + TBMPBPlayerErrorInputOutputErrorSub1 = -50009, //!< 媒体资源出错。 + TBMPBPlayerErrorVideoToolboxFailed = -10000, //!< 播放器硬解码器异常无法使用。 + TBMPBPlayerHTTPBadRequest = -400, //!< HTTP Bad Request。 + TBMPBPlayerHTTPServerError = -500, //!< HTTP Server Error。 + TBMPBPlayerHTTPOther4XX = -499, //!< HTTP Other 4XX。 + TBMPBPlayerDecoderNotFound = -1128613112, //!< 未找到支持的解码器。 + TBMPBPlayerDemuxerNotFound = -1296385272, //!< 未找到支持的 Demuxer。 + TBMPBPlayerProtocolNotFound = -1330794744, //!< 未找到支持的协议。 + TBMPBPlayerURLErrorTimedOut = kCFURLErrorTimedOut, + TBMPBPlayerURLErrorNetworkConnectionLost = kCFURLErrorNetworkConnectionLost, + TBMPBPlayerURLErrorResourceUnavailable = kCFURLErrorResourceUnavailable, + TBMPBPlayerErrorArtpLoadFailed = -10001, + TBMPBPlayerErrorStreamNotFound = -10604, + TBMPBPlayerErrorStreamHasStopped = -10605, + TBMPBPlayerErrorActiveDegrade = -10611, + TBMPBPlayerErrorUDPNoUsable = -10612, + TBMPBPlayerErrorArtpUnused = -20000, + TBMPBPlayerErrorPrepareFailed = -1347571960, +}; + +/*! + * 播放器数据类型。 + * 播放播放视频的过程中会通过 playerDataPopped 回调函数上报相关数据。 + */ +typedef NS_ENUM(int32_t, TBMPBPlayerData) { + /*! + * 播放器上报的流量数据。只支持 TBMPBPlayerTypeFFPlayer。 + * + * 数据格式(NSDictionary *): + * key : value + * @"IJKMPMoviePlayerNetworkTrafficInfoKey" : (int64_t) + */ + TBMPBPlayerDataNetworkTraffic = 0, + + /*! + * 播放器上报的用户自定义 SEI 信息。只支持 TBMPBPlayerTypeFFPlayer。 + * + * 数据格式(NSDictionary *): + * key : value + * @"IJKMPMoviePlayerUserDefinedSEIIDInfoKey" : (int64_t) + * @"IJKMPMoviePlayerUserDefinedSEIPTSInfoKey" : (int64_t) + * @"IJKMPMoviePlayerUserDefinedSEIMessageInfoKey" : (NSString *) + */ + TBMPBPlayerDataUserSEI = 1, + + /*! + * 播放器上报当前播放时间。只支持 TBMPBPlayerTypeAVPlayer 且仅在 playScenairo = TBMPBPlayScenarioPlayback 时有效。 + * + * 数据格式(NSDictionary *): + * key : value + * @"duration" : (double) + * @"currentTime" : (double) + */ + TBMPBPlayerDataPlaybackTime = 2 +}; + +/*! + * 播放器内容显示模式。 + * 设置不同的内容显示模式,播放器会呈现不同的视频裁剪或拉伸样式。推荐使用 TBMPBPlayerContentModeScaleAspectFit 或 TBMPBPlayerContentModeScaleAspectFill。 + */ +typedef NS_ENUM(NSInteger, TBMPBPlayerContentMode) { + TBMPBPlayerContentModeNone = 0, //!< 等同 TBMPBPlayerContentModeScaleAspectFit。 + TBMPBPlayerContentModeScaleAspectFit, //!< 原比例适配。不会造成视频图像变形,不会裁掉视频图像内容,会留黑边。 + TBMPBPlayerContentModeScaleAspectFill, //!< 裁剪填充。不会造成视频图像变形,会裁掉视频图像内容,不会留黑边。 + TBMPBPlayerContentModeScaleToFill //!< 拉伸填充。会造成视频图像变形,不会裁掉视频图像内容,不会留黑边。 +}; + +#endif /* TBMPBPlayerConst_h */ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBMediaPlayerBundle.framework/Headers/TBMPBPlayerContext.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBMediaPlayerBundle.framework/Headers/TBMPBPlayerContext.h new file mode 100644 index 0000000..4e3d2f9 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBMediaPlayerBundle.framework/Headers/TBMPBPlayerContext.h @@ -0,0 +1,19 @@ +// +// TBMPBPlayerContext.h +// TBMediaPlayerBundle +// +// Created by qiufu on 09/09/2017. +// Copyright © 2017 CX. All rights reserved. +// + +#import +#import +#import + +@interface TBMPBPlayerContext : NSObject + +@property (assign, nonatomic) NSTimeInterval lastPlaybackTime; +@property (assign, nonatomic) TBMPBPlayerStatus lastStatus; +@property (assign, nonatomic) BOOL shouldPlay; // 逻辑上是否应该播放。 + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBMediaPlayerBundle.framework/Headers/TBMPBPlayerControlView.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBMediaPlayerBundle.framework/Headers/TBMPBPlayerControlView.h new file mode 100644 index 0000000..546b37b --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBMediaPlayerBundle.framework/Headers/TBMPBPlayerControlView.h @@ -0,0 +1,60 @@ +// +// TBMPBPlayerControlView.h +// TBMediaPlayerBundle +// +// Created by qiufu on 8/30/16. +// Copyright © 2016 CX. All rights reserved. +// + +#import +#import + +@class TBMPBPlayerControlView; + +#pragma mark - TBMPBPlayerControlViewDelegate Interface +@protocol TBMPBPlayerControlViewDelegate +- (void)playButtonDidClickedInControlView:(TBMPBPlayerControlView *)playerControlView; +- (void)pauseButtonDidClickedInControlView:(TBMPBPlayerControlView *)playerControlView; +- (void)fullScreenButtonDidClickedInControlView:(TBMPBPlayerControlView *)playerControlView; +- (void)miniScreenButtonDidClickedInControlView:(TBMPBPlayerControlView *)playerControlView; +- (void)progressSliderBeginToDragInControlView:(TBMPBPlayerControlView *)playerControlView; +//- (void)progressSliderCancelDragInControlView:(TBMPBPlayerControlView *)playerControlView; +- (void)progressSliderDidDragToTime:(NSTimeInterval)time inControlView:(TBMPBPlayerControlView *)playerControlView; +- (void)controlViewDidTapped:(TBMPBPlayerControlView *)playerControlView; +- (void)controlViewDidTwiceTapped:(TBMPBPlayerControlView *)playerControlView; +- (void)playRateButtonDidClickedInControlView:(float)rate; +@end + + +#pragma mark - TBMPBPlayerControlViewDataSource Interface +@protocol TBMPBPlayerControlViewDataSource +- (NSTimeInterval)playerDurationForControlView:(TBMPBPlayerControlView *)playerControlView; +- (NSTimeInterval)playerCurrentPlaybackTimeForControlView:(TBMPBPlayerControlView *)playerControlView; +- (BOOL)isPlayerPlayingForControlView:(TBMPBPlayerControlView *)playerControlView; +@end + + +#pragma mark - TBMPBPlayerControlView Interface +@interface TBMPBPlayerControlView : UIView + +@property (weak, nonatomic) id delegate; +@property (weak, nonatomic) id dataSource; + +@property (assign, nonatomic) BOOL gestureRecognizerEnabled; //!< 是否开启播放控制界面的手势识别功能。 +@property (assign, nonatomic) BOOL tapGestureRecognizerEnabled; //!< 是否开启单击手势识别。 +@property (assign, nonatomic) BOOL twiceTapGestureRecognizerEnabled; //!< 是否开启双击手势识别。 +@property (assign, nonatomic) BOOL panGestureRecognizerEnabled; //!< 是否开启上下左右滑动手势识别。 + +@property (assign, nonatomic) BOOL showControlBar; //!< 是否显示播放器控制条。 +@property (strong, nonatomic) UIColor *controlBarBackgroundColor; //!< 播放器控制条背景颜色。 +@property (assign, nonatomic) BOOL showFullScreenButton; //!< 是否显示全屏按钮。 +@property (strong, nonatomic) UIButton *fullScreenButton; +@property (assign, nonatomic) BOOL showPlayrateButton; + +@property (strong, nonatomic) UISlider *progressSlider; //!< 方便其他业务定制颜色等效果 + +- (instancetype)initWithFrame:(CGRect)frame options:(NSDictionary*)options; +- (void)refreshPlayButtonStatus:(TBMPBPlayerStatus)status; //!< 刷新播放按钮的状态。 +- (void)refreshPlayerProgressWithTimeInfo:(NSDictionary *)info; //!< 刷新播放进度。 + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBMediaPlayerBundle.framework/Headers/TBMPBPlayerManager.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBMediaPlayerBundle.framework/Headers/TBMPBPlayerManager.h new file mode 100644 index 0000000..22e5345 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBMediaPlayerBundle.framework/Headers/TBMPBPlayerManager.h @@ -0,0 +1,27 @@ +// +// TBMPBPlayerManager.h +// TBMediaPlayerBundle +// +// Created by qiufu on 11/09/2017. +// Copyright © 2017 CX. All rights reserved. +// + +#import +#import +#import +#import + +@interface TBMPBPlayerManager : NSObject + +#pragma mark - Manager ++ (instancetype)sharedManager; +@property (strong, readonly, nonatomic) NSMutableDictionary *> *playerDictionary; // 使用对象的内存地址作为 key。 +- (UIView *)playerForWrapper:(TBMPBPlayerView *)wrapper; +- (void)removePlayerOfWrapper:(TBMPBPlayerView *)wrapper; +- (NSUInteger)getCurrentPlayerCoreCount; + + +#pragma mark - Util ++ (UIView *)getPlayerInstanceWithMediaURL:(NSString *)url options:(TBMPBPlayerOptions *)options; +@end + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBMediaPlayerBundle.framework/Headers/TBMPBPlayerOptions.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBMediaPlayerBundle.framework/Headers/TBMPBPlayerOptions.h new file mode 100644 index 0000000..23c4436 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBMediaPlayerBundle.framework/Headers/TBMPBPlayerOptions.h @@ -0,0 +1,83 @@ +// +// TBMPBPlayerOptions.h +// TBMediaPlayerBundle +// +// Created by qiufu on 10/13/16. +// Copyright © 2016 CX. All rights reserved. +// + +#import +#import + +@interface TBMPBPlayerOptions : NSObject + +/*! + * @abstract 获得默认播放器选项实例。各选项均为默认值。 + * @return 返回 TBMPBPlayerOptions 实例。 + */ ++ (instancetype)defaultPlayerOptions; + +@property (assign, nonatomic) TBMPBPlayerType playerType; //!< 播放器类型。默认为 TBMPBPlayerTypeTBPlayer。 +@property (assign, nonatomic) TBMPBPlayScenario playScenario; //!< 播放场景类型。默认为 TBMPBPlayScenarioLive。 +@property (assign, nonatomic) BOOL autoplay; //!< 是否自动播放。默认为 YES。 +@property (assign, nonatomic) BOOL loop; //!< 是否循环播放。仅在 playScenairo = TBMPBPlayScenarioPlayback 时有效。默认为 NO。 +@property (assign, nonatomic) BOOL cache; //!< 目前不支持缓存。 + +/*! + * 应用退到后台时是否保持播放。在 playerType = TBMPBPlayerTypeFFPlayer or TBMPBPlayerTypeTBPlayer时有效。默认为 YES。 + * 当 playerType = TBMPBPlayerTypeAVPlayer 时退到后台一定会暂停。 + * 对于直播(playScenairo = TBMPBPlayScenarioLive/TBMPBPlayScenarioLinkLive),退到后台暂停再切回前台时会刷新播放器以防止累积延时; + * 对于点播(playScenairo = TBMPBPlayScenarioPlayback),退到后台暂停再切回前台时即直接接着播放。 + */ +@property (assign, nonatomic) BOOL pauseInBackground; + +@property (assign, nonatomic) int32_t playerRenderType; //!< 0: defalut,glViewRender; 1: VR render。 +@property (assign, nonatomic) int32_t playerRenderOrientation; //!< 默认是0,表示UIInterfaceOrientationPortrait,1表示UIInterfaceOrientationLandscapeRight + +@property (assign, nonatomic) BOOL playerShouldUpthrowImage; //!< 在播放器上抛解码后的视频数据交给业务层渲染视频,默认 NO。 要设置为YES的话,推荐和下面一起设置。 +@property (assign, nonatomic) BOOL playerShouldNotRenderAfterUpthrowImage; //!< 在播放器上抛解码后的视频数据交给业务层渲染视频后,自己不渲染View ,默认NO。 + +/*! + * 其他播放器选项。默认为 nil。 + * 包括: + * + * m3u8Src:M3U8 播放地址(NSString *)。当 TBMediaPlayer 动态库加载失败时,将自动切换到 AVPlayer,这时 AVPlayer 会使用 m3u8Src 播放源进行播放。必填。 + * businessId:业务 ID(NSString *)。业务接入方接入 TBMediaPlayerBundle 时需要传入 businessId 用于埋点数据区分,如果不传则不会上报埋点数据,此外,业务方还需要到魔兔平台注册该埋点。比如淘宝直播需要传入 "TBLive"。必填。 + * subBusinessType:业务细分类型(NSString *)。业务接入方接入 TBMediaPlayerBundle 时可以根据自己的需要传入 subBusinessType 区分细分业务。选填。 + * videoChannel:业务承接渠道类型(NSString *)。比如手淘的视频全屏页、视频 timeline 等。选填。 + * userId:用户 ID(NSString *)。业务接入方接入 TBMediaPlayerBundle 时需要传入 userId 用于埋点时的用户区分,用户未登录时传空字符串即可。淘宝直播业务必填。 + * feedId:直播间 Feed ID(NSString*)。业务接入方接入 TBMediaPlayerBundle 时需要传入 feedId 用于埋点。淘宝直播业务必填。点播业务传 video ID。Weex video 组件传组件拿到的 JS URL。 + * isSelected: 内容是否为精选内容(BOOL)。可选。 + * anchorAccountId:直播间主播的用户 ID(NSString *)。业务接入方接入 TBMediaPlayerBundle 时需要传入 anchorAccountId 用于埋点。淘宝直播业务必填。 + * videoDefinition:视频清晰度(NSString *)。业务接入方接入 TBMediaPlayerBundle 时需要传入 videoDefinition 用于埋点。淘宝直播业务必填。 + * videoDuration:视频总时长(double)。点播业务接入方传入 videoDuration 用于视频缓存模块的策略选择。可选。 + * videoDurationLimitForCache:视频总时长限制(double)。点播业务接入方传入 videoDurationLimitForCache 用于视频缓存模块的策略选择,当视频总时长超过 videoDurationLimitForCache 时则不会走缓存逻辑。可选。 + * coverImage: 用户传入的封面图(UIImage *)。可选。 + * coverImageContentMode: 用户传入封面图的显示模式(UIViewContentMode)。搭配 coverImage 使用,默认为 UIViewContentModeScaleAspectFit。可选。 + * intervalOfPeriodicTimer: 播放器定时上报当前播放时间的间隔(CGFloat)。单位秒。不建议设置为小于 0.5 的值。默认 1。可选。 + * defaultFullScreenFeatureEnabled: 是否开启默认的全屏行为(BOOL)。默认 NO。可选。 + * logToken: 日志 Token(NSString *)。日志标识。用于业务层和播放器保持日志可寻。 + * usePlayerManager: 针对点播,是否使用播放器多实例管理器(BOOL)。将管理播放器多实例,并按需回收,实例上限默认4个,默认关闭; + * useLivePlayerManager: 针对直播,是否使用播放器多实例管理器(BOOL)。将管理播放器多实例,并按需回收,实例上限默认2个,默认打开; + * useOptimizedHEVC: 是否使用优化后的 H265 算法(BOOL)。 + * isUseProxy: 是否使用代理(BOOL)。 + * mediaSourceType: 直播推流端的类型(NSString *)。 + * spm: 业务传下来的 spm 信息(NSString *)。 + * disableForcedTBPlayer: BOOL, 是否允许内部强制把TBMPBPlayerTypeFFPlayer在内部改成成TBMPBPlayerTypeTBPlayer,默认会强制改掉,不需要时请设置YES + * + * + * 以下选项仅在 playerType = TBMPBPlayerTypeFFPlayer or TBMPBPlayerTypeTBPlayer 时有效: + * videoToolbox:是否使用硬解(int64_t)。可选值:0;1。0:使用软解码;1:使用硬解码。默认为 1。可选。 + * timeout:播放器超时时间(int64_t)。单位微秒,仅支持 HTTP/HTTPS。默认为 10 * 1000 * 1000,即 10s。可选。 + * maxRefreshCountForTimeout:播放器超时情况重新刷新播放器的最大次数(int)。在初始化播放器时会使用该值;使用新的 URL 调用 refreshWithMediaURL... 接口刷新播放器时会重新使用该值。一旦成功连接播放源,该值即失效。默认为 1。可选。 + * maxLoadingTime:最大加载时间(int)。在初始化播放器时设置该值;使用新的 URL 调用 refreshWithMediaURL... 接口刷新播放器时会重新使用该值。只对直播场景(playScenairo = TBMPBPlayScenarioLive/TBMPBPlayScenarioLinkLive)并且自动播放时(autoplay = YES)有效。超过该时间没有渲染出视频首帧时将会刷新播放器。单位为秒。默认为 6。可选。 + * maxFps:最大帧率(int64_t)。默认为 30。可选。 + * frameDrop:是否开启丢帧(int64_t)。可选值:0;1。0:关闭丢帧;1:开启丢帧。默认 1。可选。 + * videoPictqSize:视频队列长度(int64_t)。默认为 3。可选。 + * videoToolboxMaxFrameWidth:最大支持屏幕宽度(int64_t)。默认为 1080。可选。 + * reconnect:是否开启重连(int64_t)。可选值:0;1。0:关闭重连策略;1:开启重连策略。默认 1。可选。 + * cdnIP: 根据 HTTP DNS 选择的较优 CDN IP(NSString *)。默认为 nil。可选。 + */ +@property (copy, nonatomic) NSDictionary *extraConfig; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBMediaPlayerBundle.framework/Headers/TBMPBPlayerProtocol.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBMediaPlayerBundle.framework/Headers/TBMPBPlayerProtocol.h new file mode 100644 index 0000000..bc41701 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBMediaPlayerBundle.framework/Headers/TBMPBPlayerProtocol.h @@ -0,0 +1,70 @@ +// +// TBMPBPlayerProtocol.h +// TBMediaPlayerBundle +// +// 在这里定义播放器的标准接口,所有对播放器的封装需要遵循该接口。 +// +// Created by qiufu on 9/7/16. +// Copyright © 2016 CX. All rights reserved. +// + +#import +#import +#import +#import + +@protocol TBMPBPlayerProtocol + +@required +#pragma mark - Lifecycle +- (instancetype)initWithMediaURL:(NSString *)url playerOptions:(TBMPBPlayerOptions *)options; + +#pragma mark - Player Control +- (void)prepareToPlay; // 准备播放。如果 autoplay 为 YES,则调用该方法会直接播放;如果 autoplay 为 NO,则调用该方法后不会直接播放,需要接着调用 play 方法才会开始播放。 +- (void)play; +- (void)pause; +- (void)stop; +- (void)shutdown; +- (void)prepareToRecycle; + +@property (assign, nonatomic) BOOL muted; +@property (assign, nonatomic) TBMPBPlayerContentMode playerContentMode; +@property (assign, nonatomic) double preferredForwardBufferDuration; +@property (assign, nonatomic) float playbackRate; + +- (void)clearBackgroundColor; + +- (void)setConfig:(NSDictionary *)config; // 主要用于业务层向播放器在线下发动态配置,比如:Orange 配置。 +- (void)setInfo:(NSDictionary *)info; // 主要用于业务层向播放器下发一些数据。 + +#pragma mark - Player Status +@property (assign, nonatomic) NSTimeInterval currentPlaybackTime; +@property (assign, readonly, nonatomic) NSTimeInterval duration; +@property (assign, readonly, nonatomic) BOOL isLoadingFromCache; +@property (assign, readonly, nonatomic) NSTimeInterval cacheDuration; +@property (assign, readonly, nonatomic) CGFloat cacheProgress; +@property (assign, readonly, nonatomic) CGRect videoRect; +@property (assign, readonly, nonatomic) CGSize naturalSize; +@property (assign, nonatomic) NSTimeInterval lastActiveTime; +- (BOOL)isPlaying; +- (BOOL)shouldPlayAfterLoadingOrSeeking; +- (NSTimeInterval)playableDuration; +- (UIImage *)snapshotImageAtCurrentTime; +- (NSDictionary *)playerStatusData; + +#pragma mark - Player Event +@property (copy, nonatomic) void (^playerEventFired)(TBMPBPlayerEvent event, NSDictionary *info); +@property (copy, nonatomic) void (^playerDataPopped)(TBMPBPlayerData dataType, NSDictionary *data); + +@optional +#pragma mark - VR Render +- (void)toggleUpthrowingCVPixelBufferRef:(BOOL)value; +- (void)toggleNotRenderAfterUpthrowingCVPixelBufferRef:(BOOL)value; +- (BOOL)hasNewVideoPixelBufferToDraw; +- (CVPixelBufferRef)copyCurrentVideoPixelBuffer; +@property (assign, nonatomic) UIInterfaceOrientation renderViewOrientation; + +#pragma mark - ResolutionSwitch +-(void) switchVideoResolutionSmoothlyWithNewUrl:(NSString*)url; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBMediaPlayerBundle.framework/Headers/TBMPBPlayerView.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBMediaPlayerBundle.framework/Headers/TBMPBPlayerView.h new file mode 100644 index 0000000..c4115ea --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBMediaPlayerBundle.framework/Headers/TBMPBPlayerView.h @@ -0,0 +1,297 @@ +// +// TBMPBPlayerView.h +// TBMediaPlayerBundle +// +// Created by qiufu on 10/11/16. +// Copyright © 2016 CX. All rights reserved. +// + +#import +#import +#import +#import + +@class TBMPBPlayerView; + +//extern NSString * const TBMBPPlayerViewDidEnterFullScreenModeNotification; +//extern NSString * const TBMBPPlayerViewDidExitFullScreenModeNotification; +extern NSString * const TBMBPPlayerViewPlayWillBeCalledNotification; + + +#pragma mark - TBMPBPlayerViewDelegate Interface +@protocol TBMPBPlayerViewDelegate +@optional +- (void)playButtonClickedInPlayerView:(TBMPBPlayerView *)playerView; +- (void)pauseButtonClickedInPlayerView:(TBMPBPlayerView *)playerView; +- (void)playerViewTapped:(TBMPBPlayerView *)playerView; +- (void)playerViewTwiceTapped:(TBMPBPlayerView *)playerView; +- (void)playerViewEnterFullScreenButtonClicked:(TBMPBPlayerView *)playerView; +- (void)playerViewExitFullScreenButtonClicked:(TBMPBPlayerView *)playerView; +- (void)playRateButtonDidClicked:(TBMPBPlayerView *)playerView withRate:(float)rate; + +// 以下回调方法仅在开启了默认的全屏功能后会生效。 +- (void)playerViewWillEnterFullScreenMode:(TBMPBPlayerView *)playerView; +- (void)playerViewDidEnterFullScreenMode:(TBMPBPlayerView *)playerView; +- (void)playerViewWillExitFullScreenMode:(TBMPBPlayerView *)playerView; +- (void)playerViewDidExitFullScreenMode:(TBMPBPlayerView *)playerView; +@end + + + +#pragma mark - TBMPBPlayerView Interface +@interface TBMPBPlayerView : UIView + +#pragma mark - Lifecycle +/*! + * @abstract 创建播放器 View。 + * @discussion 目前不支持 2 个以上的播放器实例同时播放视频。 + * @param url 播放源地址。必填。 + * @param options 播放器选项。必填。注意:传入 options 时一定要通过 options.extraConfig 设置 m3u8Src 和 businessId 选项。 + * @return 返回 TBMPBPlayerView 实例。 + */ +- (instancetype)initWithMediaURL:(NSString *)url options:(TBMPBPlayerOptions *)options; + +/*! + * @abstract 创建播放器 View。 + * @discussion 目前不支持 2 个以上的播放器实例同时播放视频。 + * @return 返回 TBMPBPlayerView 实例,init 方法不会加载任何播放资源和播放设置。后续可以调用 `- (void)loadWithMediaURL:(NSString *)url options:(TBMPBPlayerOptions *)options` 接口来设置播放资源和播放设置,在加载播放资源和播放设置之前不要设置 TBMPBPlayerView 的其他非 UIView 属性。 + */ +- (instancetype)init; + +/*! + * @abstract 加载播放资源和播放设置。 + * @param url 播放源地址。必填。 + * @param options 播放器选项。必填。注意:传入 options 时一定要通过 options.extraConfig 设置 m3u8Src 和 businessId 选项。 + */ +- (void)loadWithMediaURL:(NSString *)url options:(TBMPBPlayerOptions *)options; + +/*! + * @abstract 加载播放资源和播放设置。 + * @param info 播放源信息。必填。 + * @param options 播放器选项。必填。注意:传入 options 时一定要通过 options.extraConfig 设置 m3u8Src 和 businessId 选项。 + */ +- (void)loadWithMediaInfo:(NSDictionary *)info options:(TBMPBPlayerOptions *)options; + +/*! + * @abstract 重新加载新的播放资源和播放设置。 + * @param info 播放源信息。必填。 + * @param options 播放器选项。必填。注意:传入 options 时一定要通过 options.extraConfig 设置 m3u8Src 和 businessId 选项。 + */ +- (void)refreshWithMediaInfo:(NSDictionary *)info options:(TBMPBPlayerOptions *)options; + +/*! + * @abstract 刷新播放器。 + * @param index 播放源所在的index。 + * @param options 播放器选项。 + * @discussion 此方法用来动态刷新播放器,使用的前提当前播放器是通过loadWithMediaInfo接口启动的 + */ +- (void)refreshWithMediaInfoArrayIndex:(int8_t)index options:(TBMPBPlayerOptions *)options; + +/*! + * @abstract 播放器 View 的代理。 + * @discussion 提供播放器控制界面相关的一些回调。 + */ +@property (weak, nonatomic) id delegate; + +#pragma mark - Player Control +/*! + * @abstract 开始播放。 + */ +- (void)play; + +/*! + * @abstract 暂停播放。 + * @discussion 暂停播放后可以调用 play 方法继续播放。 + */ +- (void)pause; + +/*! + * @abstract 停止播放。 + * @discussion 停止播放后不能再播放。一般在销毁播放器之前调用该方法。 + */ +- (void)stop; + +/*! + * @abstract 刷新播放器。 + * @param url 播放源地址。 + * @param options 播放器选项。 + * @discussion 此方法用新传入的 url 和新传入的 options 刷新播放器。 + */ +- (void)refreshWithMediaURL:(NSString *)url options:(TBMPBPlayerOptions *)options; + +@property (assign, nonatomic) BOOL muted; //!< 播放器是否静音。默认为 NO。 +@property (assign, nonatomic) TBMPBPlayerContentMode playerContentMode; //!< 播放器内容显示模式。默认为 TBMPBPlayerContentModeScaleAspectFill。 +@property (assign, nonatomic) double preferredForwardBufferDuration; //!< 播放器向前缓冲时长参考。单位为 s。默认为 0。仅对 playerType = TBMPBPlayerTypeAVPlayer 且 HLS 且 iOS 10 以上版本生效。 +@property (assign, nonatomic) float playbackRate; // !< 播放速度率。限定范围为 [1, 1.5]。 + +/*! + * @abstract 业务设置播放器的背景图,设置了背景图后,播放区域的黑色部分用该图片覆盖。 + * @param image 背景图。 + */ +- (void)setVideoBackgroundImage:(UIImage *)image; + +/*! + * @abstract 播放器默认控制界面。 + * @discussion 控制界面的视图层级和布局管理由使用方管理。即调用方可以把 playerControlView 添加到任意的视图上,并且可以控制其 frame、layout constraints 等布局属性。建议最低高度 45(此时只包含控制条)。 + */ +@property (strong, nonatomic) TBMPBPlayerControlView *playerControlView; + +/*! + * @abstract 是否开启进入和退出全屏时的过渡动画。 + * @discussion 在使用播放器默认控制界面的全屏按钮进入或退出全屏时生效。默认为 YES。 + */ +@property (assign, nonatomic) BOOL fullScreenAnimationEnabled; + +/*! + * @abstract 主要用于业务层向播放器在线下发动态配置,比如:Orange 配置。 + * @param config 配置信息。 + * @discussion 请向本 SDK 维护方咨询该接口用法。 + */ +- (void)setConfig:(NSDictionary *)config; + +/*! + * @abstract 主要用于业务层向播放器下发一些数据。 + * @param info 数据。 + * @discussion 请向本 SDK 维护方咨询该接口用法。 + */ +- (void)setInfo:(NSDictionary *)info; + +#pragma mark - 上抛CVPixelBufferRef + +/*! + * @abstract 在播放过程中动态开启或者关闭上抛CVPixelBuffer的功能. 只在playerType = TBMPBPlayerTypeTBPlayer下生效 + * @discussion 1. 如果是起播就要上抛CVPixelBuffer,请一定在TBMPBPlayerOptions中设置playerShouldUpthrowImage为YES; + 2. 开播以后,才可以通过当前接口动态切换; + */ +- (void)toggleUpthrowingCVPixelBufferRef:(BOOL)value; + +/*! + * @abstract 在开启上抛CVPixelBuffer的功能的时候,把native渲染关闭, 只在playerType = TBMPBPlayerTypeTBPlayer下生效 + * @discussion 1. 如果是起播就要生效,请一定在TBMPBPlayerOptions中设置playerShouldNotRenderAfterUpthrowImage为YES; + 2. 开播以后,才可以通过当前接口动态切换; + */ +- (void)toggleNotRenderOnViewCVPixelBufferRef:(BOOL)value; + +/*! + * @abstract 判断当前最新的解码后的视频 Pixel buffer。 + * @discussion 仅在 playerType不等于TBMPBPlayerTypeAVPlayer时有效。 + */ +- (BOOL)hasNewVideoPixelBufferToDraw; + +/*! + * @abstract 获取当前播放器解码后的视频 Pixel buffer。 + * @discussion 仅在 playerType不等于TBMPBPlayerTypeAVPlayer 时有效。返回的 CVPixelBufferRef 使用完后需要调用 CVPixelBufferRelease 释放。 + */ +- (CVPixelBufferRef)copyCurrentVideoPixelBuffer; + +/*! + * @abstract 底层 VR 渲染 view 的 orientation。 + * @discussion 仅在 playerType = TBMPBPlayerTypeFFPlayer 同时 playerRenderType = 1 时有效。目前在手淘环境下,播放器初始化时不用设置,从小屏到全屏时请设置 UIInterfaceOrientationLandscapeRight,从全屏回到小屏时必须设置为 UIInterfaceOrientationPortrait。 + */ +@property (assign, nonatomic) UIInterfaceOrientation renderViewOrientation; + +#pragma mark - Player Status +@property (assign, readonly, nonatomic) TBMPBPlayerStatus playerStatus; //!< 播放器状态。 +@property (copy, nonatomic) NSString *url; //!< 当前播放源地址。 +@property (strong, nonatomic) TBMPBPlayerOptions *options; //!< 当前播放器选项。 +- (BOOL)isPlaying; //!< 是否正在播放。 + +/*! + * @abstract 当前播放时间进度。 + * @discussion 仅在 playScenairo = TBMPBPlayScenarioPlayback 时有效。单位为秒。 + */ +@property (assign, nonatomic) NSTimeInterval currentPlaybackTime; + +/*! + * @abstract 视频总时长。 + * @discussion 仅在 playScenairo = TBMPBPlayScenarioPlayback 时有效。单位为秒。 + */ +@property (assign, readonly, nonatomic) NSTimeInterval duration; + +/*! + * @abstract 视频是否从缓存中加载。 + */ +@property (assign, readonly, nonatomic) BOOL isLoadingFromCache; + +/*! + * @abstract 缓存时长。 + */ +@property (assign, readonly, nonatomic) NSTimeInterval cacheDuration; + +/*! + * @abstract 缓存占总时长的百分比。 + */ +@property (assign, readonly, nonatomic) CGFloat cacheProgress; + +/*! + * @abstract 视频画面所在区域。 + */ +@property (assign, readonly, nonatomic) CGRect videoRect; + +/*! + * @abstract 视频原始尺寸。 + */ +@property (assign, readonly, nonatomic) CGSize naturalSize; + +/*! + * @abstract 播放器可播放时长。 + * @return 返回可播放时长(NSTimeInterval)。 + */ +- (NSTimeInterval)playableDuration; + +/*! + * @abstract 视频截图。 + * @discussion 此方法在 playerType = TBMPBPlayerTypeAVPlayer 并且播放源为 M3U8 时不适用。 + * @return 返回视频截图(UIImage *)。 + */ +- (UIImage *)snapshotImageAtCurrentTime; + +/*! + * @abstract 播放器总体状态数据。 + * @discussion 主要用于测试时获取播放器状态数据进行监测。 + * @return 返回状态数据(NSDictionary *)。 + */ +- (NSDictionary *)playerStatusData; + +/*! + * @abstract 播放器内核对象是否处于被回收状态。 + */ +- (BOOL)didPlayerCoreRecycled; + +/*! + * @abstract 当前视频切换到新的分辨率地址上进行帧同步播放 + * @param url 同一场直播的另一个分辨率的流地址 + * @discussion 1. 此接口只在这些条件(是直播、playerType是FFPlayer、isPlaying为YES)同时满足时生效; + * 2. 调用成功后,会收到TBMPBPlayerEventSwitchResolutionResult事件,参数info会携带具体信息; + */ +-(void) switchVideoResolutionSmoothlyWithNewUrl:(NSString*)url; + +#pragma mark - Player Event +/*! + * 上报播放器事件的回调方法。 + * + * 回调函数的返回参数: + * event:事件类型。 + * info:事件相关的信息。比如:当回调函数上报 TBMPBPlayerEventError 事件时,参数 info 的 info[@"errorCode"] 会带上错误码。 + */ +@property (copy, nonatomic) void (^playerEventFired)(TBMPBPlayerEvent event, NSDictionary *info); + +/*! + * 上报播放器数据的回调方法。 + * + * 回调函数的返回参数: + * dataType:数据类型。 + * data:具体数据。关于不同类型数据的具体格式请参考 TBMPBPlayerData 相关说明。 + */ +@property (copy, nonatomic) void (^playerDataPopped)(TBMPBPlayerData dataType, NSDictionary *data); + +/*! + * 上报播放器状态的回调方法。 + * + * 回调函数的返回参数: + * status:状态类型。 + */ +@property (copy, nonatomic) void (^playerStatusChanged)(TBMPBPlayerStatus status); + +@end + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBMediaPlayerBundle.framework/Headers/TBMPBTBPlayerView.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBMediaPlayerBundle.framework/Headers/TBMPBTBPlayerView.h new file mode 100644 index 0000000..c76e43b --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBMediaPlayerBundle.framework/Headers/TBMPBTBPlayerView.h @@ -0,0 +1,14 @@ +// +// TBMPBTBPlayerView.h +// TBMediaPlayerBundle +// +// Created by qiufu on 17/01/2018. +// Copyright © 2018 CX. All rights reserved. +// + +#import +#import + +@interface TBMPBTBPlayerView : UIView + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBMediaPlayerBundle.framework/Headers/TBMPBUtil.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBMediaPlayerBundle.framework/Headers/TBMPBUtil.h new file mode 100644 index 0000000..b345c98 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBMediaPlayerBundle.framework/Headers/TBMPBUtil.h @@ -0,0 +1,194 @@ +// +// TBMPBUtil.h +// TBMediaPlayerBundle +// +// Created by qiufu on 3/31/16. +// Copyright © 2016 CX. All rights reserved. +// + +#import +#import + +#ifdef DEBUG +#define debugLog(...) NSLog(__VA_ARGS__) +#define debugMethod() NSLog(@"%s", __func__); +#else +#define debugLog(...) +#define debugMethod() +#endif + +#define TBMPB_SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] != NSOrderedAscending) +#define SYSTEM_VERSION_EQUAL_TO(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] == NSOrderedSame) +#define SYSTEM_VERSION_GREATER_THAN(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] == NSOrderedDescending) +#define SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] != NSOrderedAscending) +#define SYSTEM_VERSION_LESS_THAN(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] == NSOrderedAscending) +#define SYSTEM_VERSION_LESS_THAN_OR_EQUAL_TO(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] != NSOrderedDescending) + +@interface NSTimer (TBMPBUtil) ++ (NSTimer *)TBMPBUtil_scheduledTimerWithTimeInterval:(NSTimeInterval)interval block:(void(^)())block repeats:(BOOL)repeats; +@end + +typedef NS_ENUM(NSInteger, TBMPBDeviceDisplay) { + TBMPBDeviceDisplayUnknown = 0, + TBMPBDeviceDisplay3p5Inch, + TBMPBDeviceDisplay4Inch, + TBMPBDeviceDisplay4p7Inch, + TBMPBDeviceDisplay5p5Inch, + TBMPBDeviceDisplay7p9Inch, + TBMPBDeviceDisplay9p7Inch, + TBMPBDeviceDisplay12p9Inch, +}; + +#define TBMPBLogInfoKeyModule @"module" +#define TBMPBLogInfoKeyLevel @"level" +#define TBMPBLogInfoKeyContent @"content" + +typedef NS_ENUM (NSInteger, TBMPBLogLevel) { + TBMPBLogLevelOff = 0, + TBMPBLogLevelError = 1, + TBMPBLogLevelWarning = 2, + TBMPBLogLevelInfo = 3, + TBMPBLogLevelDebug = 4 +}; + + +#define TBMPBPerformanceDataKeyModule @"module" +#define TBMPBPerformanceDataKeyPoint @"point" +#define TBMPBPerformanceDataKeyType @"type" +#define TBMPBPerformanceDataKeyDimension @"dimension" +#define TBMPBPerformanceDataKeyPerformance @"performance" + +typedef NS_ENUM(int32_t, TBMPBPerformanceDataType) { + TBMPBPerformanceDataTypeFirstVideoFrame = 0, + TBMPBPerformanceDataTypeFirstAudioFrame = 1, + TBMPBPerformanceDataTypeBufferLoad = 2, + TBMPBPerformanceDataTypePTSDTS = 3, + TBMPBPerformanceDataTypeNetworkShake = 4, + TBMPBPerformanceDataTypePlayerError = 5, + TBMPBPerformanceDataTypePlayExperience = 6, + TBMPBPerformanceDataTypeStalled = 7, + TBMPBPerformanceDataTypePlaying = 8, + TBMPBPerformanceDataTypeSwitchResolution = 9, + // SeqNO=9999, use as net shake stats + TBMPBPerformanceDataTypeBtnRtcStreamStatsDetail = 10, + // SeqNO=9998 + TBMPBPerformanceDataTypeBtnRtcStreamStatsInfo = 11, + // SeqNO=9997 + TBMPBPerformanceDataTypeBtnRtcStreamStatsDegrade = 12, + TBMPBPerformanceDataTypeLiveHeartBeat = 13, + TBMPBPerformanceDataTypeBWAdaptInfoBeat = 14, +}; + + +#define TBMPBAlarmDataKeyModule @"module" +#define TBMPBAlarmDataKeyPoint @"point" +#define TBMPBAlarmDataKeyType @"type" +#define TBMPBAlarmDataKeyArg @"arg" +#define TBMPBAlarmDataKeyErrorCode @"errorCode" +#define TBMPBAlarmDataKeyErrorMessage @"errorMessage" + +typedef NS_ENUM(int32_t, TBMPBAlarmDataType) { + TBMPBAlarmDataTypeLoadDynamicLibrary = 0, + TBMPBAlarmDataTypeIsVideoOutInTime = 1, + TBMPBAlarmDataTypeVideoCache = 2, + TBMPBAlarmDataTypeAudioCache = 3, + TBMPBAlarmDataTypeAVDiff = 4, + TBMPBAlarmDataTypePlayerStatus = 5, + TBMPBAlarmDataTypePlayerRefresh = 6, + TBMPBAlarmDataTypeURLNoScheme = 7, + TBMPBAlarmDataTypeQueryPolicyIP = 8, + TBMPBAlarmDataTypeSEI = 9, + TBMPBAlarmDataTypeCacheDuration = 10 +}; + + +#define TBMPBAlarmDataKeyStatus @"status" + +typedef NS_ENUM(int32_t, TBMPBAlarmStatus) { + TBMPBAlarmStatusFail = 0, + TBMPBAlarmStatusSuccess = 1 +}; + +typedef struct { + NSUInteger major; // Major device model. e.g. 13 for iMac13,2 + NSUInteger minor; // Minor device model. e.g. 2 for iMac13,2 +} TBMPBDeviceVersion; + +@interface TBMPBUtil : NSObject + +#pragma mark - Monitor +/*! + * @abstract 上报性能式埋点数据。 + * + * @param data 性能埋点数据。数据格式包括: + * - dimension:性能埋点维度信息(NSDictionary *)。维度信息的具体格式参加具体埋点。 + * - performance:性能埋点指标信息(NSDictionary *)。指标信息的具体格式参加具体埋点。 + * + * @param type 监控点类型。可选值见枚举:TBMPBPerformanceDataType。 + * + */ ++ (void)commitPerformanceData:(NSDictionary *)data forType:(TBMPBPerformanceDataType)type forBusiness:(NSString *)businessID; + +/*! + * @abstract 上报告警埋点。 + * + * @param data 告警埋点数据。数据格式可包括: + * - arg:说明信息(NSString *)。 + * - errorCode:错误码(NSString *)。当上报失败状态时附带的错误码。 + * - errorMessage:错误信息(NSString *)。当上报失败状态时附带的错误信息。 + * + * @param status 告警类型。可选值见枚举:TBMPBAlarmStatus。 + * @param type 监控点类型。可选值见枚举:TBMPBAlarmDataType。 + * @param businessID 业务 ID。 + */ ++ (void)commitAlarmData:(NSDictionary *)data forStatus:(TBMPBAlarmStatus)status forType:(TBMPBAlarmDataType)type forBusiness:(NSString *)businessID; + +#pragma mark - Log +/*! + * @abstract 上报日志。 + * @param info 日志信息。 + * @param level 日志级别。 + * @param token 日志标识。 + * @param businessID 业务 ID。 + */ ++ (void)logInfo:(NSString *)info withLogLevel:(TBMPBLogLevel)level logToken:(NSString *)token forBusiness:(NSString *)businessID; + +#pragma mark - Config +/*! + * @abstract 获取 Orange 配置。 + */ ++ (NSDictionary *)orangeConfig; + ++ (NSNumber *)currentNetworkStatus; ++ (NSString *)networkIMSI; ++ (NSString *)policyIPForHost:(NSString *)host; ++ (NSArray *)policyIPsForHost:(NSString *)host withProtocol:(NSString*)protocol; ++ (NSString *)userAgentInfo; ++ (NSString *)ABTestBucketInfoWithParameters:(NSDictionary*)parameters; ++ (BOOL) didMacroDefined:(NSString*)macro; + +#pragma mark - Utility ++ (BOOL)loadFramework; +//+ (BOOL)loadDNAPlayerFramework; ++ (NSTimeInterval)timeStamp; ++ (TBMPBDeviceDisplay)deviceScreenSizeInInches; ++ (TBMPBDeviceVersion)deviceVersion; ++ (BOOL)RenderDegradeByDevice; +@end + +@interface TBMPBScreenLockController : NSObject ++ (instancetype)sharedObject; +- (void)setSreenOn:(BOOL)on; +@end + +@interface TBMPBDispatchOnceUtility : NSObject ++ (instancetype)sharedObject; +- (void) preloadHTTPDNSService; +- (void) preloadHTTPDNSServiceForAll; +@property (atomic, assign) int liveStreamBWInfoOfLastTenSeconds; +@end + +@interface TBMPBPCDNManager : NSObject ++ (instancetype)sharedObject; +- (NSString*) getPCDNUrl:(NSString*) originalUrl; +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBMediaPlayerBundle.framework/Headers/TBMediaPlayerBundle.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBMediaPlayerBundle.framework/Headers/TBMediaPlayerBundle.h new file mode 100644 index 0000000..b08b392 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBMediaPlayerBundle.framework/Headers/TBMediaPlayerBundle.h @@ -0,0 +1,59 @@ +// +// TBMediaPlayerBundle.h +// TBMediaPlayerBundle +// +// Created by qiufu on 3/29/16. +// Copyright © 2016 CX. All rights reserved. +// + +#import + +//! Project version number for TBMediaPlayerBundle. +FOUNDATION_EXPORT double TBMediaPlayerBundleVersionNumber; + +//! Project version string for TBMediaPlayerBundle. +FOUNDATION_EXPORT const unsigned char TBMediaPlayerBundleVersionString[]; + +// In this header, you should import all the public headers of your framework using statements like #import + +#import +#import +#import +#import +#import +#import +#import + + +#import + +//! Project version number for TBMediaPlayerBundle. +FOUNDATION_EXPORT double TBMediaPlayerBundleVersionNumber; + +//! Project version string for TBMediaPlayerBundle. +FOUNDATION_EXPORT const unsigned char TBMediaPlayerBundleVersionString[]; + + +#import +#import +#import +#import +#import +// #import +#import +#import +#import +#import +#import +#import +#import +#import +//#import +#import +#import +#import +#import +#import +#import +//#import +#import diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBMediaPlayerBundle.framework/Info.plist b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBMediaPlayerBundle.framework/Info.plist new file mode 100644 index 0000000..e3b259b --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBMediaPlayerBundle.framework/Info.plist @@ -0,0 +1,53 @@ + + + + + BuildMachineOSBuild + 19G2021 + CFBundleDevelopmentRegion + en + CFBundleExecutable + TBMediaPlayerBundle + CFBundleIdentifier + com.taobao.TBMediaPlayerBundle + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + TBMediaPlayerBundle + CFBundlePackageType + FMWK + CFBundleShortVersionString + 2.0.7.73-bc-SNAPSHOT + CFBundleSignature + ???? + CFBundleSupportedPlatforms + + iPhoneOS + + CFBundleVersion + 1 + DTCompiler + com.apple.compilers.llvm.clang.1_0 + DTPlatformBuild + 16B91 + DTPlatformName + iphoneos + DTPlatformVersion + 12.1 + DTSDKBuild + 16B91 + DTSDKName + iphoneos12.1 + DTXcode + 1010 + DTXcodeBuild + 10B61 + MinimumOSVersion + 8.0 + UIDeviceFamily + + 1 + 2 + + + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBMediaPlayerBundle.framework/Modules/module.modulemap b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBMediaPlayerBundle.framework/Modules/module.modulemap new file mode 100644 index 0000000..b967eae --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBMediaPlayerBundle.framework/Modules/module.modulemap @@ -0,0 +1,6 @@ +framework module TBMediaPlayerBundle { + umbrella header "TBMediaPlayerBundle.h" + + export * + module * { export * } +} diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBMediaPlayerBundle.framework/Resources/TBMediaPlayerBundle.xcassets/TBMediaPlayerBundle.bundle/Contents.json b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBMediaPlayerBundle.framework/Resources/TBMediaPlayerBundle.xcassets/TBMediaPlayerBundle.bundle/Contents.json new file mode 100644 index 0000000..1bf9a1c --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBMediaPlayerBundle.framework/Resources/TBMediaPlayerBundle.xcassets/TBMediaPlayerBundle.bundle/Contents.json @@ -0,0 +1 @@ +{"info":{"version":1,"author":"xcode"},"properties":{"provides-namespace":true}} diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBMediaPlayerBundle.framework/Resources/TBMediaPlayerBundle.xcassets/TBMediaPlayerBundle.bundle/button_fullscreen.imageset/Contents.json b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBMediaPlayerBundle.framework/Resources/TBMediaPlayerBundle.xcassets/TBMediaPlayerBundle.bundle/button_fullscreen.imageset/Contents.json new file mode 100644 index 0000000..e008821 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBMediaPlayerBundle.framework/Resources/TBMediaPlayerBundle.xcassets/TBMediaPlayerBundle.bundle/button_fullscreen.imageset/Contents.json @@ -0,0 +1 @@ +{"images": [{"idiom": "universal", "scale": "1x"}, {"idiom": "universal", "scale": "2x", "filename": "button_fullscreen@2x.png"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBMediaPlayerBundle.framework/Resources/TBMediaPlayerBundle.xcassets/TBMediaPlayerBundle.bundle/button_fullscreen.imageset/button_fullscreen@2x.png b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBMediaPlayerBundle.framework/Resources/TBMediaPlayerBundle.xcassets/TBMediaPlayerBundle.bundle/button_fullscreen.imageset/button_fullscreen@2x.png new file mode 100644 index 0000000..0a1be9d Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBMediaPlayerBundle.framework/Resources/TBMediaPlayerBundle.xcassets/TBMediaPlayerBundle.bundle/button_fullscreen.imageset/button_fullscreen@2x.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBMediaPlayerBundle.framework/Resources/TBMediaPlayerBundle.xcassets/TBMediaPlayerBundle.bundle/button_miniscreen.imageset/Contents.json b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBMediaPlayerBundle.framework/Resources/TBMediaPlayerBundle.xcassets/TBMediaPlayerBundle.bundle/button_miniscreen.imageset/Contents.json new file mode 100644 index 0000000..a4f4990 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBMediaPlayerBundle.framework/Resources/TBMediaPlayerBundle.xcassets/TBMediaPlayerBundle.bundle/button_miniscreen.imageset/Contents.json @@ -0,0 +1 @@ +{"images": [{"idiom": "universal", "scale": "1x"}, {"idiom": "universal", "scale": "2x", "filename": "button_miniscreen@2x.png"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} \ No newline at end of file diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBMediaPlayerBundle.framework/Resources/TBMediaPlayerBundle.xcassets/TBMediaPlayerBundle.bundle/button_miniscreen.imageset/button_miniscreen@2x.png b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBMediaPlayerBundle.framework/Resources/TBMediaPlayerBundle.xcassets/TBMediaPlayerBundle.bundle/button_miniscreen.imageset/button_miniscreen@2x.png new file mode 100644 index 0000000..8c39e8c Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBMediaPlayerBundle.framework/Resources/TBMediaPlayerBundle.xcassets/TBMediaPlayerBundle.bundle/button_miniscreen.imageset/button_miniscreen@2x.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBMediaPlayerBundle.framework/TBMediaPlayerBundle b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBMediaPlayerBundle.framework/TBMediaPlayerBundle new file mode 100644 index 0000000..1dd9b61 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBMediaPlayerBundle.framework/TBMediaPlayerBundle differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBModuleHub.framework/Headers/TBModuleHub.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBModuleHub.framework/Headers/TBModuleHub.h new file mode 100644 index 0000000..d11e696 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBModuleHub.framework/Headers/TBModuleHub.h @@ -0,0 +1,24 @@ +// +// TBModuleHub.h +// TBModuleHub +// +// Created by qiufu on 7/19/16. +// Copyright © 2016 CX. All rights reserved. +// + +#import + +//! Project version number for TBModuleHub. +FOUNDATION_EXPORT double TBModuleHubVersionNumber; + +//! Project version string for TBModuleHub. +FOUNDATION_EXPORT const unsigned char TBModuleHubVersionString[]; + +// In this header, you should import all the public headers of your framework using statements like #import + +#import "TBModuleHuber.h" + +#import "TBModuleHuber+TBMPBLogDependence.h" +#import "TBModuleHuber+TBMPBMonitorDependence.h" +#import "TBModuleHuber+TBMPBConfigDependence.h" + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBModuleHub.framework/Headers/TBModuleHuber+TBMPBConfigDependence.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBModuleHub.framework/Headers/TBModuleHuber+TBMPBConfigDependence.h new file mode 100644 index 0000000..efe10ae --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBModuleHub.framework/Headers/TBModuleHuber+TBMPBConfigDependence.h @@ -0,0 +1,53 @@ +// +// TBModuleHuber+TBMPBConfigDependence.h +// TBModuleHub +// +// Created by qiufu on 4/11/17. +// Copyright © 2017 CX. All rights reserved. +// + +#import + +@interface TBModuleHuber (TBMPBConfigDependence) + +/*! + * @abstract 获取播放器 Orange 配置。 + */ +- (NSDictionary *)TBModuleHuber_TBMPBConfigDependence_orangeConfig; + +/*! + * @abstract 获取当前网络状态。 + */ +- (NSNumber *)TBModuleHuber_TBMPBConfigDependence_networkStatus; + +/*! + * @abstract 获取当前网络运营商 IMSI。 + */ +- (NSString *)TBModuleHuber_TBMPBConfigDependence_networkIMSI; + +/*! + * @abstract 根据 host 获取指定 IP。 + */ +- (NSString *)TBModuleHuber_TBMPBConfigDependence_policyIPWithParameters:(NSDictionary *)parameters; + +/*! + * @abstract 根据 host 和 protocal 获取指定IP组。 + */ +- (NSArray *)TBModuleHuber_TBMPBConfigDependence_policyIPsWithParameters:(NSDictionary *)parameters; + +/*! + * @abstract 获取当前设备及网络状态等信息。 + */ +- (NSDictionary *)TBModuleHuber_TBMPBConfigDependence_userAgentInfo; + +/*! + * @abstract 获取当前module和component对应的ABTest分桶信息。 + */ +- (NSDictionary *)TBModuleHuber_TBMPBConfigDependence_ABTestBucketInfoWithParameters:(NSDictionary *)parameters; + +/*! + * @abstract 查看当前手淘环境下Macro是否定义,返回@(YES) or @(NO) + */ +- (NSNumber*)TBModuleHuber_TBMPBConfigDependence_DidMacroDefined:(NSDictionary *)parameters; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBModuleHub.framework/Headers/TBModuleHuber+TBMPBLogDependence.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBModuleHub.framework/Headers/TBModuleHuber+TBMPBLogDependence.h new file mode 100644 index 0000000..48e477f --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBModuleHub.framework/Headers/TBModuleHuber+TBMPBLogDependence.h @@ -0,0 +1,22 @@ +// +// TBModuleHuber+TBMPBLogDependence.h +// TBModuleHub +// +// Created by qiufu on 12/5/16. +// Copyright © 2016 CX. All rights reserved. +// + +#import + +@interface TBModuleHuber (TBMPBLogDependence) + +/*! + * @abstract 接收日志并发送给日志处理模块。 + * @param info 日志信息。日志信息的数据格式: + * - module:模块名(NSString *)。根据接入方在使用 TBMPBPlayerView 时传入的 businessId 拼接而成,比如当 businessId = @"xxx" 时,对应的 module 为 @"TBMediaPlayerBundle-xxx"。 + * - level:日志级别(NSNumber *)->(NSInteger)。包括 0:Off;1:Error;2:Warning;3:Info;4:Debug。 + * - content:日志内容(NSString *)。 + */ +- (void)TBModuleHuber_TBMPBLogDependence_logInfo:(NSDictionary *)info; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBModuleHub.framework/Headers/TBModuleHuber+TBMPBMonitorDependence.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBModuleHub.framework/Headers/TBModuleHuber+TBMPBMonitorDependence.h new file mode 100644 index 0000000..9cd1970 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBModuleHub.framework/Headers/TBModuleHuber+TBMPBMonitorDependence.h @@ -0,0 +1,41 @@ +// +// TBModuleHuber+TBMPBMonitorDependence.h +// TBModuleHub +// +// Created by qiufu on 12/5/16. +// Copyright © 2016 CX. All rights reserved. +// + +#import + +@interface TBModuleHuber (TBMPBMonitorDependence) + +/*! + * @abstract 接收性能式埋点数据并发送给埋点数据处理模块。 + * + * @param data 性能埋点数据。性能埋点数据格式: + * - module:模块名(NSString *)。根据接入方在使用 TBMPBPlayerView 时传入的 businessId 拼接而成,比如当 businessId = @"xxx" 时,对应的 module 为 @"TBMediaPlayerBundle-xxx"。 + * - point:监测点名字(NSString *)。 + * - type:监控点类型(NSNumber *)->(int32_t)。与 point 是一一映射的。 + * - dimension:性能埋点维度信息(NSDictionary *)。维度信息的具体格式参加具体埋点。 + * - performance:性能埋点指标信息(NSDictionary *)。指标信息的具体格式参加具体埋点。 + * + */ +- (void)TBModuleHuber_TBMPBMonitorDependence_commitPerformanceData:(NSDictionary *)data; + +/*! + * @abstract 接收告警式埋点数据并发送给埋点数据处理模块。 + * + * @param data 告警埋点数据。告警埋点数据格式: + * - module:模块名(NSString *)。根据接入方在使用 TBMPBPlayerView 时传入的 businessId 拼接而成,比如当 businessId = @"xxx" 时,对应的 module 为 @"TBMediaPlayerBundle-xxx"。 + * - point:监测点名字(NSString *)。 + * - type:监控点类型(NSNumber *)->(int32_t)。与 point 是一一映射的。 + * - status:告警状态(NSNumber *)->(int32_t)。0:失败;1:成功。 + * - arg:说明信息(NSString *)。 + * - errorCode:错误码(NSString *)。当上报失败状态时附带的错误码。 + * - errorMessage:错误信息(NSString *)。当上报失败状态时附带的错误信息。 + * + */ +- (void)TBModuleHuber_TBMPBMonitorDependence_commitAlarmData:(NSDictionary *)data; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBModuleHub.framework/Headers/TBModuleHuber.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBModuleHub.framework/Headers/TBModuleHuber.h new file mode 100644 index 0000000..c35d9a2 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBModuleHub.framework/Headers/TBModuleHuber.h @@ -0,0 +1,45 @@ +// +// TBModuleHuber.h +// TBModuleHub +// +// Created by qiufu on 7/19/16. +// Copyright © 2016 CX. All rights reserved. +// + +#import + +@interface TBModuleHuber : NSObject + +/*! + * @abstract 创建 TBModuleHuber 单例。 + * @return 返回 TBModuleHuber 单例。 + */ ++ (instancetype)sharedInstance; + +/*! + * @abstract 根据给定的 url 解析出对应的 selectorName/className,调用对应的实例方法。 + * @param url 模式为:scheme://[class]/[selector]?[params],比如:tb://TBXXXClass/xxxmethod?param1=1¶m2=2 + * @return 返回调用结果。 + */ +- (id)callInstanceMethodWithURL:(NSURL *)url completion:(void(^)(NSDictionary *info))completion; + +/*! + * @abstract 根据给定的 url 解析出对应的 selectorName/className,调用对应的类方法。 + * @param url 模式为:scheme://[class]/[selector]?[params],比如:tb://TBXXXClass/xxxmethod?param1=1¶m2=2 + * @return 返回调用结果。 + */ +- (id)callClassMethodWithURL:(NSURL *)url completion:(void(^)(NSDictionary *info))completion; + +/*! + * @abstract 根据给定的 selectorName/className,调用对应的实例方法。 + * @return 返回调用结果。 + */ +- (id)callInstanceMethodWithSelectorName:(NSString *)selectorName className:(NSString *)className parameters:(NSDictionary *)parameters; + +/*! + * @abstract 根据给定的 selectorName/className,调用对应的类方法。 + * @return 返回调用结果。 + */ +- (id)callClassMethodWithSelectorName:(NSString *)selectorName className:(NSString *)className parameters:(NSDictionary *)parameters; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBModuleHub.framework/Info.plist b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBModuleHub.framework/Info.plist new file mode 100644 index 0000000..4d5d5d6 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBModuleHub.framework/Info.plist @@ -0,0 +1,53 @@ + + + + + BuildMachineOSBuild + 18G95 + CFBundleDevelopmentRegion + en + CFBundleExecutable + TBModuleHub + CFBundleIdentifier + com.taobao.TBModuleHub + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + TBModuleHub + CFBundlePackageType + FMWK + CFBundleShortVersionString + 0.0.0.14-SNAPSHOT + CFBundleSignature + ???? + CFBundleSupportedPlatforms + + iPhoneOS + + CFBundleVersion + 1 + DTCompiler + com.apple.compilers.llvm.clang.1_0 + DTPlatformBuild + 17A820 + DTPlatformName + iphoneos + DTPlatformVersion + 13.1 + DTSDKBuild + 17A820 + DTSDKName + iphoneos13.1 + DTXcode + 1110 + DTXcodeBuild + 11A1027 + MinimumOSVersion + 7.0 + UIDeviceFamily + + 1 + 2 + + + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBModuleHub.framework/Modules/module.modulemap b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBModuleHub.framework/Modules/module.modulemap new file mode 100644 index 0000000..8937e17 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBModuleHub.framework/Modules/module.modulemap @@ -0,0 +1,6 @@ +framework module TBModuleHub { + umbrella header "TBModuleHub.h" + + export * + module * { export * } +} diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBModuleHub.framework/TBModuleHub b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBModuleHub.framework/TBModuleHub new file mode 100644 index 0000000..72f4f91 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/TBMediaPlayer/TBModuleHub.framework/TBModuleHub differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAPI.framework/Headers/API.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAPI.framework/Headers/API.h new file mode 100644 index 0000000..3421747 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAPI.framework/Headers/API.h @@ -0,0 +1,11 @@ +// +// API.h +// API +// +// Created by xuyouyang on 2019/4/3. +// Copyright © 2019 windmill. All rights reserved. +// + +#import + + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAPI.framework/Headers/NSTimer+TRVUtilities.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAPI.framework/Headers/NSTimer+TRVUtilities.h new file mode 100644 index 0000000..f8006a1 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAPI.framework/Headers/NSTimer+TRVUtilities.h @@ -0,0 +1,27 @@ +// +// NSTimer+TRVUtilities.h +// API +// +// Created by lanyao on 2019/4/8. +// Copyright © 2019 Taobao. All rights reserved. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface NSTimer (TRVUtilities) + +/** + 创建定时器 + + @param interval 定时器时间周期 + @param block 定时器触发时的事件 + @param repeats 定时器是否循环计时 + */ ++ (NSTimer *)trvScheduledTimerWithTimeInterval:(NSTimeInterval)interval + block:(void(^)(void))block + repeats:(BOOL)repeats; +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAPI.framework/Headers/RVPMTOPServiceIMP.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAPI.framework/Headers/RVPMTOPServiceIMP.h new file mode 100644 index 0000000..3947673 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAPI.framework/Headers/RVPMTOPServiceIMP.h @@ -0,0 +1,16 @@ +// +// RVPMTOPServiceIMP.h +// API +// +// Created by AllenHan on 2019/4/22. +// Copyright © 2019年 Taobao. All rights reserved. +// + +#import +#import +#import + +@interface RVPMTOPServiceIMP : RVKExtension + +@end + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAPI.framework/Headers/TRVAPI.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAPI.framework/Headers/TRVAPI.h new file mode 100644 index 0000000..2fed8f4 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAPI.framework/Headers/TRVAPI.h @@ -0,0 +1,19 @@ +// +// TRVAPI.h +// API +// +// Created by xuyouyang on 2019/4/16. +// Copyright © 2019 Taobao. All rights reserved. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface TRVAPI : NSObject + ++ (void)setup; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAPI.framework/Headers/TRVAPIUtils.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAPI.framework/Headers/TRVAPIUtils.h new file mode 100644 index 0000000..bf6cdd3 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAPI.framework/Headers/TRVAPIUtils.h @@ -0,0 +1,63 @@ +// +// TRVAPIUtils.h +// Triver +// +// Created by lanyao on 2019/4/11. +// + +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface TRVAPIUtils : NSObject + +UIColor *TRVColorWithHex(NSInteger hex); // 0xAARRGGBB、0xRRGGBB + +UIColor *TRVColorWithWebString(NSString *colorString); // #aarrggbb 、 #rrggbb 、 rgb(rr,gg,bb) 、 argb(aa,rr,gg,bb) + +UIColor *TRVColorWithHexString(NSString *colorString); + +// 截图 +UIImage *H5SnapShot(CGSize size, UIView *view, BOOL isWK); + +UIImage *H5ReSizeImage(UIImage *image, CGSize reSize); + +// 获取当前显示的 viewController ++ (UIViewController *)getTopMostViewController; + +// 获取当前的 window ++ (UIWindow *)currentWindow; + +// 获取 safeArea 的缩进 ++ (UIEdgeInsets)getWindowSafeAreaInsets; + +// 获取当前系统版本号 ++ (CGFloat)getSystemVersion; + +/** + 绘制一个某种颜色的图片 + @param color 图片颜色 + @param size 图片大小 + @return 图片 + */ ++ (UIImage *)imageWithColor:(UIColor *)color size:(CGSize)size; + +/** + 对 NSData 类型的数据进行 sha1 编码 + */ ++ (NSString *)sha1StringFromData:(NSData *)data; + +/** + 对 NSData 类型的数据进行 md5 编码 + */ ++ (NSString *)md5StringFromData:(NSData *)data; + +/** + 对字符串进行 md5 编码 + */ ++ (NSString *)md5StringFromString:(NSString *)originString; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAPI.framework/Headers/TRVAppTokenProtocol.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAPI.framework/Headers/TRVAppTokenProtocol.h new file mode 100644 index 0000000..4c207ca --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAPI.framework/Headers/TRVAppTokenProtocol.h @@ -0,0 +1,20 @@ +// +// TRVAppTokenProtocol.h +// API +// +// Created by xuyouyang on 2019/7/5. +// Copyright © 2019 Taobao. All rights reserved. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +@protocol TRVAppTokenProtocol + +@required +- (NSString *)appToken; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAPI.framework/Headers/TRVArupUploadFileProtocol.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAPI.framework/Headers/TRVArupUploadFileProtocol.h new file mode 100644 index 0000000..21f74f8 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAPI.framework/Headers/TRVArupUploadFileProtocol.h @@ -0,0 +1,40 @@ +// +// TRVArupUploadFileProtocol.h +// API +// +// Created by xuyouyang on 2019/7/5. +// Copyright © 2019 Taobao. All rights reserved. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +typedef NS_ENUM(NSUInteger, TRVArupUploadFileError) { + TRVArupUploadFileErrorNone = 0, // 无失败,即成功 + TRVArupUploadFileErrorFlieNotExist = 11, // 文件不存在 + TRVArupUploadFileErrorFailed = 12, // 上传失败 +}; + +typedef void(^TRVArupUploadFileResultBlock)(NSDictionary * _Nullable headers, TRVArupUploadFileError errorCode); + +@protocol TRVArupUploadFileProtocol + +@required +/** + 通过 ARUP SDK 上传文件 + + @param bizType 业务ID + @param fileLocalPath 文件本地路径 + @param fileName 文件名 + @param resultCallback 结果回调 + */ +- (void)uploadFileWithBizType:(NSString *)bizType + fileLocalPath:(NSString *)fileLocalPath + fileName:(NSString *)fileName + xArupMeta:(NSDictionary *)xArupMeta + resultCallback:(TRVArupUploadFileResultBlock _Nullable )resultCallback; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAPI.framework/Headers/TRVBridgeExtension4MemoryWarning.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAPI.framework/Headers/TRVBridgeExtension4MemoryWarning.h new file mode 100644 index 0000000..ca506b2 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAPI.framework/Headers/TRVBridgeExtension4MemoryWarning.h @@ -0,0 +1,15 @@ +// +// TRVBridgeExtension4MemoryWarning.h +// API +// +// Created by 岚遥 on 2019/12/26. +// Copyright © 2019 Taobao. All rights reserved. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +RVK_DEFINE_BRIDGEEXTENSION(TRVBridgeExtension4MemoryWarning) + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAPI.framework/Headers/TRVBridgeExtension4OptionPicker.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAPI.framework/Headers/TRVBridgeExtension4OptionPicker.h new file mode 100644 index 0000000..8c58b12 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAPI.framework/Headers/TRVBridgeExtension4OptionPicker.h @@ -0,0 +1,15 @@ +// +// TRVBridgeExtension4OptionPicker.h +// API +// +// Created by 岚遥 on 2019/8/9. +// Copyright © 2019 Taobao. All rights reserved. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +RVK_DEFINE_BRIDGEEXTENSION(TRVBridgeExtension4OptionPicker) + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAPI.framework/Headers/TRVBridgeExtension4PreladPluginBatch.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAPI.framework/Headers/TRVBridgeExtension4PreladPluginBatch.h new file mode 100644 index 0000000..c0c1923 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAPI.framework/Headers/TRVBridgeExtension4PreladPluginBatch.h @@ -0,0 +1,15 @@ +// +// TRVBridgeExtension4PreladPluginBatch.h +// API +// +// Created by 岚遥 on 2020/3/10. +// Copyright © 2020 Taobao. All rights reserved. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +RVK_DEFINE_BRIDGEEXTENSION(TRVBridgeExtension4PreladPluginBatch) + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAPI.framework/Headers/TRVDatePickerFactoryProtocol.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAPI.framework/Headers/TRVDatePickerFactoryProtocol.h new file mode 100644 index 0000000..6a10f39 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAPI.framework/Headers/TRVDatePickerFactoryProtocol.h @@ -0,0 +1,23 @@ +// +// TRVDatePickerFactoryProtocol.h +// API +// +// Created by 岚遥 on 2020/4/7. +// Copyright © 2020 Taobao. All rights reserved. +// + +#import +#import "TRVDatePickerProtocol.h" +#import + +NS_ASSUME_NONNULL_BEGIN + +@protocol TRVDatePickerFactoryProtocol + +- (BOOL)enableExtentionDatePickerWithApp:(RVRApp *)currentApp; + +- (id)createExtensionDatePickerView; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAPI.framework/Headers/TRVDatePickerProtocol.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAPI.framework/Headers/TRVDatePickerProtocol.h new file mode 100644 index 0000000..0171559 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAPI.framework/Headers/TRVDatePickerProtocol.h @@ -0,0 +1,71 @@ +// +// TRVDatePickerProtocol.h +// API +// +// Created by 岚遥 on 2020/4/7. +// Copyright © 2020 Taobao. All rights reserved. +// + +#import +@protocol TRVDatePickerProtocol; + +NS_ASSUME_NONNULL_BEGIN + +typedef NS_ENUM(NSInteger, TRVDatePickerMode) { + TRVDatePickerModeTime, // HH:mm + TRVDatePickerModeDate, // yyyy-MM-dd + TRVDatePickerModeDateAndTime, // yyyy-MM-dd HH:mm + TRVDatePickerModeYearAndMonth, // yyyy-MM + TRVDatePickerModeYear // yyyy +}; + +@protocol TRVDatePickerDelegate + +/** + * 成功选中 + */ +- (void)datePickerDidClickConfirmButton:(id)datePicker; + +/** + * 点击取消按钮 + */ +- (void)datePickerDidClickCancelButton:(id)datePicker; + +@end + +@protocol TRVDatePickerProtocol + +@property (nonatomic) TRVDatePickerMode datePickerMode; + +@property (nonatomic, strong) NSLocale *locale; // default is [NSLocale currentLocale] +@property (nonatomic, copy) NSCalendar *calendar; // default is [NSLocale localeWithLocaleIdentifier:@"Chinese"]. +@property (nonatomic, strong) NSTimeZone *timeZone; // default is nil. use current time zone or time zone from calendar + +@property (nonatomic, strong) NSDate *date; // default is current date when picker created. Ignored in countdown timer mode. for that mode, picker starts at 0:00 +@property (nonatomic, strong) NSDate *minimumDate; // default is 2000-1-1 +@property (nonatomic, strong) NSDate *maximumDate; // default is 2050-12-31 + +@property (nonatomic) NSTimeInterval countDownDuration; // for UIDatePickerModeCountDownTimer, ignored otherwise. default is 0.0. limit is 23:59 (86,399 seconds). value being set is div 60 (drops remaining seconds). +@property (nonatomic) NSInteger minuteInterval; // display minutes wheel with interval. interval must be evenly divided into 60. default is 1. min is 1, max is 30 + +@property (nonatomic, strong) NSDictionary *datePickerModeWithFormatDic; + +@property (nonatomic, weak) id delegate; + +@property (nonatomic, strong) NSDateComponents *startComponents; // 开始日期 +@property (nonatomic, strong) NSDateComponents *endComponents; // 结束日期 +@property (nonatomic, strong) NSDateComponents *currentComponents; // 当前日期 + +@property (nonatomic, strong) NSMutableDictionary *dateComponentsRangeDict; // 存储了 calendarUnit 所对应的时间范围 NSRange +@property (nonatomic, strong) NSArray *componentModeArray; // 存储当前的日期格式 + +@property (nonatomic, strong) NSDateComponents *defaultStartComponents; // 默认开始日期 +@property (nonatomic, strong) NSDateComponents *defaultEndComponents; // 默认结束日期 + +- (void)setDate:(NSDate *)date animated:(BOOL)animated; // if animated is YES, animate the wheels of time to display the new date + +- (void)reloadData; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAPI.framework/Headers/TRVLocationProtocol.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAPI.framework/Headers/TRVLocationProtocol.h new file mode 100644 index 0000000..4b73104 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAPI.framework/Headers/TRVLocationProtocol.h @@ -0,0 +1,67 @@ +// +// TRVLocationProtocol.h +// Triver +// +// Created by lanyao on 2019/4/17. +// + +#import +#import + +/** + * 定位错误类型 + **/ +typedef NS_ENUM(NSUInteger, TRVLocationError) { + /** + * 定位相关权限未开启 + **/ + TRVLocationErrorNoPermission = 11, + /** + * 网络异常 + **/ + TRVLocationErrorNetworkNotReachable = 12, + /** + * 定位失败 + **/ + TRVLocationErrorLocationFailed = 13, + /** + * 业务定位超时 + **/ + TRVLocationErrorLocationTimeOut = 14, +}; + +typedef NS_ENUM(NSUInteger, TRVLocationType) { + /** + * 默认,获取经纬度 + **/ + TRVLocationTypeBasic = 0, + /** + * 获取经纬度和详细到区县级别的逆地理编码数据 + **/ + TRVLocationTypeDistrict = 1, + /** + * 获取经纬度和详细到街道级别的逆地理编码数据 + **/ + TRVLocationTypeStreet = 2, + /** + * 获取经纬度和详细到POI级别的逆地理编码数据 + **/ + TRVLocationTypePOI = 3 +}; + +@protocol TRVLocationManagerProtocol +@required + +/** + 请求定位信息 + !!注意:这个方法当做单例来触发,扩展时需要注意数据和状态之间的污染 + + @param type 请求定位信息类型,决定返回数据的类型 + @param cacheTime 定位信息缓存时间 + @param aBlock 数据回调 + */ +- (void)requestLocationWithType:(TRVLocationType)type + cacheTimeout:(NSNumber *)cacheTime + complete:(void(^)(BOOL success, RVPJSApiResLocation *locationData, TRVLocationError error))aBlock; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAPI.framework/Headers/TRVNetworkStatusProtocol.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAPI.framework/Headers/TRVNetworkStatusProtocol.h new file mode 100644 index 0000000..26f51d9 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAPI.framework/Headers/TRVNetworkStatusProtocol.h @@ -0,0 +1,24 @@ +// +// TRVNetworkStatusProtocol.h +// Triver +// +// Created by zhongweitao on 2019/11/19. +// + +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +@protocol TRVNetworkStatusProtocol + +@required +- (RVPNetworkStatus )networkStatus; + +- (BOOL)isReachableVia3G; + +- (BOOL)isReachableVia2G; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAPI.framework/Headers/TRVOptionPickerFactoryProtocol.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAPI.framework/Headers/TRVOptionPickerFactoryProtocol.h new file mode 100644 index 0000000..028d0b3 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAPI.framework/Headers/TRVOptionPickerFactoryProtocol.h @@ -0,0 +1,23 @@ +// +// TRVOptionPickerFactoryProtocol.h +// API +// +// Created by 岚遥 on 2020/4/7. +// Copyright © 2020 Taobao. All rights reserved. +// + +#import +#import "TRVOptionPickerProtocol.h" +#import + +NS_ASSUME_NONNULL_BEGIN + +@protocol TRVOptionPickerFactoryProtocol + +- (BOOL)enableExtensionOptionPickerWithApp:(RVRApp *)currentApp; + +- (id)createExtensionOptionPickerView; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAPI.framework/Headers/TRVOptionPickerProtocol.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAPI.framework/Headers/TRVOptionPickerProtocol.h new file mode 100644 index 0000000..a981d66 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAPI.framework/Headers/TRVOptionPickerProtocol.h @@ -0,0 +1,52 @@ +// +// TRVOptionPickerProtocol.h +// API +// +// Created by 岚遥 on 2020/4/7. +// Copyright © 2020 Taobao. All rights reserved. +// + +#import +@protocol TRVOptionPickerProtocol; + +NS_ASSUME_NONNULL_BEGIN + +@protocol TRVOptionPickerDelegate + +/** + * 成功选中 + */ +- (void)optionsPickerDidClickConfirmButton:(id)optionsPicker; + +/** + * 点击取消按钮 + */ +- (void)optionsPickerDidClickCancelButton:(id)optionsPicker; + +@end + +@protocol TRVOptionPickerProtocol + +@property (nonatomic, assign) NSInteger selectedOneIndex; +@property (nonatomic, assign) NSInteger selectedTwoIndex; +@property (nonatomic, strong) NSString *selectedOneOption; +@property (nonatomic, strong) NSString *selectedTwoOption; +@property (nonatomic, weak) id delegate; +/** + * 配置 optionsPicker + */ +- (void)setupSelectedOneIndex:(NSInteger)oneIndex + selectedTwoIndex:(NSInteger)twoIndex + optionsOne:(NSArray *)optionsOne + optionsTwo:(NSArray *)optionsTwo + title:(NSString *)title + cancelTitle:(NSString *)cancelTitle + confirmTitle:(NSString *)confirmTitle; +/** + * 刷新 optionsPicker + */ +- (void)reloadData; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAPI.framework/Headers/TRVOptionsPickerView.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAPI.framework/Headers/TRVOptionsPickerView.h new file mode 100644 index 0000000..5c79b49 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAPI.framework/Headers/TRVOptionsPickerView.h @@ -0,0 +1,19 @@ +// +// TRVOptionsPickerView.h +// API +// +// Created by 岚遥 on 2019/8/10. +// Copyright © 2019 Taobao. All rights reserved. +// + +#import +#import "TRVOptionPickerProtocol.h" +@class TRVOptionsPickerView; + +NS_ASSUME_NONNULL_BEGIN + +@interface TRVOptionsPickerView : UIView + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAPI.framework/Headers/TRVScanProtocol.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAPI.framework/Headers/TRVScanProtocol.h new file mode 100644 index 0000000..09ec439 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAPI.framework/Headers/TRVScanProtocol.h @@ -0,0 +1,51 @@ +// +// TRVScanProtocol.h +// API +// +// Created by xuyouyang on 2019/5/30. +// Copyright © 2019 Taobao. All rights reserved. +// + +#import +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +typedef NS_ENUM(NSInteger, TRVScanProtocolScanType) { + TRVScanProtocolScanTypeQR, + TRVScanProtocolScanTypeBAR +}; + +typedef NS_ENUM(NSInteger, TRVScanProtocolErrorCode) { + TRVScanProtocolErrorCodeCancel = 10, + TRVScanProtocolErrorCodeFail = 11, + TRVScanProtocolErrorCodeNone = 0 +}; + +typedef void(^TRVScanViewControllerResultBlock)(NSString * _Nullable data, TRVScanProtocolErrorCode errorCode); + +@protocol TRVScanViewControllerProtocol + +@required +// 扫码返回结果回调 +@property (nonatomic, copy) TRVScanViewControllerResultBlock resultBlock; + +@end + +@protocol TRVScanProtocol + +@required +/** + 获取一个扫码视图 + + @param type 扫码类型 + @param appId 当前小程序Id + @param currentSession 当前小程序容器 + @return 继承于 TRVAppPageViewController 且实现了 TRVScanViewControllerProtocol 协议的 VC + */ +- (TRVAppPageViewController *)createScanVCWithType:(TRVScanProtocolScanType)type appId:(NSString *)appId session:(RVKSession *)currentSession; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAPI.framework/Headers/TRVSendMtopPrefetchProtocol.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAPI.framework/Headers/TRVSendMtopPrefetchProtocol.h new file mode 100644 index 0000000..373beca --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAPI.framework/Headers/TRVSendMtopPrefetchProtocol.h @@ -0,0 +1,31 @@ +// +// TRVSendMtopPrefetchProtocol.h +// Embed +// +// Created by 岚遥 on 2019/10/29. +// Copyright © 2019 taobao. All rights reserved. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +@protocol TRVSendMtopPrefetchProtocol + +/** + 判断是否可以预取数据 + */ +- (BOOL)enableSendPrefetchMtopWithMtopName:(NSString *)mtopName + params:(NSDictionary *)params + appContainer:(id)appContainer; + +/** + 前端数据预取接口 + */ +- (NSDictionary *)sendMtopPrefetchWithMtopName:(NSString *)mtopName + params:(NSDictionary *)params + appContainer:(id)appContainer; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAPI.framework/Headers/TRVStorageProtocol.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAPI.framework/Headers/TRVStorageProtocol.h new file mode 100644 index 0000000..367c6bd --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAPI.framework/Headers/TRVStorageProtocol.h @@ -0,0 +1,28 @@ +// +// TRVStorageProtocol.h +// API +// +// Created by xuyouyang on 2019/5/28. +// Copyright © 2019 Taobao. All rights reserved. +// + +#import + +/** + 统一存储协议,提供 存、读、删 的能力 + */ + +NS_ASSUME_NONNULL_BEGIN + +@protocol TRVStorageProtocol + +@required +- (void)saveObject:(NSString *)object forKey:(NSString *)key; + +- (NSString *)objectForKey:(NSString *)key; + +- (void)removeObjectForKey:(NSString *)key; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAPI.framework/Headers/TRVTradePayProtocol.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAPI.framework/Headers/TRVTradePayProtocol.h new file mode 100644 index 0000000..6b13977 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAPI.framework/Headers/TRVTradePayProtocol.h @@ -0,0 +1,24 @@ +// +// TRVTradePayProtocol.h +// API +// +// Created by xuyouyang on 2019/5/29. +// Copyright © 2019 Taobao. All rights reserved. +// + +#import +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +typedef void (^TRVTradePayCompleteBlock)(RVPJSApiResTradePay *response); + +@protocol TRVTradePayProtocol + +@required +- (void)tradePayWithRequest:(RVPJSApiReqTradePay *)request originParam:(NSDictionary *)originParam complete:(TRVTradePayCompleteBlock)complete; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAPI.framework/Headers/TRVUserProtocol.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAPI.framework/Headers/TRVUserProtocol.h new file mode 100644 index 0000000..39f9297 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAPI.framework/Headers/TRVUserProtocol.h @@ -0,0 +1,30 @@ +// +// TRVUserProtocol.h +// API +// +// Created by xuyouyang on 2019/5/29. +// Copyright © 2019 Taobao. All rights reserved. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +@protocol TRVUserProtocol + +@required +// 用户唯一标识,如,[ALBBAccountLogin sharedInstance].getUserId +- (NSString *)userId; + +// 用户的昵称,如,[ALBBAccountLogin sharedInstance].getUserNick +- (NSString *)getUserNick; + +// 用户的头像链接,如,[ALBBAccountLogin sharedInstance].getUserHeadPicLink +- (NSString *)getUserHeadPicLink; + +// 用于 tradePay 中,从 [[[ALBBLoginCenter sharedInstance] currentSession] objectForKey:@"sid"]; 中获取 +- (NSString *)sessionId; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAPI.framework/Headers/TRVVerifyIdentityProtocol.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAPI.framework/Headers/TRVVerifyIdentityProtocol.h new file mode 100644 index 0000000..26d5c5a --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAPI.framework/Headers/TRVVerifyIdentityProtocol.h @@ -0,0 +1,23 @@ +// +// TRVVerifyIdentityProtocol.h +// API +// +// Created by xuyouyang on 2019/5/29. +// Copyright © 2019 Taobao. All rights reserved. +// + +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +typedef void (^TRVVerifyIdentityCompleteBlock)(NSDictionary *params); + +@protocol TRVVerifyIdentityProtocol + +@required +- (void)verifyIdentityWithRequest:(RVPJSApiReqVerifyIdentity *)request complete:(TRVVerifyIdentityCompleteBlock)complete; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAPI.framework/Headers/TRViPadUtils.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAPI.framework/Headers/TRViPadUtils.h new file mode 100644 index 0000000..a1b26e8 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAPI.framework/Headers/TRViPadUtils.h @@ -0,0 +1,35 @@ +// +// TRViPadUtils.h +// API +// +// Created by 岚遥 on 2020/2/7. +// Copyright © 2020 Taobao. All rights reserved. +// + +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface TRViPadUtils : NSObject + +/** + 寻找与指定 ViewController 相关的顶层 ViewController。 + + @return 顶层 ViewController。 + */ ++ (UIViewController *)iPadTopViewController:(UIViewController *)viewController; + +/** + 判断当前设备是否为 iPad + */ +BOOL TRVDeviceModelIsIPad(void); + +/** + 判断当前设备是否可以使用iPad 自适应layout + */ +BOOL TRVEnableIPadAdaptivelayout(void); + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAPI.framework/Info.plist b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAPI.framework/Info.plist new file mode 100644 index 0000000..8d26025 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAPI.framework/Info.plist differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAPI.framework/TRVCityPicker.bundle/citiesWithCounty.txt b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAPI.framework/TRVCityPicker.bundle/citiesWithCounty.txt new file mode 100644 index 0000000..23e5c15 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAPI.framework/TRVCityPicker.bundle/citiesWithCounty.txt @@ -0,0 +1,392 @@ +110100,北京 +120100,天津 +130100,石家庄 +130200,唐山 +130300,秦皇岛 +130400,邯郸 +130500,邢台 +130600,保定 +130700,张家口 +130800,承德 +130900,沧州 +131000,廊坊 +131100,衡水 +140100,太原 +140200,大同 +140300,阳泉 +140400,长治 +140500,晋城 +140600,朔州 +140700,晋中 +140800,运城 +140900,忻州 +141000,临汾 +141100,吕梁 +150100,呼和浩特 +150200,包头 +150300,乌海 +150400,赤峰 +150500,通辽 +150600,鄂尔多斯 +150700,呼伦贝尔 +150800,巴彦淖尔 +150900,乌兰察布 +152200,兴安盟 +152500,锡林郭勒盟 +152900,阿拉善盟 +210100,沈阳 +210200,大连 +210300,鞍山 +210400,抚顺 +210500,本溪 +210600,丹东 +210700,锦州 +210800,营口 +210900,阜新 +211000,辽阳 +211100,盘锦 +211200,铁岭 +211300,朝阳 +211400,葫芦岛 +220100,长春 +220200,吉林 +220300,四平 +220400,辽源 +220500,通化 +220600,白山 +220700,松原 +220800,白城 +222400,延边朝鲜族自治州 +230100,哈尔滨 +230200,齐齐哈尔 +230300,鸡西 +230400,鹤岗 +230500,双鸭山 +230600,大庆 +230700,伊春 +230800,佳木斯 +230900,七台河 +231000,牡丹江 +231100,黑河 +231200,绥化 +232700,大兴安岭地区 +310100,上海 +320100,南京 +320200,无锡 +320300,徐州 +320400,常州 +320500,苏州 +320600,南通 +320700,连云港 +320800,淮安 +320900,盐城 +321000,扬州 +321100,镇江 +321200,泰州 +321300,宿迁 +330100,杭州 +330200,宁波 +330300,温州 +330400,嘉兴 +330500,湖州 +330600,绍兴 +330700,金华 +330800,衢州 +330900,舟山 +331000,台州 +331100,丽水 +340100,合肥 +340200,芜湖 +340300,蚌埠 +340400,淮南 +340500,马鞍山 +340600,淮北 +340700,铜陵 +340800,安庆 +341000,黄山 +341100,滁州 +341200,阜阳 +341300,宿州 +341500,六安 +341600,亳州 +341700,池州 +341800,宣城 +350100,福州 +350200,厦门 +350300,莆田 +350400,三明 +350500,泉州 +350600,漳州 +350700,南平 +350800,龙岩 +350900,宁德 +360100,南昌 +360200,景德镇 +360300,萍乡 +360400,九江 +360500,新余 +360600,鹰潭 +360700,赣州 +360800,吉安 +360900,宜春 +361000,抚州 +361100,上饶 +370100,济南 +370200,青岛 +370300,淄博 +370400,枣庄 +370500,东营 +370600,烟台 +370700,潍坊 +370800,济宁 +370900,泰安 +371000,威海 +371100,日照 +371200,莱芜 +371300,临沂 +371400,德州 +371500,聊城 +371600,滨州 +371700,菏泽 +410100,郑州 +410200,开封 +410300,洛阳 +410400,平顶山 +410500,安阳 +410600,鹤壁 +410700,新乡 +410800,焦作 +410900,濮阳 +411000,许昌 +411100,漯河 +411200,三门峡 +411300,南阳 +411400,商丘 +411500,信阳 +411600,周口 +411700,驻马店 +419001,济源市 +420100,武汉 +420200,黄石 +420300,十堰 +420500,宜昌 +420600,襄阳 +420700,鄂州 +420800,荆门 +420900,孝感 +421000,荆州 +421100,黄冈 +421200,咸宁 +421300,随州 +422800,恩施土家族苗族自治州 +429004,仙桃市 +429005,潜江市 +429006,天门市 +429021,神农架林区 +430100,长沙 +430200,株洲 +430300,湘潭 +430400,衡阳 +430500,邵阳 +430600,岳阳 +430700,常德 +430800,张家界 +430900,益阳 +431000,郴州 +431100,永州 +431200,怀化 +431300,娄底 +433100,湘西土家族苗族自治州 +440100,广州 +440200,韶关 +440300,深圳 +440400,珠海 +440500,汕头 +440600,佛山 +440700,江门 +440800,湛江 +440900,茂名 +441200,肇庆 +441300,惠州 +441400,梅州 +441500,汕尾 +441600,河源 +441700,阳江 +441800,清远 +441900,东莞 +442000,中山 +442100,东沙群岛 +445100,潮州 +445200,揭阳 +445300,云浮 +450100,南宁 +450200,柳州 +450300,桂林 +450400,梧州 +450500,北海 +450600,防城港 +450700,钦州 +450800,贵港 +450900,玉林 +451000,百色 +451100,贺州 +451200,河池 +451300,来宾 +451400,崇左 +460100,海口 +460200,三亚 +460300,三沙 +460400,儋州 +469001,五指山市 +469002,琼海市 +469005,文昌市 +469006,万宁市 +469007,东方市 +469021,定安县 +469022,屯昌县 +469023,澄迈县 +469024,临高县 +469025,白沙黎族自治县 +469026,昌江黎族自治县 +469027,乐东黎族自治县 +469028,陵水黎族自治县 +469029,保亭黎族苗族自治县 +469030,琼中黎族苗族自治县 +500100,重庆 +500200,重庆郊县 +500228,梁平县 +510100,成都 +510300,自贡 +510400,攀枝花 +510500,泸州 +510600,德阳 +510700,绵阳 +510800,广元 +510900,遂宁 +511000,内江 +511100,乐山 +511300,南充 +511400,眉山 +511500,宜宾 +511600,广安 +511700,达州 +511800,雅安 +511900,巴中 +512000,资阳 +513200,阿坝藏族羌族自治州 +513300,甘孜藏族自治州 +513400,凉山彝族自治州 +520100,贵阳 +520200,六盘水 +520300,遵义 +520400,安顺 +520500,毕节 +520600,铜仁 +522300,黔西南布依族苗族自治州 +522600,黔东南苗族侗族自治州 +522700,黔南布依族苗族自治州 +530100,昆明 +530300,曲靖 +530400,玉溪 +530500,保山 +530600,昭通 +530700,丽江 +530800,普洱 +530900,临沧 +532300,楚雄彝族自治州 +532500,红河哈尼族彝族自治州 +532600,文山壮族苗族自治州 +532800,西双版纳傣族自治州 +532900,大理白族自治州 +533100,德宏傣族景颇族自治州 +533300,怒江傈僳族自治州 +533400,迪庆藏族自治州 +540100,拉萨 +540200,日喀则 +540300,昌都 +540400,林芝 +540500,山南 +542400,那曲地区 +542500,阿里地区 +610100,西安 +610200,铜川 +610300,宝鸡 +610400,咸阳 +610500,渭南 +610600,延安 +610700,汉中 +610800,榆林 +610900,安康 +611000,商洛 +620100,兰州 +620200,嘉峪关 +620300,金昌 +620400,白银 +620500,天水 +620600,武威 +620700,张掖 +620800,平凉 +620900,酒泉 +621000,庆阳 +621100,定西 +621200,陇南 +622900,临夏回族自治州 +623000,甘南藏族自治州 +630100,西宁 +630200,海东 +632200,海北藏族自治州 +632300,黄南藏族自治州 +632500,海南藏族自治州 +632600,果洛藏族自治州 +632700,玉树藏族自治州 +632800,海西蒙古族藏族自治州 +640100,银川 +640200,石嘴山 +640300,吴忠 +640400,固原 +640500,中卫 +650100,乌鲁木齐 +650200,克拉玛依 +650400,吐鲁番 +650500,哈密 +652300,昌吉回族自治州 +652700,博尔塔拉蒙古自治州 +652800,巴音郭楞蒙古自治州 +652900,阿克苏地区 +653000,克孜勒苏柯尔克孜自治州 +653100,喀什地区 +653200,和田地区 +654000,伊犁哈萨克自治州 +654200,塔城地区 +654300,阿勒泰地区 +659001,石河子市 +659002,阿拉尔市 +659003,图木舒克市 +659004,五家渠市 +659005,北屯市 +659006,铁门关市 +659007,双河市 +659008,可克达拉市 +659009,昆玉市 +710300,新竹市,,1 +710400,高雄,,1 +710500,新北,,1 +710600,台中,,1 +710700,台南,,1 +710800,台北,,1 +710900,桃园,,1 +711000,彰化,,1 +711100,嘉义市,,1 +711200,嘉义县,,1 +711300,新竹县,,1 +711400,花莲,,1 +711500,基隆,,1 +711600,苗栗,,1 +711700,南投,,1 +711800,澎湖,,1 +711900,屏东,,1 +712000,台东,,1 +712100,宜兰,,1 +712200,云林,,1 +810000,香港,,1 +820000,澳门,,1 diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAPI.framework/TRVCityPicker.bundle/hotCities.txt b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAPI.framework/TRVCityPicker.bundle/hotCities.txt new file mode 100644 index 0000000..fccd330 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAPI.framework/TRVCityPicker.bundle/hotCities.txt @@ -0,0 +1,12 @@ +330100,杭州,,0 +110100,北京,,0 +310100,上海,,0 +440100,广州,,0 +440300,深圳,,0 +510100,成都,,0 +500100,重庆,,0 +120100,天津,,0 +320100,南京,,0 +320500,苏州,,0 +420100,武汉,,0 +610100,西安,,0 diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAPI.framework/TriverAPI b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAPI.framework/TriverAPI new file mode 100644 index 0000000..550d135 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAPI.framework/TriverAPI differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAppContainer.framework/Headers/AppContainer.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAppContainer.framework/Headers/AppContainer.h new file mode 100644 index 0000000..25f8658 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAppContainer.framework/Headers/AppContainer.h @@ -0,0 +1,19 @@ +// +// AppContainer.h +// AppContainer +// +// Created by CaiXiaomin on 2019/3/29. +// Copyright © 2019 Taobao. All rights reserved. +// + +#import + +//! Project version number for AppContainer. +FOUNDATION_EXPORT double AppContainerVersionNumber; + +//! Project version string for AppContainer. +FOUNDATION_EXPORT const unsigned char AppContainerVersionString[]; + +// In this header, you should import all the public headers of your framework using statements like #import + + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAppContainer.framework/Headers/RVKSession+TRVContainer.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAppContainer.framework/Headers/RVKSession+TRVContainer.h new file mode 100644 index 0000000..df48ef2 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAppContainer.framework/Headers/RVKSession+TRVContainer.h @@ -0,0 +1,15 @@ +// +// RVKSession+TRVContainer.h +// Triver +// +// Created by zhongweitao on 2019/6/4. +// + +#import +#import "TRVAppContainer.h" + +@interface RVKSession (TRVContainer) + +@property (nonatomic, strong) TRVAppContainer *appContainer; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAppContainer.framework/Headers/RVRApp+TRVContainer.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAppContainer.framework/Headers/RVRApp+TRVContainer.h new file mode 100644 index 0000000..3ef45f4 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAppContainer.framework/Headers/RVRApp+TRVContainer.h @@ -0,0 +1,23 @@ +// +// RVRApp+TRVContainer.h +// Triver +// +// Created by zhongweitao on 2019/7/17. +// + +#import + +@interface RVRApp (TRVContainer) + +/// 是否是网络错误从缓存中读取的 +@property (nonatomic, assign) BOOL isFromCacheWhenError; + +- (BOOL)enableKeepAlive; + +- (NSString *)subBizType; + +- (NSString *)bizType; + +- (BOOL)isShopMiniApp; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAppContainer.framework/Headers/RVRAppEnterInfo+TRVExtension.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAppContainer.framework/Headers/RVRAppEnterInfo+TRVExtension.h new file mode 100644 index 0000000..344ea1c --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAppContainer.framework/Headers/RVRAppEnterInfo+TRVExtension.h @@ -0,0 +1,60 @@ +// +// RVRAppEnterInfo+TRVExtension.h +// Triver +// +// Created by zhongweitao on 2019/4/16. +// + +#import +#import + +typedef NS_ENUM(NSInteger, TRVTransitionType) { + TRVTransitionTypePush, + TRVTransitionTypePresent, + TRVTransitionTypeDrop +}; + +@class TRVAppContainer; +@interface RVRAppEnterInfo (TRVExtension) + +@property (nonatomic, copy, readonly) NSString *appName; +@property (nonatomic, copy, readonly) NSString *appLogo; +@property (nonatomic, copy, readonly) NSString *frameTempType; +@property (nonatomic, copy, readonly) NSString *version; +@property (nonatomic, copy, readonly) NSString *debug; +@property (nonatomic, copy, readonly) NSString *loadingType; +@property (nonatomic, copy, readonly) NSString *spmOri; + +// 转场类型 +@property (nonatomic, assign, readonly) TRVTransitionType transitionType; +// 场景值 +@property (nonatomic, copy, readonly) NSString *chInfo; +// 延迟Loading +@property (nonatomic, assign) BOOL superSplash; + +@property (nonatomic, strong) NSDictionary *extraEnterParams; +@property (nonatomic, strong) TRVAppContainer *fromAppContainer; + +@property (nonatomic, strong) UIView *loadingView; + +- (BOOL)isHugeClosedCycle; + +- (BOOL)isTinyClosedCycle; + +- (BOOL)isTinyTool; + +- (NSDictionary *)allEnterParams; + +- (NSString *)scene; + +- (BOOL)isDebugSource; + +- (BOOL)isOnline; + +- (BOOL)enableKeepAlive; + ++ (BOOL)isOnlineForScene:(NSString *)scene; + +- (BOOL)clearCahce; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAppContainer.framework/Headers/TRVApp.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAppContainer.framework/Headers/TRVApp.h new file mode 100644 index 0000000..a04a124 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAppContainer.framework/Headers/TRVApp.h @@ -0,0 +1,40 @@ +// +// TRVApp.h +// Triver +// +// Created by zhongweitao on 2019/4/1. +// + +#import +#import + +@interface TRVApp : NSObject + +@property (nonatomic, strong) NSString *appId; + +@property (nonatomic, strong) NSString *version; // + +@property (nonatomic, assign) double lastUseTime; + +@property (nonatomic, assign) double lastRefreshTime; + +@property (nonatomic, strong) RVRApp *arvApp; + +- (instancetype)initWithRVRApp:(RVRApp *)arvApp; + +@end + + +@interface TRVPlugin : NSObject + +@property (nonatomic, strong) NSString *appId; +@property (nonatomic, strong) NSString *deployVersion; // +@property (nonatomic, strong) NSString *developVersion; // +@property (nonatomic, assign) double lastUseTime; +@property (nonatomic, assign) double lastRefreshTime; + +@property (nonatomic, strong) RVRApp *arvApp; + +- (instancetype)initWithRVRApp:(RVRApp *)arvApp; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAppContainer.framework/Headers/TRVAppContainer+domainPermissionManager.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAppContainer.framework/Headers/TRVAppContainer+domainPermissionManager.h new file mode 100644 index 0000000..be78c99 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAppContainer.framework/Headers/TRVAppContainer+domainPermissionManager.h @@ -0,0 +1,21 @@ +// +// TRVAppContainer+domainPermissionManager.h +// AppContainer +// +// Created by 岚遥 on 2020/2/17. +// Copyright © 2020 Taobao. All rights reserved. +// + + +#import "TRVAppContainer.h" +#import "TRVCustomizeDomainPermissionManager.h" + +NS_ASSUME_NONNULL_BEGIN + +@interface TRVAppContainer (domainPermissionManager) + +@property (nonatomic, strong) TRVCustomizeDomainPermissionManager *domainPermissionManager; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAppContainer.framework/Headers/TRVAppContainer.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAppContainer.framework/Headers/TRVAppContainer.h new file mode 100644 index 0000000..1be2f0a --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAppContainer.framework/Headers/TRVAppContainer.h @@ -0,0 +1,87 @@ +// +// TRVAppContainer.h +// Triver +// +// Created by zhongweitao on 2019/4/8. +// + +#import +#import "TRVAppRootViewController.h" +#import "RVRAppEnterInfo+TRVExtension.h" +#import +#import +#import "TRVAppPageViewController.h" + +#define kAppContainerExpandoKey @"kAppContainerExpandoKey" +#define TRVAppLoadingTypeKey @"trvLoadingType" + +typedef void(^TRVTargetAppComplete)(NSString *status); + +typedef void(^TRVOpenEmbedAppCompletion)(TRVAppPageViewController *appPageViewController, NSError *error); + +@interface TRVAppContainer : NSObject + +/// @brief 小程序ID +@property (nonatomic, strong, readonly) NSString *appId; + +/// @brief 小程序程序码信息 +@property (nonatomic, strong) RVRAppEnterInfo *appEnterInfo; + +/// @brief app +@property (nonatomic, strong, readonly) RVRApp *arvApp; + +/// @brief 第一个页面VC +@property (nonatomic, strong, readwrite) TRVAppPageViewController *firstPageVC; + +/// @brief 是否打开直投的二级页 +@property (nonatomic, assign) BOOL showIndexPage; + +@property (nonatomic, strong, readwrite) NSDictionary *extraParams; + +@property (nonatomic, strong) NSDictionary *appResumeData; + +@property (nonatomic, assign) TRVAppOpenType appOpenType; +@property (nonatomic, assign) BOOL embedAppPaused; + +/// @brief 小程序最近一次访问时间 +@property (nonatomic, assign) NSTimeInterval lastVisitTime; +@property (nonatomic, assign) BOOL isOpenByAlive; + +/// @brief 容器启动时间戳, ms +@property (nonatomic, assign) NSTimeInterval containerStartTimestamp; + +#pragma mark - navigateToMiniProgram +@property (nonatomic, weak) TRVAppContainer *navigateTargetContainer; +@property (nonatomic, copy) TRVTargetAppComplete targetAppComplete; + + +/// @brief 用TRVAppEnterInfo初始化 +- (instancetype)initWithAppEnterInfo:(RVRAppEnterInfo *)appEnterInfo extraParams:(NSDictionary *)extraParams; +- (instancetype)initWithEmbedAppEnterInfo:(RVRAppEnterInfo *)appEnterInfo; + +/// @brief 获取小程序根ViewController +- (TRVAppRootViewController *)getAppRootViewController; + +- (void)startApp; + +- (void)closeApp; +- (void)closeApp:(void (^)(void))completion; + +- (void)backToAppFirstPage:(BOOL)reLaunch; + +- (void)updateAppExtraData:(NSDictionary *)params; + +/// @brief 清理小程序内存 +- (void)cleanUpForMemory; + +/// @brief 打开小程序首页 +- (void)loadAppFirstPage; + +/// @brief 加载完成后隐藏Loading +- (void)hideAppLoading; + +#pragma mark - embed app + +- (void)startEmbedApp:(TRVOpenEmbedAppCompletion)completion; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAppContainer.framework/Headers/TRVAppContainerDowngradeProtocol.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAppContainer.framework/Headers/TRVAppContainerDowngradeProtocol.h new file mode 100644 index 0000000..c906253 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAppContainer.framework/Headers/TRVAppContainerDowngradeProtocol.h @@ -0,0 +1,24 @@ +// +// TRVAppContainerDowngradeProtocol.h +// AppContainer +// +// Created by xuyouyang on 2020/2/17. +// Copyright © 2020 Taobao. All rights reserved. +// + +#import +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +@protocol TRVAppContainerDowngradeProtocol + +/** + 小程序降级 URL 配置 + */ +- (NSString *)downgradeURLWithAppContainer:(TRVAppContainer *)appContainer; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAppContainer.framework/Headers/TRVAppInfoCache.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAppContainer.framework/Headers/TRVAppInfoCache.h new file mode 100644 index 0000000..a39dfae --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAppContainer.framework/Headers/TRVAppInfoCache.h @@ -0,0 +1,60 @@ +// +// TBARVAppInfoCache.h +// AriverDemo +// +// Created by zhongweitao on 2019/3/27. +// Copyright © 2019 alipay.com. All rights reserved. +// + +#import +#import "TRVApp.h" + +@interface TRVAppInfoCache : NSObject + +@property (nonatomic, assign) NSUInteger maxMemoryCountLimit; +@property (nonatomic, assign) NSUInteger maxMemoryTotalCostLimit; + ++ (TRVAppInfoCache *)sharedInstance; + +#pragma mark - 小程序 +/// @brief 批量添加和删除 TRVApp +- (void)addApps:(NSArray *)apps; +- (void)removeApps:(NSArray *)apps; +- (void)removeAppIds:(NSArray *)appIds; + +/// @brief 添加和删除 RVRApp +- (void)addApp:(TRVApp *)app; +- (void)removeApp:(TRVApp *)app; + +/// @brief 根据appId查询 RVRApp +- (TRVApp *)getAppByAppId:(NSString *)appId version:(NSString *)version; + +/// @brief app数量 +- (NSUInteger)appCount; + +/// @brief 更新最后使用的时间戳 +- (void)updateLastUseTimeForAppId:(NSString *)appId timestamp:(double)timestamp; + +/// @brief 缓存清理 +- (void)clearAppInfoByMinTimestamp:(double)minTimestamp specialIds:(NSArray *)specialIds; + +/// @brief 清理所有缓存 +- (void)clearAllAppInfoExcept:(NSArray *)specialIds; + +#pragma mark - 插件 +/// @brief 批量添加和删除 TRVApp +- (void)addPlugins:(NSArray *)plugins; + +/// @brief 根据appId查询 RVRApp +- (TRVPlugin *)getPluginByPluginId:(NSString *)pluginId version:(NSString *)version; + +/// @brief 清理过期插件 +- (void)clearPluginByMinTimestamp:(double)minTimestamp; + +/// @brief 清理所有插件缓存 +- (void)clearAllPluginInfo; + +/// @brief 判断是否有插件缓存 +- (BOOL)existCache4PluginId:(NSString *)pluginId; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAppContainer.framework/Headers/TRVAppInfoCacheDelegate.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAppContainer.framework/Headers/TRVAppInfoCacheDelegate.h new file mode 100644 index 0000000..2939466 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAppContainer.framework/Headers/TRVAppInfoCacheDelegate.h @@ -0,0 +1,13 @@ +// +// TRVAppInfoDelegate.h +// Triver +// +// Created by zhongweitao on 2019/4/2. +// + +#import +#import + +@interface TRVAppInfoCacheDelegate : NSObject + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAppContainer.framework/Headers/TRVAppInfoConfigManager.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAppContainer.framework/Headers/TRVAppInfoConfigManager.h new file mode 100644 index 0000000..cb1a971 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAppContainer.framework/Headers/TRVAppInfoConfigManager.h @@ -0,0 +1,44 @@ +//// +//// TBARVAppInfoConfigManager.h +//// AriverDemo +//// +//// Created by zhongweitao on 2019/3/27. +//// Copyright © 2019 alipay.com. All rights reserved. +//// +// +//#import +// +//static NSString *const kTopAppConfigStrategySyncLoad = @"syncLoad"; +//static NSString *const kTopAppConfigStrategyAsyncLoad = @"asyncLoad"; +// +//@interface TRVAppInfoConfigItem : NSObject +// +//@property (nonatomic, strong) NSString *appId; +//@property (nonatomic, assign) NSTimeInterval timestamp; +//@property (nonatomic, strong) NSString *strategy; // @"syncLoad" / @"asyncLoad" +// +//@property (nonatomic, assign) BOOL expired; +// +//@end +// +//@interface TRVAppInfoConfigManager : NSObject +// +//+ (TRVAppInfoConfigManager *)sharedInstance; +// +//- (void)registerConfigUpdateListener; +// +//- (NSArray *)expiredConfigAppIds; +// +//- (NSArray *)allConfigAppIds; +// +///// @brief 根据appId获取配置项,没有返回空 +//- (TRVAppInfoConfigItem *)configItemForAppId:(NSString *)appId; +// +///// @brief 重置对应的appId配置为不过期,内部会判断appId是否是top app +//- (void)resetExpiredForAppId:(NSString *)appId; +// +///// @brief 批量重置对应的appId配置为不过期,内部会判断appId是否是top app +//- (void)resetExpiredForAppIds:(NSArray *)appIds; +// +//@end +// diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAppContainer.framework/Headers/TRVAppInfoManager.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAppContainer.framework/Headers/TRVAppInfoManager.h new file mode 100644 index 0000000..f201ffa --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAppContainer.framework/Headers/TRVAppInfoManager.h @@ -0,0 +1,106 @@ +// +// TBARVAppInfoManager.h +// AriverDemo +// +// Created by zhongweitao on 2019/3/27. +// Copyright © 2019 alipay.com. All rights reserved. +// + +#import +#import + +typedef NS_ENUM(NSInteger, TRVCacheExpiredType) { + TRVCacheExpiredTypeNoCache = 0, //无缓存 + TRVCacheExpiredTypeNone = 1, //缓存有效 + TRVCacheExpiredTypeAsync = 2, //需要异步更新 + TRVCacheExpiredTypeSync = 3, //需要同步更新 +}; + +typedef void(^TRVAppInfoCompletion)(NSDictionary *dataDic, NSError *error); + + +@interface TRVAppInfoManager : NSObject + +/// @brief 采用内置AppX后忽略缓存有效期,标志需要异步更新 +@property (nonatomic,assign) BOOL needUpdateAppx; + ++ (TRVAppInfoManager *)sharedInstance; + +#pragma mark - Request + +/// @brief 批量请求AppInfo +- (void)requestAppInfoForMainApp:(NSDictionary *)mainAppDic + mainAppParams:(NSDictionary *)params + appsDic:(NSDictionary *)appsDic + completion:(TRVAppInfoCompletion)completion; + +/// @brief 批量请求动态插件 +- (void)requestPlugins:(NSDictionary *)plugins + pluginParams:(NSDictionary *)params + completion:(TRVAppInfoCompletion)completion; + +/// @brief 批量请求TOP缓存失效应用 +- (void)updateTopExpiredAppInfo; + +#pragma mark - Cache + +/// @brief 批量添加和删除 RVRApp +- (void)addApps:(NSArray *)apps; +- (void)removeApps:(NSArray *)apps; +- (void)removeAppIds:(NSArray *)appIds; + +/// @brief 删除指定appIds的appInfo +- (void)removeAppInfo4AppIds:(NSArray *)appIds; + +/// @brief 添加和删除 RVRApp +- (void)addApp:(RVRApp *)app; +- (void)removeApp:(RVRApp *)app; + +/// @brief 清理所有appinfo缓存 +- (void)clearAllAppInfoCache; + +/// @brief 根据appId查询 RVRApp +- (RVRApp *)getAppByAppId:(NSString *)appId version:(NSString *)version; + +/// @brief 缓存清理 +- (void)clearOutOfDateCacheData; + +/// @brief app数量 +- (NSUInteger)appCount; + +/// @brief 检查appId对应的AppInfo是否需要异步更新 +- (void)checkAsyncUpdateAppInfoForAppId:(NSString *)appId version:(NSString *)version params:(NSDictionary *)params; + +/// @brief 检查appId对应的AppInfo缓存状态 +- (TRVCacheExpiredType)checkSyncUpdateAppInfoForAppId:(NSString *)appId version:(NSString *)version; + +/// @brief 异步更新appinfo和包 +- (void)asyncUpdateAppForAppId:(NSString *)appId params:(NSDictionary *)params; + +/// @brief 获取预置的appx的appinfo +- (RVRApp *)getPresetAppx; + +/// @brief 预加载指定appid对应的appinfo和包数据 +- (void)preLoadResourceForAppIds:(NSArray *)appIds; + +#pragma mark - 插件 +/// @brief 根据pluginId查询 RVRApp +- (RVRApp *)getPluginByPluginId:(NSString *)pluginId version:(NSString *)version; + +- (RVRApp *)getLocalPluginByPluginId:(NSString *)pluginId version:(NSString *)version; + +/// @brief 批量添加插件 +- (void)addPlugins:(NSArray *)apps; + +/// @brief 根据pluginId 查询存在订阅关系的插件RVRApp +- (RVRApp *)getPluginByPluginId:(NSString *)pluginId version:(NSString *)version mainAppId:(NSString *)mainAppId; + +/// @brief 更新插件的订阅关系 +- (void)updateRelationshipWithPluginId:(NSString *)pluginId mainAppId:(NSString *)mainAppId isExist:(BOOL)exist; + +#pragma mark - 百川特供 + +/// @brief 根据pluginId 查询存在订阅关系的插件RVRApp 会判断缓存是否有效 +- (RVRApp *)bcGetPluginByPluginId:(NSString *)pluginId version:(NSString *)version mainAppId:(NSString *)mainAppId; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAppContainer.framework/Headers/TRVAppInfoRequestDelegate.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAppContainer.framework/Headers/TRVAppInfoRequestDelegate.h new file mode 100644 index 0000000..6af3466 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAppContainer.framework/Headers/TRVAppInfoRequestDelegate.h @@ -0,0 +1,13 @@ +// +// TRVAppInfoRequestDelegate.h +// Triver +// +// Created by zhongweitao on 2019/4/2. +// + +#import +#import + +@interface TRVAppInfoRequestDelegate : NSObject + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAppContainer.framework/Headers/TRVAppInfoStorage.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAppContainer.framework/Headers/TRVAppInfoStorage.h new file mode 100644 index 0000000..800383d --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAppContainer.framework/Headers/TRVAppInfoStorage.h @@ -0,0 +1,53 @@ +// +// TRVAppInfoStorage.h +// Triver +// +// Created by zhongweitao on 2019/4/1. +// + +#import +#import "TRVApp.h" + +@interface TRVAppInfoStorage : NSObject + +#pragma mark - 小程序 +/// @brief 批量添加和删除 TRVApp +- (void)saveApps:(NSArray *)apps; +- (void)removeApps:(NSArray *)apps; +- (void)removeAppIds:(NSArray *)appIds; + +/// @brief 添加和删除 RVRApp +- (void)saveApp:(TRVApp *)trvApp; +- (void)removeApp:(TRVApp *)trvApp; + +/// @brief 根据appId查询 RVRApp +- (TRVApp *)getAppByAppId:(NSString *)appId version:(NSString *)version; + +/// @brief app数量 +- (NSUInteger)appCount; + +/// @brief 更新 +- (void)updateLastUseTimeForAppId:(NSString *)appId timestamp:(double)timestamp; + +/// @brief 批量清理过期数据 +- (void)clearAppInfoByMinTimestamp:(double)minTimestamp specialIds:(NSArray *)specialIds; + +/// @brief 清理所有缓存数据 +- (void)clearAllAppInfoExcept:(NSArray *)specialIds; + +#pragma mark - 插件 +/// @brief 批量添加和删除 TRVPlugin +- (void)savePlugins:(NSArray *)plugins; + +/// @brief 根据appId查询 TRVPlugin +- (TRVPlugin *)getPluginByPluginId:(NSString *)pluginId version:(NSString *)version; + +/// @brief 清理过期插件 +- (void)clearPluginByMinTimestamp:(double)minTimestamp; + +/// @brief 清理所有缓存数据 +- (void)clearAllPluginInfo; + +@end + + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAppContainer.framework/Headers/TRVAppKeepAliveManager.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAppContainer.framework/Headers/TRVAppKeepAliveManager.h new file mode 100644 index 0000000..07b9b8a --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAppContainer.framework/Headers/TRVAppKeepAliveManager.h @@ -0,0 +1,32 @@ +// +// TRVAppKeepAliveManager.h +// Triver +// +// Created by zhongweitao on 2019/7/3. +// + +#import +#import "TRVAppContainer.h" + +@interface TRVAppKeepAliveManager : NSObject + ++ (TRVAppKeepAliveManager *)sharedInstance; + +- (TRVAppContainer *)getAppWithAppId:(NSString *)appId; + +/// @brief 删除单个保活实例 +- (void)removeAppWithAppId:(NSString *)appId; + +/// @brief 是否开启保活 +- (BOOL)enableAppKeepAlive; + +/// @brief 添加保活App +- (void)addAliveApp:(TRVAppContainer *)appContainer; + +/// @brief 删除所有保活App +- (void)clearAllAliveApps; + +/// @brief 获取所有保活appIds +- (NSArray *)keepAliveAppIds; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAppContainer.framework/Headers/TRVAppManager.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAppContainer.framework/Headers/TRVAppManager.h new file mode 100644 index 0000000..e1b6a00 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAppContainer.framework/Headers/TRVAppManager.h @@ -0,0 +1,72 @@ +// +// TRVAppManager.h +// Triver +// +// Created by zhongweitao on 2019/4/2. +// + +#import +#import "TRVAppContainer.h" + +@interface TRVAppManager : NSObject + ++ (TRVAppManager *)sharedInstance; + +/** + 小程序SDK初始化 + */ +- (void)setup; + +/// @brief 所有能力注册后的初始化,eg:Orange配置 +- (void)setupAfterRegisterHandler; + +/// @brief 清理小程序缓存(客户端清理缓存调用) +- (void)clearMiniAppCache; + +/** + 打开小程序 + + @param urlStr 小程序URL + @return 小程序根ViewController + */ +- (UIViewController *)openAppWithUrl:(NSString *)urlStr; + + +/** + 打开小程序 + + @param urlStr 小程序URL + @param error 创建根ViewController发生的Error,Code码参考 “打开小程序ErrorCode” + @return 小程序根ViewController + */ +- (UIViewController *)openAppWithUrl:(NSString *)urlStr error:(NSError **)error; +- (UIViewController *)openAppWithUrl:(NSString *)urlStr extraParams:(NSDictionary *)extraParams error:(NSError **)error; + +#pragma mark - embed +/** + 通过直接获取小程序页面的方式打开小程序 + + @param urlStr 小程序URL + @param completion 返回小程序页面ViewController + */ +- (void)openEmbedAppWithUrl:(NSString *)urlStr completion:(TRVOpenEmbedAppCompletion)completion; + +/// @brief app 不在最前 +- (void)appPauseForPage:(TRVAppPageViewController *)appPage; + +/// @brief app 恢复到最前 +- (void)appResumeForPage:(TRVAppPageViewController *)appPage; + +#pragma mark - HideLoading +- (TRVAppContainer *)appContainerForHideLoading:(NSString *)url error:(NSError **)error; + +#pragma mark - app container + +/// @brief 小程序实例是否被打开 +- (BOOL)openedForAppContainer:(TRVAppContainer *)appContainer; + +/// @brief 关闭小程序 +- (void)closeAppContainer:(TRVAppContainer *)appContainer; +- (void)closeAppContainer:(TRVAppContainer *)appContainer completion:(void (^)(void))completion; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAppContainer.framework/Headers/TRVAppNavigationViewController.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAppContainer.framework/Headers/TRVAppNavigationViewController.h new file mode 100644 index 0000000..eaf88bc --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAppContainer.framework/Headers/TRVAppNavigationViewController.h @@ -0,0 +1,24 @@ +// +// TRVAppNavigationViewController.h +// Triver +// +// Created by zhongweitao on 2019/4/8. +// + +#import +#import + +@class TRVAppContainer; +@interface TRVAppNavigationViewController : UINavigationController + + +@property (nonatomic, weak) TRVAppContainer *appContainer; + +- (instancetype)initWithRootViewController:(UIViewController *)rootViewController appContainer:(TRVAppContainer *)appContainer; + +/** + 设置自定义事件手势是否生效 + */ +- (void)setCustomPanGestureEnable:(BOOL)enable; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAppContainer.framework/Headers/TRVAppPageViewController.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAppContainer.framework/Headers/TRVAppPageViewController.h new file mode 100644 index 0000000..17d9020 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAppContainer.framework/Headers/TRVAppPageViewController.h @@ -0,0 +1,81 @@ +// +// TRVAppPageViewController.h +// Triver +// +// Created by zhongweitao on 2019/4/8. +// + +#import +#import "TRVBodyContainerView.h" +#import +#import +#import +#import + +#define kTRVAppPause @"appPause" +#define kTRVAppResume @"appResume" + +typedef NS_ENUM(NSUInteger, TRVAppOpenType) { + TRVAppOpenTypeNormal = 0, // 用小程序自身导航栈打开 + TRVAppOpenTypeEmbed = 1 // 用外部导航栈打开 +}; + + +@interface TRVAppPageViewController : TRVBaseViewController + +@property (nonatomic, assign) BOOL forbidRvkLifeCycle; +@property (nonatomic, assign) BOOL showIndexPage;//是否是直接打开的二级页 +@property (nonatomic, assign) BOOL pullDownRefresh; +@property (nonatomic, assign) double scrollDistance; +@property (nonatomic, copy) NSString *currentTransparentTitle; + +@property (nonatomic, assign) UIEdgeInsets edgeInsets; + +@property (nonatomic, assign) TRVAppOpenType appOpenType; +@property (nonatomic, assign) BOOL isSubViewMode; +@property (nonatomic, assign) BOOL embedInWeex; +@property (nonatomic, strong) TRVBodyContainerView *bodyContainerView; +@property (nonatomic, weak) id delegate; +@property (nonatomic, assign) BOOL disableSwipeBack;//是否禁止当前页面的右滑返回 + +/// @brief 启动创建页面后更新showIndexPage +- (BOOL)updateShowIndexPage; + +/// @brief 构建导航栏信息 +- (void)conctructTitleViewInfo; + +/// @brief 构建页面UI配置信息 +- (TRVPageUIInfoModel *)constructPageUIInfo; + +/// @brief 页面配置 +- (NSDictionary *)currentPageConfig; + +/// @brief 构建分享信息 +- (void)constructShareInfo; + +/// @brief 打开授权设置页 +- (void)openAuthSettingForApp:(RVRApp *)app; + +/// @brief 添加导航栏 +- (void)setupHeaderView; + +/// @brief 设置导航栏能力 +- (void)setupHeaderViewAction; + +- (void)adjustWebviewContentInsets; + +/// @brief 设置页面是否能够下拉 +- (void)setPageCanPullDown:(BOOL)canPullDown; + +/// @brief 当前的小程序信息 +- (RVRApp *)currentApp; + +/// @brief 关闭页面,内部会处理关闭小程序情况 +- (void)closeCurrentAppPage:(NSString *)appId; + +/// @brief 打开URL +- (void)openUrl:(NSString *)urlStr params:(NSDictionary *)params; +- (void)addMixComponents:(id)component; +- (void)removeMixComponents:(id)component; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAppContainer.framework/Headers/TRVAppRootViewController.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAppContainer.framework/Headers/TRVAppRootViewController.h new file mode 100644 index 0000000..ee7b9d6 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAppContainer.framework/Headers/TRVAppRootViewController.h @@ -0,0 +1,62 @@ +// +// TRVAppRootViewController.h +// Triver +// +// Created by zhongweitao on 2019/4/8. +// + +#import +#import "TRVAppNavigationViewController.h" +#import +#import "RVRAppEnterInfo+TRVExtension.h" +#import "TRVAppPageViewController.h" +#import + +@class TRVAppContainer; +typedef NS_ENUM(NSInteger, TRVOuterNavBarHiddenStatus) { + TRVOuterNavBarHiddenStatusShow, + TRVOuterNavBarHiddenStatusHidden +}; + +typedef NS_ENUM(NSUInteger, TRVAppOpenAnimate) { + TRVAppOpenAnimatePush = 0, + TRVAppOpenAnimatePresent = 1 +}; + +@interface TRVAppRootViewController : UIViewController + +@property (nonatomic, strong) UIView *loadingView; +@property (nonatomic, strong) UIView *errorView; + +@property (nonatomic, strong) TRVAppNavigationViewController *appNavigationController; +@property (nonatomic, assign) TRVOuterNavBarHiddenStatus outerNavBarStatus; +@property (nonatomic, assign) TRVAppOpenAnimate openAnimate; +@property (nonatomic, assign, readonly) BOOL oriOuterNavPanGestureEnable;//存储外部导航返回手势原始状态 +@property (nonatomic, assign) BOOL enableOuterNavPanGesture;//设置外部导航返回手势是否可用 + +@property (nonatomic, weak, readonly) TRVAppContainer *appContainer; +@property (nonatomic, assign) BOOL isInPageStack; // 用于表示当前小程序页面是否在页面栈里。 + +- (instancetype)initWithAppContainer:(TRVAppContainer *)appContainer; +- (instancetype)initWithEmbedAppContainer:(TRVAppContainer *)appContainer; + +- (void)showFirstViewController:(id)firstPage; +- (void)setViewControllers:(NSArray> *)vcs animated:(BOOL)animated; + +- (TRVBaseViewController *)getAppPageViewController; + +- (void)appPause; + +// @brief +@property (nonatomic, assign) BOOL isLoadFailed; +@property (nonatomic, assign) BOOL isAppReady; + +- (void)showRelaunchLoadingView; +- (void)showLoadingView; +- (void)hideLoadingView; +- (void)updateLoadingViewForAppLogoUrl:(NSString *)appLogoUrl appName:(NSString *)appName; + +- (void)showLoadingErrorViewWithError:(NSError *)error; + +@end + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAppContainer.framework/Headers/TRVAppTempViewController.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAppContainer.framework/Headers/TRVAppTempViewController.h new file mode 100644 index 0000000..ef529ad --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAppContainer.framework/Headers/TRVAppTempViewController.h @@ -0,0 +1,13 @@ +// +// TRVAppTempViewController.h +// Triver +// +// Created by zhongweitao on 2019/4/8. +// + +#import +#import + +@interface TRVAppTempViewController : TRVBaseViewController + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAppContainer.framework/Headers/TRVBodyContainerView.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAppContainer.framework/Headers/TRVBodyContainerView.h new file mode 100644 index 0000000..ca53d6b --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAppContainer.framework/Headers/TRVBodyContainerView.h @@ -0,0 +1,48 @@ +// +// TRVBodyContainerView.h +// AppContainer +// +// Created by AllenHan on 2019/7/10. +// Copyright © 2019年 Taobao. All rights reserved. +// + +#import +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +@class TRVAppPageViewController; +@interface TRVBodyContainerView : UIView + +@property (nonatomic, strong) WMLAppPageContainerScrollView *containerScrollView; +@property (nonatomic, strong) UIView *contentView; +@property (nonatomic, weak) TRVAppPageViewController *pageVC; + + +- (instancetype)initWithFrame:(CGRect)frame pageVC:(TRVAppPageViewController *)pageVC; + +- (void)addPageView:(UIView *)view; +- (void)updateRenderViewFrame:(CGRect)frame; + +#pragma mark - 下拉刷新组件 +// 是否能够下拉刷新 +@property (nonatomic, assign) BOOL canPullRefresh; +// 当前下拉状态 +@property (nonatomic, assign, readonly) TRVPullDownState pullDownState; +// 设置Loading样式 +- (void)setupLoadingColorStyle:(NSString *)style; +// 触发页面的Loading动画 +- (void)startPullDownRefresh; +// 停止页面的Loading动画 +- (void)stopPullDownRefresh; +// 更新下拉状态 +- (void)changePullDownRefreshState:(TRVPullDownState)state; +// 更新下拉进度 +- (void)updatePullDownProcess:(CGFloat)process; +// 获取LoadingView的高度 +- (CGFloat)loadingViewHeight; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAppContainer.framework/Headers/TRVBridgeExtensionNavigationBar.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAppContainer.framework/Headers/TRVBridgeExtensionNavigationBar.h new file mode 100644 index 0000000..1a4d3c7 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAppContainer.framework/Headers/TRVBridgeExtensionNavigationBar.h @@ -0,0 +1,11 @@ +// +// TRVBridgeExtensionNavigationBar.h +// Triver +// +// Created by zhongweitao on 2019/4/11. +// + +#import +#import + +RVK_DEFINE_BRIDGEEXTENSION(TRVBridgeExtensionNavigationBar) diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAppContainer.framework/Headers/TRVConstants.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAppContainer.framework/Headers/TRVConstants.h new file mode 100644 index 0000000..e806f8a --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAppContainer.framework/Headers/TRVConstants.h @@ -0,0 +1,60 @@ +// +// TRVConstants.h +// Triver +// +// Created by zhongweitao on 2019/4/8. +// + +#import + + +#pragma mark - Error Domain + +#define TRV_ERROR_DOMAIN_DB @"TRVErrorDomainDB" +#define TRV_ERROR_DOMAIN_APPINFO @"TRVErrorDomainAppInfo" +#define TRV_ERROR_DOMAIN_UI @"TRVErrorDomainUI" +#define TRV_ERROR_DOMAIN_API @"TRVErrorDomainAPI" + +#pragma mark - Error Code + +#define TRV_ERROR_TITLE @"服务竟然出错了" +#define TRV_ERROR_SUBTITLE @"一定是哪里出了问题,请稍后再试" + +#pragma mark - 启动错误码 + +// AppInfo 请求出错 +#define TRV_APPINFO_MTOP_ERROR @"TRV_APPINFO_MTOP_ERROR" + +#pragma mark - API + +#define TRV_API_ERROR_NOT_SUPPORTED @"当前容器不支持该方法调用" +#define TRV_API_ERROR_INVALID_ARGS @"参数错误" + +//#define TVR_APPX_APPID @"66666692" + +#define TRVOpenFromAppIdKey @"triverOpenFromAppId" +#define TRVOpenAppExtraDataKey @"triverOpenAppExtraData" +#define TRVOpenHideLoadingKey @"triverOpenHideLoading" +#define TRVTransitionAnimationKey @"triverTransitionAnimation" +#define TRVTransitionTypeKey @"triverTransitionType" + +// 业务bizType +#define TRVShopSubBizType @"14" + +// 小程序场景值相关定义 +#define TRVChInfoBrandZonePublic @"brandzone_public" // 店铺二路公域 +#define TRVChInfoBrandZonePrivate @"brandzone_private" // 店铺二楼私域 + +// appInfo拓展点Key +#define TRVAILoadingConfigKey @"appLoadingConfig" +#define TRVAINaviConfigKey @"appNaviConfig" + +// 淘侧小程序URL启动参数(EnterInfo)Key定义 +#define TRVEIBrandZoneQueryKey @"query" +#define TRVEIBrandZoneSourceKey @"_shopLoftSource_" //店铺二楼投放来源 +#define TRVEIBrandZoneShopIdKey @"shopId" //店铺二楼shopId +#define TRVEIBrandZoneSellerIdKey @"sellerId" //店铺二楼sellerId + +@interface TRVConstants : NSObject + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAppContainer.framework/Headers/TRVCustomizeDomainPermissionManager.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAppContainer.framework/Headers/TRVCustomizeDomainPermissionManager.h new file mode 100644 index 0000000..d0b2b5c --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAppContainer.framework/Headers/TRVCustomizeDomainPermissionManager.h @@ -0,0 +1,59 @@ +// +// TRVCustomizeDomainPermissionManager.h +// AppContainer +// +// Created by 岚遥 on 2019/12/4. +// Copyright © 2019 Taobao. All rights reserved. +// + +#import +#import + +extern NSString * _Nonnull const TRVCustomizeDomainPermissionPluginsAll; + +typedef NS_ENUM(NSUInteger, TRVCustomizeDomainType) { + TRVCustomizeDomainTypeA, // A类域名白名单(官方域名白名单) + TRVCustomizeDomainTypeB, // B类域名白名单(自定义白名单) + TRVCustomizeDomainTypeC // 多媒体域名白名单 A+B +}; + +NS_ASSUME_NONNULL_BEGIN + +// 通用自定义白名单鉴权 +@interface TRVCustomizeDomainPermissionManager : NSObject + +/** + 根据 app 实例返回当前域名管控实例 + @param app 当前小程序宿主 app 对象 + */ +- (instancetype)initWithApp:(RVRApp *)app; + +/** + @param pluginId 设置当前调用的插件id + */ +- (void)setCurrentPluginId:(NSString *)pluginId; + +/** + 返回域名白名单 + */ +- (NSSet *)domainWhiteListWithType:(TRVCustomizeDomainType)type; + +/** + 判断域名是否在白名单中 + */ +- (BOOL)domainIsInWhiteListWithUrlString:(NSString *)urlString + domainType:(TRVCustomizeDomainType)type; + +/** + 返回鉴权后的多媒体src地址 + */ +- (NSString *)permissionDomainMediaSourceStringFromOriginSource:(NSString *)srcUrl; + +/** + 清理域名白名单 + */ +- (void)clearWhiteList; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAppContainer.framework/Headers/TRVDBStorage.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAppContainer.framework/Headers/TRVDBStorage.h new file mode 100644 index 0000000..9d79454 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAppContainer.framework/Headers/TRVDBStorage.h @@ -0,0 +1,24 @@ +// +// TRVDBStorage.h +// Triver +// +// Created by zhongweitao on 2019/4/1. +// + +#import +#import +#import + +@interface TRVDBStorage : NSObject + +/// @brief 数据库对应的DBQueue动初始化 +@property (nonatomic, strong ,readonly) FMDatabaseQueue *dbQueue; + +/// @brief 自定义DB文件路径 +@property (nonatomic, strong) NSString *dbDirectory; + ++ (TRVDBStorage *)sharedInstance; + +- (void)setup; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAppContainer.framework/Headers/TRVUtil.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAppContainer.framework/Headers/TRVUtil.h new file mode 100644 index 0000000..b65e52d --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAppContainer.framework/Headers/TRVUtil.h @@ -0,0 +1,47 @@ +// +// TBARVUtils.h +// AriverDemo +// +// Created by zhongweitao on 2019/3/27. +// Copyright © 2019 alipay.com. All rights reserved. +// + +#import +#import + +@interface TRVUtil : NSObject + +#pragma mark - JSON + ++ (NSString *)JSONString:(id)object; + +#pragma mark - Color + ++ (NSString *)hexStringFromColor:(UIColor *)color; + ++ (NSString *)hexStringFromHexNum:(NSInteger)hex; + ++ (NSString *)hexStringFromHexNumWithAlpha:(NSInteger)hex; + ++ (NSString *)convertRunSceneToAlipay:(NSString *)sourceScene; + ++ (NSString *)convertAlipayRunSceneToAppX:(NSString *)sourceScene; + +#pragma mark - APP ++ (NSString *)miniProgramUrlForAppId:(NSString *)appId page:(NSString *)page params:(NSDictionary *)params; ++ (NSString *)miniProgramUrlForAppId:(NSString *)appId page:(NSString *)page versionParams:(NSDictionary *)versionParams; + +#pragma mark - downgrade ++ (BOOL)downgradeWebGoBack; ++ (BOOL)forbidWebGoBackForAppId:(NSString *)appId; ++ (BOOL)closeDataPrefetch; ++ (BOOL)closeUpdatePresetAppx; +// 降级navigateToMiniProgram关闭目标App的框架loading ++ (BOOL)closeOpenAppWithHideLoading; + +/// @brief 关闭清理缓存 ++ (BOOL)closeClearCache; +/// @brief 关闭扫码清缓存 ++ (BOOL)closeScanClearCache; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAppContainer.framework/Headers/UIImage+TRVColor.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAppContainer.framework/Headers/UIImage+TRVColor.h new file mode 100644 index 0000000..75a925f --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAppContainer.framework/Headers/UIImage+TRVColor.h @@ -0,0 +1,24 @@ +// +// UIImage+TRVColor.h +// AppContainer +// +// Created by AllenHan on 2019/5/2. +// Copyright © 2019年 Taobao. All rights reserved. +// + +#import + +@interface UIImage (TRVColor) + +/** + 生成1*1像素的纯色图片 + */ ++ (UIImage *)trv_imageWithColor1x1:(UIColor *)color; + +/** + 生成指定尺寸的纯色图片 + */ ++ (UIImage *)trv_imageWithColor:(UIColor *)color size:(CGSize)size; + +@end + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAppContainer.framework/Headers/UIViewController+TRVNavigation.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAppContainer.framework/Headers/UIViewController+TRVNavigation.h new file mode 100644 index 0000000..df0bbc2 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAppContainer.framework/Headers/UIViewController+TRVNavigation.h @@ -0,0 +1,20 @@ +// +// TRVAppRootViewController+Outer.h +// Triver +// +// Created by zhongweitao on 2019/4/8. +// + +#import "TRVAppRootViewController.h" + +@interface UIViewController (TRVNavigation) + +- (UINavigationController *)trv_navigationController; + +- (UIView *)trv_getNavBar; + +- (void)trv_setNavBarHidden:(BOOL)hidden; + +- (BOOL)trv_isPresented; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAppContainer.framework/Info.plist b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAppContainer.framework/Info.plist new file mode 100644 index 0000000..5e68dcc Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAppContainer.framework/Info.plist differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAppContainer.framework/TriverAppContainer b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAppContainer.framework/TriverAppContainer new file mode 100644 index 0000000..3fa1711 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAppContainer.framework/TriverAppContainer differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAppContainer.framework/TriverResource.bundle/66666692_0.1.2007131114.11 b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAppContainer.framework/TriverResource.bundle/66666692_0.1.2007131114.11 new file mode 100644 index 0000000..59cc68e Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAppContainer.framework/TriverResource.bundle/66666692_0.1.2007131114.11 differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAppContainer.framework/TriverResource.bundle/TRVAppList.plist b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAppContainer.framework/TriverResource.bundle/TRVAppList.plist new file mode 100644 index 0000000..d67c7e6 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAppContainer.framework/TriverResource.bundle/TRVAppList.plist differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAppContainer.framework/triver_version.json b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAppContainer.framework/triver_version.json new file mode 100644 index 0000000..1ae04d7 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAppContainer.framework/triver_version.json @@ -0,0 +1 @@ +{"version":"1.0.8.0"} diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAppContainer.framework/trvContainer_triverApi.json b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAppContainer.framework/trvContainer_triverApi.json new file mode 100644 index 0000000..73412fb --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverAppContainer.framework/trvContainer_triverApi.json @@ -0,0 +1,41 @@ +{ + "version": "0.0.1", + "registerApiExtension": [ + {} + ], + "registerDsl": { + "scope": "tb", + "apis": [ + { + "apiName": "registerFavorEvent", + "dslApiName": "registerFavorEvent", + "type": "invoke" + }, + { + "apiName": "changeFavorStatus", + "dslApiName": "changeFavorStatus", + "type": "invoke" + }, + { + "apiName": "addMenu", + "dslApiName": "addMenu", + "type": "invoke" + }, + { + "apiName": "navigateToTTC", + "dslApiName": "navigateToTTC", + "type": "invoke" + }, + { + "apiName": "showGlobalMenu", + "dslApiName": "showGlobalMenu", + "type": "invoke" + }, + { + "apiName": "setActionSheet", + "dslApiName": "setActionSheet", + "type": "invoke" + } + ] + } +} diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/Headers/AliTRVASFontUtils.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/Headers/AliTRVASFontUtils.h new file mode 100644 index 0000000..ebd1b14 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/Headers/AliTRVASFontUtils.h @@ -0,0 +1,16 @@ +// +// FontUtils.h +// JDY +// +// Created by 连墨 on 16/7/25. +// Copyright © 2016年 Tmall.com. All rights reserved. +// + +#import +#import +@interface AliTRVASFontUtils : NSObject + +//确保这个返回值不会是空的 ++ (UIFont *)fontWithName:(NSString *)fontName size:(CGFloat)fontSize; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/Headers/AliTRVActionSheet.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/Headers/AliTRVActionSheet.h new file mode 100755 index 0000000..8503697 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/Headers/AliTRVActionSheet.h @@ -0,0 +1,85 @@ +// +// AliTRVActionSheet.h +// AliTRVActionSheet +// Created by 连墨 on 2018/4/11. +// Copyright © 2018年 连墨. All rights reserved. +// + + +#import +#import "AliTRVActionSheetCommon.h" +#import + +@class AliTRVActionSheet; +@protocol AliTRVActionSheetDelegate + +@optional +- (void)trv_willPresentActionSheet:(AliTRVActionSheet *_Nonnull)actionSheet; +- (void)trv_didPresentActionSheet:(AliTRVActionSheet *_Nonnull)actionSheet; +- (void)trv_actionSheet:(AliTRVActionSheet *_Nonnull)actionSheet willDismissWithButtonIndex:(NSInteger)buttonIndex; +- (void)trv_actionSheet:(AliTRVActionSheet *_Nonnull)actionSheet didDismissWithButtonIndex:(NSInteger)buttonIndex; +- (BOOL)trv_shouldAutoCloseInActionSheet:(AliTRVActionSheet *_Nonnull)actionSheet; +- (void)trv_actionSheet:(AliTRVActionSheet *_Nonnull)actionSheet clickedButtonAtIndexPath:(NSIndexPath *_Nonnull)indexPath; +- (void)trv_actionSheet:(AliTRVActionSheet *_Nonnull)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex; +@end + +@interface AliTRVActionSheet : UIView +//这个参数决定表单是否有位置改变动画(默认appearDirectly=NO,从底部滑出来),当appearDirectly=YES,省去位置改变动画 +@property(nonatomic, assign) BOOL appearDirectly; + +@property (nonatomic, strong, readonly) NSArray * _Nullable sections; + ++ (int)suggestedContentViewWidth:(UIView* _Nonnull)targetView withEdgeInset:(UIEdgeInsets)insets; + +- (instancetype _Nonnull )initWithTitle:(nullable NSString *)title delegate:(nullable id)delegate cancelButtonTitle:(nullable NSString *)cancelButtonTitle destructiveButtonTitle:(nullable NSString *)destructiveButtonTitle otherButtonTitles:(nullable NSString *)otherButtonTitles, ...; + +- (instancetype _Nonnull )initWithTitle:(nullable NSString *)title delegate:(nullable id)delegate cancelButtonTitle:(nullable NSString *)cancelButtonTitle destructiveButtonTitle:(nullable NSString *)destructiveButtonTitle otherButtonTitleList:(nullable NSArray *)buttonTitlesArray; + +- (nullable NSString *)buttonTitleAtIndex:(NSInteger)buttonIndex; + + +//以delegate的方式获知 button被点击的事件,以及表单生命周期的事件 +@property (nonatomic, weak) id _Nullable delegate; + +//以block回调的方式获知 按键 被点击的事件 +@property (nonatomic, copy) void (^ _Nullable buttonPressedBlock)(AliTRVActionSheet * _Nonnull actionSheet, NSIndexPath * _Nonnull indexPath); + +//用户点击在表单外时的回调,可以用来让表单消失 +@property (nonatomic, copy) void (^ _Nullable outsidePressBlock)(AliTRVActionSheet * _Nullable sheet); + + +//当前表单是否在屏幕上可见 +@property (nonatomic, assign, readonly, getter=isVisible) BOOL visible; + + +// 用来调整表单边距 +@property (nonatomic, assign) UIEdgeInsets insets; + +/** + @param sections 包含了所有要显示在表单上的sections,至少包含一个对象 + */ ++ (instancetype _Nonnull )actionSheetWithSections:(NSArray *_Nonnull)sections; + +/** + @param sections 包含了所有要显示在表单上的sections,至少包含一个对象 + */ +- (instancetype _Nonnull )initWithSections:(NSArray *_Nonnull)sections; + +- (void)showInView:(UIView *_Nonnull)view; +- (void)showInView:(UIView *_Nonnull)view animated:(BOOL)animated; + + +// 让表单消失 +- (void)dismissAnimated:(BOOL)animated withButtonIndex:(NSInteger)buttonIndex; +- (void)dismissAnimated:(BOOL)animated withButtonIndexPath:(NSIndexPath *_Nullable)indexPath; + +//和UIActionSheet保持一致 +// hides alert sheet or popup. use this method when you need to explicitly dismiss the alert. +// it does not need to be called if the user presses on a button +- (void)dismissWithClickedButtonIndex:(NSInteger)buttonIndex animated:(BOOL)animated; + +//浮层附加在contentView上的高度 ++(CGFloat)extraHeightPlus2ContentView; + +- (instancetype _Nonnull)initWithTitle:(nullable NSString *)title contentView:(UIView * _Nonnull)contentView delegate:(nullable id)delegate; +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/Headers/AliTRVActionSheetButton.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/Headers/AliTRVActionSheetButton.h new file mode 100644 index 0000000..ffcc0ec --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/Headers/AliTRVActionSheetButton.h @@ -0,0 +1,16 @@ +// +// WMLActionSheetButton.h +// JDYUIControls +// +// Created by 连墨 on 2018/4/11. +// Copyright © 2018年 连墨. All rights reserved. +// + +#import + +@interface AliTRVActionSheetButton : UIButton +@property (nonatomic, assign) NSUInteger rowIndexInSection; +@end + +@interface AliTRVActionSheetButtonIconTitle : AliTRVActionSheetButton +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/Headers/AliTRVActionSheetCommon.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/Headers/AliTRVActionSheetCommon.h new file mode 100644 index 0000000..189f48b --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/Headers/AliTRVActionSheetCommon.h @@ -0,0 +1,50 @@ +// +// WMLActionSheetCommon.h +// JDYUIControls +// +// Created by 连墨 on 2018/4/11. +// Copyright © 2018年 连墨. All rights reserved. +// + +#ifndef WMLActionSheetCommon_h +#define WMLActionSheetCommon_h + +#define WMLAS_HEXCOLOR(hexValue) [UIColor colorWithRed : ((CGFloat)((hexValue & 0xFF0000) >> 16)) / 255.0 green : ((CGFloat)((hexValue & 0xFF00) >> 8)) / 255.0 blue : ((CGFloat)(hexValue & 0xFF)) / 255.0 alpha : 1.0] + +#ifndef WMLAS_rgba +#define WMLAS_rgba(r, g, b, a) [UIColor colorWithRed:r/255.0f green:g/255.0f blue:b/255.0f alpha:a] +#endif + +#ifndef WMLAS_rgb +#define WMLAS_rgb(r, g, b) WMLAS_rgba(r, g, b, 1.0f) +#endif + +#ifndef WMLAS_iPad +#define WMLAS_iPad (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) +#endif + +#define IS_IPHONE_X() ([UIScreen mainScreen].bounds.size.height == 812 && [UIScreen mainScreen].bounds.size.width == 375) +#define StatusBarHeight() (IS_IPHONE_X()?44:20) +#define SafeAreaInsets() (IS_IPHONE_X()?UIEdgeInsetsMake(88, 0, 34, 0):UIEdgeInsetsZero) +#define WMLAS_kHostsCornerRadius 12.0f +#define WMLAS_kHostsCornerRadiusForContentView 12.0f +#define WMLAS_kSpacing 6.0f +#define WMLAS_kSpacingBetweenButtonsInSectionV 1.0f +#define WMLAS_kSpacingBetweenButtonsInSectionH 0.0f +#define WMLAS_kButtonHeight 53.0f +#define WMLAS_kDestructiveButtonHeight 45.0f +#define WMLAS_kTitleHeightForContentView 56.5f +#define WMLAS_kShadowRadius 0.0f +#define WMLAS_kShadowOpacity 0.2f +#define WMLAS_kFixedWidth 320.0f +#define WMLAS_kFixedWidthContinuous 300.0f +#define WMLAS_kButtonTitleLeftInset 62 +#define WMLAS_kButtonTitleSepLeftInset 62 +#define WMLAS_kContentViewTitleLeftInset 19 +#define WMLAS_kNormalSectionTitleLeftInset 19 +#define WMLAS_kButtonIconSideLen 28 +#define WMLAS_kButtonIconLeftPadding 17 +#define WMLAS_kConentEntryCellWidth 48 +#define WMLAS_kAnimationDurationForSectionCount(count) MAX(0.22f, MIN(count*0.12f, 0.45f)) + +#endif /* WMLActionSheetCommon_h */ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/Headers/AliTRVActionSheetHelper.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/Headers/AliTRVActionSheetHelper.h new file mode 100644 index 0000000..b3c74d7 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/Headers/AliTRVActionSheetHelper.h @@ -0,0 +1,113 @@ +// +// AliTRVActionSheetHelper.h +// JDYUIControls +// +// Created by 连墨 on 2018/4/19. +// Copyright © 2018年 连墨. All rights reserved. +// + +#import +#import +#import +#import + +#import "AliTRVActionSheet.h" + +#define kKeyMenuList @"menuList" +#define kKeyList @"list" + +typedef enum : NSUInteger { + AliTRVActionSheetItemTypeUnknown, + AliTRVActionSheetItemTypeFeedback, + AliTRVActionSheetItemTypeShare, + AliTRVActionSheetItemTypeAbout, + AliTRVActionSheetItemTypeBackToHome +} AliTRVActionSheetItemType; + +@protocol AliTRVActionSheetHelperDelegate + +@optional + +/// @brief 接入方通过实现该方法,来定制菜单按钮默认项是否添加 +- (BOOL)shouldAddDefaultMenuItemType:(AliTRVActionSheetItemType)type inViewController:(TRVBaseViewController *)vc; + +/** + 修改页面对应的菜单按钮的actionSheet的默认项(该方法在 + "-shouldAddDefaultMenuItemType:inViewController:"之后调用) + + @param menuItems 当前页面的默认菜单项 + @param vc 当前页面的container + @return 返回修改后的actionSheet展示项 + */ +- (NSArray *)menuItems:(NSArray *)menuItems inViewController:(TRVBaseViewController *)vc; + +@end + +@interface AliTRVActionSheetHelper : NSObject + +@property (nonatomic, weak) id delegate; + ++ (instancetype)sharedInstance; + ++ (void)showActionSheet:(NSDictionary*)dict inViewController:(TRVBaseViewController *)vc; ++ (void)showActionSheet:(NSDictionary*)dict inViewController:(TRVBaseViewController *)vc delegate:(id)delegate; + ++ (void)openUrl:(NSString *)urlStr + orFireEvent:(NSString *)eventName + inPage:(TRVBaseViewController *)page; + +/// @brief 打开舆情反馈小程序 ++ (void)openFeedbackApp:(TRVBaseViewController *)page; + ++ (NSDictionary *)addDefaultMenuItemsIntoMenuInfo:(NSDictionary *)menuInfo inViewController:(TRVBaseViewController *)vc appName:(NSString *)appName; ++ (NSDictionary *)addReturnToHomeMenuItem:(NSDictionary *)menuInfo inViewController:(TRVBaseViewController *)vc; + ++ (NSArray *)top4MenuItemsExceptBottomAboutFromMenuInfo:(NSDictionary *)menuInfo; ++ (NSDictionary *)removeMenuItemForAboutFromMenuInfo:(NSDictionary *)menuInfo; + ++ (NSDictionary *)defaultAuthSettingMenuItemsInfo; + + +/** + actionSheet中的返回item + + @return 返回item + */ ++ (NSDictionary *)backToHomeItem; + +/** + actionSheet中的反馈item + + @return 反馈item + */ +//+ (NSDictionary *)feedbackItem; + +/** + actionSheet中的分享item + + @return 分享item + */ +//+ (NSDictionary *)shareItem; + +/** + actionSheet中的关于item + + @return 关于item + */ ++ (NSDictionary *)aboutItemForAppName:(NSString *)appName; + +/** + actionSheet中的授权设置item + + @return 授权设置item + */ +//+ (NSDictionary *)authSettingItem; + +/** + 端容器默认设置项对应的URL + + @return 默认设置项URL数组 + */ ++ (NSArray *)defaultSettingItemUrls; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/Headers/AliTRVActionSheetSection.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/Headers/AliTRVActionSheetSection.h new file mode 100644 index 0000000..df20171 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/Headers/AliTRVActionSheetSection.h @@ -0,0 +1,83 @@ +// +// WMLActionSheetSection.h +// JDYUIControls +// +// Created by 连墨 on 2018/4/11. +// Copyright © 2018年 连墨. All rights reserved. +// + +#import +#import "AliTRVActionSheetCommon.h" +#import "AliTRVActionSheet.h" + +typedef NS_ENUM(NSUInteger, AliTRVActionSheetButtonStyle) { + AliTRVActionSheetButtonStyleDefault, + AliTRVActionSheetButtonStyleCancel, + AliTRVActionSheetButtonStyleDestructive, + AliTRVActionSheetButtonStyleIconText +}; + +typedef NS_ENUM(NSUInteger, AliTRVActionSheetType) { + AliTRVActionSheetTypeButtons = 0, + AliTRVActionSheetTypeContentView = 1 +}; + +@interface AliTRVActionSheetSection : UIView +@property (nonatomic, strong) NSNumber *tbDarkMode_needAutoColorInvert; +@property(nonatomic, assign) int secionHeightLimit; +@property(nonatomic, weak) AliTRVActionSheet * _Nullable hostingSheet; +@property(nonatomic, assign) AliTRVActionSheetType acType; +@property (nonatomic, assign) NSUInteger index; +@property (nonatomic, copy) void (^ _Nullable buttonPressedBlock)(NSIndexPath *_Nonnull indexPath); +@property (nonatomic, strong, readonly) UILabel * _Nullable titleLabel; +@property (nonatomic, strong) NSNumber * _Nullable custmizedCornerRadius; +@property (nonatomic, strong) NSNumber * _Nullable custmizedButtonHeight; +@property (nonatomic, strong) id _Nullable sectionInfo; + +//如果是 text button生成的section,这些button在这个数组里 +@property (nonatomic, strong, readonly) NSArray * _Nullable buttons; + +/* + 如果是用contentView生成的section,contentView保存在这个变量 + @Note contentView的宽度会被拉伸,高度保持不变 + */ +@property (nonatomic, strong, readonly) UIView * _Nullable contentView; + +/** + 快捷生成一个‘取消’section + */ ++ (instancetype _Nonnull)cancelSection; + +//icon以UIImage的形式传入 ++ (instancetype _Nullable)sectionWithTitle:(NSString *_Nullable)title buttonTitles:(NSArray *_Nullable)buttonTitles iconImages:(NSArray* _Nullable)icons buttonStyle:(AliTRVActionSheetButtonStyle)buttonStyle; + +//icon以http url字符串的形式传入 ++ (instancetype _Nullable)sectionWithTitle:(NSString * _Nullable)title buttonTitles:(NSArray *_Nonnull)buttonTitles iconURLs:(NSArray* _Nullable)iconURLs buttonStyle:(AliTRVActionSheetButtonStyle)buttonStyle; +/** + Initializes the section with buttons. + @param title 整个section的标题. (可选) + @param buttonTitles 按键title的数组. + @param iconImages 图标数组 (UIImage) 如果buttonStyle是 WMLActionSheetButtonStyleIconText,这里传入UIImage的数字 + @param iconURLs 如果buttonStyle是 WMLActionSheetButtonStyleIconText,这里传入图片的url. 注意iconImages优先于iconImages + @param buttonStyle 按键样式 + */ +- (instancetype _Nonnull )initWithTitle:(NSString *_Nullable)title buttonTitles:(NSArray *_Nonnull)buttonTitles iconImages:(NSArray* _Nullable)iconImages iconURLs:(NSArray* _Nullable)iconURLs buttonStyle:(AliTRVActionSheetButtonStyle)buttonStyle; + + ++ (instancetype _Nonnull )sectionWithTitle:(NSString *_Nullable)title contentView:(UIView *_Nonnull)contentView; + +/** + Initializes the section with a custom content view. + @param title 整个section的标题. (可选) + @param contentView 自定义的UIView + */ +- (instancetype _Nonnull)initWithTitle:(NSString *_Nullable)title contentView:(UIView *_Nonnull)contentView; + + +- (void)setButtonStyle:(AliTRVActionSheetButtonStyle)buttonStyle forButtonAtIndex:(NSUInteger)index; + +- (CGRect)layoutForWidth:(CGFloat)width; + +- (void)setUpForContinuous:(BOOL)continuous; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/Headers/AliTRVAppLoadingBodyView.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/Headers/AliTRVAppLoadingBodyView.h new file mode 100644 index 0000000..4dae323 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/Headers/AliTRVAppLoadingBodyView.h @@ -0,0 +1,28 @@ +// +// WMLAppLoadingBodyView.h +// AppContainer +// +// Created by AllenHan on 2018/5/14. +// Copyright © 2018年 AllenHan. All rights reserved. +// + +#import +#import +#import + +typedef NS_ENUM(NSInteger, AliTRVLoadingViewType) { + AliTRVLoadingViewTypeTinyApp, + AliTRVLoadingViewTypeTinyShop, + AliTRVLoadingViewTypeTinyAppSecond, + AliTRVLoadingViewTypeTinyShopSecond +}; + +typedef void(^AliTRVAppLoadingBodyViewBackAction)(void); + +@interface AliTRVAppLoadingBodyView : UIView + +- (instancetype)initWithFrame:(CGRect)frame enterInfo:(TRVEnterInfoModel *)enterInfo type:(AliTRVLoadingViewType)type; + +- (instancetype)initWithFrame:(CGRect)frame type:(AliTRVLoadingViewType)type; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/Headers/AliTRVAuthHintListView.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/Headers/AliTRVAuthHintListView.h new file mode 100644 index 0000000..607bde9 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/Headers/AliTRVAuthHintListView.h @@ -0,0 +1,16 @@ +// +// AliTRVAuthHintListView.h +// TRiverCore +// +// Created by AllenHan on 2019/4/20. +// Copyright © 2019年 TaoBao. All rights reserved. +// + +#import + +@interface AliTRVAuthHintListView : UIView + +- (instancetype)initWithFrame:(CGRect)frame agreements:(NSArray *)agreements; + +@end + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/Headers/AliTRVAuthUIAdapter.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/Headers/AliTRVAuthUIAdapter.h new file mode 100644 index 0000000..5db8860 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/Headers/AliTRVAuthUIAdapter.h @@ -0,0 +1,44 @@ +// +// AliTRVAuthUIDialog.h +// TRiverCore +// +// Created by AllenHan on 2019/4/20. +// Copyright © 2019年 TaoBao. All rights reserved. +// + +#import +#import +#import +#import + + +@interface AliTRVAuthInfo : NSObject +@property (nonatomic, copy) NSString *appLogo; +@property (nonatomic, copy) NSString *appFullName; +@property (nonatomic, copy) NSString *appSimpleName; +@property (nonatomic, copy) NSString *message; +@property (nonatomic, copy) NSString *confirmTitle; +@property (nonatomic, copy) NSString *cancelTitle; +@property (nonatomic, strong) NSArray *protocolNames; +@property (nonatomic, strong) NSArray *protocolUrls; +@property (nonatomic, strong) NSArray *authHints; +@property (nonatomic, strong) NSDictionary *extraInfo; +@end + + +@interface AliTRVAuthUIDialog : NSObject + +@property (nonatomic, weak) id delegate; + +- (instancetype)initWithParentView:(UIView *)parentView authInfo:(AliTRVAuthInfo *)authInfo; + +- (void)showAccountAuth; + +- (BOOL)isShowingDialog; + +@end + + +@interface AliTRVAuthUIAdapter : NSObject +@end + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/Headers/AliTRVBaseNaviBar.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/Headers/AliTRVBaseNaviBar.h new file mode 100644 index 0000000..92652ea --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/Headers/AliTRVBaseNaviBar.h @@ -0,0 +1,200 @@ +// +// AliTRVBaseNaviBar.h +// AliWindmill +// +// Created by AllenHan on 2019/4/4. +// Copyright © 2019年 alibaba. All rights reserved. +// + +#import +#import "AliTRVNaviBarItem.h" +#import "WMLAppPageNavBarConsts.h" +#import + +@class AliTRVBaseNaviBar; +typedef void(^AliTRVNaviBarCommonBlock)(AliTRVBaseNaviBar *naviBar); +typedef CGRect(^AliTRVNaviBarOccupyRectCalcBlock)(AliTRVBaseNaviBar *naviBar); + + + +@interface AliTRVBaseNaviBar : UIView + +/// @brief 是否允许手淘自动翻转DarkMode下的颜色,仅在手淘下生效 +@property (nonatomic, strong) NSNumber *tbDarkMode_needAutoColorInvert; + +@property (nonatomic, strong) UIImageView *bgImageView; + +/** + 初始化时传入的pageVC + */ +@property (nonatomic, weak, readonly) TRVBaseViewController *pageVC; + +/** + 默认初始化方法 + + @param frame 导航栏大小 + @param pageVC 为pageVC初始化导航栏 + @return 返回初始化的导航栏视图对象 + */ +- (instancetype)initWithFrame:(CGRect)frame pageVC:(TRVBaseViewController *)pageVC; + +/** + 导航栏是否透明,会影响导航栏占用的渲染区域和导航栏可点击区域 + 注意:transulent为YES时,无法设置背景色和背景图片; + */ +@property (nonatomic, assign) BOOL transulent; + +/** + 是否忽略背景色/背景图设置 + */ +@property (nonatomic, assign) BOOL ignoreBackgroundSet; + +#pragma mark - UI生命周期 + +/** + 类似UIViewController的viewDidLoad + */ +- (void)trv_viewDidLoad; + +/** + 当前视图渲染完成后的回调,有些导航栏会对渲染完成后的视图做一些操作(譬如轻店铺的圆角等)。 + Inside接入方可以通过覆写此方法,实现对渲染完成视图的一些操作 + + @param bodyView 渲染完成后的视图 + */ +- (void)trv_pageDidRenderContainerView:(UIView *)bodyView; + +#pragma mark - 布局方法 + +/** + 返回占用render区域的大小,WMLUIProviderProtocol协议中"-renderFrameForPage:inApp:"方法实现,可以通过这个函数计算导航栏占用渲染区域的大小 + @return 返回导航栏占用渲染区域的大小。当transulent为YES时,默认返回CGRectZero;transulent为NO时,默认返回self.bounds;继承此类者可以自定义返回占用渲染区域大小。 + */ +- (CGRect)trv_occupyRenderRect; + +/** + 设置计算占用渲染区域大小的block + + @param block 计算大小的block + */ +- (void)trv_setOccupyRenderRectCalcBlock:(AliTRVNaviBarOccupyRectCalcBlock)block; + +/** + 内部会强持有此block,在合适的时机调用,注意循环引用问题 + + @param layoutBlock 布局block + */ +- (void)trv_setLayoutBlock:(AliTRVNaviBarCommonBlock)layoutBlock; + +/** + 立即触发layoutBlock的调用 + */ +- (void)trv_setNeedLayout; +#pragma mark - Color Style +/** + 更新ColorStyle + */ +@property (nonatomic, assign, readonly) WMLAppPageNavBarColorStyle colorStyle; + +#pragma mark - 背景 +/** + 当前设置的导航栏背景色 + */ +@property (nonatomic, strong) UIColor *currNavBarBgColor; + +/** + 当前背景alpha,默认1。仅当transparentTitle=auto时,滚动会改变该值 + */ +@property (nonatomic, assign, readonly) CGFloat currentAlpha; + +/** + 更新当前背景alpha +*/ +- (void)trv_updateCurrentAlpha:(CGFloat)alpha; + +/** + 内部会强持有此block,在合适的时机调用,注意循环引用问题 + + @param notifyBlk colorStyle更新时调用的block + */ +- (void)trv_setColorStyleChangedNotify:(AliTRVNaviBarCommonBlock)notifyBlk; +/** + 更新colorStyle + + @param colorStyle 待设置的colorStyle + */ +- (void)trv_updateColorStyle:(WMLAppPageNavBarColorStyle)colorStyle; + + +#pragma mark - 导航栏Item添加方法 + +/** + 获取导航栏视图上的所有的items + */ +@property (nonatomic, copy, readonly) NSArray *allItems; + +/** + 添加item + + @param item 待添加的导航栏item + */ +- (void)trv_addItem:(AliTRVNaviBarItem *)item; + +/** + 添加items(item数组) + + @param items 待添加的导航栏items + */ +- (void)trv_addItems:(NSArray*)items; + +/** + 获取对应类名的item,为了方便对已有的轻店铺和轻应用导航栏item进行继承定制。 + 所以内部使用isKindOfClass:获取对应item + + @param cls item的类名 + @return 返回找到的item + */ +- (AliTRVNaviBarItem *)trv_firstItemOfClass:(Class)cls; + +/** + 获取对应类名的items,当同一种类添加的item多于一个时,可以通过此方法获取 + + @param cls item对应的class + @return 返回AliWMLNaviBarItem对象数组 + */ +- (NSArray *)trv_itemsOfClass:(Class)cls; + +/** + 移除item + + @param item 待移除的item + */ +- (void)trv_removeItem:(AliTRVNaviBarItem *)item; +/** + 移除所有的item + */ +- (void)trv_removeAllItems; + + +#pragma mark - 导航栏背景设置方法 + +/** + 设置导航栏背景图片(如果设置不生效,注意transulent的值是否为YES) + + @param imageUrl 背景图片的url + */ +- (void)trv_setBackgroundImageWithUrl:(NSString *)imageUrl; + +/** + 设置导航栏背景色(如果设置不生效,注意transulent的值是否为YES) + + @param colorStr 背景颜色(十六进制字符串,类似"#ffffff") + */ +- (void)trv_setBackgroundColorWithHexString:(NSString *)colorStr; + + +//增加事件透传Orange配置,导航栏透明默认透传,不透明不透传 +- (BOOL)getOrangePointInsideConfig; + +@end + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/Headers/AliTRVDefaultLifeCycler.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/Headers/AliTRVDefaultLifeCycler.h new file mode 100644 index 0000000..bde05b4 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/Headers/AliTRVDefaultLifeCycler.h @@ -0,0 +1,13 @@ +// +// WMLDefaultLifeCycler.h +// AliWindmill +// +// Created by Jason Lee on 2018/6/21. +// + +#import +#import + +@interface AliTRVDefaultLifeCycler : NSObject + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/Headers/AliTRVDefaultNavBar.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/Headers/AliTRVDefaultNavBar.h new file mode 100644 index 0000000..fbba2b1 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/Headers/AliTRVDefaultNavBar.h @@ -0,0 +1,16 @@ +// +// WMLDefaultNavBar.h +// AliWindmill +// +// Created by Jason Lee on 2018/11/12. +// Copyright © 2018年 alibaba. All rights reserved. +// + +#import +#import "WMLAppPageNavBarConsts.h" +#import "AliTRVBaseNaviBar.h" +#import + +@interface AliTRVDefaultNavBar : AliTRVBaseNaviBar + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/Headers/AliTRVNavBarStandardAPIImpl.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/Headers/AliTRVNavBarStandardAPIImpl.h new file mode 100644 index 0000000..b13689a --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/Headers/AliTRVNavBarStandardAPIImpl.h @@ -0,0 +1,16 @@ +// +// AliTRVNavBarStandardAPIImpl.h +// AliWindmill +// +// Created by AllenHan on 2019/4/4. +// Copyright © 2019年 alibaba. All rights reserved. +// + +#import +#import + +/// @brief 小程序标准导航栏能力实现 +@interface AliTRVNavBarStandardAPIImpl : NSObject + +@end + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/Headers/AliTRVNaviBarItem.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/Headers/AliTRVNaviBarItem.h new file mode 100644 index 0000000..97a49a8 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/Headers/AliTRVNaviBarItem.h @@ -0,0 +1,189 @@ +// +// AliTRVNaviBarItem.h +// AliWindmill +// +// Created by AllenHan on 2019/4/4. +// Copyright © 2019年 alibaba. All rights reserved. +// + +#import +#import "WMLAppPageNavBarConsts.h" +#import +#import + +@class AliTRVBaseNaviBar, AliTRVNaviBarItem, AliTRVNaviBarFavorItem; +typedef void(^AliTRVNaviBarItemCommonBlock)(AliTRVNaviBarItem *item); +typedef void(^AliTRVFavorStatusListener)(AliTRVNaviBarFavorItem *item); + + +@interface AliTRVNaviBarItem : UIView +/** + 当前item所处的naviBar, 通过pageVC的headerView获取而来 + */ +@property (nonatomic, weak, readonly) AliTRVBaseNaviBar *naviBar; + +/** + 当前item初始化时传入的pageVC + */ +@property (nonatomic, weak, readonly) TRVBaseViewController *pageVC; + +/** + 当前item的colorStyle + */ +@property (nonatomic, assign, readonly) WMLAppPageNavBarColorStyle colorStyle; + +/** + 初始化方法 + + @param frame AliTRVNaviBarItem的frame + @param pageVC 初始化AliTRVNaviBarItem对象将被添加到pageVC上 + @return 返回AliTRVNaviBarItem对象 + */ +- (instancetype)initWithFrame:(CGRect)frame pageVC:(TRVBaseViewController *)pageVC; + +/** + 更新当前item的colorStyle + + @param colorStyle 传入的colorStyle + */ +- (void)trv_updateColorStyle:(WMLAppPageNavBarColorStyle)colorStyle; + + +- (void)trv_setColorStyleChangedNotify:(AliTRVNaviBarItemCommonBlock)notifyBlk; + +/** + 视图默认布局完成的时候调用,对象生命周期内只会调用一次; + 会在在layoutBlock调用之前调用。 + */ +- (void)trv_viewDidLoad; + +#pragma mark - + +@property (nonatomic, copy, readonly) AliTRVNaviBarItemCommonBlock layoutBlock; +/** + 设置布局block,方便临时修改item的子视图的布局; + 注意:item会强持有该block,使用者应避免循环引用 + + @param layoutBlock 布局Block + */ +- (void)trv_setLayoutBlock:(AliTRVNaviBarItemCommonBlock)layoutBlock; + +/** + 强制布局,如果trv_viewDidLoad之前没有被调用过,那么会触发trv_viewDidLoad + */ +- (void)trv_setNeedLayout; + +#pragma mark - +- (UIImage *)imageWithPrefix:(NSString *)prefix; +@end + + +@interface AliTRVNaviBarButtonItem : AliTRVNaviBarItem + +@property (nonatomic, strong, readonly) UIButton *barButton; + +@property (nonatomic, copy) dispatch_block_t buttonAction; + +/** + 设置返回按钮图片 + + @param image 待设置的图片 + @param colorStyle 针对不同colorStyle可以设置不同的图片 + */ +- (void)trv_setImage:(UIImage *)image forColorStyle:(WMLAppPageNavBarColorStyle)colorStyle; + + +/** + 支持设置返回标题,标题和图片只能有一个生效 + + @param title 返回标题 + */ +- (void)trv_setButtonTitle:(NSString *)title withFont:(UIFont *)font; + + +/** + 设置back title的颜色 + + @param color 颜色 + @param colorStyle 针对不同的colorStyle可以设置不同的颜色 + */ +- (void)trv_setButtonTitleColor:(UIColor *)color forColorStyle:(WMLAppPageNavBarColorStyle)colorStyle; + +@end + +//@interface AliTRVNaviBarCustomViewItem : AliTRVNaviBarItem +// +//@property (nonatomic, strong, readonly) UIView *customView; +// +//- (void)trv_addCustomView:(UIView *)customView; +// +//@end + + +@interface AliTRVNaviBarBackItem : AliTRVNaviBarButtonItem + +/** + 关闭当前页面,返回到上一页面 + */ +- (void)trv_closeMiniAppPage; + +@end + +//@interface AliTRVNaviBarBackHomeItem : AliTRVNaviBarButtonItem +// +//@end +///** +// 默认的返回按钮image +//*/ +//- (UIImage *)trv_leftTopBackIconForColorStyle:(WMLAppPageNavBarColorStyle)colorStyle; +// +//@end + +/** + 默认的Title实现,只实现了TitleLabel,不会响应icon、subtitle等设置 + */ +@interface AliTRVNaviBarTitleItem : AliTRVNaviBarItem + +/** + 更新app logo + + @param icon 如果不设置,默认取pageVC.appBundle.appInfo.appInfoDetail.appLogo + */ +- (void)trv_updateIcon:(NSString *)icon; + +/** + 更新title + + @param title 如果不设置,默认取pageVC.appBundle.appInfo.appInfoDetail.appName + */ +- (void)trv_updateTitle:(NSString *)title; + +/** + 设置title的image,有些小程序的title配置的是一张图片 + + @param imageUrl 没有默认值,目前只有轻应用有 + */ +- (void)trv_updateTitleWithImageUrl:(NSString *)imageUrl; + +/** + 设置title的image,有些小程序的title配置的是一张图片 + + @param imageData 没有默认值,目前只有轻应用有 + */ +- (void)trv_updateTitleWithImageData:(NSData *)imageData; + +/** + 设置subtitle,可以不实现 + + @param title 无默认值,前端可以通过api设置 + */ +- (void)trv_updateSubtitle:(NSString *)title; + +/** + 设置subtitle的tag,根据UI设计实现,也可以不实现 + @param logo 如果不设置,默认取pageVC.windowInfo.navigationBarTag + */ +- (void)trv_updateTagLogo:(NSString *)logo; + +@end + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/Headers/AliTRVStandardUIHandler.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/Headers/AliTRVStandardUIHandler.h new file mode 100644 index 0000000..9793e87 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/Headers/AliTRVStandardUIHandler.h @@ -0,0 +1,16 @@ +// +// AliTRVStandardUIHandler.h +// AliWindmill +// +// Created by AllenHan on 2019/4/4. +// Copyright © 2019年 alibaba. All rights reserved. +// + +#import +#import + + +@interface AliTRVStandardUIHandler : NSObject + +@end + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/Headers/AliWMLAuthHintView.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/Headers/AliWMLAuthHintView.h new file mode 100644 index 0000000..9c622d1 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/Headers/AliWMLAuthHintView.h @@ -0,0 +1,14 @@ +// +// AliWMLAuthHintView.h +// AliWindmill +// +// Created by AllenHan on 2018/2/2. +// + +#import + +@interface AliWMLAuthHintView : UIView + +- (instancetype)initWithHintUrl:(NSString *)hintUrl frame:(CGRect)frame; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/Headers/AliWMLAuthView.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/Headers/AliWMLAuthView.h new file mode 100644 index 0000000..83ed21f --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/Headers/AliWMLAuthView.h @@ -0,0 +1,50 @@ +// +// AliWMLAuthView.h +// AliWindmill +// +// Created by AllenHan on 2018/2/2. +// + +#import + +typedef void(^TBWopcAuthActionBlock)(void); + +@protocol AliTRVAuthViewProtocol +@optional + +/** + 定制授权按钮背景颜色 + + @return 描述颜色(CGColor)的数组,支持渐变 + */ +- (NSArray*)confirmButtonBackgroundColors; + +/** + 定制授权弹窗的父View,不实现该方法时,授权弹窗将在[UIApplication sharedApplication].keyWindow 上展示 + + @param vc 当前授权发生所在的ViewController + @return 授权弹窗的父View + */ +- (UIView *)authViewSuperViewInViewController:(UIViewController *)vc; + +@end + +@interface AliWMLAuthView : UIView + +@property (nonatomic, strong, readonly) UIButton *confirmBtn; + +@property (nonatomic, strong) TBWopcAuthActionBlock onAuth; + +@property (nonatomic, strong) TBWopcAuthActionBlock onCancel; + +@property (nonatomic, strong) NSDictionary *authInfo; + +- (instancetype)initWithReferenceView:(UIView *)view; + +- (void)setupView:(NSDictionary *)authInfo; + +- (void)show; + +- (void)dismiss; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/Headers/AliWMLMtopManager.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/Headers/AliWMLMtopManager.h new file mode 100644 index 0000000..e029280 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/Headers/AliWMLMtopManager.h @@ -0,0 +1,27 @@ +// +// AliWMLMtopManager.h +// AliWindmillPermission +// +// Created by AllenHan on 2018/12/4. +// Copyright © 2018年 TaoBao. All rights reserved. +// + +#import +#import "AliWMLMtopRequest.h" +#import "NSError+WMLMtop.h" + +typedef void(^AliWMLMtopRequestComplete)(BOOL success, NSDictionary *respJsons, NSError *error); + +typedef NS_ENUM(NSUInteger, AliWMLMtopSource) { + AliWMLMtopSourceFromMiniApp, //小程序请求 + AliWMLMtopSourceFromMiniAppSDK,//小程序框架请求 +}; + +@interface AliWMLMtopManager : NSObject + +///小程序请求 ++ (void)request:(AliWMLMtopRequest *)request completion:(AliWMLMtopRequestComplete)completion; + ++ (NSDate *)mtopServerDate; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/Headers/AliWMLMtopRequest.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/Headers/AliWMLMtopRequest.h new file mode 100644 index 0000000..63c65df --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/Headers/AliWMLMtopRequest.h @@ -0,0 +1,40 @@ +// +// AliWMLMtopRequest.h +// AlibabaAuthBind +// +// Created by ali_liuhui on 2019/3/12. +// + +#import + +@interface AliWMLMtopRequest : NSObject +//需要鉴权的小程序发起的请求 +@property (nonatomic, assign) BOOL licenseEnable; +//发起请求的小程序的appId +@property (nonatomic, strong) NSString *appId; +//发起请求的小程序的appKey +@property (nonatomic, strong) NSString *appKey; +@property (nonatomic, copy) NSString *api; +@property (nonatomic, copy) NSString *version; +@property (nonatomic, copy) NSNumber *needWua; +@property (nonatomic, copy) NSString *ttid; +@property (nonatomic, copy) NSString *sessionOption; +@property (nonatomic, copy) NSString *customHost; +@property (nonatomic, copy) NSNumber *needLogin; +@property (nonatomic, copy) NSNumber *usePost; +@property (nonatomic, copy) NSNumber *secType; +@property (nonatomic, copy) NSNumber *timeout; +@property (nonatomic, copy) NSNumber *source; + +@property (nonatomic, strong) NSMutableDictionary *bizParams; +@property (nonatomic, strong) NSMutableDictionary *extParams; +@property (nonatomic, strong) NSMutableDictionary *extHeaders; +@property (nonatomic, strong) NSMutableDictionary *protocolParams; +@property (nonatomic, strong) NSMutableDictionary *extQuerys; +- (instancetype)initWithApiName:(NSString *)apiName apiVersion:(NSString *)apiVersion; +- (void)addBizParameter:(id)value forKey:(NSString *)key; +- (void)addExtParameter:(id)value forKey:(NSString *)key; +- (void)addProtocolParameter:(NSString *)value forKey:(NSString *)key; +- (void)addHttpHeader:(id)value forKey:(NSString *)key; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/Headers/AliWMLTRVDefaultUIProvider.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/Headers/AliWMLTRVDefaultUIProvider.h new file mode 100644 index 0000000..83b213b --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/Headers/AliWMLTRVDefaultUIProvider.h @@ -0,0 +1,21 @@ +// +// AliWMLTRVDefaultUIProvider.h +// AliWindmill +// +// Created by AllenHan on 2019/4/4. +// Copyright © 2019年 alibaba. All rights reserved. +// + +#import +#import + + +@interface AliWMLTRVDefaultUIProvider : NSObject + +/** + 获取具体的Header 工厂 + */ +- (id)uiProviderInstanceForPage:(TRVBaseViewController*)page; + +@end + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/Headers/AliWMLTRiverCore.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/Headers/AliWMLTRiverCore.h new file mode 100644 index 0000000..b61f6db --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/Headers/AliWMLTRiverCore.h @@ -0,0 +1,58 @@ +// +// AliWMLTRiverCore.h +// TRiverCore +// +// Created by AllenHan on 2019/4/10. +// Copyright © 2019年 TaoBao. All rights reserved. +// + +#import + + +@interface AliWMLTRiverCore : NSObject + ++ (void)setup; + ++ (void)setupAfterRegisterHandler; + ++ (void)setAppGroup:(NSString *)appGroup + appName:(NSString *)appName + appVersion:(NSString *)appVersion; + +/** + * inside 应用唤起支付宝 app 操作之后,返回回去的 app scheme,具体场景比如收银台唤起支付宝支付,支付成功后返回 + */ ++ (void)setAppScheme:(NSString *)appShceme; + ++ (void)setDebugModeEnabled:(BOOL)enabled; + +/// @brief 开启三方MTOP ++ (void)setOpenMtopEnable:(BOOL)enable; + +/// @brief 设置是否是三方APP ++ (void)setIsAliApp:(BOOL)aliApp; + +/// @brief 设置自定义UA ++ (void)setCustomUserAgent:(NSString *)customUserAgent; + +/// @brief 设置自定义全局UT参数 ++ (void)setCustomUTParams:(NSDictionary *)customUTParams; + +/// @brief 设置自定义AppMonitor埋点page ++ (void)setCustomMonitorPage:(NSString *)page; + +/// @brief 预加载小程序资源 ++ (void)preLoadAppResource4AppUrls:(NSArray *)minAppUrls; + +/// @brief 为目标小程序预加载动态插件资源 +/// @param plugins 动态插件信息:@[@{@"pluginId":pluginId,@"requireVersion":requireVersison?:@"*"}] +/// @param appId 目标小程序 ++ (void)preloadDynamicPlugins:(NSArray *)plugins forApp:(NSString *)appId scene:(NSString *)scene completion:(void(^)(NSError *error))completion; + +/// @brief 异步更新动态插件资源 +/// @param plugins 动态插件信息:@[@{@"pluginId":pluginId,@"requireVersion":requireVersison?:@"*"}] +/// @param appId 目标小程序 ++ (void)updateDynamicPlugins:(NSArray *)plugins forApp:(NSString *)appId completion:(void(^)(NSError *error))completion; + +@end + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/Headers/AliWMLUtils.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/Headers/AliWMLUtils.h new file mode 100644 index 0000000..2b35aac --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/Headers/AliWMLUtils.h @@ -0,0 +1,27 @@ +// +// AliWMLUtils.h +// AliWindmill +// +// Created by AllenHan on 2018/8/2. +// Copyright © 2018年 alibaba. All rights reserved. +// + +#import +#import +#import + +@interface AliWMLUtils : NSObject + +// 首次关注前三次弹窗 +#define kFirstCollectSuccessTimesKey @"new_first_collect_success_times_key" +// 关注成功引导,是否需要再次显示强提示 +#define kSecondCollectSuccessShowKey @"new_second_collect_success_key" +// 关注成功常态提示显示次数 +#define kCollectNormalSuccessShownTimesKey @"collect_normal_success_times_key" + +#pragma mark - 大闭环新手引导弹层 ++ (BOOL)isNeedShowGuideView4HugeClosedCycle:(NSString *)appId hasTask:(BOOL)hasTask; + +#pragma mark - UT ++ (NSDictionary *)getCommonParams4Page:(TRVBaseViewController *)vc; +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/Headers/Capability.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/Headers/Capability.h new file mode 100644 index 0000000..49c730f --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/Headers/Capability.h @@ -0,0 +1,19 @@ +// +// Capability.h +// Capability +// +// Created by zhongweitao on 2019/5/27. +// Copyright © 2019 zhongweitao. All rights reserved. +// + +#import + +//! Project version number for Capability. +FOUNDATION_EXPORT double CapabilityVersionNumber; + +//! Project version string for Capability. +FOUNDATION_EXPORT const unsigned char CapabilityVersionString[]; + +// In this header, you should import all the public headers of your framework using statements like #import + + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/Headers/NSError+WMLMtop.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/Headers/NSError+WMLMtop.h new file mode 100644 index 0000000..e0c37da --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/Headers/NSError+WMLMtop.h @@ -0,0 +1,15 @@ +// +// NSError+WMLMtop.h +// AliWindmill +// +// Created by ali_liuhui on 2019/3/12. +// + +#import + +@interface NSError (WMLMtop) +@property (nonatomic, copy) NSString *mtopErrorMsg; +@property (nonatomic, copy) NSString *mtopOriginalMsg; +@property (nonatomic, copy) NSString *mtopErrorCode; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/Headers/TRVBaseViewController+CommonCode.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/Headers/TRVBaseViewController+CommonCode.h new file mode 100644 index 0000000..d46dd0d --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/Headers/TRVBaseViewController+CommonCode.h @@ -0,0 +1,96 @@ +// +// WMLAppPageViewController+CommonCode.h +// AliWindmill +// +// Created by Jason Lee on 2018/11/14. +// + +#import "WMLAppPageNavBarConsts.h" +//#import "TRVAppFollowGuideBar.h" +//#import "TRVRelationshipFollowManager.h" +#import + +typedef NS_ENUM(NSUInteger, AliTRVAppPagePositionType) { + AliTRVAppPagePositionTypeTabFirstPage,//无Tab时的第一个页面 或 有Tab时第一个Tab上的第一个页面 + AliTRVAppPagePositionTypeTabPage,//非第一个Tab上第一个页面 + AliTRVAppPagePositionTypeSecondPage,//次级页面 +}; + + +@interface TRVBaseViewController (CommonCode) + +- (WMLAppPageNavBarColorStyle)trv_colorStyle; +- (CGFloat)trv_topMargin4LeftOrRightTopView; + +- (NSDictionary *)trv_UTTrackArgs; +- (NSDictionary *)trv_UTTrackArgsWithType:(NSString *)tmpType; + + +#pragma mark - 设置Action + +/** + 获取页面所在位置 + + @return 返回页面所在位置 + */ +- (AliTRVAppPagePositionType)trv_pagePosition; + +/** + 触发默认设置Action + */ +- (void)trv_openDefaultSetting; + +#pragma mark - + + +/** + 触发默认回流页面的返回首页Action + */ +- (void)trv_openAppIndexPage; + + +//#pragma mark - 关注相关API +// +//@property (nonatomic, strong) TRVAppFollowGuideBar *trv_followBar; +//@property (nonatomic, strong) TRVRelationshipFollowManager *relationFollowManager; +// +///** +// 获取小程序关注状态,如果用户未登陆,或请求失败,返回WMLAppInfoViewFollowStyleUndefined +// */ +//- (void)trv_requestFavoriteStatusComplete:(void(^)(WMLAppInfoViewFollowStyle style, id result, NSError *error))complete; +// +///** +// 收藏小程序 +// +// @param complete 收藏完成回调,success为YES表示收藏成功,NO表示收藏失败 +// @param needTrack 是否需要内部埋点,除了导航栏上的关注外,其它都是NO +// */ +//- (void)trv_addFavoriteMiniAppWithComplete:(void (^)(BOOL, NSDictionary *))complete needTrack:(BOOL)needTrack; +///** +// 取消收藏小程序 +// +// @param complete 收藏完成回调,success为YES表示取消收藏成功,NO表示取消收藏失败 +// */ +//- (void)trv_removeFavoriteMiniAppWithComplete:(void(^)(BOOL success, NSDictionary *result))complete; + + +#pragma mark - 导航能力 + +/** + 小程序默认返回action + */ +- (void)trv_closeMiniAppPage; + +/** + 轻店铺响应该action,轻应用不响应此action + */ +- (void)trv_closeMiniApp; + +#pragma mark - ActionSheet + +/** + 删除ActionSheet的某一项 + */ +- (NSDictionary *)trv_removeMenuItemWithName:(NSString *)name fromMenuInfo:(NSDictionary *)menuInfo; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/Headers/TRVBaseViewController+LayoutDefaultNavBar.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/Headers/TRVBaseViewController+LayoutDefaultNavBar.h new file mode 100644 index 0000000..8f78c4b --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/Headers/TRVBaseViewController+LayoutDefaultNavBar.h @@ -0,0 +1,14 @@ +// +// WMLAppPageViewController+LayoutDefaultNavBar.h +// AliWindmill +// +// Created by Jason Lee on 2018/11/12. +// + +#import + +@interface TRVBaseViewController (LayoutDefaultNavBar) + +- (UIView *)trv_layoutDefaultNavBar; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/Headers/WMLAppPageNavBarConsts.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/Headers/WMLAppPageNavBarConsts.h new file mode 100644 index 0000000..cb020e9 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/Headers/WMLAppPageNavBarConsts.h @@ -0,0 +1,42 @@ +// +// WMLAppPageNavBarConsts.h +// AppContainer +// +// Created by Jason Lee on 2018/4/16. +// Copyright © 2018年 AllenHan. All rights reserved. +// + +#import +#import + +#ifndef WMLAppPageNavBarConsts_h +#define WMLAppPageNavBarConsts_h + +typedef NS_ENUM(NSUInteger, WMLAppPageNavBarColorStyle) { + WMLAppPageNavBarColorStyleLight, + WMLAppPageNavBarColorStyleDark, +}; + +typedef void(^WMLAppPageClickAction)(id sender, NSDictionary *info); + +typedef void(^WMLAppPageNavBarBackAction)(void); +typedef void(^WMLAppPageNavBarMoreAction)(void); +typedef void(^WMLAppPageNavBarRightItemAction)(void); + +#define kPageNavBarHeight 44.0f +#define kBackBtnMarginLeft 4.0f +#define kBackBtnMarginBottom 7.0f +#define kMaxTitleLabelLength 110.f +#define kTitleMarginBottom 12.5f +#define kFavorMarginTitle 5.0f +#define kRightItemMarginMore 10.5f +#define KRightMoreBtnMarginRight 2.0f +#define kGuideViewRightMarginFavorRight 55.0f +#define kGuideViewWidth 210.0f +#define kGuideViewHeight 36.0f +#define kIndexViewMarginLeftBtn 15.0f +#define kIndexViewMarginBottom 7.5f + +#define kWMLHeaderViewColorStyleKey @"WML_AppPage_HeaderView_ColorStyle" + +#endif /* WMLAppPageNavBarConsts_h */ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/Headers/WMLDefaultNetworkingService.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/Headers/WMLDefaultNetworkingService.h new file mode 100644 index 0000000..09f666d --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/Headers/WMLDefaultNetworkingService.h @@ -0,0 +1,13 @@ +// +// WMLDefaultNetworkingService.h +// Windmill +// +// Created by Jason Lee on 2018/5/12. +// + +#import +#import + +@interface WMLDefaultNetworkingService : NSObject + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/Headers/WMLIconfontProtocol.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/Headers/WMLIconfontProtocol.h new file mode 100644 index 0000000..f293b6b --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/Headers/WMLIconfontProtocol.h @@ -0,0 +1,20 @@ +// +// WMLIconfontProtocol.h +// AppContainer +// +// Created by Jason Lee on 2018/7/30. +// Copyright © 2018年 AllenHan. All rights reserved. +// + +#import +#import + +@protocol WMLIconfontProtocol + +@required + +- (UIFont *)fontWithSize:(NSInteger)fontSize; + +- (NSString *)unicodeWithName:(NSString *)name; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/Info.plist b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/Info.plist new file mode 100644 index 0000000..5354e5d Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/Info.plist differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/TriverCapability b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/TriverCapability new file mode 100644 index 0000000..ac2ba02 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/TriverCapability differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/triver_pub_back@2x.png b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/triver_pub_back@2x.png new file mode 100644 index 0000000..a86d367 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/triver_pub_back@2x.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/trv_app_loading_error@2x.png b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/trv_app_loading_error@2x.png new file mode 100644 index 0000000..0ac940c Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/trv_app_loading_error@2x.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/trv_feedback_icon_dark@2x.png b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/trv_feedback_icon_dark@2x.png new file mode 100644 index 0000000..2ba3caf Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/trv_feedback_icon_dark@2x.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/trv_feedback_icon_light@2x.png b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/trv_feedback_icon_light@2x.png new file mode 100644 index 0000000..e6e1648 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/trv_feedback_icon_light@2x.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/trv_icon_placeholder@2x.png b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/trv_icon_placeholder@2x.png new file mode 100644 index 0000000..40679a6 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/trv_icon_placeholder@2x.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/trv_left_top_back_icon_dark@2x.png b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/trv_left_top_back_icon_dark@2x.png new file mode 100644 index 0000000..808c700 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/trv_left_top_back_icon_dark@2x.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/trv_left_top_back_icon_light@2x.png b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/trv_left_top_back_icon_light@2x.png new file mode 100644 index 0000000..54783c7 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/trv_left_top_back_icon_light@2x.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/trv_permission_auth_close@2x.png b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/trv_permission_auth_close@2x.png new file mode 100644 index 0000000..5b4e07c Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/trv_permission_auth_close@2x.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/trv_pullrefresh_arrow_dark@2x.png b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/trv_pullrefresh_arrow_dark@2x.png new file mode 100644 index 0000000..8f36a62 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/trv_pullrefresh_arrow_dark@2x.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/trv_pullrefresh_arrow_light@2x.png b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/trv_pullrefresh_arrow_light@2x.png new file mode 100644 index 0000000..1ad4545 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/trv_pullrefresh_arrow_light@2x.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/trv_right_top_location_dark@2x.png b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/trv_right_top_location_dark@2x.png new file mode 100644 index 0000000..170baeb Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/trv_right_top_location_dark@2x.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/trv_right_top_location_light@2x.png b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/trv_right_top_location_light@2x.png new file mode 100644 index 0000000..4cfa87f Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/trv_right_top_location_light@2x.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/trv_setting_icon_dark@2x.png b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/trv_setting_icon_dark@2x.png new file mode 100644 index 0000000..3c25a40 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/trv_setting_icon_dark@2x.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/trv_setting_icon_light@2x.png b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/trv_setting_icon_light@2x.png new file mode 100644 index 0000000..fa19f07 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/trv_setting_icon_light@2x.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/trv_share_icon_dark@2x.png b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/trv_share_icon_dark@2x.png new file mode 100644 index 0000000..fbfbfcc Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/trv_share_icon_dark@2x.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/trv_share_icon_light@2x.png b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/trv_share_icon_light@2x.png new file mode 100644 index 0000000..f1ac89f Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/trv_share_icon_light@2x.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/trv_shop_app_logo@2x.png b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/trv_shop_app_logo@2x.png new file mode 100644 index 0000000..1d9e76b Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/trv_shop_app_logo@2x.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/trv_tinyshop_loading_close@2x.png b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/trv_tinyshop_loading_close@2x.png new file mode 100644 index 0000000..7eaa0ee Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverCapability.framework/trv_tinyshop_loading_close@2x.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverDebugTool.framework/Headers/DebugTool.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverDebugTool.framework/Headers/DebugTool.h new file mode 100644 index 0000000..3c3d8bc --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverDebugTool.framework/Headers/DebugTool.h @@ -0,0 +1,19 @@ +// +// DebugTool.h +// DebugTool +// +// Created by zhongweitao on 2020/7/3. +// Copyright © 2020 zhongweitao. All rights reserved. +// + +#import + +//! Project version number for DebugTool. +FOUNDATION_EXPORT double DebugToolVersionNumber; + +//! Project version string for DebugTool. +FOUNDATION_EXPORT const unsigned char DebugToolVersionString[]; + +// In this header, you should import all the public headers of your framework using statements like #import + + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverDebugTool.framework/Headers/TRVFloatingView.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverDebugTool.framework/Headers/TRVFloatingView.h new file mode 100644 index 0000000..77bfd04 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverDebugTool.framework/Headers/TRVFloatingView.h @@ -0,0 +1,22 @@ +// +// TRVFloatingView.h + +#import + +@class TRVFloatingView; +@protocol TRVFloatingViewDelegate + +@optional + +/// @brief 悬浮窗点击回调 +- (void)didTabFloatingView:(TRVFloatingView *)floatingView; + +@end; + +@interface TRVFloatingView : UIView + ++ (TRVFloatingView *)showFloatingInView:(UIView *)superView delegate:(id)delegate; + ++ (void)hideFloatingInView:(UIView *)superView; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverDebugTool.framework/Headers/TRVLocalLogTool.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverDebugTool.framework/Headers/TRVLocalLogTool.h new file mode 100644 index 0000000..af49892 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverDebugTool.framework/Headers/TRVLocalLogTool.h @@ -0,0 +1,77 @@ +// +// TRVLocalLogTool.h +// Triver +// +// Created by zhongweitao on 2020/7/2. +// + +#import +#import +//#import "TRVFloatingView.h" +#import + +@interface TRVLog : NSObject + +@property (nonatomic, strong) NSString *group; // 分组 +@property (nonatomic, strong) NSString *stage; // 阶段 +@property (nonatomic, strong) NSString *title; // 标题 +@property (nonatomic, assign) BOOL status; // 成功失败 +@property (nonatomic, strong) NSDictionary *logDetail; // 具体信息 +@property (nonatomic, assign) BOOL stable; // 是否驻留 +@property (nonatomic, assign) NSTimeInterval timestamp; // 日志时间戳 + ++ (TRVLog *)logInfoWithDic:(NSDictionary *)logDic; + +- (NSString *)getLogDetailStr; + +- (BOOL)containFailMsg:(NSString *)message; + +@end + +@interface TRVLogStage : NSObject + +@property (nonatomic, strong) NSString *stage; +@property (nonatomic, assign) BOOL status; // 成功失败 +@property (nonatomic, strong) NSArray *logArray; +@property (nonatomic, assign) NSTimeInterval timestamp; // 日志时间戳,该阶段最早时间 + +@end + +@interface TRVLogGroup : NSObject + +@property (nonatomic, strong) NSString *group; +@property (nonatomic, strong) NSArray *stageArray; + +@end + +@interface TRVLocalLogTool : NSObject + +@property (nonatomic, assign) BOOL enableLocalLog; + +@property (nonatomic, assign) BOOL enableAutoShowFloating; // 套件内是否自动开启入口 + +@property (nonatomic, assign) BOOL enableDetailLog; + +/// @brief 返回当前类型的共享实例。 ++ (TRVLocalLogTool *)sharedInstance; + +- (void)appendLocalLogInfo:(TRVLog *)logInfo; + +- (void)appendLocalLogDic:(NSDictionary *)logDic; + +- (void)clearAllLocalLog:(BOOL)clearStable; + +- (void)clearAllLocalLog4Group:(NSString *)group; + +/// @brief 获取方便用于展示的日志结构 +- (NSArray *)allLocalLogGroup; + +/// @brief 打开悬浮按钮,通过parentViewController 打开调试工具 +- (void)showFloatingInView:(UIView *)superView parentViewController:(UIViewController *)parentViewController; +/// @brief 关闭悬浮按钮 +- (void)hideFloatingInView:(UIView *)superView; + +/// @brief 直接打开调试工具 +- (void)showLocalDebugTool:(UIViewController *)parentViewController; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverDebugTool.framework/Info.plist b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverDebugTool.framework/Info.plist new file mode 100644 index 0000000..63a2044 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverDebugTool.framework/Info.plist differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverDebugTool.framework/TriverDebugTool b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverDebugTool.framework/TriverDebugTool new file mode 100644 index 0000000..f2ff699 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverDebugTool.framework/TriverDebugTool differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverLivePlayer.framework/Headers/LivePlayer.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverLivePlayer.framework/Headers/LivePlayer.h new file mode 100644 index 0000000..1341b80 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverLivePlayer.framework/Headers/LivePlayer.h @@ -0,0 +1,19 @@ +// +// LivePlayer.h +// LivePlayer +// +// Created by fernando on 2019/8/27. +// Copyright © 2019 Taobao. All rights reserved. +// + +#import + +//! Project version number for LivePlayer. +FOUNDATION_EXPORT double LivePlayerVersionNumber; + +//! Project version string for LivePlayer. +FOUNDATION_EXPORT const unsigned char LivePlayerVersionString[]; + +// In this header, you should import all the public headers of your framework using statements like #import + + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverLivePlayer.framework/Info.plist b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverLivePlayer.framework/Info.plist new file mode 100644 index 0000000..231be5d Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverLivePlayer.framework/Info.plist differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverLivePlayer.framework/TRVLivePlayer_triverApi.json b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverLivePlayer.framework/TRVLivePlayer_triverApi.json new file mode 100644 index 0000000..fd6ef3b --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverLivePlayer.framework/TRVLivePlayer_triverApi.json @@ -0,0 +1,21 @@ +{ + "version": "0.0.1", + "registerApiExtension": [ + {} + ], + "registerDsl": { + "scope": "tb", + "apis": [ + { + "apiName": "showFloatingWindow", + "dslApiName": "showFloatingWindow", + "type": "invoke" + }, + { + "apiName": "isShowingFloatingWindow", + "dslApiName": "isShowingFloatingWindow", + "type": "invoke" + } + ] + } +} diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverLivePlayer.framework/TriverLivePlayer b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverLivePlayer.framework/TriverLivePlayer new file mode 100644 index 0000000..b384ed5 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverLivePlayer.framework/TriverLivePlayer differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverLivePlayer.framework/trv_live_exitfullScreen@2x.png b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverLivePlayer.framework/trv_live_exitfullScreen@2x.png new file mode 100644 index 0000000..8d08acc Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverLivePlayer.framework/trv_live_exitfullScreen@2x.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverLivePlayer.framework/trv_live_floating_close@2x.png b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverLivePlayer.framework/trv_live_floating_close@2x.png new file mode 100644 index 0000000..610e5d1 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverLivePlayer.framework/trv_live_floating_close@2x.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverLivePlayer.framework/trv_live_floating_tip@2x.png b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverLivePlayer.framework/trv_live_floating_tip@2x.png new file mode 100644 index 0000000..6cda5c2 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverLivePlayer.framework/trv_live_floating_tip@2x.png differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverLocalDebug.framework/Headers/LocalDebug.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverLocalDebug.framework/Headers/LocalDebug.h new file mode 100644 index 0000000..71ac85f --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverLocalDebug.framework/Headers/LocalDebug.h @@ -0,0 +1,19 @@ +// +// LocalDebug.h +// LocalDebug +// +// Created by zhongweitao on 2019/8/29. +// Copyright © 2019 zhongweitao. All rights reserved. +// + +#import + +//! Project version number for LocalDebug. +FOUNDATION_EXPORT double LocalDebugVersionNumber; + +//! Project version string for LocalDebug. +FOUNDATION_EXPORT const unsigned char LocalDebugVersionString[]; + +// In this header, you should import all the public headers of your framework using statements like #import + + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverLocalDebug.framework/Headers/TRVLocalDebug.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverLocalDebug.framework/Headers/TRVLocalDebug.h new file mode 100644 index 0000000..d3d6196 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverLocalDebug.framework/Headers/TRVLocalDebug.h @@ -0,0 +1,32 @@ +// +// TRVLocalDebug.h + + +#import +#import +#import +#import + +@interface TRVLogInfo : NSObject + +@property (nonatomic, strong) NSString *eventId; +@property (nonatomic, strong) NSString *stage; +@property (nonatomic, strong) NSString *desc; +@property (nonatomic, strong) NSString *appId; +@property (nonatomic, strong) NSString *pageName; +@property (nonatomic, strong) NSDictionary *info; +@property (nonatomic, strong) NSString *time; +@property (nonatomic, strong) NSDate *date; + +@end + +@interface TRVLocalDebug : NSObject + +@property (nonatomic, weak) TRVAppContainer *currentAppContainer; + +/// @brief 返回当前类型的共享实例。 ++ (TRVLocalDebug *)sharedInstance; + ++ (void)setup; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverLocalDebug.framework/Info.plist b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverLocalDebug.framework/Info.plist new file mode 100644 index 0000000..cc1da14 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverLocalDebug.framework/Info.plist differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverLocalDebug.framework/TriverLocalDebug b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverLocalDebug.framework/TriverLocalDebug new file mode 100644 index 0000000..d53e486 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverLocalDebug.framework/TriverLocalDebug differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverRuntime.framework/Headers/NSDate+TRVDateUtils.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverRuntime.framework/Headers/NSDate+TRVDateUtils.h new file mode 100644 index 0000000..f528a33 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverRuntime.framework/Headers/NSDate+TRVDateUtils.h @@ -0,0 +1,35 @@ +// +// NSDate+TRVDateUtils.h +// Runtime +// +// Created by AllenHan on 2020/1/20. +// Copyright © 2020 Taobao. All rights reserved. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface NSDate (TRVDateUtils) + +/** + * 将特定格式的日期转换成NSDate + * 支持的三种日期的格式 + * yyyyMMddHHmmss 如:20161111080000 + * RFC-1123格式 EEE, dd MMM yyyy HH:mm:ss zzz 如:Wed, 05 Apr 2017 11:32:35 GMT + * yyyy-MM-dd HH:mm:ss,如 2016-11-11 20:00:00 + + @param dateString 日期 +*/ ++ (NSDate *)trv_dateResolveFromDateString:(NSString *)dateString; + +/** + * 转化成特定的格式的日期 + + @param formatter 日期格式 +*/ +- (NSString *)trv_stringForDateFormatter:(NSDateFormatter *)formatter; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverRuntime.framework/Headers/Runtime.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverRuntime.framework/Headers/Runtime.h new file mode 100644 index 0000000..774f4c6 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverRuntime.framework/Headers/Runtime.h @@ -0,0 +1,10 @@ +// +// Runtime.h +// Runtime +// +// Created by CaiXiaomin on 2019/3/29. +// Copyright © 2019 Taobao. All rights reserved. +// + +#import + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverRuntime.framework/Headers/TRVApiCustomDispatchHandler.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverRuntime.framework/Headers/TRVApiCustomDispatchHandler.h new file mode 100644 index 0000000..80483b1 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverRuntime.framework/Headers/TRVApiCustomDispatchHandler.h @@ -0,0 +1,53 @@ +// +// TRVApiDynamicDispatchHandler.h +// Runtime +// +// Created by xuyouyang on 2019/8/25. +// Copyright © 2019 Taobao. All rights reserved. +// + +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +typedef void (^TRVApiCustomDispatchCallback)(id responseData); + +@interface TRVApiCustomDispatchContext : NSObject + +/** + API 名称 + */ +@property (nonatomic, strong) NSString *apiName; +/** + 参数 + */ +@property (nonatomic, strong) NSDictionary *params; +/** + 返回值 + */ +@property (nonatomic, strong) TRVApiCustomDispatchCallback callback; +/** + 当前容器 + */ +@property (nonatomic, strong) UIViewController *currentVC; + +@end + + +@interface TRVApiCustomDispatchHandler : NSObject + +/** + 根据上下文创建一个处理 api 的 handler + */ +- (instancetype)initWithContext:(TRVApiCustomDispatchContext *)context; + +/** + 触发 API 调用 + */ +- (void)invoke; + +@end + +NS_ASSUME_NONNULL_END + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverRuntime.framework/Headers/TRVAppContainer+Runtime.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverRuntime.framework/Headers/TRVAppContainer+Runtime.h new file mode 100644 index 0000000..3422eb8 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverRuntime.framework/Headers/TRVAppContainer+Runtime.h @@ -0,0 +1,19 @@ +// +// TRVAppContainer+Runtime.h +// Runtime +// +// Created by xuyouyang on 2020/1/2. +// Copyright © 2020 Taobao. All rights reserved. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface TRVAppContainer (Runtime) + +@property (nonatomic, strong) NSString *snapshotTemplateType; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverRuntime.framework/Headers/TRVComponentJSZcacheProtocol.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverRuntime.framework/Headers/TRVComponentJSZcacheProtocol.h new file mode 100644 index 0000000..ceade89 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverRuntime.framework/Headers/TRVComponentJSZcacheProtocol.h @@ -0,0 +1,19 @@ +// +// TRVComponentJSZcacheProtocol.h +// Runtime +// +// Created by 岚遥 on 2019/11/4. +// Copyright © 2019 Taobao. All rights reserved. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +@protocol TRVComponentJSZcacheProtocol + +- (NSData *)readAppendComponentJSFromZcacheWithKey:(NSString *)key; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverRuntime.framework/Headers/TRVConfigCenter.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverRuntime.framework/Headers/TRVConfigCenter.h new file mode 100644 index 0000000..9d18827 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverRuntime.framework/Headers/TRVConfigCenter.h @@ -0,0 +1,233 @@ +// +// TRVConfigCenter.h +// Runtime +// +// Created by xuyouyang on 2019/5/16. +// Copyright © 2019 Taobao. All rights reserved. +// + +#import + +#define TRVPageLoadedNotification @"TRVPageLoadedNotification" + +NS_ASSUME_NONNULL_BEGIN + +@interface TRVConfigCenter : NSObject + ++ (instancetype)sharedInstance; + +@property (nonatomic, assign) BOOL downgradeApiPermission; + +/** + * RPC 开关,Group Name: group_windmill_rpc_ios, 反射调用 + */ +- (NSString *)fetchAlipayRPCCconfigWithKey:(NSString *)key; + +/** + 强制 CDN 下载 APPX 的地址 + */ +- (NSString *)forceCDNDownloadAppxURL; + +/** + 店铺 appx render 的附加 js CDN 地址 + */ +- (NSString *)trvRenderAppendCDNDownloadAppxURL; + +/** + * 小程序店铺的 二方组件js缓存 的最大时长(单位 s) + */ +- (NSInteger)trvShopRenderAppendJSCacheMaxAge; + +/** + * crash 时,提交小程序的相关信息 + */ +- (BOOL)trvCommitCrashInfo; + +/** + * 全局 jsapi 白名单 + */ +- (NSArray *)globalAPIWhiteList; + +/** + * 通过 internalAPI 来调用的 jsapi 白名单 + */ +- (NSArray *)internalAPIWhiteList; + +/** + * 组件中 jsapi 权限白名单, appId 的列表 + */ +- (NSArray *)webviewSudoList; + +/** + * 组件中可使用的 jsapi 名称列表 + */ +- (NSArray *)webviewJsapiWhiteList; + +/** + * 多媒体源域名白名单 + */ +- (NSArray *)mediaDomainWhiteList; + +/** + * 强制关闭线上真机调试 + */ +- (BOOL)forceCloseRemoteDebug; + +/** + * 开启 “普通” save snapshot 的小程序白名单 + */ +- (NSArray *)saveSnapshotWhiteList; + +/** + * 开启 “普通” save snapshot 的小程序模板白名单 + */ +- (NSArray *)saveSnapshotTemplateWhiteList; + +/** +* 开启 “模板” save snapshot 的小程序白名单 +*/ +- (NSArray *)saveTemplateSnapshotWhiteList; + +/** +* 开启 “模板” save snapshot 的小程序模板白名单 +*/ +- (NSArray *)saveTemplateSnapshotTemplateWhiteList; + +/** +* 读取 template snapshot js 结合数据预取 +*/ +- (NSArray *)readTemplateSnapshotJSWithDataWhiteList; + +/** +* 开启 “模板” snapshot 文件夹清理功能 +*/ +- (BOOL)enableTemplateSnapshotDirectoryClean; + +/** + * snapshot 文件有效期,默认 3 天。 + */ +- (NSTimeInterval)snapshotExpireDate; + +/** + * 关闭内嵌小程序上报自身舆情信息(旗舰店2.0) + */ +- (BOOL)disableEmbedTinyAppFeedback; + +/** + * 关闭内嵌小程序 Weex 的 ariver 组件可以回收 + */ +- (BOOL)disableAriverComponentRecycle; + +/** + * 需要把事件同步到Worker的白名单 + */ +- (NSDictionary *)eventThroughWorkerConfig; + +/** + * 关闭 URL 参数动态解析 + */ +- (BOOL)disableURLHotParse; + +/** + * 是否开启多媒体源白名单 + */ +- (BOOL)enableMediaDomainWhiteList; + +/** + 禁止 weex-view 针对店铺分类页的滚动处理 + */ +- (BOOL)disableShopCategoryScrollHanler; + +/** + 禁止 weex-view 针对店铺 isv 自定义分类页的滚动处理 + */ +- (BOOL)disableShopCustomCategoryScrollHanler; + +/** + 同步释放 Worker 的 JSContext + */ +- (BOOL)enableWorkerDeallocSync; + +#pragma mark - API +/** + * 是否使用手淘 video + */ +- (BOOL)enableVideoEnhance; +/** + * my.openLocation 打开的界面隐藏跳转 “高德” 的按钮。 + */ +- (BOOL)openLocationHideAmapNav; + +/** + * 是否使用 native input 同层渲染组件 + */ +- (BOOL)enableNativeInputComponent; + +/** + * 打开 nativeInput 的小程序白名单 + */ +- (NSArray *)nativeInputWhiteList; + +/** + * 是否降级小程序框架mtop导购域名到默认域名 + */ +- (BOOL)downgradeFrameworkMtopGuideHost; + +/** + 真机调试网路请求域名白名单 + */ +- (NSArray *)debugJsApiDomainWhitelist; + +/** + 关闭 api 调用是的 tlog 日志 +*/ +- (BOOL)disableApiInvokeTLog; + +/** + 是否打开iPadOS adaptivelayout 的开关 + */ +- (BOOL)enableIPadAdaptivelayout; + +/** + 关闭 主动降级的能力 + */ +- (BOOL)disableWeexComponentDowngrade; + +/** + 是否开启插件存储功能 + */ +- (BOOL)enablePluginTinyLocalStorage; + +/** + finish load 后重新 layout 的时间, 单位 ms + */ +- (NSInteger)ariverComponentLayoutDispatchTime; + +/** + 关闭文件系统插件隔离 +*/ +- (BOOL)disableFileSystemDistinguishPluginFile; + +/** + 关闭文件系统插件隔离(插件列表) +*/ +- (NSString *)disableFileSystemDistinguishPluginFilePluginIds; + +/** + 开启 showLoading 自动隐藏 + */ +- (BOOL)enableAutoDissmissForShowLoading; + +/** + * 网络请求预取域名白名单 + */ +- (NSArray *)httpRequestPrefetchDomainWhiteList; + +/** +* 关闭往 jscontext 中写 navigator.systemInfo 信息 +*/ +- (BOOL)disableNavigatorSystemInfo; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverRuntime.framework/Headers/TRVDebugConfigCenter.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverRuntime.framework/Headers/TRVDebugConfigCenter.h new file mode 100644 index 0000000..4fc6eb6 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverRuntime.framework/Headers/TRVDebugConfigCenter.h @@ -0,0 +1,31 @@ +// +// TRVDebugConfigCenter.h +// Runtime +// +// Created by xuyouyang on 2019/7/16. +// Copyright © 2019 Taobao. All rights reserved. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface TRVDebugConfigCenter : NSObject + +/** + 调试模式下,appx 的 cdn 地址 + */ +@property (nonatomic, strong) NSString *appxHotUrl; + +/** + 调试模式下,根据URL判断是否为店铺 + */ +@property (nonatomic, assign) BOOL isShopDebug; + ++ (instancetype)sharedInstance; + +- (void)configAppxHotURLWithOrignalAppUrl:(NSString *)AppUrl; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverRuntime.framework/Headers/TRVExtensionManager.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverRuntime.framework/Headers/TRVExtensionManager.h new file mode 100644 index 0000000..83ece53 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverRuntime.framework/Headers/TRVExtensionManager.h @@ -0,0 +1,25 @@ +// +// TRVExtensionManager.h +// Runtime +// +// Created by xuyouyang on 2019/4/18. +// Copyright © 2019 Taobao. All rights reserved. +// + +#import + +@class RVKExtension; + +NS_ASSUME_NONNULL_BEGIN + +@interface TRVExtensionManager : NSObject + ++ (void)startApiDetect; + ++ (void)registerExtensionArray:(NSArray *)extensionArray; + ++ (RVKExtension *)findJSAPIExtensionWithClassName:(NSString *)className; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverRuntime.framework/Headers/TRVExternalJSApiProtocol.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverRuntime.framework/Headers/TRVExternalJSApiProtocol.h new file mode 100644 index 0000000..8814e5b --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverRuntime.framework/Headers/TRVExternalJSApiProtocol.h @@ -0,0 +1,22 @@ +// +// TRVExternalJSApiProtocol.h +// Runtime +// +// Created by xuyouyang on 2019/8/14. +// Copyright © 2019 Taobao. All rights reserved. +// + +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +@protocol TRVExternalJSApiProtocol + +- (BOOL)canHandleApi:(NSString *)apiName; + +- (void)handleApi:(NSString *)apiName params:(NSDictionary *)params responseCallback:(RVKJsApiResponseCallbackBlock)responseCallback; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverRuntime.framework/Headers/TRVHTMLSnapshotManager.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverRuntime.framework/Headers/TRVHTMLSnapshotManager.h new file mode 100644 index 0000000..b52510e --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverRuntime.framework/Headers/TRVHTMLSnapshotManager.h @@ -0,0 +1,52 @@ +// +// TRVHTMLSnapshotManager.h +// Runtime +// +// Created by xuyouyang on 2019/8/19. +// Copyright © 2019 Taobao. All rights reserved. +// + +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface TRVHTMLSnapshotManager : NSObject + +#pragma mark - ”普通“snapshot +/** + 保存 ”普通“ snapshot + */ ++ (BOOL)saveHTMLSnapshot:(NSString *)snapshot appId:(NSString *)appId appVersion:(NSString *)appVersion; + +/** + 加载 ”普通“ snapshot + */ ++ (NSData *)loadHTMLSnapshotWithRVKContext:(RVKContext *)rvkContext; + +/** + 是否允许 “普通” snapshot + */ ++ (BOOL)enableSnapshot:(NSString *)appId templateId:(NSString *)templateId; + +#pragma mark - ”模板“snapshot + +/** + 读取包内 template snapshot 文件 +*/ ++ (NSData *)loadPkgTemplateHTMLSnapshotWithRVKContext:(RVKContext *)rvkContext; + +/** + 读取包内 template js 文件,并且拼接了 prefetch 的数据 +*/ ++ (NSData *)loadPkgTemplateJSWithRVKContext:(RVKContext *)rvkContext; + +/** + 是否允许 “模板” snapshot + */ ++ (BOOL)enableTemplateSnapshot:(NSString *)appId templateId:(NSString *)templateId; + +@end + +NS_ASSUME_NONNULL_END + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverRuntime.framework/Headers/TRVInputComponent.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverRuntime.framework/Headers/TRVInputComponent.h new file mode 100644 index 0000000..8c91bea --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverRuntime.framework/Headers/TRVInputComponent.h @@ -0,0 +1,17 @@ +// +// TRVInputComponent.h +// Runtime +// +// Created by 岚遥 on 2019/8/23. +// Copyright © 2019 Taobao. All rights reserved. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface TRVInputComponent : RVTComponent + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverRuntime.framework/Headers/TRVLogExtensionProtocol.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverRuntime.framework/Headers/TRVLogExtensionProtocol.h new file mode 100644 index 0000000..acec821 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverRuntime.framework/Headers/TRVLogExtensionProtocol.h @@ -0,0 +1,20 @@ +// +// TRVLogExtensionProtocol.h +// Triver +// +// Created by zhongweitao on 2020/7/21. +// + +#import + +@protocol TRVLogExtensionProtocol + +@optional +- (void)handleLog4EventId:(nullable NSString *)eventId + desc:(nullable NSString *)desc + stage:(nullable NSString *)stage + appId:(nullable NSString *)appId + pageName:(nullable NSString *)pageName + info:(nullable NSDictionary *)info; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverRuntime.framework/Headers/TRVLogUtil.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverRuntime.framework/Headers/TRVLogUtil.h new file mode 100644 index 0000000..a19434f --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverRuntime.framework/Headers/TRVLogUtil.h @@ -0,0 +1,58 @@ +// +// TRVLogUtil.h +// Triver +// +// Created by zhongweitao on 2019/7/18. +// + +#import + +/** + 小程序启动链路的模块名。 + */ +FOUNDATION_EXPORT NSString * const TRVLogLaunchModuleName; +/** + 小程序信息中,传递 traceId 的键。 + */ +FOUNDATION_EXPORT NSString * const TRVLogTraceIdKey; + +@interface TRVLogUtil : NSObject + +/** + 为小程序启动生成唯一跟踪 ID。 + */ ++ (NSString *)generateLaunchTraceId; + +/** + 记录指定 AppID 关联到的唯一跟踪 ID。 + */ ++ (void)recordTraceId:(NSString *)traceId forAppId:(NSString *)appId; + ++ (BOOL)logInfoForEventId:(NSString *)eventId + desc:(NSString *)desc + stage:(NSString *)stage + appId:(NSString *)appId + pageName:(NSString *)pageName + info:(NSDictionary *)info; + ++ (BOOL)logSuccessForEventId:(NSString *)eventId + desc:(NSString *)desc + appId:(NSString *)appId + stage:(NSString *)stage + pageName:(NSString *)pageName + info:(NSDictionary *)info; + +/// @brief 只进入本地localDebug工具,不输出到TLog ++ (BOOL)localLogForEventId:(NSString *)eventId + desc:(NSString *)desc + stage:(NSString *)stage + appId:(NSString *)appId + pageName:(NSString *)pageName + info:(NSDictionary *)info; + +/** + 输出小程序启动链路的事件日志。 + */ ++ (void)logLaunchEvent:(NSString *)event desc:(NSString *)desc stage:(NSString *)stage appId:(NSString *)appId pageName:(NSString *)pageName info:(NSDictionary *)info; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverRuntime.framework/Headers/TRVMonitorProtocol.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverRuntime.framework/Headers/TRVMonitorProtocol.h new file mode 100644 index 0000000..9b54e18 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverRuntime.framework/Headers/TRVMonitorProtocol.h @@ -0,0 +1,41 @@ +// +// TRVMonitorProtocol.h +// Runtime +// +// Created by xuyouyang on 2019/8/15. +// Copyright © 2019 Taobao. All rights reserved. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +@protocol TRVMonitorProtocol + +- (void)performanceWithType:(NSString *)type + commonDatas:(NSDictionary *)commonDatas + properties:(NSDictionary *)properties + stages:(NSDictionary *)stages + events:(NSDictionary *)events; + +- (void)errorWithType:(NSString *)type + code:(NSString *)code + msg:(NSString *)msg + commonDatas:(NSDictionary *)commonDatas + extDatas:(NSDictionary *)extDatas; + +- (void)appMonitorAlarm:(BOOL)success + pageName:pageName + monitorPoint:pointName + errorCode:strErrorCode + errorMsg:errorMsg + arg:argsString; + +- (void)appMonitorPerformance:(NSString *)module + monitorPoint:(NSString *)monitorPoint + dimensionValues:(NSDictionary *)dictDimensionValues + measureValues:(NSDictionary *)dictMeasureValues; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverRuntime.framework/Headers/TRVMtopInstanceProtocol.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverRuntime.framework/Headers/TRVMtopInstanceProtocol.h new file mode 100644 index 0000000..b3a83f5 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverRuntime.framework/Headers/TRVMtopInstanceProtocol.h @@ -0,0 +1,31 @@ +// +// TRVMtopInstanceProtocol.h +// Triver +// +// Created by zhongweitao on 2019/8/26. +// + +#import + +#if __has_include() + #import + #import + #import +#else + #import + #import + #import +#endif + +/// @brief Inside客户端存在多实例mtop的情况需要适配该协议 +@protocol TRVMtopInstanceProtocol + +@optional +/// @brief MTOP多实例场景下,小程序框架发起MTOP请求或者sendMtop未指定instance的情况下使用的淘宝MTOP实例 +- (MtopService *)trv_taobaoMtopService; + +/// @brief MTOP多实例场景下,根据sendMtop指定instance参数获取mtop实例 +/// @param instanceId mtop实例ID +- (MtopService *)trv_mtopServiceForInstanceId:(NSString *)instanceId; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverRuntime.framework/Headers/TRVPreRenderProtocol.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverRuntime.framework/Headers/TRVPreRenderProtocol.h new file mode 100644 index 0000000..698f691 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverRuntime.framework/Headers/TRVPreRenderProtocol.h @@ -0,0 +1,113 @@ +// +// TRVPreRenderProtocol.h +// Runtime +// +// Created by 岚遥 on 2020/1/20. +// Copyright © 2020 Taobao. All rights reserved. +// + +#import +#import "TRVRuntime.h" +#import +#import + +@protocol TRVPreRenderProtocol + +@property (nonatomic, strong) TRVWebView *preRenderWebView; // 预渲染创建的 webView + +/** + @return 是否开启 render 预渲染开关 + */ +- (BOOL)enableWebviewPreRender; + +/** + 开始预渲染 + @param fromLaunch 是否为手淘启动的预渲染 + */ +- (void)startPreRenderWebViewFromLaunch:(NSNumber *)fromLaunch; + +/** + 获取已经完成资源预加载的预渲染 webView + */ +- (TRVWebView *)fetchPreloadWebview; + +/** + 设置 url 的 hash + @param preRenderUrlString webView的完整 URL 字符串 + @param shopPrefetchData 店铺prefetch数据 + */ +- (void)setupPreRenderUrlString:(NSString *)preRenderUrlString + shopPrefetchData:(NSString *)shopPrefetchData; + +/** + 设置是否使用了预渲染的 webView + @param usePreRender 是否使用 + */ +- (void)usingPreRenderWebView:(BOOL)usePreRender; + +/** + @return 判断是否使用了预渲染的 webView + */ +- (BOOL)usedPreRenderWebView; + +/** + @return 是否可以阻止第一次request + */ +- (BOOL)enablePreventFirstRequest; + +/** + 清除无用 webView + */ +- (void)clearUnusedWebView; + +/** + 设置webView不可使用 + */ +- (void)countDownResource; + +/** + 注入启动参数js + @param scene 当前 view 的 parentObject + */ +- (void)configJSWithRVKScene:(RVKScene *)scene; + +@end + + +// 预渲染 templateSnapshot html 资源下载 +@protocol TRVPreRenderHTMLDownloadProtocol + +/** + 手淘初始化加载 html 数据 + */ +- (void)loadCachedData; + +/** + 打开小程序时刷新 html 数据 + */ +- (void)fetchHTMLData; + +/** + @return 预渲染 html数据字符串 + */ +- (NSString *)preRenderHTMLDataString; + +/** + @return 返回当前预渲染的html版本号 + */ +- (NSString *)currentTemplateSnapshotHTMLVersion; + +/** + @return 返回当前预加载 js 数据 + */ +- (NSString *)preRenderTemplateJSDataString; + +@end + +@protocol TRVHTTPRequestCommitProtocol + +- (void)commitPrefetchPageDataSuccessWithApp:(RVRApp *)app url:(NSString *)url; + +- (void)commitFetchPageDataWithApp:(RVRApp *)app url:(NSString *)url timeCost:(NSNumber *)timeCost; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverRuntime.framework/Headers/TRVPreloadPluginProtocol.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverRuntime.framework/Headers/TRVPreloadPluginProtocol.h new file mode 100644 index 0000000..5783958 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverRuntime.framework/Headers/TRVPreloadPluginProtocol.h @@ -0,0 +1,54 @@ +// +// TRVPreloadPluginProtocol.h +// Runtime +// +// Created by 岚遥 on 2020/3/3. +// Copyright © 2020 Taobao. All rights reserved. +// + +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +@protocol TRVPreloadPluginProtocol + +/** + @return 返回当前插件版本是否匹配 + */ +- (BOOL)matchPluginsVersion; + +/** + @param pluginId 比较的插件id + @return 根据插件id返回数据 + */ +- (NSString *)pluginDataWithPluginId:(NSString *)pluginId; + +/** + @return 获取官方插件idlist + */ +- (NSSet *)officialPluginList; + +/** + @return 获取已加载插件列表 + */ +- (NSSet *)loadedPluginList; + +/** + @param pluginList 设置已加载的插件列表 + */ +- (void)setLoadedPluginList:(NSSet * _Nullable)pluginList; + +/** + @param app 当前app信息 + */ +- (void)loadPluginDataWithApp:(RVRApp * _Nonnull)app; + +/** + 配置预渲染插件数据 + */ +- (void)configPluginsData; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverRuntime.framework/Headers/TRVPreloadProtocol.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverRuntime.framework/Headers/TRVPreloadProtocol.h new file mode 100644 index 0000000..6f0a930 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverRuntime.framework/Headers/TRVPreloadProtocol.h @@ -0,0 +1,97 @@ +// +// TRVPreloadProtocol.h +// TRiverKit +// +// Created by AllenHan on 2019/8/16. +// Copyright © 2019年 TaoBao. All rights reserved. +// + +#import + +#define TRVPTypeMtop @"mtop" +#define TRVPTypeHttp @"http" +#define TRVPTypeImage @"image" +#define TRVPTypeCloudFc @"cloudFunc" + +#define TRVPTypeKey @"type" +#define TRVPParamsKey @"params" +#define TRVPExtParamsKey @"extParams" + +#define TRVAppContainerKey @"TRVAppContainerKey" + +typedef void(^TRVPreloadComplete)(NSDictionary *result, NSError *error); +typedef void(^TRVMtopCompletion)(BOOL success, id response); + +@protocol TRVPreloadProtocol + +@required + +/** + 触发预加载 + + @param config 预加载配置 + @param appId 当前AppId + @param extInfo 拓展信息 + */ +- (void)startPreloadWithConfig:(NSArray*)config forApp:(NSString *)appId extInfo:(NSDictionary *)extInfo; + + +@optional + +/** + 触发插件预加载 + + @param config 预加载配置 + @param appId 当前AppId + @param requestAppKey 插件appKey + @param extInfo 拓展信息 +*/ +- (void)startPreloadWithConfig:(NSArray*)config forApp:(NSString *)appId requestAppKey:(NSString *)requestAppKey extInfo:(NSDictionary *)extInfo; + +/** + 获取MTOP预取数据 + + @param mtopRequest 当前mtop骑牛 + @param completion 缓存命中的回调 + @param extInfo 拓展信息 + @return 是否命中缓存 +*/ +- (BOOL)getMtopPrefeth4Request:(id)mtopRequest completion:(TRVMtopCompletion)completion extInfo:(NSDictionary *)extInfo; + +/** + 触发AppX预加载 + + #param completion 回调 + */ +- (void)startPreloadAppX:(TRVPreloadComplete)completion; + +/** +更新预加载缓存的AppX +*/ +- (void)updatePreloadedAppXInfo:(TRVPreloadComplete)completion; + +/** + 获取预加载的Tar包内容 + + @param appId appId + @return 内容 + */ +- (id)preloadedTarDataForApp:(NSString *)appId; + +/** + 获取HTTP请求预加载的缓存结果 + + @param params HTTP任务请求参数 + @return 缓存数据 + */ +- (id)prefetchedHttpResponseWithParams:(NSDictionary *)params; + +/** + 从Orange中动态获取配置 + + @param appId 对应的AppId + @return 配置 + */ +- (id)preloadConfigFromRemoteForAppId:(NSString *)appId; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverRuntime.framework/Headers/TRVRenderComponentMgr.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverRuntime.framework/Headers/TRVRenderComponentMgr.h new file mode 100644 index 0000000..fbb649f --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverRuntime.framework/Headers/TRVRenderComponentMgr.h @@ -0,0 +1,25 @@ +// +// TRVRenderComponentMgr.h +// Runtime +// +// Created by xuyouyang on 2019/8/26. +// Copyright © 2019 Taobao. All rights reserved. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface TRVRenderComponentMgr : NSObject + ++ (instancetype)sharedInstance; + +- (void)readAppxRenderAppendJS; + +// 同步请求数据 +- (NSData *)fetchComponentJSDataSync; + +@end + +NS_ASSUME_NONNULL_END + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverRuntime.framework/Headers/TRVRuntime.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverRuntime.framework/Headers/TRVRuntime.h new file mode 100644 index 0000000..9fbba7e --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverRuntime.framework/Headers/TRVRuntime.h @@ -0,0 +1,32 @@ +// +// TRVRuntime.h +// Runtime +// +// Created by xuyouyang on 2019/4/16. +// Copyright © 2019 Taobao. All rights reserved. +// + +#import +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface TRVWebView : WVWKWebView +@end + +@interface TRVRuntime : NSObject + +/** + * SDK 初始化时执行 + */ ++ (void)setup; + +/** + * 设置是否支持 WKWebView 的 NSURLProtocol 拦截。 + */ ++ (void)setSupportWKURLProtocol:(BOOL)supportWKURLProtocol; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverRuntime.framework/Headers/TRVTraceDebugProtocol.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverRuntime.framework/Headers/TRVTraceDebugProtocol.h new file mode 100644 index 0000000..c8468f9 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverRuntime.framework/Headers/TRVTraceDebugProtocol.h @@ -0,0 +1,60 @@ +// +// TRVTraceDebugProtocol.h +// Runtime +// +// Created by 郑祯 on 2019/9/11. +// Copyright © 2019 Taobao. All rights reserved. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +@protocol TRVTraceDebugProtocol + +#pragma mark - Event + +/** + * 接受 firstScreenPaint 首屏时间点。 + */ +- (void)receiveFSP:(double)time; + +/** + * 接受小程序启动时间点。 + */ +- (void)receiveOutset:(double)time; + +/** + * 接受诊断项信息(诊断成功)。 + * + * @param name 诊断项名称。 + * @param measure 诊断项标准。 + * @param diagnosis 诊断结果。 + * @param suggestion 诊断项建议。 + */ +- (void)receiveAuditDataWithName:(NSString *)name measure:(NSString *)measure diagnosis:(NSString *)diagnosis suggestion:(NSString *)suggestion; + +/** + * 接受诊断项信息(诊断失败)。 + * + * @param name 诊断项名称。 + * @param measure 诊断项标准。 + * @param diagnosis 诊断项结果。 + * @param suggestion 诊断项建议。 + * @param titles 诊断项明细标题。(示例:["type", "size", "error"]) + * @param values 诊断项明细列表内容。(示例:[["image", "421 kb", "load failure"],["file", "4410 kb", "no error"]]) + */ +- (void)receiveAuditDataWithName:(NSString *)name measure:(NSString *)measure diagnosis:(NSString *)diagnosis suggestion:(NSString *)suggestion titles:(NSArray *)titles values:(NSArray *)values; + +/** + * 将 CPU 时间转化为 UTC 时间。 + * + * @param cupTime CPU 时间。 + * + * @return UTC 时间(精确到毫秒)。 + */ ++ (long long)convertTimeStandard:(double)cupTime; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverRuntime.framework/Headers/TRVUTUtil+Shop.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverRuntime.framework/Headers/TRVUTUtil+Shop.h new file mode 100644 index 0000000..617e0a2 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverRuntime.framework/Headers/TRVUTUtil+Shop.h @@ -0,0 +1,52 @@ +// +// TRVUTUtil+Shop.h +// Runtime +// +// Created by xuyouyang on 2020/3/31. +// Copyright © 2020 Taobao. All rights reserved. +// + +#import "TRVUTUtil.h" + +NS_ASSUME_NONNULL_BEGIN + +@interface TRVUTUtil (Shop) + +#pragma mark - 页面性能 +/// @brief 店铺页面渲染性能埋点 +/// https://yuque.antfin-inc.com/cross_platform/dwrts1/vmu4wr#WWpnX ++ (void)commitShopPageRenderFinished:(RVRApp *)app + url:(NSString *)url + tabKey:(NSString *)tabKey + renderType:(NSString *)renderType + shopPageRenderTime:(NSNumber *)renderTime; + +/// @brief 店铺 render 预渲染 ++ (void)commitShopRenderPreload:(RVRApp *)app + isSuccess:(BOOL)isSuccess; + +/// @brief 店铺 template snapshot & 数据 ++ (void)commitShopTemplateSnapshotRender:(RVRApp *)app + isSuccess:(BOOL)isSuccess; + +#pragma mark - 网络请求 +/// @brief 店铺 shopfetch 预取命中率 ++ (void)commitShopPreFetch:(RVRApp *)app + isSuccess:(BOOL)isSuccess; + +/// @brief 店铺 shopfetch 预取耗时(ms) ++ (void)commitShopPreFetchWithAppId:(NSString *)appId + shopId:(NSString *)shopId + timeCost:(NSNumber *)timeCost; + +/// @brief 店铺 pagedata 预取命中率 ++ (void)commitShopPrePageData:(RVRApp *)app + isSuccess:(BOOL)isSuccess; + +/// @brief 店铺 pagedata 预取耗时(ms) ++ (void)commitShopPrePageData:(RVRApp *)app + timeCost:(NSNumber *)timeCost; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverRuntime.framework/Headers/TRVUTUtil.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverRuntime.framework/Headers/TRVUTUtil.h new file mode 100644 index 0000000..814678b --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverRuntime.framework/Headers/TRVUTUtil.h @@ -0,0 +1,202 @@ +// +// TRVUTUtil.h +// Triver +// +// Created by zhongweitao on 2019/9/6. +// + +#import +#import +#import + +UIKIT_EXTERN NSString * const kAppMonitorModule; +UIKIT_EXTERN NSString * const kAppMonitorPointLaunch; +UIKIT_EXTERN NSString * const kAppMonitorPointApi; +UIKIT_EXTERN NSString * const kAppMonitorPointResource; +UIKIT_EXTERN NSString * const kAppMonitorPointCloudFunction; + +@interface TRVUTUtil : NSObject + +/// @brief 启动总次数打点 ++ (void)commitAppLaunchStart:(NSString *)appId + deployVersion:(NSString *)deployVersion + developVersion:(NSString *)developVersion + templateId:(NSString *)templateId; + +/// @brief 用户取消 ++ (void)commitUserCancelLaunch:(RVRApp *)app; + +/// @brief 包失败(下载失败、解压失败、验签失败都要打点) ++ (void)commitPackageFailed:(RVRApp *)app; + +/// @brief AppInfo请求成功失败率 ++ (void)commitAppInfoRequest:(NSString *)appId + deployVersion:(NSString *)deployVersion + developVersion:(NSString *)developVersion + templateId:(NSString *)templateId + bizType:(NSString *)bizType + subBizType:(NSString *)subBizType + success:(BOOL)success; + +/// @brief Worker中Appx框架加载是否成功 ++ (void)commitLoadWorkerAppx:(RVRApp *)app + success:(BOOL)success; + +/// @brief 页面开始渲染总次数打点 ++ (void)commitPageStart:(RVRApp *)app + url:(NSString *)url; + +/// @brief 页面渲染完成时的状态打点 ++ (void)commitPageLoaded:(RVRApp *)app + url:(NSString *)url + success:(BOOL)success; + +/// @brief 包本地缓存打点 ++ (void)commitPackageCache:(RVRApp *)app + isPlugin:(BOOL)isPlugin + isZCache:(BOOL)isZCache + zcacheKey:(NSString *)zcacheKey + zcacheInfo:(NSString *)zcacheInfo + zcacheError:(NSError *)zcacheError + success:(BOOL)success; + +/// @brief 包加载打点 ++ (void)commitLoadPackage:(RVRApp *)app + isPlugin:(BOOL)isPlugin + isZCache:(BOOL)isZCache + zcacheKey:(NSString *)zcacheKey + zcacheInfo:(NSString *)zcacheInfo + zcacheError:(NSError *)zcacheError + success:(BOOL)success; + +/// @brief render 资源加载总次数 ++ (void)commitRenderResourceCount:(RVRApp *)app + url:(NSString *)url; + +/// @brief render 资源加载错误数 ++ (void)commitRenderResourceFailed:(RVRApp *)app + url:(NSString *)url; + +/// @brief windvane 上报的白屏信息 ++ (void)commitWVPageEmptyWithApp:(RVRApp *)app + errorCode:(NSString *)errorCode + url:(NSString *)url; + +/// @brief API 埋点 (无参数) ++ (void)commitApiInvokeWithApp:(RVRApp *)app + apiName:(NSString *)apiName + isSuccess:(BOOL)isSuccess + errorCode:(NSInteger)errorCode + errorMessage:(NSString *)errorMessage; + +/// @brief API 埋点 (有参数) ++ (void)commitApiInvokeWithApp:(RVRApp *)app + apiName:(NSString *)apiName + params:(NSDictionary *)params + isSuccess:(BOOL)isSuccess + errorCode:(NSInteger)errorCode + errorMessage:(NSString *)errorMessage; + +/// @brief 云函数埋点 ++ (void)commitCloudFunction:(RVRApp *)app + functionName:(NSString *)functionName + handler:(NSString *)handler + success:(BOOL)success + timeCost:(NSNumber *)timeCost + errorCode:(NSString *)errorCode + errorMessage:(NSString *)errorMessage; + +/// @brief 组件埋点 ++ (void)commitComponent:(RVRApp *)app + name:(NSString *)name + info:(NSString *)info; + +#pragma mark - AppInfo 单独统计 +/// @brief appInfo加载总次数点 ++ (void)commitAppInfoStart:(NSString *)appId; +/// @brief appInfo加载失败 ++ (void)commitAppInfoFail:(NSString *)appId + errorCode:(NSString *)errorCode + errorMsg:(NSString *)errorMsg; +/// @brief appInfo加载成功 ++ (void)commitAppInfoSuccess:(RVRApp *)app; + +#pragma mark - 包 单独统计 +/// @brief 包请求总次数 ++ (void)commitPackageRequestStart:(RVRApp *)app; +/// @brief 包请求成功失败 ++ (void)commitPackageRequestFinish:(RVRApp *)app + errorCode:(NSString *)errorCode + errorMsg:(NSString *)errorMsg + success:(BOOL)success; +/// @brief 包加载总次数 ++ (void)commitPackageLoadStart:(RVRApp *)app; +/// @brief 包加载成功失败 ++ (void)commitPackageLoadFinish:(RVRApp *)app + errorCode:(NSString *)errorCode + errorMsg:(NSString *)errorMsg + success:(BOOL)success; + +#pragma mark - AppX 单独统计 +/// @brief Appx检查总次数 ++ (void)commitAppxCheckStart:(RVRApp *)app; +/// @brief Appx检查成功失败 ++ (void)commitAppxCheckFinish:(RVRApp *)app + errorCode:(NSString *)errorCode + errorMsg:(NSString *)errorMsg + success:(BOOL)success; + +#pragma mark - Render 单独统计 +/// @brief 页面总数埋点 ++ (void)commitRenderStart:(RVRApp *)app isFirstPage:(BOOL)isFirstPage; +/// @brief Redner框架加载成功埋点 ++ (void)commitRenderFrameworkFinish:(RVRApp *)app isFirstPage:(BOOL)isFirstPage; +/// @brief 页面渲染成功埋点 ++ (void)commitRenderPageLoaded:(RVRApp *)app isFirstPage:(BOOL)isFirstPage; +/// @brief snapshot加载成功埋点 ++ (void)commitRenderFromSnapshot:(RVRApp *)app; +/// @brief template snapshot加载成功埋点 ++ (void)commitRenderFromTemplateSnapshot:(RVRApp *)app; + +#pragma mark - Worker 单独统计 +/// @brief Worker总次数 ++ (void)commitWorkerStart:(RVRApp *)app; +/// @brief Worker总次数 ++ (void)commitWorkerFinish:(RVRApp *)app + errorCode:(NSString *)errorCode + errorMsg:(NSString *)errorMsg + success:(BOOL)success; + + + +/// @brief HTTP请求成功 ++ (void)commitHttpSuccess:(RVRApp *)app url:(NSString *)url rt:(NSNumber *)rt; +/// @brief HTTP请求失败 ++ (void)commitHttpFail:(RVRApp *)app url:(NSString *)url rt:(NSNumber *)rt errorCode:(NSString *)errorCode errorMessage:(NSString *)errorMsg; + +/// @brief MTOP请求成功 ++ (void)commitMtopSuccess:(RVRApp *)app apiName:(NSString *)apiName rt:(NSNumber *)rt; +/// @brief MTOP请求失败 ++ (void)commitMtopFail:(RVRApp *)app + apiName:(NSString *)apiName + rt:(NSNumber *)rt + errorCode:(NSString *)errorCode + errorMessage:(NSString *)errorMsg; + +/// @brief 分享截屏水印上传成功 ++ (void)commitShareCaptureScreenSuccess:(RVRApp *)app url:(NSString *)url rt:(NSNumber *)rt; +/// @brief 分享截屏水印上传失败 ++ (void)commitShareCaptureScreenFail:(RVRApp *)app url:(NSString *)url rt:(NSNumber *)rt errorCode:(NSString *)errorCode errorMessage:(NSString *)errorMsg; + +#pragma mark - 基础接口 ++ (void)commitStatWithAppId:(NSString *)appId + deployVersion:(NSString *)deployVersion + developVersion:(NSString *)developVersion + templateId:(NSString *)templateId + bizType:(NSString *)bizType + subBizType:(NSString *)subBizType + customDimensions:(NSDictionary *)customDimensions + customMeasures:(NSDictionary *)customMeasures + monitorPoint:(NSString *)monitorPoint; + +@end diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverRuntime.framework/Headers/TRVWebComponentProtocol.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverRuntime.framework/Headers/TRVWebComponentProtocol.h new file mode 100644 index 0000000..d297bd5 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverRuntime.framework/Headers/TRVWebComponentProtocol.h @@ -0,0 +1,23 @@ +// +// TRVWebComponentProtocol.h +// Runtime +// +// Created by xuyouyang on 2019/12/19. +// Copyright © 2019 Taobao. All rights reserved. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +@protocol TRVWebComponentProtocol + +@required +/** + 组件格外处理加载的 url + */ +- (NSURL *)extHandleURL:(NSURL *)url; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverRuntime.framework/Info.plist b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverRuntime.framework/Info.plist new file mode 100644 index 0000000..a9bc7c2 Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverRuntime.framework/Info.plist differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverRuntime.framework/TriverRuntime b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverRuntime.framework/TriverRuntime new file mode 100644 index 0000000..3b1fb5e Binary files /dev/null and b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverRuntime.framework/TriverRuntime differ diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverRuntime.framework/TriverRuntime.bundle/TRVShopComponent.js b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverRuntime.framework/TriverRuntime.bundle/TRVShopComponent.js new file mode 100644 index 0000000..bea5aef --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverRuntime.framework/TriverRuntime.bundle/TRVShopComponent.js @@ -0,0 +1,28 @@ +!function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=11)}([function(t,e,r){var n=r(9)(Object,"create");t.exports=n},function(t,e,r){var n=r(51);t.exports=function(t,e){for(var r=t.length;r--;)if(n(t[r][0],e))return r;return-1}},function(t,e,r){var n=r(57);t.exports=function(t,e){var r=t.__data__;return n(e)?r["string"==typeof e?"string":"hash"]:r.map}},function(t,e){var r=Array.isArray;t.exports=r},function(t,e,r){var n=r(8),o=r(30),i="[object Symbol]";t.exports=function(t){return"symbol"==typeof t||o(t)&&n(t)==i}},function(t,e,r){var n=r(6).Symbol;t.exports=n},function(t,e,r){var n=r(26),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();t.exports=i},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.damping=function(t,e){return t/=2,Math.min(t,e)},e.findCurrentScorller=function(t){var e=document.getElementById(t);if(e)return e;var r=document.querySelectorAll("div[id].a-scroll-view");return(r=(r=Array.prototype.slice.call(r)).filter((function(e){return!!~e.id.indexOf(t)}))).length>0?r[0]:void 0},e.isTrue=function(t){return!0===t||"true"===t}},function(t,e,r){var n=r(5),o=r(28),i=r(29),a="[object Null]",u="[object Undefined]",c=n?n.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?u:a:c&&c in Object(t)?o(t):i(t)}},function(t,e,r){var n=r(38),o=r(43);t.exports=function(t,e){var r=o(t,e);return n(r)?r:void 0}},function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var o=n(r(12)),i=n(r(13)),a=n(r(21));!function(){o.default(i.default);var t=window.templateSnapshot,e=window.AlipayJSBridge;if(t&&e&&e.startupParams&&t.data)try{a.default({data:t.data,startParams:e.startupParams})}catch(t){}}()},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n="";function o(t){return n+t.replace(/( |^)[a-z]/g,(function(t){return t.toUpperCase()}))}e.default=function(t){t.forEach((function(t){var e=t.name,r=t.component;window.AFAppX.addExtraComponent({name:o(e),factory:function(t){return r(t.createReactClass)}})}))}},function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var o=n(r(14));e.default=[o.default]},function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,n=arguments.length;r-1||p.indexOf("Adr")>-1,h={capture:!0,passive:!0},y=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.headDom=null,e.triggerDom=null,e.maskDom=null,e.loftLogDom=null,e.currentScroller=null,e.isLoftOpen=!1,e.isLoftPulling=!1,e.isTouch=!1,e.scrollersTop={},e.distanceX=0,e.distanceY=0,e.moveCount=0,e.touchStartPoint=null,e.bindDom=function(){e.triggerDom||(e.headDom=document.querySelector(".loft-trigger-head"),e.triggerDom=document.querySelector(".loft-trigger-content"),e.maskDom=document.querySelector(".loft-trigger-mask"),e.loftLogDom=document.querySelector(".loft-log"),e.currentScroller||(e.currentScroller=l.findCurrentScorller(e.props.currentScrollerId)),e.triggerDom&&(e.triggerDom.addEventListener("touchstart",e.onStart,h),e.triggerDom.addEventListener("touchend",e.onEnd,h),e.triggerDom.addEventListener("touchcancel",e.onEnd,h),e.currentScroller&&e.currentScroller.addEventListener("scroll",e.scrollHandler,h),d?e.triggerDom.addEventListener("touchmove",e.onMove,h):(window.WEEXVIEW_TOUCH_START=function(){e.onStart()},window.WEEXVIEW_TOUCH_END=function(){e.onEnd()},window.WEEXVIEW_TOUCH_CANCEL=function(){e.onEnd()})))},e.scrollHandler=function(t){var r,n,o;t.weexViewId?(r=t.weexViewId,n=t.scrollTop,o=t.scrollHeight):(r=e.props.currentScrollerId,n=e.currentScroller.scrollTop,o=e.currentScroller.scrollHeight),e.log(r,n,o),e.swipeHandler({scrollTop:n,weexViewId:r,scrollHeight:o}),e.props.shouldTirggerLoft&&(e.isTouch&&n<-f?(e.pullHandler(n),e.isLoftPulling=!0):e.isLoftPulling=!1)},e.swipeHandler=function(t){var r=t.scrollTop,n=t.weexViewId,o=t.scrollHeight,i=void 0===o?1e3:o;if(r=Math.round(r),void 0!==e.scrollersTop[n]){var a=i-window.innerHeight;r<0&&r>-f&&e.isTouch&&e.scrollersTop[n]>r&&e.props.isHeadFixed&&e.props.onSwipeDown&&e.props.onSwipeDown(),d?r>0&&(e.isLoftPulling||(e.scrollersTop[n]>r&&e.props.isHeadFixed&&e.props.onSwipeDown&&e.props.onSwipeDown(),e.scrollersTop[n]0&&rr&&e.props.isHeadFixed&&e.props.onSwipeDown&&e.props.onSwipeDown(),e.scrollersTop[n]=o)e.headDom&&(e.headDom.style.opacity=0),e.maskDom&&(e.maskDom.style.opacity=1),e.isLoftOpen||e.openLoft(),e.isLoftOpen=!0;else{var i=(r-f)/(o-f);e.headDom&&(e.headDom.style.opacity=1-i),e.maskDom&&(e.maskDom.style.opacity=i),e.isLoftOpen=!1}},e.onStart=function(t){e.isTouch=!0,e.log(e.isTouch),d&&(e.touchStartPoint={x:t.touches[0].screenX,y:t.touches[0].screenY})},e.onEnd=function(){e.isLoftPulling=!1,e.isTouch=!1,e.isLoftOpen=!1,e.log(e.isTouch),e.isLoftOpen&&e.currentScroller&&(e.currentScroller.scrollTop=0),e.headDom&&(e.headDom.style.opacity=1),e.maskDom&&(e.maskDom.style.opacity=0),e.distanceX=0,e.distanceY=0,e.moveCount=0,e.touchStartPoint=null,e.triggerDom&&(e.triggerDom.style.transform="translateY(0px)")},e.onMove=function(t){if(e.props.shouldTirggerLoft&&e.triggerDom&&d&&!(e.currentScroller&&e.currentScroller.scrollTop>0)){if(e.distanceX=e.touchStartPoint.x-t.touches[0].screenX,e.distanceY=e.touchStartPoint.y-t.touches[0].screenY,e.moveCount<=4&&e.distanceX<10&&e.distanceX>-10&&e.distanceY<-10&&(e.isLoftPulling=!0),e.moveCount>5&&e.isLoftPulling){var r=l.damping(-e.distanceY,(e.props.maxGap||120)+30);e.triggerDom.style.transform="translateY("+r+"px)",r>f&&e.pullHandler(-r)}e.moveCount++}},e}return o(e,t),e.prototype.componentDidUpdate=function(t){this.props.currentScrollerId!==t.currentScrollerId&&(this.currentScroller&&this.currentScroller.removeEventListener("scroll",this.scrollHandler,h),this.currentScroller=l.findCurrentScorller(this.props.currentScrollerId),this.currentScroller&&this.currentScroller.addEventListener("scroll",this.scrollHandler,h))},e.prototype.componentDidMount=function(){window.PIPE_TO_LOFT=this.scrollHandler,window.AlipayJSBridge&&window.AlipayJSBridge.startupParams&&this.props.onDidMount&&this.props.onDidMount(AlipayJSBridge.startupParams),setTimeout(this.bindDom,3e3)},e.prototype.componentWillUnmount=function(){delete window.PIPE_TO_LOFT,delete window.WEEXVIEW_TOUCH_START,delete window.WEEXVIEW_TOUCH_END,delete window.WEEXVIEW_TOUCH_CANCEL,this.triggerDom&&(this.triggerDom.removeEventListener("touchstart",this.onStart,h),this.triggerDom.removeEventListener("touchend",this.onEnd,h),this.triggerDom.removeEventListener("touchcancel",this.onEnd,h),this.triggerDom.removeEventListener("touchmove",this.onMove,h))},e.prototype.openLoft=function(){this.props.onLoftOpen&&this.props.onLoftOpen()},e.prototype.log=function(){for(var t=[],e=0;eI.length&&I.push(t)}function A(t,e,r){return null==t?0:function t(e,r,n,o){var u=typeof e;"undefined"!==u&&"boolean"!==u||(e=null);var c=!1;if(null===e)c=!0;else switch(u){case"string":case"number":c=!0;break;case"object":switch(e.$$typeof){case i:case a:c=!0}}if(c)return n(o,e,""===r?"."+H(e,0):r),1;if(c=0,r=""===r?".":r+":",Array.isArray(e))for(var s=0;s-1}},function(t,e,r){var n=r(1);t.exports=function(t,e){var r=this.__data__,o=n(r,t);return o<0?(++this.size,r.push([t,e])):r[o][1]=e,this}},function(t,e,r){var n=r(9)(r(6),"Map");t.exports=n},function(t,e,r){var n=r(2);t.exports=function(t){var e=n(this,t).delete(t);return this.size-=e?1:0,e}},function(t,e){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},function(t,e,r){var n=r(2);t.exports=function(t){return n(this,t).get(t)}},function(t,e,r){var n=r(2);t.exports=function(t){return n(this,t).has(t)}},function(t,e,r){var n=r(2);t.exports=function(t,e){var r=n(this,t),o=r.size;return r.set(t,e),this.size+=r.size==o?0:1,this}},function(t,e,r){var n=r(62);t.exports=function(t){return null==t?"":n(t)}},function(t,e,r){var n=r(5),o=r(63),i=r(3),a=r(4),u=1/0,c=n?n.prototype:void 0,s=c?c.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(i(e))return o(e,t)+"";if(a(e))return s?s.call(e):"";var r=e+"";return"0"==r&&1/e==-u?"-0":r}},function(t,e){t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,o=Array(n);++r-1&&(u="http:"),a.url=u+a.url}e.shopContent.map((function(e,r){e.key===t?e.url=a.url:e.subTabs.map((function(e,r){e.key===t&&(e.url=a.url)}))}))}}else i&&"header"===i.type?(e.headerData=i.payload,e.headerData.loftInfo&&(e.loftInfo=e.headerData.loftInfo)):i&&"navigator"===i.type&&(e.navigatorData=i.payload)}}))},this.urlParams=t||{}};e.default=o}]);!function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=1)}([function(e,t,r){"use strict";e.exports=r(5)},function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=n(r(2)),u=n(r(3));o.default(u.default)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="";function o(e){return n+e.replace(/( |^)[a-z]/g,(function(e){return e.toUpperCase()}))}t.default=function(e){var t=window.AFAppX,r=t.addExtraComponent,n=t.bridge;e.forEach((function(e){var t=e.name,u=e.component;r({name:o(t),factory:function(e){return u(e.createReactClass,n)}})}))}},function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(4),u=n(r(7));t.default=[o.MixRenderObject,o.MixRenderParam,u.default]},function(e,t,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;rM.length&&M.push(e)}function H(e,t,r){return null==e?0:function e(t,r,n,o){var l=typeof t;"undefined"!==l&&"boolean"!==l||(t=null);var a=!1;if(null===t)a=!0;else switch(l){case"string":case"number":a=!0;break;case"object":switch(t.$$typeof){case u:case i:a=!0}}if(a)return n(o,t,""===r?"."+T(t,0):r),1;if(a=0,r=""===r?".":r+":",Array.isArray(t))for(var c=0;c + + + + JsApiRuntime + + JsApis + + + jsApi + getAuthUserInfo + name + RVPJsApiHandler4GetAuthUserInfo + + + jsApi + openSetting + name + RVSJsApiHandler4OpenSetting + + + jsApi + getSetting + name + RVPJsApiHandler4GetSetting + + + jsApi + authorize + name + RVPJsApiHandler4Authorize + + + jsApi + getTBCode + name + RVPJsApiHandler4GetTBCode + + + jsApi + NBComponent.render + name + RVKJsApiHandler4ComponentRender + + + jsApi + NBComponent.remove + name + RVKJsApiHandler4ComponentRemove + + + jsApi + NBComponent.setData + name + RVKJsApiHandler4ComponentSetData + + + jsApi + NBComponent.sendMessage + name + RVKJsApiHandler4ComponentSendMessage + + + jsApi + postWebViewMessage + name + RVKJsApiHandler4WebViewPostMessage + + + + PluginRuntime + + Plugins + + + events + + + useCapture + + name + - + + + scope + scene + name + TRVPluginExtension4PreventFirstRequest + + + events + + + useCapture + + name + - + + + scope + scene + name + TRVPluginExtension4PreRenderWeex + + + events + + + useCapture + + name + - + + + scope + session + name + TRVMNNPlugin + + + + ExtensionRuntime + + Extensions + + + ComponentRuntime + + Components + + + + diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverRuntime.framework/TriverRuntime.bundle/h5_bridge.js b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverRuntime.framework/TriverRuntime.bundle/h5_bridge.js new file mode 100644 index 0000000..c12bcd6 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverRuntime.framework/TriverRuntime.bundle/h5_bridge.js @@ -0,0 +1,355 @@ +//contact with lin.weng@alipay.com before change this file +(window.AlipayJSBridge && !window.AlipayCallFromJS)|| (function () { + "H5_BRIDGE_JS_REPLACE_STRING"; + var iframe = null; + + var rawJsonStringify = JSON.stringify; + var rawJsonParse = JSON.parse; + var rawArrayPush = Array.prototype.push; + /***************Messge Handler*****************/ + var safeCallMessage,shouldUseMessageChannel = false; + if (window.webkit + && window.webkit.messageHandlers + && window.webkit.messageHandlers.PSDBRIDGEMESSAGEHANDLER + && window.webkit.messageHandlers.PSDBRIDGEMESSAGEHANDLER.postMessage) { + var webkit = window.webkit; + var postMessage = window.webkit.messageHandlers.PSDBRIDGEMESSAGEHANDLER.postMessage; + var PSDBRIDGEMESSAGEHANDLER = window.webkit.messageHandlers.PSDBRIDGEMESSAGEHANDLER; + window.webkit.messageHandlers.PSDBRIDGEMESSAGEHANDLER.postMessage = function(){}; + safeCallMessage = function(message){ + return postMessage.apply(PSDBRIDGEMESSAGEHANDLER,[message]); + } + shouldUseMessageChannel = true; + } + + function renderIframe() { + if (iframe || shouldUseMessageChannel) return; + try { + iframe = document.createElement("iframe"); + iframe.id = "__AlipayJSBridgeIframe"; + iframe.style.display = "none"; + if (document.documentElement) { + document.documentElement.appendChild(iframe); + }else{ + //for pdf to append iframe + document.appendChild(iframe); + } + } catch (e) { + + } + } + + function onDOMReady(callback) { + var readyRE = /complete|loaded|interactive/; + if (readyRE.test(document.readyState)) { + setTimeout(function() { + callback(); + }, 1); + } else { + document.defaultView.addEventListener('DOMContentLoaded', function () { + callback(); + }, false); + } + } + + /***************Param Type*****************/ + var NEBULA_TYPE_INFO = "NEBULATYPEINFO",NEBULA_TYPE_OF_ARRAYBUFFER = "ArrayBuffer"; + + var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; + var lookup = new Uint8Array(256); + for (var i = 0; i < chars.length; i++) { + lookup[chars.charCodeAt(i)] = i; + } + + function arrayBufferToBase64(buffer) { + var binary = ''; + var bytes = new Uint8Array(buffer); + var len = bytes.byteLength; + for (var i = 0; i < len; i++) { + binary += String.fromCharCode(bytes[i]); + } + return window.btoa(binary); + } + + function base64ToArrayBuffer(base64) { + var bufferLength = base64.length * 0.75, + len = base64.length, i, p = 0, + encoded1, encoded2, encoded3, encoded4; + + if (base64[base64.length - 1] === "=") { + bufferLength--; + if (base64[base64.length - 2] === "=") { + bufferLength--; + } + } + + var arraybuffer = new ArrayBuffer(bufferLength), + bytes = new Uint8Array(arraybuffer); + + for (i = 0; i < len; i+=4) { + encoded1 = lookup[base64.charCodeAt(i)]; + encoded2 = lookup[base64.charCodeAt(i+1)]; + encoded3 = lookup[base64.charCodeAt(i+2)]; + encoded4 = lookup[base64.charCodeAt(i+3)]; + + bytes[p++] = (encoded1 << 2) | (encoded2 >> 4); + bytes[p++] = ((encoded2 & 15) << 4) | (encoded3 >> 2); + bytes[p++] = ((encoded3 & 3) << 6) | (encoded4 & 63); + } + + return arraybuffer; + } + + function transformCallParam(param){ + var result = param; + for(var key in param){ + if (param.hasOwnProperty(key)) { + var val = param[key]; + if (val instanceof ArrayBuffer) { + param[key] = arrayBufferToBase64(val); + if (!result[NEBULA_TYPE_INFO]) { + result[NEBULA_TYPE_INFO] = {}; + } + result[NEBULA_TYPE_INFO][key] = {"type" : NEBULA_TYPE_OF_ARRAYBUFFER}; + } + } + } + return result; + } + + function transformResponseData(responsedata){ + if (responsedata && responsedata[NEBULA_TYPE_INFO]) { + var nebulaTypeInfo = responsedata[NEBULA_TYPE_INFO]; + if (nebulaTypeInfo) { + for(var key in nebulaTypeInfo){ + if (nebulaTypeInfo.hasOwnProperty(key)) { + var item = nebulaTypeInfo[key]; + if (item.type) { + var typeVal = item["type"]; + if (typeVal === NEBULA_TYPE_OF_ARRAYBUFFER) { + responsedata[key] = base64ToArrayBuffer(responsedata[key]); + } + } + } + } + delete responsedata[NEBULA_TYPE_INFO]; + } + } + return responsedata; + } + + /***************Bridge*****************/ + var msgKt = "messageTK"; + var callbackPoll = {}; + + var sendMessageQueue = []; + var receiveMessageQueue = []; + + var JSAPI = { + /* + * 调用Native功能 + */ + call: function (func, param, callback) { + //jsbridge注入提前后,DOM环境可能还没创建,原jsbridge注入的同时创建iframe的方式将创建失败,改为调用接口的时候创建iframe + //如果直接使用JSC通信 + renderIframe(); + // + if ('string' !== typeof func) { + return; + } + + if ('function' === typeof param) { + callback = param; + param = null; + } else if (typeof param !== 'object') { + param = null; + } + + // 防止时间戳重复 + var callbackId = func + '_' + new Date().getTime() + (Math.random()); + if ('function' === typeof callback) { + callbackPoll[callbackId] = callback; + } + + if (param && param.callbackId) { + // 从Native调用过来的请求,再回调到Native的callback里 + // TODO: 需要优化,这里调用回Native的callback不需要传入`handlerName` + func = { + responseId: param.callbackId, + responseData: param + }; + delete param.callbackId; + } else { + // 从页面直接发起到Native的请求 + // 支持arrayBuffer的数据格式 + func = { + handlerName: func, + data: transformCallParam(param) || {} + }; + func.callbackId = '' + callbackId; + } + +// console.log('bridge.call: ' + JSON.stringify(func)); + + rawArrayPush.call(sendMessageQueue, func); + //use jsc + if (window.AlipayCallFromJS && 'function' === typeof window.AlipayCallFromJS) { + window.AlipayCallFromJS(JSAPI._fetchQueue(), document.location.href); + }else if(window.webkit && window.webkit.messageHandlers && window.webkit.messageHandlers.PSDBRIDGEMESSAGEHANDLER && window.webkit.messageHandlers.PSDBRIDGEMESSAGEHANDLER.postMessage){ + //use wkwebview message channel + safeCallMessage({ + type:"api", + queue:JSAPI._stringifyMessageQueue(), + msgKt:msgTKTarget + }); + }else if (iframe) { + iframe.src = "alipaybridge://dispatch_message"; + } + }, + + trigger: function (name, data) { +// console.log('bridge.trigger ' + name); + if (name) { + var triggerEvent = function (name, data) { + var callbackId; + if (data && data.callbackId) { + callbackId = data.callbackId; + data.callbackId = null; + } + var evt = document.createEvent("Events"); + evt.initEvent(name, false, true); + evt.syncJsApis = []; + + if (data) { + if (data.__pull__) { + delete data.__pull__; + for (var k in data) { + evt[k] = data[k]; + } + } else { + evt.data = data; + } + } + var canceled = !document.dispatchEvent(evt); + if (callbackId) { + var callbackData = {}; + callbackData.callbackId = callbackId; + callbackData[name + 'EventCanceled'] = canceled; + callbackData['syncJsApis'] = evt.syncJsApis; + JSAPI.call('__nofunc__', callbackData); + } + }; + setTimeout(function () { + triggerEvent(name, data); + }, 1); + } + }, + + /* + * Native调用js函数,传输消息 + **/ + _invokeJS: function (resp) { +// console.log('bridge._invokeJS: ' + resp); + resp = rawJsonParse(resp); + + if (resp.responseId) { + var func = callbackPoll[resp.responseId]; + //某些情况需要多次回调,添加keepCallback标识,防删除 + if (!(typeof resp.keepCallback == 'boolean' && resp.keepCallback)) { + delete callbackPoll[resp.responseId]; + } + + if ('function' === typeof func) { + // 避免死锁问题 + setTimeout(function () { + func(transformResponseData(resp.responseData)); + }, 1); + } + } else if (resp.handlerName) { + if (resp.callbackId) { + resp.data = resp.data || {}; + resp.data.callbackId = resp.callbackId; + } + JSAPI.trigger(resp.handlerName, resp.data); + } + }, + + // *********************************************** + // WebViewJSBridge.js库兼容 @远尘 2014.2.28 + + _handleMessageFromObjC: function (message) { + if (receiveMessageQueue&&!window.AlipayJSBridge) { + receiveMessageQueue.push(message); + } else { + JSAPI._invokeJS(message); + } + }, + _stringifyMessageQueue:function(){ + var messageQueueString = rawJsonStringify(sendMessageQueue); + sendMessageQueue = []; + return messageQueueString; + }, + _fetchQueue: function (tk) { + //if shouldshouldUseTK and if no token we think it is illegal call and just retrun empth array + if (shouldUseTK) { + if (tk && msgTKTarget && msgTKTarget === tk) { + return JSAPI._stringifyMessageQueue(); + }else { + return '[]'; + } + }else{ + return JSAPI._stringifyMessageQueue(); + } + } + }; + + // *********************************************** + + // 初使化事件, 在webview didFinishLoad后调用 + JSAPI.init = function () { + // dont call me any more + //JSAPI.init = null; + + + var readyEvent = document.createEvent('Events'); + readyEvent.initEvent('AlipayJSBridgeReady', false, false); + + // 处理ready事件发生以后才addEventListener的情况 + var docAddEventListener = document.addEventListener; + document.addEventListener = function (name, func) { + if (name === readyEvent.type) { + // 保持func执行的异步性 + setTimeout(function () { + func(readyEvent); + }, 1); + } else { + docAddEventListener.apply(document, arguments); + } + }; + + document.dispatchEvent(readyEvent); + + var receivedMessages = receiveMessageQueue; + receiveMessageQueue = null; + for (var i = 0; i < receivedMessages.length; i++) { + JSAPI._invokeJS(receivedMessages[i]); + } + }; + + window.AlipayJSBridge = JSAPI; + + //动态替换js片段,为了解决在AlipayJSBridge Ready中,使用新增的js属性,由内核替换为js片段字符串 + "H5_BRIDGE_JS_***_REPLACE_STRING_***_SJ_EGDIRB_5H"; + + //从全局对象中读取startupParams,确保ready中可用 + JSAPI.startupParams = window.ALIPAYH5STARTUPPARAMS || {}; + + //jsbridge提前后,将webViewDidFinishLoad中init方法,提前到DOMReady后执行,避免由于长时间加载资源,而影响到接口调用 + onDOMReady(JSAPI.init); + + onDOMReady(function(){ + if (window.webkit && window.webkit.messageHandlers && window.webkit.messageHandlers.PSDBRIDGEDOMREADY && window.webkit.messageHandlers.PSDBRIDGEDOMREADY.postMessage) { + window.webkit.messageHandlers.PSDBRIDGEDOMREADY.postMessage(""); + }; + }); +})(); diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverVideo.framework/Headers/TRVVideoFactoryProtocol.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverVideo.framework/Headers/TRVVideoFactoryProtocol.h new file mode 100644 index 0000000..c6ff07b --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverVideo.framework/Headers/TRVVideoFactoryProtocol.h @@ -0,0 +1,19 @@ +// +// TRVVideoFactoryProtocol.h +// Triver +// +// Created by 岚遥 on 2019/11/1. +// + +#import +#import "TRVVideoPlayerViewProtocol.h" + +NS_ASSUME_NONNULL_BEGIN + +@protocol TRVVideoFactoryProtocol + +- (id)createTBVideoPlayerView; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverVideo.framework/Headers/TRVVideoFullScreenViewController.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverVideo.framework/Headers/TRVVideoFullScreenViewController.h new file mode 100644 index 0000000..65d3f4c --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverVideo.framework/Headers/TRVVideoFullScreenViewController.h @@ -0,0 +1,24 @@ +// +// TRVVideoFullScreenViewController.h +// Media +// +// Created by 岚遥 on 2019/7/25. +// Copyright © 2019 taobao. All rights reserved. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +extern NSString * const TRVTurnVideoScreenOrientationNotification; + +@interface TRVVideoFullScreenViewController : UIViewController + + +@property (nonatomic, assign) UIInterfaceOrientation interfaceOrientation; + +@property (nonatomic, assign) BOOL isVideoAssetvertical; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverVideo.framework/Headers/TRVVideoPlayerModel.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverVideo.framework/Headers/TRVVideoPlayerModel.h new file mode 100644 index 0000000..483c6b7 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverVideo.framework/Headers/TRVVideoPlayerModel.h @@ -0,0 +1,89 @@ +// +// TRVVideoPlayerModel.h +// Media +// +// Created by 岚遥 on 2019/7/25. +// Copyright © 2019 taobao. All rights reserved. +// + +#import +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +// mobile network remind type, default is 1 +typedef NS_ENUM(NSInteger, TRVVideoPlayerMobileNetworkRemindType) { + TRVVideoPlayerMobileNetworkRemindTypeNone = 0, // 不提醒 + TRVVideoPlayerMobileNetworkRemindTypeTip = 1, // tip提醒 + TRVVideoPlayerMobileNetworkRemindTypeBlockWithNoFlow = 2, // 阻塞提醒(无消耗流量大小) + TRVVideoPlayerMobileNetworkRemindTypeBlockWithFlow = 3 // 阻塞提醒(有消耗流量大小,只有优酷vid才能取到流量大小) +}; + +typedef NS_ENUM(NSInteger, TRVVideoGravityType) { + TRVVideoGravityResizeAspect = 0, // Preserve aspect ratio; fit within layer bounds. + TRVVideoGravityResizeAspectFill = 1, // Preserve aspect ratio; fill layer bounds. + TRVVideoGravityResize = 2 // Stretch to fill layer bounds. +}; + +// video player status code +typedef NS_ENUM(NSInteger, TRVVideoPlayerStatus) { + TRVVideoPlayerStatusUnknow = -1, // 默认值 + TRVVideoPlayerStatusStop = 0, // 播放停止 + TRVVideoPlayerStatusPlay = 1, // 播放中 + TRVVideoPlayerStatusPause = 2, // 暂停播放 + TRVVideoPlayerStatusLoading = 3, // 缓冲中 + TRVVideoPlayerStatusEnded = 4, // 播放完毕 + TRVVideoPlayerStatusReadyToPlay = 5, // 将要播放 +}; + +@interface TRVVideoPlayerModel : NSObject + +@property (nonatomic, strong) NSString *src; // 视频源 +@property (nonatomic, strong) NSString *poster; // 封面图(获取第一帧当封面图) +/** + 当视频大小与 video 容器大小不一致时,视频的表现形式。contain:包含,fill:填充。 + */ +@property (nonatomic, strong) NSString *objectFit; +@property (nonatomic, assign) AVLayerVideoGravity videoGravity; + +@property (nonatomic, strong) NSNumber *initialTime; // 指定视频初始播放位置,单位s +@property (nonatomic, strong) NSNumber *duration; // 指定视频时长,单位s,默认读取视频本身时长信息 +/** + 设置全屏时视频的方向,不指定则根据宽高比自动判断。有效值为 0(正常竖向), 90(屏幕逆时针90度), -90(屏幕顺时针90度) + */ +@property (nonatomic, strong) NSNumber *direction; +@property (nonatomic, assign) UIInterfaceOrientation orientation; + +@property (nonatomic, assign) TRVVideoPlayerStatus playStatus; + +/** + 移动网络提醒样式:0-不提醒;1-tip提醒;2-阻塞提醒(无消耗流量大小);3-阻塞提醒(有消耗流量大小,只有优酷vid才能取到流量大小) 默认 1 + */ +@property (nonatomic, assign) TRVVideoPlayerMobileNetworkRemindType mobilenetHintType; + +@property (nonatomic, assign) BOOL controls; // 是否显示默认播放控件(底部工具条,包括播放/暂停按钮、播放进度、时间)true +@property (nonatomic, assign) BOOL autoplay; // 是否自动播放 false +@property (nonatomic, assign) BOOL loop; // 是否循环播放 false +@property (nonatomic, assign) BOOL muted; // 是否静音播放 false +@property (nonatomic, assign) BOOL showFullScreenBtn; // 是否显示全屏按钮 true +@property (nonatomic, assign) BOOL showPlayBtn; // 是否显示视频底部控制栏的播放按钮 true +@property (nonatomic, assign) BOOL showCenterPlayBtn; // 是否显示视频中间的播放按钮 true +@property (nonatomic, assign) BOOL showMuteBtn; // 是否展示工具栏上的静音按钮 true +@property (nonatomic, assign) BOOL showThinProgressBar; // 当底部工具条隐藏时,是否显示细进度条(controls=false时设置无效)false +@property (nonatomic, assign) BOOL enableProgressGesture; // 是否开启控制进度的手势 true +/** + 如果poster没有设置,且该值为true,会默认取视频的首帧图作为封面图;如果设置了poster,该属性会被忽略 + */ +@property (nonatomic, assign) BOOL showFirstFrameAsPoster; + +// 手淘店铺二楼视频新增属性, trvVideoSource 和 trvVideoBizCode 是强校验,必填 +@property (nonatomic, strong) NSString *trvVideoSource; +@property (nonatomic, strong) NSString *trvVideoID; +@property (nonatomic, strong) NSString *trvVideoBizCode; + +- (instancetype)initWithDictionary:(NSDictionary *)dict; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverVideo.framework/Headers/TRVVideoPlayerViewDelegateProtocol.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverVideo.framework/Headers/TRVVideoPlayerViewDelegateProtocol.h new file mode 100644 index 0000000..c559702 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverVideo.framework/Headers/TRVVideoPlayerViewDelegateProtocol.h @@ -0,0 +1,117 @@ +// +// TRVVideoPlayerViewDelegateProtocol.h +// Triver +// +// Created by 岚遥 on 2019/7/28. +// + +#import +#import "TRVVideoPlayerViewProtocol.h" + + +@class TRVVideoPlayerModel; + +NS_ASSUME_NONNULL_BEGIN + +@protocol TRVVideoPlayerViewDelegateProtocol + +@optional + +/*! + 播放器开始加载 + */ +- (void)videoPlayerViewWillStartLoading:(id)playerView; + +/*! + 播放器完成加载 + */ +- (void)videoPlayerViewDidReadyToPlay:(id)playerView; + +/*! + 播放器将要开始播放视频 + */ +- (void)videoPlayerViewWillStartPlaying:(id)playerView; + +/*! + 播放器改变播放状态 + */ +- (void)videoPlayerView:(id)playerView willChangePlayStatus:(TRVVideoPlayerStatus)status; + +/*! + 播放器已经开始播放视频 + */ +- (void)videoPlayerViewDidStartPlaying:(id)playerView; + +/*! + 播放器已经播放完成 + */ +- (void)videoPlayerViewDidFinishPlaying:(id)playerView; + +/*! + 播放器暂停 + */ +- (void)videoPlayerViewDidPause:(id)playerView; + +/*! + 播放器停止 + */ +- (void)videoPlayerViewDidStopPlaying:(id)playerView; + +/*! + 播放器开始更新当前播放时间 + */ +- (void)videoPlayerView:(id)playerView didUpdateCurrentTimeWithData:(NSDictionary *)data; + +/*! + 播放器是否成功跳转到time去播放 + */ +- (void)videoPlayerViewDidSeekToTime:(id)playerView; + +/*! + 播放器修改缓存状态 + */ +- (void)videoPlayerView:(id)playerView didChangeShuffleMode:(BOOL)enabled; + +/*! + 播放器开始更新缓存进度 + */ +- (void)videoPlayerView:(id)playerView didUpdateStreamingProgress:(float)progress; + +/*! + 播放器出现错误 + */ +- (void)videoPlayerView:(id)playerView didFailedWithErrorMessage:(NSDictionary *)errorMessage; + +/*! + 点击静音按钮 + */ +- (void)videoPlayerView:(id)playerView didClickVoiceButtonWithSelected:(BOOL)muteStatus; + +/*! + 点击全屏按钮 + */ +- (void)videoPlayerView:(id)playerView didClickFullScreenButtonWithSelected:(BOOL)isSelected; + +/*! + 点击下方播放、暂停按钮 + */ +- (void)videoPlayerView:(id)playerView didClickPlayButton:(BOOL)play; + +/*! + 点击中间播放、暂停按钮 + */ +- (void)videoPlayerView:(id)playerView didClickCenterPlayButton:(BOOL)play; + +/*! + 点击重试 + */ +- (void)videoPlayerViewDidClickRetryButton:(id)playerView; + +/*! + 单击视频视图 + */ +- (void)videoPlayerView:(id)playerView didTapPlayerViewInPoint:(CGPoint)point; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverVideo.framework/Headers/TRVVideoPlayerViewProtocol.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverVideo.framework/Headers/TRVVideoPlayerViewProtocol.h new file mode 100644 index 0000000..119f30f --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverVideo.framework/Headers/TRVVideoPlayerViewProtocol.h @@ -0,0 +1,73 @@ +// +// TRVVideoPlayerViewProtocol.h +// Video +// +// Created by 岚遥 on 2019/10/25. +// Copyright © 2019 taobao. All rights reserved. +// + +#import +#import "TRVVideoPlayerModel.h" + +@protocol TRVVideoPlayerViewDelegateProtocol; + +NS_ASSUME_NONNULL_BEGIN + +@protocol TRVVideoPlayerViewProtocol + +@property (nonatomic, weak) id delegate; +@property (nonatomic, assign, getter=isFullScreen) BOOL fullScreen; + +/** + 设置初始化数据 + */ +- (void)setupDataWithVideoModel:(TRVVideoPlayerModel *)playerModel; + +/** + 播放 + */ +- (void)play; + +/** + 暂停 + */ +- (void)pause; + +/** + 停止 + */ +- (void)stop; + +/** + 设置播放速度 + */ +- (void)setNomarlRate:(CGFloat)rate; + +/** + 静音 + */ +- (void)setMuted:(BOOL)muted; + +/*! + 跳转到指定位置,单位 s + */ +- (void)seekToTimeToPlay:(double)time; + +/*! + 展示状态栏 + */ +- (void)showStatusBar:(BOOL)isShow; + +/** + 是否正在展示状态栏 + */ +- (BOOL)isShowBottomView; + +/** + 是否正在播放 + */ +- (BOOL)isPlaying; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverVideo.framework/Headers/TRVVideoReminderProtocol.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverVideo.framework/Headers/TRVVideoReminderProtocol.h new file mode 100644 index 0000000..973a849 --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverVideo.framework/Headers/TRVVideoReminderProtocol.h @@ -0,0 +1,34 @@ +// +// TRVVideoReminderProtocol.h +// Video +// +// Created by 岚遥 on 2019/9/19. +// Copyright © 2019 taobao. All rights reserved. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +@protocol TRVVideoReminderProtocol + +@optional + +/** + 是否在网络状态切换时进行提醒 + */ +- (BOOL)trv_enableRemindWhenChangingNetworkStatus; + +/** + 是否在 4G 播放时进行提醒 + */ +- (BOOL)trv_enableRemindWhenPlayAt4G; + +/** + 4G 播放时的提醒文案 + */ +- (NSString *)trv_reminderMessageWhenPlayAt4G; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverVideo.framework/Headers/Video.h b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverVideo.framework/Headers/Video.h new file mode 100644 index 0000000..a9eef3b --- /dev/null +++ b/ios/AlibcTradeUltimateSDK_all_package_50011/framework/Triver/TriverVideo.framework/Headers/Video.h @@ -0,0 +1,19 @@ +// +// Video.h +// Video +// +// Created by 岚遥 on 2019/7/26. +// Copyright © 2019 taobao. All rights reserved. +// + +#import + +//! Project version number for Video. +FOUNDATION_EXPORT double VideoVersionNumber; + +//! Project version string for Video. +FOUNDATION_EXPORT const unsigned char VideoVersionString[]; + +// In this header, you should import all the public headers of your framework using statements like #import