diff --git a/package.json b/package.json
index 1302693..db55b48 100644
--- a/package.json
+++ b/package.json
@@ -22,8 +22,7 @@
"bin": "bin/apk-mitm",
"files": [
"bin",
- "dist",
- "res"
+ "dist"
],
"engines": {
"node": ">=10"
diff --git a/res/nsc_mitm.xml b/res/nsc_mitm.xml
deleted file mode 100644
index 1bc8f00..0000000
--- a/res/nsc_mitm.xml
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/tasks/create-netsec-config.ts b/src/tasks/create-netsec-config.ts
index 26226e5..2c54641 100644
--- a/src/tasks/create-netsec-config.ts
+++ b/src/tasks/create-netsec-config.ts
@@ -1,9 +1,19 @@
import * as fs from '../utils/fs'
import * as pathUtils from 'path'
-const TEMPLATE_PATH = pathUtils.join(__dirname, '../../res/nsc_mitm.xml')
+const TEMPLATE = `
+
+
+
+
+
+
+
+
+
+`
export default async function createNetworkSecurityConfig(path: string) {
await fs.mkdir(pathUtils.dirname(path), { recursive: true })
- await fs.copyFile(TEMPLATE_PATH, path)
+ await fs.writeFile(path, TEMPLATE, 'utf-8')
}