diff --git a/hooks/after_prepare/030_remove_permissions.js b/hooks/after_prepare/030_remove_permissions.js index d053b3d..a39f532 100755 --- a/hooks/after_prepare/030_remove_permissions.js +++ b/hooks/after_prepare/030_remove_permissions.js @@ -32,8 +32,8 @@ fs.readFile( manifestFile, "utf8", function( err, data ) { result = result.replace(search, ''); } - fs.writeFile( manifestFile, data, "utf8", function( err ){ + fs.writeFile( manifestFile, result, "utf8", function( err ){ if (err) return console.log( "Error writing AndroidManifest.xml", err ); }); -} ); \ No newline at end of file +} );