You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Vladimir Kotikov (JIRA)" <ji...@apache.org> on 2016/07/14 07:37:20 UTC
[jira] [Closed] (CB-11572) Removing plugins doesn't remove their
gradle configuration
[ https://issues.apache.org/jira/browse/CB-11572?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Vladimir Kotikov closed CB-11572.
---------------------------------
Resolution: Not A Bug
> Removing plugins doesn't remove their gradle configuration
> ----------------------------------------------------------
>
> Key: CB-11572
> URL: https://issues.apache.org/jira/browse/CB-11572
> Project: Apache Cordova
> Issue Type: Bug
> Components: Android
> Affects Versions: 6.2.0
> Reporter: Julian Frumar
> Labels: reproduced, triaged
>
> 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:
> - Install the fabric plugin (or any plugin that has a gradle config): `cordova plugin add https://github.com/sarriaroman/FabricPlugin.git --variable FABRIC_API_KEY=foo --variable FABRIC_API_SECRET=bar`
> - Check your build.gradle. For this particular plugin you'll see at the bottom of your file:
> {code}
> 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
> {code}
> - 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.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org