diff --git a/package.json b/package.json index dc3d0ba..c54a117 100644 --- a/package.json +++ b/package.json @@ -9,14 +9,14 @@ "author": "pchalupa (https://github.com/pchalupa)", "license": "MIT", "homepage": "https://github.com/pchalupa/expo-network-security-config#readme.md", - "main": "index.js", + "main": "plugin/index.js", "keywords": [ "react-native", "expo", "expo-network-security-config" ], "files": [ - "index.js" + "plugin/index.js" ], "scripts": { "lint": "eslint", diff --git a/index.js b/plugin/index.js similarity index 98% rename from index.js rename to plugin/index.js index d57068f..eb0f3ac 100644 --- a/index.js +++ b/plugin/index.js @@ -10,7 +10,6 @@ const { join } = require('path'); * @returns {import('@expo/config-types').ExpoConfig} config */ module.exports = function withExpoNetworkSecurityConfig(config, { enable, networkSecurityConfig }) { - // Early return switch if (!enable) return config; const { getMainApplicationOrThrow } = AndroidConfig.Manifest;