Skip to main content

uniapp-native-plugin

A comprehensive skill for developing native plugins for uni-app. Use this skill when building Android/iOS native plugins, integrating native capabilities, or publishing plugins based on official native plugin docs.

来源信息

仓库
full-stack-skills/uniapp-skills
最近来源活动
2026年9月15日 09:29
检测到的 SKILL.md 语言
英语
星标
6
分支
2

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

文件资源管理器
10 个文件

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
uniapp-native-plugin
description
A comprehensive skill for developing native plugins for uni-app. Use this skill when building Android/iOS native plugins, integrating native capabilities, or publishing plugins based on official native plugin docs.
license
Apache-2.0
## When to use this skill Use this skill whenever the user wants to: - Develop native Android plugins - Develop native iOS plugins - Integrate native functionality into uni-app - Create custom native modules - Extend uni-app with native capabilities - Handle native plugin communication - Package and distribute native plugins ## How to use this skill To develop native plugins: 1. **Identify the platform** from the user's request: - Android → Use Android plugin examples - iOS → Use iOS plugin examples 2. **Load the appropriate example file** from the `examples/` directory: - `examples/guide/` - Native plugin development guide - `examples/android-plugin/` - Android plugin examples - `examples/ios-plugin/` - iOS plugin examples 3. **Load the appropriate template** from the `templates/` directory: - `templates/plugin-template.md` - Plugin development templates 4. **Follow the specific instructions** in those files for development ## Examples and Templates ### Examples Located in `examples/`: - **guide/** - Native plugin development guide - **android-plugin/** - Android plugin development examples - **ios-plugin/** - iOS plugin development examples ### Templates Located in `templates/`: - **plugin-template.md** - Plugin development templates ## Best Practices 1. **Follow platform guidelines**: Adhere to Android and iOS development standards 2. **Error handling**: Implement proper error handling and logging 3. **Documentation**: Provide clear documentation for plugin usage 4. **Testing**: Test plugins thoroughly on real devices ## Resources - **Official Documentation**: https://nativesupport.dcloud.net.cn/NativePlugin/ ## Keywords native plugin, 原生插件, Android插件, iOS插件, plugin development, native module
在 GitHub 查看