dingtalk-jsapi
Version:
钉钉 模块化 多端统一 API
1 lines • 2.12 kB
JavaScript
var __awaiter=this&&this.__awaiter||function(e,t,r,n){function i(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function u(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){e.done?r(e.value):i(e.value).then(a,u)}l((n=n.apply(e,t||[])).next())})},__generator=this&&this.__generator||function(e,t){function r(e){return function(t){return n([e,t])}}function n(r){if(i)throw new TypeError("Generator is already executing.");for(;l;)try{if(i=1,o&&(a=2&r[0]?o.return:r[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,r[1])).done)return a;switch(o=0,a&&(r=[2&r[0],a.value]),r[0]){case 0:case 1:a=r;break;case 4:return l.label++,{value:r[1],done:!1};case 5:l.label++,o=r[1],r=[0];continue;case 7:r=l.ops.pop(),l.trys.pop();continue;default:if(a=l.trys,!(a=a.length>0&&a[a.length-1])&&(6===r[0]||2===r[0])){l=0;continue}if(3===r[0]&&(!a||r[1]>a[0]&&r[1]<a[3])){l.label=r[1];break}if(6===r[0]&&l.label<a[1]){l.label=a[1],a=r;break}if(a&&l.label<a[2]){l.label=a[2],l.ops.push(r);break}a[2]&&l.ops.pop(),l.trys.pop();continue}r=t.call(e,l)}catch(e){r=[6,e],o=0}finally{i=a=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}var i,o,a,u,l={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return u={next:r(0),throw:r(1),return:r(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u};Object.defineProperty(exports,"__esModule",{value:!0});var miniApp_1=require("./../../lib/bridge/gdt/miniApp"),h5Mobile_1=require("./../../lib/bridge/gdt/h5Mobile"),env_1=require("./../../lib/env"),sdkLib_1=require("./../../lib/sdk/sdkLib"),ddSdk_1=require("./../../lib/ddSdk"),android_1=require("../android");ddSdk_1.ddSdk.setPlatform({platform:sdkLib_1.ENV_ENUM.gdtAndroid,authMethod:"authConfig",bridgeInit:function(){return __awaiter(void 0,void 0,void 0,function(){var e;return __generator(this,function(t){return e=env_1.getENV(),e.appType===sdkLib_1.APP_TYPE.MINI_APP?[2,miniApp_1.default()]:[2,h5Mobile_1.default()]})})},event:android_1.platformConfig.event});
;