Skip to content

Commit

Permalink
Merge pull request #57 from jfrumar/master
Browse files Browse the repository at this point in the history
Fix hook to remove build.gradle config on uninstall.
  • Loading branch information
sarriaroman authored Oct 24, 2016
2 parents 6d5c798 + 72bcff8 commit 5a6d7ce
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 5a6d7ce

Please sign in to comment.