hook sul plugin e non sul manifest

This commit is contained in:
ignifugo 2019-07-24 13:53:28 +02:00
parent f99e13adc7
commit a83539747d

View file

@ -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++) {