@@ -0,0 +1 @@ | |||||
0 |
@@ -0,0 +1,641 @@ | |||||
<?xml version="1.0" encoding="UTF-8"?> | |||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |||||
<plist version="1.0"> | |||||
<dict> | |||||
<key>JsApiRuntime</key> | |||||
<dict> | |||||
<key>JsApis</key> | |||||
<array> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>RVTJsApi4PostMessage</string> | |||||
<key>jsApi</key> | |||||
<string>postMessage</string> | |||||
</dict> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>RVTJsApi4CreateWorker</string> | |||||
<key>jsApi</key> | |||||
<string>createWorker</string> | |||||
</dict> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>RVTJsApiHandler4MultiWorkerPostMessage</string> | |||||
<key>jsApi</key> | |||||
<string>multiWorkerPostMessage</string> | |||||
</dict> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>RVTJsApiHandler4MultiWorkerTerminate</string> | |||||
<key>jsApi</key> | |||||
<string>multiWorkerTerminate</string> | |||||
</dict> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>RVTJsApi4RegisterWorker</string> | |||||
<key>jsApi</key> | |||||
<string>registerWorker</string> | |||||
</dict> | |||||
<dict> | |||||
<key>jsApi</key> | |||||
<string>RVKExtensionJsapi</string> | |||||
<key>name</key> | |||||
<string>RVKExtensionJsapi</string> | |||||
</dict> | |||||
<dict> | |||||
<key>jsApi</key> | |||||
<string>internalAPI</string> | |||||
<key>name</key> | |||||
<string>RVPJsApiHandler4InternalAPI</string> | |||||
</dict> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>RVPJsApiHandler4GetAuthCode</string> | |||||
<key>jsApi</key> | |||||
<string>getAuthorize</string> | |||||
</dict> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>RVPJsApiHandler4GetAuthCode</string> | |||||
<key>jsApi</key> | |||||
<string>getBusinessAuth</string> | |||||
</dict> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>RVPJsApiHandler4GetAuthCode</string> | |||||
<key>jsApi</key> | |||||
<string>getComponentAuth</string> | |||||
</dict> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>RVPJsApiHandler4GetAuthCode</string> | |||||
<key>jsApi</key> | |||||
<string>getAuthCode</string> | |||||
</dict> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>RVUJsApiHandler4TinyRpcForAppX</string> | |||||
<key>jsApi</key> | |||||
<string>appxrpc</string> | |||||
</dict> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>RVUApiHandler4Rpc</string> | |||||
<key>jsApi</key> | |||||
<string>rpc</string> | |||||
</dict> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>RVPJSApiHandler4ChangeTab</string> | |||||
<key>jsApi</key> | |||||
<string>switchTab</string> | |||||
</dict> | |||||
</array> | |||||
</dict> | |||||
<key>PluginRuntime</key> | |||||
<dict> | |||||
<key>Plugins</key> | |||||
<array> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>RVPlugin4PagePerformance</string> | |||||
</dict> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>RVPlugin4TinyAppPerformance</string> | |||||
<key>scope</key> | |||||
<string>session</string> | |||||
<key>events</key> | |||||
<array> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>-</string> | |||||
<key>useCapture</key> | |||||
<false/> | |||||
</dict> | |||||
</array> | |||||
</dict> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>RVTPlugin4ConcurrentWorker</string> | |||||
<key>scope</key> | |||||
<string>session</string> | |||||
<key>events</key> | |||||
<array> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>-</string> | |||||
<key>useCapture</key> | |||||
<false/> | |||||
</dict> | |||||
</array> | |||||
</dict> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>RVTPlugin4JSCCallHandler</string> | |||||
<key>scope</key> | |||||
<string>service</string> | |||||
<key>events</key> | |||||
<array> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>-</string> | |||||
<key>useCapture</key> | |||||
<false/> | |||||
</dict> | |||||
</array> | |||||
</dict> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>RVTPlugin4TinyAppParam</string> | |||||
</dict> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>RVTPlugin4TinyAppResource</string> | |||||
</dict> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>RVTPlugin4Session</string> | |||||
<key>scope</key> | |||||
<string>session</string> | |||||
<key>events</key> | |||||
<array> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>-</string> | |||||
<key>useCapture</key> | |||||
<string>NO</string> | |||||
</dict> | |||||
</array> | |||||
</dict> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>RVAPlugin4EventDispatch</string> | |||||
<key>scope</key> | |||||
<string>service</string> | |||||
<key>events</key> | |||||
<array> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>*.*</string> | |||||
<key>useCapture</key> | |||||
<false/> | |||||
</dict> | |||||
</array> | |||||
</dict> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>RVKPlugin4JSApiDispatch</string> | |||||
<key>events</key> | |||||
<array> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>invocation.start</string> | |||||
<key>useCapture</key> | |||||
<true/> | |||||
</dict> | |||||
</array> | |||||
</dict> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>RVSPlugin4JsApiPermission</string> | |||||
<key>scope</key> | |||||
<string>session</string> | |||||
<key>events</key> | |||||
<array> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>-</string> | |||||
<key>useCapture</key> | |||||
<false/> | |||||
</dict> | |||||
</array> | |||||
</dict> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>RVSPlugin4SessionBindVariables</string> | |||||
<key>scope</key> | |||||
<string>session</string> | |||||
<key>events</key> | |||||
<array> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>-</string> | |||||
<key>useCapture</key> | |||||
<false/> | |||||
</dict> | |||||
</array> | |||||
</dict> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>RVUPlugin4Authorization</string> | |||||
<key>scope</key> | |||||
<string>session</string> | |||||
<key>events</key> | |||||
<array> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>-</string> | |||||
<key>useCapture</key> | |||||
<false/> | |||||
</dict> | |||||
</array> | |||||
</dict> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>RVTPlugin4Component</string> | |||||
<key>scope</key> | |||||
<string>session</string> | |||||
<key>events</key> | |||||
<array> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>-</string> | |||||
<key>useCapture</key> | |||||
<false/> | |||||
</dict> | |||||
</array> | |||||
</dict> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>RVPPlugin4TabBar</string> | |||||
<key>scope</key> | |||||
<string>session</string> | |||||
<key>events</key> | |||||
<array> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>-</string> | |||||
<key>useCapture</key> | |||||
<false/> | |||||
</dict> | |||||
</array> | |||||
</dict> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>RVDPlugin4Debug</string> | |||||
<key>scope</key> | |||||
<string>session</string> | |||||
<key>events</key> | |||||
<array> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>-</string> | |||||
<key>useCapture</key> | |||||
<false/> | |||||
</dict> | |||||
</array> | |||||
</dict> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>RVDRemoteDebugPlugin4NetworkInfo</string> | |||||
<key>scope</key> | |||||
<string>session</string> | |||||
<key>events</key> | |||||
<array> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>-</string> | |||||
<key>useCapture</key> | |||||
<false/> | |||||
</dict> | |||||
</array> | |||||
</dict> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>RVDRemoteDebugPlugin4JSApiLog</string> | |||||
<key>scope</key> | |||||
<string>session</string> | |||||
<key>events</key> | |||||
<array> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>-</string> | |||||
<key>useCapture</key> | |||||
<false/> | |||||
</dict> | |||||
</array> | |||||
</dict> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>RVAPlugin4Canvas</string> | |||||
<key>scope</key> | |||||
<string>session</string> | |||||
<key>events</key> | |||||
<array> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>-</string> | |||||
<key>useCapture</key> | |||||
<false/> | |||||
</dict> | |||||
</array> | |||||
</dict> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>RVPPlugin4WebSocket</string> | |||||
<key>scope</key> | |||||
<string>session</string> | |||||
<key>events</key> | |||||
<array> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>-</string> | |||||
<key>useCapture</key> | |||||
<false/> | |||||
</dict> | |||||
</array> | |||||
</dict> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>RVDPlugin4Bugme</string> | |||||
<key>scope</key> | |||||
<string>session</string> | |||||
<key>events</key> | |||||
<array> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>-</string> | |||||
<key>useCapture</key> | |||||
<false/> | |||||
</dict> | |||||
</array> | |||||
</dict> | |||||
</array> | |||||
</dict> | |||||
<key>ExtensionRuntime</key> | |||||
<dict> | |||||
<key>Extensions</key> | |||||
<array> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>RVPBridgeExtension4HideKeyboard</string> | |||||
</dict> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>RVPBridgeExtension4ScreenOrientation</string> | |||||
</dict> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>RVLJsApiHandler4HandleLoggingAction</string> | |||||
</dict> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>RVAExtension4WKCrash</string> | |||||
</dict> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>RVKExtension4Screen</string> | |||||
</dict> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>RVPExtension4Shake</string> | |||||
</dict> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>RVPExtension4Wifi</string> | |||||
</dict> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>RVPBridgeExtension4Wifi</string> | |||||
</dict> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>RVPBridgeExtension4BLE</string> | |||||
</dict> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>RVPBridgeExtension4Beacon</string> | |||||
</dict> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>TRVSBridgeExtension4TBSessionKey</string> | |||||
</dict> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>TRVSJsApiHandler4TBSessionKey</string> | |||||
</dict> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>RVPBridgeExtension4LocationPicker</string> | |||||
</dict> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>RVPBridgeExtension4CityPicker</string> | |||||
</dict> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>RVPBridgeExtension4WifiInfo</string> | |||||
</dict> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>RVPBridgeExtension4PhoneContact</string> | |||||
</dict> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>RVPBridgeExtension4Shake</string> | |||||
</dict> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>RVPBridgeExtension4Screen</string> | |||||
</dict> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>RVPBridgeExtension4DeviceMotion</string> | |||||
</dict> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>RVPBridgeExtension4Vibrate</string> | |||||
</dict> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>RVPBridgeExtension4PhoneCall</string> | |||||
</dict> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>RVPBridgeExtension4Battery</string> | |||||
</dict> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>RVPBridgeExtension4Clipboard</string> | |||||
</dict> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>RVPBridgeExtension4Jailbroken</string> | |||||
</dict> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>RVPBridgeExtension4SystemInfo</string> | |||||
</dict> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>RVPBridgeExtension4CarrierName</string> | |||||
</dict> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>RVPBridgeExtension4PushWindow</string> | |||||
</dict> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>RVPBridgeExtension4PopWindow</string> | |||||
</dict> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>RVPBridgeExtension4Notify</string> | |||||
</dict> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>RVPBridgeExtension4ShortCut</string> | |||||
</dict> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>RVPBridgeExtenion4Environment</string> | |||||
</dict> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>RVPBridgeExtension4GetNetworkType</string> | |||||
</dict> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>RVPBridgeExtension4PackageManager</string> | |||||
</dict> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>RVPBridgeExtension4CheckJSAPI</string> | |||||
</dict> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>RVPBridgeExtension4AuthGuide</string> | |||||
</dict> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>RVPBridgeExtension4SharedData</string> | |||||
</dict> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>RVPBridgeExtension4GetFileInfo</string> | |||||
</dict> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>RVPBridgeExtension4SaveFile</string> | |||||
</dict> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>RVPBridgeExtension4GetSavedFileInfo</string> | |||||
</dict> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>RVPBridgeExtension4GetSavedFileList</string> | |||||
</dict> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>RVPBridgeExtension4RemoveSavedFile</string> | |||||
</dict> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>RVPBridgeExtension4ChooseFileFromDisk</string> | |||||
</dict> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>RVPBridgeExtension4SceneStackInfo</string> | |||||
</dict> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>RVPBridgeExtension4AccountManager</string> | |||||
</dict> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>RVDBridgeExtension4DebugConsole</string> | |||||
</dict> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>RVDBridgeExtension4RemoteDebug</string> | |||||
</dict> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>RVPBridgeExtension4WebSocket</string> | |||||
</dict> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>RVPBridgeExtension4TradePay</string> | |||||
</dict> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>RVPBridgeExtension4BLEPeripheral</string> | |||||
</dict> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>RVPExtension4BLEPeripheral</string> | |||||
</dict> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>RVPBridgeExtension4StartAudioRecord</string> | |||||
</dict> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>RVPBridgeExtension4StopAudioRecord</string> | |||||
</dict> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>RVPBridgeExtension4PauseAudioRecord</string> | |||||
</dict> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>RVPBridgeExtension4ResumeAudioRecord</string> | |||||
</dict> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>RVPBridgeExtension4CancelAudioRecord</string> | |||||
</dict> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>RVSBridgeExtension4Permission</string> | |||||
</dict> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>RVTBridgeExtensionInitialTraceDebug</string> | |||||
</dict> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>RVTBridgeExtensionPostMethodTrace</string> | |||||
</dict> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>RVTExtensionTraceDebugApp</string> | |||||
</dict> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>RVTExtensionTraceDebugInvocation</string> | |||||
</dict> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>RVTBridgeExtension4Worker</string> | |||||
</dict> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>RVPBridgeExtension4Tabbar</string> | |||||
</dict> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>RVPBridgeExtension4FileSystemManager</string> | |||||
</dict> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>TinyTestExtension</string> | |||||
</dict> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>Plugin4Cdp</string> | |||||
</dict> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>RVPJsApiGetLocaleInfo</string> | |||||
</dict> | |||||
<dict> | |||||
<key>name</key> | |||||
<string>RVPJsApiGetLayoutDirection</string> | |||||
</dict> | |||||
</array> | |||||
</dict> | |||||
</dict> | |||||
</plist> |
@@ -0,0 +1 @@ | |||||
{"version":"1.0.11.0"} |
@@ -0,0 +1,200 @@ | |||||
/** | |||||
* 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; | |||||
})(); |
@@ -0,0 +1,9 @@ | |||||
{ | |||||
"info" : { | |||||
"version" : 1, | |||||
"author" : "xcode" | |||||
}, | |||||
"properties" : { | |||||
"provides-namespace" : true | |||||
} | |||||
} |
@@ -0,0 +1 @@ | |||||
{"info":{"version":1,"author":"xcode"},"properties":{"provides-namespace":true}} |
@@ -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"}} |
@@ -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"}} |
@@ -0,0 +1 @@ | |||||
{"images": [{"idiom": "universal", "scale": "1x", "filename": "closeDanmaku.png"}, {"idiom": "universal", "scale": "2x"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} |
@@ -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"}} |
@@ -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"}} |
@@ -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"}} |
@@ -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"}} |
@@ -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"}} |
@@ -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"}} |
@@ -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"}} |
@@ -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"}} |
@@ -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"}} |
@@ -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"}} |
@@ -0,0 +1 @@ | |||||
{"images": [{"idiom": "universal", "scale": "1x", "filename": "openDanmaku.png"}, {"idiom": "universal", "scale": "2x"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} |
@@ -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"}} |
@@ -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"}} |
@@ -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"}} |
@@ -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"}} |
@@ -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"}} |
@@ -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"}} |
@@ -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"}} |
@@ -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"}} |
@@ -0,0 +1 @@ | |||||
{"images": [{"idiom": "universal", "scale": "1x", "filename": "arrowUpflod.png"}, {"idiom": "universal", "scale": "2x"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} |
@@ -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"}} |
@@ -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"}} |
@@ -0,0 +1 @@ | |||||
{"images": [{"idiom": "universal", "scale": "1x", "filename": "dwgoshop.png"}, {"idiom": "universal", "scale": "2x"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} |
@@ -0,0 +1 @@ | |||||
{"images": [{"idiom": "universal", "scale": "1x", "filename": "dwmoreitem.png"}, {"idiom": "universal", "scale": "2x"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} |
@@ -0,0 +1 @@ | |||||
{"images": [{"idiom": "universal", "scale": "1x", "filename": "dwreplace.png"}, {"idiom": "universal", "scale": "2x"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} |
@@ -0,0 +1 @@ | |||||
{"images": [{"idiom": "universal", "scale": "1x", "filename": "dwreplay.png"}, {"idiom": "universal", "scale": "2x"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} |
@@ -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"}} |
@@ -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"}} |
@@ -0,0 +1 @@ | |||||
{"images": [{"idiom": "universal", "scale": "1x", "filename": "dwshare.png"}, {"idiom": "universal", "scale": "2x"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} |
@@ -0,0 +1 @@ | |||||
{"images": [{"idiom": "universal", "scale": "1x", "filename": "fullScreenCloseBtn.png"}, {"idiom": "universal", "scale": "2x"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} |
@@ -0,0 +1 @@ | |||||
{"images": [{"idiom": "universal", "scale": "1x", "filename": "fullScreenEndGoshopBtn.png"}, {"idiom": "universal", "scale": "2x"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} |
@@ -0,0 +1 @@ | |||||
{"images": [{"idiom": "universal", "scale": "1x", "filename": "fullScreenEndReplyBtn.png"}, {"idiom": "universal", "scale": "2x"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} |
@@ -0,0 +1 @@ | |||||
{"images": [{"idiom": "universal", "scale": "1x", "filename": "fullScreenEndShareBtn.png"}, {"idiom": "universal", "scale": "2x"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} |
@@ -0,0 +1 @@ | |||||
{"images": [{"idiom": "universal", "scale": "1x", "filename": "fullScreenShareBtn.png"}, {"idiom": "universal", "scale": "2x"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} |
@@ -0,0 +1 @@ | |||||
{"images": [{"idiom": "universal", "scale": "1x", "filename": "fullScreengoLikeBtn.png"}, {"idiom": "universal", "scale": "2x"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} |
@@ -0,0 +1 @@ | |||||
{"images": [{"idiom": "universal", "scale": "1x", "filename": "fullScreengoLikedBtn.png"}, {"idiom": "universal", "scale": "2x"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} |
@@ -0,0 +1 @@ | |||||
{"images": [{"idiom": "universal", "scale": "1x", "filename": "fullScreengoShopBtn.png"}, {"idiom": "universal", "scale": "2x"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} |
@@ -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"}} |
@@ -0,0 +1 @@ | |||||
{"images": [{"idiom": "universal", "scale": "1x", "filename": "goshop.png"}, {"idiom": "universal", "scale": "2x"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} |
@@ -0,0 +1 @@ | |||||
{"images": [{"idiom": "universal", "scale": "1x", "filename": "interactiveTips.png"}, {"idiom": "universal", "scale": "2x"}, {"idiom": "universal", "scale": "3x"}], "info": {"version": 1, "author": "xcode"}} |
@@ -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"}} |
@@ -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"}} |