Skip to content

Commit

Permalink
Fix hook to remove build.gradle config on uninstall.
Browse files Browse the repository at this point in the history
  • Loading branch information
jfrumar committed Aug 4, 2016
1 parent 8626f37 commit 72bcff8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hooks/lib/android-helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ module.exports = {
var buildGradle = utilities.readBuildGradle();

buildGradle += [
"",
"// Fabric Cordova Plugin - Start Fabric Build Tools ",
"buildscript {",
" repositories {",
Expand All @@ -31,7 +32,7 @@ module.exports = {

var buildGradle = utilities.readBuildGradle();

buildGradle = buildGradle.replace(/\n\/\/ Fabric Cordova Plugin - Start Fabric Build Tools[\s\S]*\/\/ Fabric Cordova Plugin - End Fabric Build Tools\n/, "");
buildGradle = buildGradle.replace(/\n\/\/ Fabric Cordova Plugin - Start Fabric Build Tools[\s\S]*\/\/ Fabric Cordova Plugin - End Fabric Build Tools/, "");

utilities.writeBuildGradle(buildGradle);
}
Expand Down

0 comments on commit 72bcff8

Please sign in to comment.