Add a dependency to an Android Cordova plugin

前端 未结 2 850
伪装坚强ぢ
伪装坚强ぢ 2020-12-31 04:27

I\'m building a Cordova Android plugin. I want to use a 3rd party View inside an Intent that is created by the plugin

2条回答
  •  感情败类
    2020-12-31 04:42

    You have to use your own gradle file then link it on the plugin.xml like this

    
    

    You have to put that tag on the plugin.xml, so on plugin install it's read and cordova handles it (not sure how it works internally, but I suppose that it copies the values from your custom .gradle to the main build.gradle).

    So you can't test it on your current project, you have to create a new project and add the plugin and see if it works

提交回复
热议问题