当前位置:网站首页>Customized plug-ins in Cordova project -- plug-in creation process

Customized plug-ins in Cordova project -- plug-in creation process

2022-06-22 04:03:00 yinianjian2017

  1. Install and create plug-in dependencies ( Get into Cordova project )  npm install -g plugman
  2. Creating plug-ins :plugman create --name cordova-plugin-biometric  --plugin_id cordova-plugin-biometric  --plugin_version 1.0.0
  3. add to Android  plugman platform add --platform_name android
  4. add to IOS  plugman platform add --platform_name ios
  5. Initialize in the custom plug-in root directory    npm init , Keep pressing enter  By default , Then generate package.json file
  6. View the absolute path of the current plug-in   pwd
  7. Cordova  Get into  platforms Next   Add the plug-in  cordova plugin add  Corresponding path

So far, the plug-in has been added to the project , Next, add native code , Implementation call logic

原网站

版权声明
本文为[yinianjian2017]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/173/202206220350274378.html