hook sul plugin e non sul manifest
This commit is contained in:
parent
f99e13adc7
commit
a83539747d
1 changed files with 6 additions and 2 deletions
|
@ -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++) {
|
||||
|
|
Loading…
Reference in a new issue