cordova
2023-11-15 最新情况 需要 java11 需要 android cmdline tools 不要最新版,用10.0版配合java11 配置 cmdline tools 路径到PATH
加入hook
在配置文件中加入需要依赖的包
project.properties cordova.system.library.2=androidx.documentfile:documentfile:1.0.1
创建cordova插件
npm install -g plugman
plugman create –name
plugman create –name YouxiqunSDK –plugin_id cordova-plugin-youxiqun-sdk –plugin_version 0.0.1
plugman create –name YouxiqunSDK –plugin_id cordova-plugin-youxiqun-sdk –plugin_version 0.0.1 –path cordova-plugin-youxiqun-sdk
plugman platform add –platform_name android
plugman createpackagejson
$ plugman install –platform android –project platforms/android –plugin ../LogicLinkPlugin/
plugman uninstall –platform android –project platforms/android –plugin ../LogicLinkPlugin/