You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

react-native-pod

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-pod - npm Package Compare versions

Comparing version

to
1.7.0

lib/fixPods.js

@@ -13,9 +13,21 @@ #!/usr/bin/env node

};
var doFix = false;
dependencies.map(dependency => {
const package = require(path.resolve(nodepath, dependency, "package.json"));
registerPodsFromPackage(package);
if (package.isSwift) doFix = true;
});
registerPodsFromPackage(package);
if (package.isSwift) doFix = true;
//Now that all my pods are here, let's run a pod install
const mydir = process.cwd();
process.chdir("./ios");
spawnSync("pod", ["install"], opts);
console.log("Do I fix pods?");
if (doFix) {
console.log("Yes I do!");
const fixPods = require("../lib/fixPods");
process.chdir(mydir);
fixPods();
}

4

package.json
{
"name": "react-native-pod",
"version": "1.6.0",
"version": "1.7.0",
"description": "Automatically generate podfile for React Native",

@@ -17,3 +17,3 @@ "scripts": {

"glob": "^7.1.2",
"xcode": "https://github.com/apache/cordova-node-xcode"
"xcode": "https://github.com/rhdeck/cordova-node-xcode"
},

@@ -20,0 +20,0 @@ "rnpm": {

@@ -28,3 +28,9 @@ module.exports = [

"Install all pods specified in the podfile. (Happens automatically at react-native link)"
},
{
name: "fixpods",
func: require("../lib/fixPods"),
description:
"Disable bitcode build in pod, can be important for swift-based projects"
}
];