Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Not A Bug
-
6.2.0
-
None
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:
- 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:
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.