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

Removing plugins doesn't remove their gradle configuration

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Bug
    • 6.2.0
    • None
    • cordova-android

    Description

      We use the Craslytics (Fabric) plugin in production builds, but in our dev environment we remove the plugin.

      Unfortunately, running `cordova plugin rm cordova-fabric-plugin` leaves around its (now stale) configuration in build.gradle.

      Steps to reproduce:

      • Check your build.gradle. For this particular plugin you'll see at the bottom of your file:
        buildscript {
            repositories {
                maven { url 'https://maven.fabric.io/public' }
            }
            dependencies {
                classpath 'io.fabric.tools:gradle:1.+'
            }
        }
        
        apply plugin: 'io.fabric'
        // Fabric Cordova Plugin - End Fabric Build Tools
        
      • Remote the plugin with `cordova plugin rm cordova-fabric-plugin`
      • Inspect your build.gradle file again, and you'll still find that existing config at the bottom of the file.

      This breaks our development builds.

      Also, if you now go ahead and re-install, you'll see the gradle config has been appended twice.

      Attachments

        Activity

          People

            Unassigned Unassigned
            jfrumar Julian Frumar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: