You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2019/11/15 12:04:23 UTC

[GitHub] [cordova] distante opened a new issue #174: Install remote Cordova plugin that contains sub packages fails

distante opened a new issue #174: Install remote Cordova plugin that contains sub packages fails
URL: https://github.com/apache/cordova/issues/174
 
 
   # Bug Report
   
   ## Problem
   When trying to install cordova plugins with sub packages the installation fails
   
   ### What is expected to happen?
   Plugin should be installed
   
   ### What does actually happen?
   Installation fails
   
   
   ## Information
   
   I am working on my first cordova plugin and I am having problems when I try to install it from github.
   
   My plugin has this folder structure:
   
       src
         android
           SubPackage
             SubClass1
             SubClass2
           OtherSubpackage
             OtherSubClass1
             OtherSubClass2
           JavaFile1.java
           JavaFile2.java
   
   when I install it using `cordova plugin add ../path/to/local/folder/my-plugin` it works as expected. But when I try to install it using `git+https://github.com/distante/my-plugin` it throws an error with
   
   > ...\SubPackage\SubClass1.java" not found!
   
   when I see inside the plugins folder I see that my `SubPackage` and `OtherSubPackage` folders does not exist. If I clone the github project it containts all the correct files.
   
   My `plugin.xml` file contains all the `source-file` declarations and a global declaration of the feature name and after install it work as expected.
   
   ```
    <config-file target="config.xml" parent="/*">
               <feature name="MyPlugin">
                   <param name="android-package" value="com.disante.cordova.myplugin.MyPlugin"/>
               </feature>
           </config-file>
   ```
   
   ### Command or Code
   cordova plugin add git@path-to-plugin
   
   
   
   ### Environment, Platform, Device
   Windows 10
   
   
   
   ### Version information
   <!-- 
   What are relevant versions you are using?
   For example:
   9.0.0 (cordova-lib@9.0.1)
   ionic v5.4.2
   node v12.13.0
   -->
   
   
   
   ## Checklist
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [ X ] I searched for existing GitHub issues
   - [ X ] I updated all Cordova tooling to most recent version
   - [ X ] I included all the necessary information above
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org