|
@@ -1,4 +1,4 @@
|
1
|
|
-var fs = reuqire('fs');
|
|
1
|
+var fs = require('fs');
|
2
|
2
|
var MANIFEST_PATH = process.cwd() + '/android/app/src/main/AndroidManifest.xml';
|
3
|
3
|
|
4
|
4
|
fs.readFile(MANIFEST_PATH, function(err, data) {
|
|
@@ -9,7 +9,7 @@ fs.readFile(MANIFEST_PATH, function(err, data) {
|
9
|
9
|
|
10
|
10
|
data = String(data).replace(
|
11
|
11
|
'<uses-permission android:name="android.permission.INTERNET" />',
|
12
|
|
- '<uses-permission android:name="android.permission.INTERNET" />\n <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> '
|
|
12
|
+ '<uses-permission android:name="android.permission.INTERNET" />\n <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> '
|
13
|
13
|
)
|
14
|
14
|
fs.writeFileSync(MANIFEST_PATH, data);
|
15
|
15
|
|