New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@config-plugins/detox

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@config-plugins/detox - npm Package Compare versions

Comparing version 1.2.3 to 2.0.0

4

build/withDetox.js

@@ -22,4 +22,4 @@ "use strict";

withKotlinGradle_1.default,
// Minimum version of Kotlin required to work with expo packages in SDK 43
"1.4.21",
// Minimum version of Kotlin required to work with expo packages in SDK 45
"1.6.10",
],

@@ -26,0 +26,0 @@ // 5.

@@ -25,3 +25,3 @@ "use strict";

function setGradleAndroidTestImplementation(buildGradle) {
const pattern = /androidTestImplementation\(\'com.wix:detox:\+\'\)/g;
const pattern = /androidTestImplementation\('com.wix:detox:\+'\)/g;
if (buildGradle.match(pattern)) {

@@ -28,0 +28,0 @@ return buildGradle;

"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
var __importDefault = (this && this.__importDefault) || function (mod) {

@@ -27,5 +8,5 @@ return (mod && mod.__esModule) ? mod : { "default": mod };

const config_plugins_1 = require("@expo/config-plugins");
const path = __importStar(require("path"));
const fs = __importStar(require("fs"));
const assert_1 = __importDefault(require("assert"));
const fs_1 = __importDefault(require("fs"));
const path_1 = __importDefault(require("path"));
/**

@@ -82,5 +63,5 @@ * Copied from the [official template file](https://github.com/wix/Detox/blob/master/examples/demo-react-native/android/app/src/androidTest/java/com/example/DetoxTest.java).

assert_1.default(packageName, "android.package must be defined");
const folder = path.join(config.modRequest.platformProjectRoot, `app/src/androidTest/java/${packageName.split(".").join("/")}`);
fs.mkdirSync(folder, { recursive: true });
fs.writeFileSync(path.join(folder, "DetoxTest.java"), getTemplateFile(packageName), { encoding: "utf8" });
const folder = path_1.default.join(config.modRequest.platformProjectRoot, `app/src/androidTest/java/${packageName.split(".").join("/")}`);
fs_1.default.mkdirSync(folder, { recursive: true });
fs_1.default.writeFileSync(path_1.default.join(folder, "DetoxTest.java"), getTemplateFile(packageName), { encoding: "utf8" });
return config;

@@ -87,0 +68,0 @@ },

"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
var __importDefault = (this && this.__importDefault) || function (mod) {

@@ -27,5 +8,5 @@ return (mod && mod.__esModule) ? mod : { "default": mod };

const config_plugins_1 = require("@expo/config-plugins");
const path = __importStar(require("path"));
const fs = __importStar(require("fs"));
const assert_1 = __importDefault(require("assert"));
const fs_1 = __importDefault(require("fs"));
const path_1 = __importDefault(require("path"));
function getTemplateConfigContent(subdomains) {

@@ -67,5 +48,5 @@ if (subdomains === "*") {

assert_1.default(packageName, "android.package must be defined");
const folder = path.join(config.modRequest.platformProjectRoot, `app/src/main/res/xml`);
fs.mkdirSync(folder, { recursive: true });
fs.writeFileSync(path.join(folder, "network_security_config.xml"), getTemplateFile(subdomains), { encoding: "utf8" });
const folder = path_1.default.join(config.modRequest.platformProjectRoot, `app/src/main/res/xml`);
fs_1.default.mkdirSync(folder, { recursive: true });
fs_1.default.writeFileSync(path_1.default.join(folder, "network_security_config.xml"), getTemplateFile(subdomains), { encoding: "utf8" });
return config;

@@ -72,0 +53,0 @@ },

@@ -24,3 +24,3 @@ "use strict";

function addDetoxProguardRules(buildGradle) {
const pattern = /detox\/proguard\-rules\-app\.pro/g;
const pattern = /detox\/proguard-rules-app\.pro/g;
if (buildGradle.match(pattern)) {

@@ -27,0 +27,0 @@ return buildGradle;

{
"name": "@config-plugins/detox",
"version": "1.2.3",
"version": "2.0.0",
"description": "Config plugin to auto configure detox on prebuild",

@@ -33,3 +33,3 @@ "main": "build/withDetox.js",

"dependencies": {
"@expo/config-plugins": "^4.1.0"
"@expo/config-plugins": "~4.1.4"
},

@@ -36,0 +36,0 @@ "devDependencies": {

@@ -11,2 +11,3 @@ # config-plugins/detox

| ------ | ------- | ----------------------- |
| 45.0.0 | 19.6.9 | ^2.0.0 |
| 44.0.0 | 19.1.0 | ^1.1.0 |

@@ -20,3 +21,3 @@ | 43.0.0 | 19.1.0 | ~1.0.0 |

> Tested against Expo SDK 44
> Tested against Expo SDK 45

@@ -23,0 +24,0 @@ ```

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc