1
0
mirror of https://github.com/ialley-workshop-open/uni-halo.git synced 2026-09-12 16:40:40 +08:00

refactor: 架构升级

This commit is contained in:
小莫唐尼
2026-08-31 07:58:23 +08:00
commit ba5b77568b
693 changed files with 118430 additions and 0 deletions
@@ -0,0 +1,14 @@
# Android 原生能力封装
## 官方文档
参考官方文档:https://nativesupport.dcloud.net.cn/NativePlugin/
## 示例
- 封装系统能力(定位、蓝牙、推送等)
- 暴露 JS 调用接口
## 参考资源
- https://nativesupport.dcloud.net.cn/NativePlugin/
@@ -0,0 +1,15 @@
# Android 插件工程初始化
## 官方文档
参考官方文档:https://nativesupport.dcloud.net.cn/NativePlugin/
## 步骤
1. 创建 Android 原生模块
2. 接入 uni-app 插件接口
3. 编写插件入口与配置
## 参考资源
- https://nativesupport.dcloud.net.cn/NativePlugin/
@@ -0,0 +1,14 @@
# JS Bridge 通信
## 官方文档
参考官方文档:https://nativesupport.dcloud.net.cn/NativePlugin/
## 说明
- 使用 JSBridge 在 JS 与原生层之间通信
- 设计统一的接口规范与参数结构
## 参考资源
- https://nativesupport.dcloud.net.cn/NativePlugin/
@@ -0,0 +1,31 @@
# uni-app 原生插件开发指南
## 官方文档
参考官方文档:https://nativesupport.dcloud.net.cn/NativePlugin/
## 什么是原生插件
原生插件是用原生代码(Android Java/Kotlin 或 iOS Objective-C/Swift)开发的插件,可以扩展 uni-app 的功能。
## 开发流程
### Android 插件
1. 创建 Android 插件项目
2. 实现插件功能
3. 配置插件信息
4. 打包插件
5. 集成到 uni-app 项目
### iOS 插件
1. 创建 iOS 插件项目
2. 实现插件功能
3. 配置插件信息
4. 打包插件
5. 集成到 uni-app 项目
## 参考资源
- 原生插件开发文档:https://nativesupport.dcloud.net.cn/NativePlugin/
@@ -0,0 +1,20 @@
# 原生插件结构与发布
## 官方文档
参考官方文档:https://nativesupport.dcloud.net.cn/NativePlugin/
## 目录结构
- plugin 代码
- JS Bridge 接口
- 配置与说明文档
## 发布要点
- 完善插件描述与使用说明
- 提供平台支持与版本兼容说明
## 参考资源
- https://nativesupport.dcloud.net.cn/NativePlugin/
@@ -0,0 +1,14 @@
# iOS 原生能力封装
## 官方文档
参考官方文档:https://nativesupport.dcloud.net.cn/NativePlugin/
## 示例
- 封装系统能力(摄像头、文件、推送等)
- 暴露 JS 调用接口
## 参考资源
- https://nativesupport.dcloud.net.cn/NativePlugin/
@@ -0,0 +1,15 @@
# iOS 插件工程初始化
## 官方文档
参考官方文档:https://nativesupport.dcloud.net.cn/NativePlugin/
## 步骤
1. 创建 iOS 原生模块
2. 接入 uni-app 插件接口
3. 编写插件入口与配置
## 参考资源
- https://nativesupport.dcloud.net.cn/NativePlugin/