Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-14036

source-file or resource-file png in plugin.xml breaks subsequent plugins for cordova-android 7

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 7.0.0
    • None
    • cordova-android
    • None

    Description

      Plugin.xml for cordova-plugin-fingerprint-aio contains tags like the following. I have also tried changing to resource-file. When these tags are present in either form then subsequent plugins seem to revert to the old cordova-android directory structure which causes their installation to fail during cordova platform add android and also hides the cause of the issue since there are no errors for the plugin containing these tags

      <source-file src="res/android/drawable-hdpi/ic_fp_40px.png" target-dir="res/drawable-hdpi"/>

       

      The same tag for copying xml files works with no issues and no effect on subsequent plugins

       

      Example of error - Failed to install 'cordova-plugin-splashscreen': Error: ENOENT: no such file or directory, open 'E:\Development\Angular2\Cordova7\cordova7\platforms\android\AndroidManifest.xml'

       

      I'm building with latest ionic blank project ( see environment ) and the plugin in question is cordova-plugin-fingerprint-aio. I'm aware that this project is not yet cordova-android 7 compliant, I'm trying to create a pull request for same 

       

      https://github.com/NiklasMerz/cordova-plugin-fingerprint-aio/pull/94

       

      This is the blank project that I build together with environment ( pasted below for reference ) - https://github.com/Liam-Ryan/ionic-cordova-android-7

       

      After setting up this project running ionic cordova plugin add cordova-plugin-fingerprint-aio && cordova platform add android will reproduce the issue. 

       

      cli packages: @ionic/cli-utils : 1.19.2

      ionic (Ionic CLI) : 3.20.0

      global packages: cordova (Cordova CLI) : 8.0.0

      local packages: @ionic/app-scripts : 3.1.8

      Cordova Platforms : android 7.0.0

      Ionic Framework : ionic-angular 3.9.2

      System: Android SDK Tools : 26.1.1 Node : v8.10.0

      npm : 5.6.0

      OS : Windows 7 Cordova 8.0.0

       

      Attachments

        1. plugin.xml
          4 kB
          Liam Ryan

        Activity

          People

            bowserj Joey Robert Bowser
            Nessus Liam Ryan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: