index.js 607 字节
Newer Older
fxy060608's avatar
fxy060608 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
import {
  getApp,
  registerApp
} from './framework/app'

import {
  registerPage,
  getCurrentPages
} from './framework/page'

import {
  registerConfig
} from './framework/config'

import {
  uni
} from 'uni-core/service/uni'

import {
  invokeCallbackHandler
} from 'uni-helpers/api'

UniServiceJSBridge.publishHandler = UniServiceJSBridge.emit // TODO
UniServiceJSBridge.invokeCallbackHandler = invokeCallbackHandler

export default {
  __registerConfig: registerConfig,
  __registerApp: registerApp,
  __registerPage: registerPage,
  uni,
  getApp,
  getCurrentPages
}