About uniapp-native-plugin
A skill for developing native Android and iOS plugins that add native capabilities to uni-app. It guides developers to platform-specific examples and a plugin template for implementation and distribution.
Key features
- 01Develop Android and iOS plugins
- 02Create custom native modules
- 03Integrate native functionality into uni-app
- 04Handle native plugin communication
- 05Use platform examples and a plugin template
Use cases
- 01Build an Android plugin for uni-app
- 02Develop an iOS native module
- 03Extend uni-app with native capabilities
- 04Prepare a plugin for packaging and distribution
Install
Copy the command and run it in a terminal.
npx skills add https:/ / github.com/ full-stack-skills/ uniapp-skills --skill uniapp-native-pluginAfter installing, type/uniapp-native-pluginin Claude Code to confirm it loaded.
Bundled files
References and scripts installed along with SKILL.md.
LICENSE.txtagents/openai.yamlexamples/android-plugin/native-api.mdproject-setup.mdexamples/guide/bridge.mdintro.mdstructure.mdexamples/ios-plugin/native-api.mdproject-setup.mdtemplates/plugin-template.mdDetails
From the project READMEWhen 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:
-
Identify the platform from the user's request:
- Android → Use Android plugin examples
- iOS → Use iOS plugin examples
-
Load the appropriate example file from the
examples/directory:examples/guide/- Native plugin development guideexamples/android-plugin/- Android plugin examplesexamples/ios-plugin/- iOS plugin examples
-
Load the appropriate template from the
templates/directory:templates/plugin-template.md- Plugin development templates
-
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
- Follow platform guidelines: Adhere to Android and iOS development standards
- Error handling: Implement proper error handling and logging
- Documentation: Provide clear documentation for plugin usage
- 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