From a83539747da0b87fe8ced1c2aaeedb98ccc94152 Mon Sep 17 00:00:00 2001 From: ignifugo Date: Wed, 24 Jul 2019 13:53:28 +0200 Subject: [PATCH] hook sul plugin e non sul manifest --- hooks/after_prepare/030_remove_permissions.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/hooks/after_prepare/030_remove_permissions.js b/hooks/after_prepare/030_remove_permissions.js index 0465dd4..36d14e7 100755 --- a/hooks/after_prepare/030_remove_permissions.js +++ b/hooks/after_prepare/030_remove_permissions.js @@ -20,11 +20,15 @@ var permsToRm = [ "RECORD_AUDIO", "MODIFY_AUDIO_SETTINGS", "READ_PHONE_STATE" ]; var fs = require('fs'); var path = require('path'); var rootdir = process.argv[2]; -var manifestFile = path.join(rootdir, "platforms/android/app/src/main/AndroidManifest.xml"); +var manifestFile = path.join(rootdir, "plugin/cordova-plugin-media/config.xml"); +/* +"platforms/android/app/AndroidManifest.xml" + +*/ fs.readFile( manifestFile, "utf8", function( err, data ) { if (err) - return console.log( "Error reading AndroidManifest.xml", err ); + return console.log( "Error reading plugin/cordova-plugin-media/config.xml", err ); var result = data; for(var i = 0; i < permsToRm.length; i++) {