How dcloudio/uni-app works
This repository is the uni-app x source tree: a cross-platform Vue-based application framework and runtime, with native platform modules and a broad component/plugin ecosystem. A typical developer workflow is to build an application using framework components and APIs, then run the same application on supported native, web, and mini-program platforms. The tree and README establish those stages and major capabilities, but the sampled source is mostly individual modules rather than the framework’s central application entry point; edges are therefore limited to directly evidenced component relationships and documented product scope.
Main entry points: UniVideoPlayerManager.swift Video manager · button/index.vue Vant button · src uni-app x · icon/index.vue Vant icon
Components 34
Framework Runtime
- uni-app x
src - UTS extensions
src/uni_modules - WebView bridge
src/hybrid/html/uni.webview.1.5.5.js
Native APIs
- Camera module
src/uni_modules/uni-camera/utssdk/app-android/CameraImpl.kt - Camera manager
src/uni_modules/uni-camera/utssdk/app-android/CameraManager.kt - File system
src/uni_modules/uni-fileSystemManager/utssdk/app-ios/UniFileSystemManager.swift - Location APIs
src/uni_modules/uni-location-system/utssdk/app-android/UniSystemLocationService.kt - Media selection
src/uni_modules/uni-media/utssdk/app-ios/utils/UniChooseFileManager.swift
Media Playback
- Audio service
src/uni_modules/uni-getBackgroundAudioManager/utssdk/app-android/AudioService.kt - Background player
src/uni_modules/uni-getBackgroundAudioManager/utssdk/app-android/BackgroundAudioPlayer.kt - Video manager
src/uni_modules/uni-video/utssdk/app-ios/VideoPlayer/Managers/UniVideoPlayerManager.swift - Playback state
src/uni_modules/uni-video/utssdk/app-ios/VideoPlayer/Core/UniVideoPlayerActor.swift - Video configuration
src/uni_modules/uni-video/utssdk/app-ios/VideoPlayer/Models/UniVideoPlayerConfiguration.swift - Video state
src/uni_modules/uni-video/utssdk/app-ios/VideoPlayer/Models/UniVideoPlayerState.swift - Video cache
src/uni_modules/uni-video/utssdk/app-ios/VideoPlayer/Managers/CacheManager.swift - FairPlay DRM
src/uni_modules/uni-video/utssdk/app-ios/VideoPlayer/Managers/DRMManager.swift - Video gestures
src/uni_modules/uni-video/utssdk/app-ios/VideoPlayer/Managers/GestureManager.swift - Picture-in-picture
src/uni_modules/uni-video/utssdk/app-ios/VideoPlayer/Managers/PIPManager.swift - Frame preview
src/uni_modules/uni-video/utssdk/app-ios/VideoPlayer/Preview/FirstFramePreviewCenter.swift - M3U8 handler
src/uni_modules/uni-video/utssdk/app-ios/VideoPlayer/Managers/LocalM3U8Handler.swift
Cloud Services
- Cloud functions
src/uniCloud-aliyun/cloudfunctions - Todo service
src/uniCloud-aliyun/cloudfunctions/todo/index.obj.js - Identity common
src/uni_modules/uni-id-common/uniCloud/cloudfunctions/common/uni-id-common/index.js - Payment service
src/uni_modules/uni-pay-x/uniCloud/cloudfunctions/uni-pay-co/index.obj.js - Map service
src/uni_modules/uni-map-common/uniCloud/cloudfunctions/uni-map-co/index.obj.js
UI Components
- Collapse item
src/components/uni-collapse-item/uni-collapse-item.vue - Native alerts
src/uni_modules/uni-prompt/utssdk/app-ios/UniAlert/DCAlertViewController.swift - Vant button
src/wxcomponents/vant/button/index.vue - Vant icon
src/wxcomponents/vant/icon/index.vue - Vant loading
src/wxcomponents/vant/loading/index.vue - Vant adapter
src/wxcomponents/vant/common/component.js - Vant utilities
src/wxcomponents/vant/common/utils.js
Other components
- App developer
- Cross-platform app
Connections 32
- App developer → Cross-platform app: authors
- Cross-platform app → uni-app x: uses framework
- uni-app x → UTS extensions: extends with
src/uni_modules/uni-getBackgroundAudioManager/utssdk/app-android/AudioService.kt - uni-app x → WebView bridge: uses WebView
- Camera manager → Camera module: creates and restores
src/uni_modules/uni-camera/utssdk/app-android/CameraManager.kt - Audio service → Background player: uses player
src/uni_modules/uni-getBackgroundAudioManager/utssdk/app-android/AudioService.kt - Video manager → Playback state: requests state
src/uni_modules/uni-video/utssdk/app-ios/VideoPlayer/Managers/UniVideoPlayerManager.swift - Video manager → Video configuration: reads configuration
src/uni_modules/uni-video/utssdk/app-ios/VideoPlayer/Managers/UniVideoPlayerManager.swift - Video manager → Video state: updates state
src/uni_modules/uni-video/utssdk/app-ios/VideoPlayer/Managers/UniVideoPlayerManager.swift - Video manager → Video cache: uses cache
src/uni_modules/uni-video/utssdk/app-ios/VideoPlayer/Managers/UniVideoPlayerManager.swift - Video manager → FairPlay DRM: uses DRM
src/uni_modules/uni-video/utssdk/app-ios/VideoPlayer/Managers/UniVideoPlayerManager.swift - Video manager → Video gestures: configures gestures
src/uni_modules/uni-video/utssdk/app-ios/VideoPlayer/Managers/UniVideoPlayerManager.swift - Video manager → Picture-in-picture: configures PiP
src/uni_modules/uni-video/utssdk/app-ios/VideoPlayer/Managers/UniVideoPlayerManager.swift - Video manager → Frame preview: requests preview
src/uni_modules/uni-video/utssdk/app-ios/VideoPlayer/Managers/UniVideoPlayerManager.swift - Video manager → M3U8 handler: uses handler
src/uni_modules/uni-video/utssdk/app-ios/VideoPlayer/Managers/UniVideoPlayerManager.swift - App developer → Cloud functions: invokes services
- Cloud functions → Todo service: includes service
- App developer → Identity common: uses identity
- App developer → Payment service: uses payments
- App developer → Map service: uses maps
- Vant button → Vant icon: renders
src/wxcomponents/vant/button/index.vue - Vant button → Vant loading: renders
src/wxcomponents/vant/button/index.vue - Vant button → Vant adapter: registers with
src/wxcomponents/vant/button/index.vue - Vant icon → Vant adapter: registers with
src/wxcomponents/vant/icon/index.vue - Vant icon → Vant utilities: uses sizing
src/wxcomponents/vant/icon/index.vue - Vant loading → Vant adapter: registers with
src/wxcomponents/vant/loading/index.vue - Vant loading → Vant utilities: uses sizing
src/wxcomponents/vant/loading/index.vue - Native alerts → Cross-platform app: presents alerts
- Collapse item → Cross-platform app: provides UI
- File system → Cross-platform app: provides file APIs
- Location APIs → Cross-platform app: provides location
- Media selection → Cross-platform app: provides selection