Skip to content

Commit

Permalink
refactor(app-plus): requireNativePlugin
Browse files Browse the repository at this point in the history
  • Loading branch information
fxy060608 committed Oct 11, 2019
1 parent c40b9e4 commit 5c1d23b
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
5 changes: 5 additions & 0 deletions packages/uni-app-plus/dist/index.v3.js
Original file line number Diff line number Diff line change
Expand Up @@ -6831,6 +6831,10 @@ var serviceContext = (function () {
}
}

function requireNativePlugin$1 (name) {
return weex.requireModule(name)
}

// 0:图文,1:纯文字,2:纯图片,3:音乐,4:视频,5:小程序
const TYPES = {
'0': {
Expand Down Expand Up @@ -7757,6 +7761,7 @@ var serviceContext = (function () {
unsubscribePush: unsubscribePush,
onPush: onPush,
offPush: offPush,
requireNativePlugin: requireNativePlugin$1,
shareAppMessageDirectly: shareAppMessageDirectly,
share: share,
navigateBack: navigateBack$1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -438,8 +438,9 @@ module.exports = function (pagesJson, userManifestJson) {
return [manifest, parseConfig(appJson)]
}
if (process.env.UNI_USING_V3) {
appJson.entryPagePath = appJson.pages[0]

appJson.entryPagePath = appJson.pages[0]
// timeout
normalizeNetworkTimeout(appJson)
appJson.page = Object.create(null)

const addPage = function (pagePath, windowOptions) {
Expand Down
2 changes: 0 additions & 2 deletions src/platforms/app-plus-nvue/service/api/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,3 @@ export * from './context/map'
export * from './context/video'

export * from './ui/create-selector-query'

export * from './plugin/require-native-plugin'
3 changes: 2 additions & 1 deletion src/platforms/app-plus/service/api/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ export * from './network/upload-file'
export * from './plugin/get-provider'
export * from './plugin/oauth'
export * from './plugin/payment'
export * from './plugin/push'
export * from './plugin/push'
export * from './plugin/require-native-plugin'
export * from './plugin/share'

export * from './route/navigate-back'
Expand Down

0 comments on commit 5c1d23b

Please sign in to comment.