{"_id":"expo-network-security-config","_rev":"5-f85a9ae7e21e20e50353b6f075dc50f7","name":"expo-network-security-config","dist-tags":{"latest":"1.1.2"},"versions":{"1.0.0":{"name":"expo-network-security-config","version":"1.0.0","keywords":["react-native","expo","expo-network-security-config"],"author":{"url":"https://github.com/pchalupa","name":"pchalupa","email":"chalupa.petr93@gmail.com"},"license":"MIT","_id":"expo-network-security-config@1.0.0","maintainers":[{"name":"pchalupa","email":"chalupa.petr93@gmail.com"}],"homepage":"https://github.com/pchalupa/expo-network-security-config#readme.md","bugs":{"url":"https://github.com/pchalupa/expo-network-security-config/issues"},"dist":{"shasum":"f9197b4b4002e3a524d5ace4d2da6331fe5352c4","tarball":"https://registry.npmjs.org/expo-network-security-config/-/expo-network-security-config-1.0.0.tgz","fileCount":3,"integrity":"sha512-n2Vpg8bX2kl9y3XirQ3l9+Z5XwaBXen+fPIb8EoaGzu2016HFW6xtOHpPuOWds3ZRHpzCroBpY6kEgfla3Ap3g==","signatures":[{"sig":"MEQCID409bbVZ3QSFqurzex6/C3F1VENPs8YpIr8DExAlC1BAiA6RbzuHXpol69XfwlYUIAKIXLveAcGAt6J0Hv+sc4BPA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3590},"main":"index.js","gitHead":"8d6334e44443eee9c99fb355ef6760a43d415fee","scripts":{"lint":"eslint index.js"},"_npmUser":{"name":"pchalupa","email":"chalupa.petr93@gmail.com"},"repository":{"url":"git+https://github.com/pchalupa/expo-network-security-config.git","type":"git"},"_npmVersion":"10.5.2","description":"This Expo config plugin allows you to include a network security config within your app.","directories":{},"_nodeVersion":"20.13.1","_hasShrinkwrap":false,"devDependencies":{"expo":"^50.0.0","eslint":"^9.6.0","globals":"^15.8.0","prettier":"^3.3.2","@eslint/js":"^9.6.0"},"peerDependencies":{"expo":"^50.0.0"},"_npmOperationalInternal":{"tmp":"tmp/expo-network-security-config_1.0.0_1720625545344_0.24883347111060683","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"expo-network-security-config","version":"1.0.1","keywords":["react-native","expo","expo-network-security-config"],"author":{"url":"https://github.com/pchalupa","name":"pchalupa","email":"chalupa.petr93@gmail.com"},"license":"MIT","_id":"expo-network-security-config@1.0.1","maintainers":[{"name":"pchalupa","email":"chalupa.petr93@gmail.com"}],"homepage":"https://github.com/pchalupa/expo-network-security-config#readme.md","bugs":{"url":"https://github.com/pchalupa/expo-network-security-config/issues"},"dist":{"shasum":"2eb71bf574a623883866a0646b334464c5d289d3","tarball":"https://registry.npmjs.org/expo-network-security-config/-/expo-network-security-config-1.0.1.tgz","fileCount":3,"integrity":"sha512-yRcE8Sh6SgGIh990z0G/Gi0Na0rnV8oDieYkv8E/nOhGEAHmxcFm+EUZiDSJAuubMf10ZZEJfZvEqpG7T8ZVPA==","signatures":[{"sig":"MEQCIFr5odev+83Ccs9/SuWgmDSMT3NiGai8ixJnpkLMYBrtAiBHSU6M4QzPE2QsFRDhW/fb1+uH+1NXFXz0F5saNnazgw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3665},"main":"index.js","gitHead":"3b1b431912ede66bb6719bfbc11dffdddb2c7897","scripts":{"lint":"eslint","format:check":"prettier --check ."},"_npmUser":{"name":"pchalupa","email":"chalupa.petr93@gmail.com"},"repository":{"url":"git+https://github.com/pchalupa/expo-network-security-config.git","type":"git"},"_npmVersion":"10.5.2","description":"This Expo config plugin allows you to include a network security config within your app.","directories":{},"_nodeVersion":"20.13.1","_hasShrinkwrap":false,"devDependencies":{"expo":">=50.0.0","eslint":"^9.6.0","globals":"^15.8.0","prettier":"^3.3.2","@eslint/js":"^9.6.0","typescript":"^5.5.4"},"peerDependencies":{"expo":">=50.0.0"},"_npmOperationalInternal":{"tmp":"tmp/expo-network-security-config_1.0.1_1724678164626_0.727988939718216","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"expo-network-security-config","version":"1.0.2","keywords":["react-native","expo","expo-network-security-config"],"author":{"url":"https://github.com/pchalupa","name":"pchalupa","email":"chalupa.petr93@gmail.com"},"license":"MIT","_id":"expo-network-security-config@1.0.2","maintainers":[{"name":"pchalupa","email":"chalupa.petr93@gmail.com"}],"homepage":"https://github.com/pchalupa/expo-network-security-config#readme.md","bugs":{"url":"https://github.com/pchalupa/expo-network-security-config/issues"},"dist":{"shasum":"560623e277ef1295c2c43ec5b74c329c1118d43a","tarball":"https://registry.npmjs.org/expo-network-security-config/-/expo-network-security-config-1.0.2.tgz","fileCount":3,"integrity":"sha512-VyVnUtOwYTW9FDqsX0B50ApUmkWwxgInyfxWfL7l4mKK5ZTwhD9KxD+q4shPkwYaDWGpw1AsezFE4+fszXBGfA==","signatures":[{"sig":"MEQCICSSkbQtaINJ/gaPobcugMTmhK4+raXNheDV6eiYFMA5AiA9+AZhskXwCTneSXtH+ymzxBuzg4w0lKoClsimYXg+fw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3665},"main":"index.js","gitHead":"a197215931a098d103816e3fde3a6e4da8b67ad6","scripts":{"lint":"eslint","format:check":"prettier --check ."},"_npmUser":{"name":"pchalupa","email":"chalupa.petr93@gmail.com"},"repository":{"url":"git+https://github.com/pchalupa/expo-network-security-config.git","type":"git"},"_npmVersion":"10.8.2","description":"This Expo config plugin allows you to include a network security config within your app.","directories":{},"_nodeVersion":"20.17.0","_hasShrinkwrap":false,"devDependencies":{"expo":">=50.0.0","eslint":"^9.6.0","globals":"^15.8.0","prettier":"^3.3.2","@eslint/js":"^9.6.0","typescript":"^5.5.4"},"peerDependencies":{"expo":">=50.0.0"},"_npmOperationalInternal":{"tmp":"tmp/expo-network-security-config_1.0.2_1737436086563_0.20856684836906259","host":"s3://npm-registry-packages-npm-production"}},"1.1.1":{"name":"expo-network-security-config","version":"1.1.1","keywords":["react-native","expo","expo-network-security-config"],"author":{"url":"https://github.com/pchalupa","name":"pchalupa","email":"chalupa.petr93@gmail.com"},"license":"MIT","_id":"expo-network-security-config@1.1.1","maintainers":[{"name":"pchalupa","email":"chalupa.petr93@gmail.com"}],"homepage":"https://github.com/pchalupa/expo-network-security-config#readme.md","bugs":{"url":"https://github.com/pchalupa/expo-network-security-config/issues"},"dist":{"shasum":"465e79e8f01d97376d4d8d5ba6f6ccf294fb36a8","tarball":"https://registry.npmjs.org/expo-network-security-config/-/expo-network-security-config-1.1.1.tgz","fileCount":3,"integrity":"sha512-Bh06ybejbAxxIqIW0aevnxdOT4OoCSiV2gxHzUQXxJU5orcd1sZNOQ9TEBhrj01NL3vSxr50RxvCzL7Zvvv9JA==","signatures":[{"sig":"MEUCIQCPhkJvRiCWAvUhFUknxai6dvwI0D6Eltx9nU2ekNQrWgIgGSrvnRYjJ+Xrj4FTs7UEg4JbWFpGTC5q/0T6EByOxiY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":5065},"main":"plugin/index.js","gitHead":"18fcd3528cfb638dfa04f14a7e3f8e9d196d3f3f","scripts":{"lint":"eslint","release":"release-it","format:check":"prettier --check ."},"_npmUser":{"name":"pchalupa","email":"chalupa.petr93@gmail.com"},"repository":{"url":"git+https://github.com/pchalupa/expo-network-security-config.git","type":"git"},"_npmVersion":"11.11.0","description":"This Expo config plugin allows you to include a network security config within your app.","directories":{},"_nodeVersion":"25.8.1","_hasShrinkwrap":false,"devDependencies":{"expo":">=50.0.0","eslint":"^10.0.2","globals":"^17.0.0","prettier":"^3.3.2","@eslint/js":"^10.0.1","release-it":"^20.0.0","typescript":"^5.5.4","@types/node":"^25.6.0"},"peerDependencies":{"expo":">=50.0.0"},"_npmOperationalInternal":{"tmp":"tmp/expo-network-security-config_1.1.1_1776338424803_0.8904789023776736","host":"s3://npm-registry-packages-npm-production"}},"1.1.2":{"name":"expo-network-security-config","version":"1.1.2","description":"This Expo config plugin allows you to include a network security config within your app.","repository":{"type":"git","url":"git+https://github.com/pchalupa/expo-network-security-config.git"},"bugs":{"url":"https://github.com/pchalupa/expo-network-security-config/issues"},"author":{"name":"pchalupa","email":"chalupa.petr93@gmail.com","url":"https://github.com/pchalupa"},"license":"MIT","homepage":"https://github.com/pchalupa/expo-network-security-config#readme.md","main":"plugin/index.js","keywords":["react-native","expo","expo-network-security-config"],"scripts":{"lint":"eslint","format:check":"prettier --check .","release":"release-it"},"devDependencies":{"@eslint/js":"^10.0.1","@types/node":"^25.6.0","eslint":"^10.0.2","expo":">=50.0.0","globals":"^17.0.0","prettier":"^3.3.2","release-it":"^20.0.0","typescript":"^5.5.4"},"peerDependencies":{"expo":">=50.0.0"},"gitHead":"ad44b9011490c9409807e168beceea45b858a2a3","_id":"expo-network-security-config@1.1.2","_nodeVersion":"25.8.1","_npmVersion":"11.11.0","dist":{"integrity":"sha512-6QA/ykQIZyKPirZG8VyvVbfGcpyEDAtTbVj374kgWHUJFItQW7gElyRWMFf8Ui7G33ODC4dsNBN5HUPqlsGOqw==","shasum":"77a794d298a978a63031fb9bc560d7b39a7bc6fb","tarball":"https://registry.npmjs.org/expo-network-security-config/-/expo-network-security-config-1.1.2.tgz","fileCount":3,"unpackedSize":5065,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIBQbloSw9o2oEuUjSrO7YbWvKvNLxDnT4ZhssHpbgeBAAiEA98AKaRNsZsOBAHP/LK0gCLUqOAnnWtOASlp2suxl1KY="}]},"_npmUser":{"name":"pchalupa","email":"chalupa.petr93@gmail.com"},"directories":{},"maintainers":[{"name":"pchalupa","email":"chalupa.petr93@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/expo-network-security-config_1.1.2_1779519800391_0.0880533623620563"},"_hasShrinkwrap":false}},"time":{"created":"2024-07-10T15:32:25.343Z","modified":"2026-05-23T07:03:20.646Z","1.0.0":"2024-07-10T15:32:25.457Z","1.0.1":"2024-08-26T13:16:04.789Z","1.0.2":"2025-01-21T05:08:06.722Z","1.1.1":"2026-04-16T11:20:24.916Z","1.1.2":"2026-05-23T07:03:20.543Z"},"bugs":{"url":"https://github.com/pchalupa/expo-network-security-config/issues"},"author":{"name":"pchalupa","email":"chalupa.petr93@gmail.com","url":"https://github.com/pchalupa"},"license":"MIT","homepage":"https://github.com/pchalupa/expo-network-security-config#readme.md","keywords":["react-native","expo","expo-network-security-config"],"repository":{"type":"git","url":"git+https://github.com/pchalupa/expo-network-security-config.git"},"description":"This Expo config plugin allows you to include a network security config within your app.","maintainers":[{"name":"pchalupa","email":"chalupa.petr93@gmail.com"}],"readme":"# Expo Network Security Config\n\nAn [Expo config plugin](https://docs.expo.dev/config-plugins/introduction/) that copies a custom [network security config](https://developer.android.com/privacy-and-security/security-config) into your Android app.\nThis is useful when you need to allow HTTPS interception for tools like [Proxyman](https://proxyman.io/) on Android.\n\n### Platform Compatibility\n\n| Android Device | Android Emulator | iOS Device | iOS Simulator | Web |\n| -------------- | ---------------- | ---------- | ------------- | --- |\n| ✅             | ✅               | ❌         | ❌            | ❌  |\n\n## Installation\n\n```sh\nnpx expo install expo-network-security-config\n```\n\nRequires **Expo SDK 50+**.\n\n## Usage\n\n1. Create your `network_security_config.xml` file somewhere in your project (e.g. `assets/configs/network_security_config.xml`).\n\n2. Add the plugin to the `plugins` array in your `app.json` (or `app.config.js`):\n\n```json\n{\n  \"plugins\": [\n    [\n      \"expo-network-security-config\",\n      {\n        \"networkSecurityConfig\": \"./assets/configs/network_security_config.xml\",\n        \"enable\": true\n      }\n    ]\n  ]\n}\n```\n\n3. Run prebuild to regenerate the native project:\n\n```sh\nnpx expo prebuild\n```\n\nThe plugin copies your XML file into `android/app/src/main/res/xml/` and adds `android:networkSecurityConfig` to `AndroidManifest.xml`.\n\n### Example Config\n\nThe following example allows [Proxyman](https://proxyman.io/) to intercept HTTP/HTTPS requests by trusting user-added CAs:\n\n```xml\n<network-security-config>\n  <debug-overrides>\n    <trust-anchors>\n      <!-- Trust user added CAs while debuggable only -->\n      <certificates src=\"user\" />\n      <certificates src=\"system\" />\n    </trust-anchors>\n  </debug-overrides>\n\n  <base-config cleartextTrafficPermitted=\"true\">\n    <trust-anchors>\n      <certificates src=\"system\" />\n      <certificates src=\"user\" />\n    </trust-anchors>\n  </base-config>\n</network-security-config>\n```\n\n## API\n\n| Parameter               | Description                                                                                      |\n| ----------------------- | ------------------------------------------------------------------------------------------------ |\n| `networkSecurityConfig` | Path to your `network_security_config.xml` file, relative to the project root.                   |\n| `enable`                | When `true`, the config is copied and applied. When `false` (or omitted), the plugin is skipped. |\n","readmeFilename":"README.md"}