From 72bcff83f71a0fd9cb04a05386e43898c6fbf75b Mon Sep 17 00:00:00 2001 From: Julian Frumar Date: Thu, 4 Aug 2016 16:38:16 -0700 Subject: [PATCH] Fix hook to remove build.gradle config on uninstall. --- hooks/lib/android-helper.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hooks/lib/android-helper.js b/hooks/lib/android-helper.js index e11e5df..a8c42ae 100644 --- a/hooks/lib/android-helper.js +++ b/hooks/lib/android-helper.js @@ -10,6 +10,7 @@ module.exports = { var buildGradle = utilities.readBuildGradle(); buildGradle += [ + "", "// Fabric Cordova Plugin - Start Fabric Build Tools ", "buildscript {", " repositories {", @@ -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); }