react-native/local-cli/core
Miron Pawlik 74146cb315 Make `react-native link` play nicely with CocoaPods-based iOS projects.
Summary:
The core React Native codebase already has full support for CocoaPods. However, `react-native link` doesn’t play nicely with CocoaPods, so installing third-party libs from the RN ecosystem is really hard.

This change will allow to link projects that contains its own `.podspec` file to CocoaPods-based projects. In case `link` detect `Podfile` in `iOS` directory, it will look for related `.podspec` file in linked project directory, and add it to `Podfile`. If `Podfile` and `.podspec` files are not present, it will fall back to previous implementation.

**Test Plan**
1. Build a React Native project where the iOS part uses CocoaPods to manage its dependencies. The most common scenario here is to have React Native be a Pod dependency, among others.
2. Install a RN-related library, that contains `.podspec` file, with `react-native link` (as an example it could be: [react-native-maps](https://github.com/airbnb/react-native-maps)
3. Building the resulting iOS workspace should succeed (and there should be new entry in `Podfile`)
Closes https://github.com/facebook/react-native/pull/15460

Differential Revision: D6078649

Pulled By: hramos

fbshipit-source-id: 9651085875892fd66299563ca0e42fb2bcc00825
2017-10-17 21:35:47 -07:00
..
__fixtures__ Make `react-native link` play nicely with CocoaPods-based iOS projects. 2017-10-17 21:35:47 -07:00
__tests__ Make `react-native link` play nicely with CocoaPods-based iOS projects. 2017-10-17 21:35:47 -07:00
android react-native link support for native Android modules developed in Kotlin 2017-06-29 01:15:36 -07:00
ios Make `react-native link` play nicely with CocoaPods-based iOS projects. 2017-10-17 21:35:47 -07:00
windows Run eslint --fix 2017-10-09 17:46:44 -07:00
Constants.js metro-bundler: remove hardcoded AssetRegistry path 2017-07-24 17:16:39 -07:00
findAssets.js Merge `rnpm config` with the `cli config`, step 1 2017-01-09 07:58:33 -08:00
findPlugins.js Fix lint in local-cli 2016-11-14 11:13:42 -08:00
index.js Use the Config type from Metro 2017-09-15 05:00:10 -07:00
makeCommand.js Fix lint in local-cli 2016-11-14 11:13:42 -08:00
wrapCommands.js Merge `rnpm config` with the `cli config`, step 1 2017-01-09 07:58:33 -08:00