react-native/local-cli/link
Sujay Jaju 843cfc3b20 Fix #18244 Support CRLF build.gradle for Linking
Summary:
Fix for #18244
Add support for build.gradle with CRLF based line ending when running react-native link

<!--
Thank you for sending the PR! We appreciate you spending the time to work on these changes.

Help us understand your motivation by explaining why you decided to make this change.

You can learn more about contributing to React Native here: http://facebook.github.io/react-native/docs/contributing.html

Happy contributing!

-->

`react native link` fails if andorid/app/build.gradle has CRLF based line endings.

Minor 3 character code change.
Ran `react native link` on Windows and Mac to verify.

None

<!--
Help reviewers and the release process by writing your own release notes

**INTERNAL and MINOR tagged notes will not be included in the next version's final release notes.**

  CATEGORY
[----------]        TYPE
[ CLI      ]   [-------------]      LOCATION
[ DOCS     ]   [ BREAKING    ]   [-------------]
[ GENERAL  ]   [ BUGFIX      ]   [-{Component}-]
[ INTERNAL ]   [ ENHANCEMENT ]   [ {File}      ]
[ IOS      ]   [ FEATURE     ]   [ {Directory} ]   |-----------|
[ ANDROID  ]   [ MINOR       ]   [ {Framework} ] - | {Message} |
[----------]   [-------------]   [-------------]   |-----------|

[CATEGORY] [TYPE] [LOCATION] - MESSAGE

 EXAMPLES:

 [IOS] [BREAKING] [FlatList] - Change a thing that breaks other things
 [ANDROID] [BUGFIX] [TextInput] - Did a thing to TextInput
 [CLI] [FEATURE] [local-cli/info/info.js] - CLI easier to do things with
 [DOCS] [BUGFIX] [GettingStarted.md] - Accidentally a thing/word
 [GENERAL] [ENHANCEMENT] [Yoga] - Added new yoga thing/position
 [INTERNAL] [FEATURE] [./scripts] - Added thing to script that nobody will see
-->
 [CLI] [BUGFIX] [local-cli/link/android/patches/makeBuildPath.js] - Support CRLF line endings
Closes https://github.com/facebook/react-native/pull/18245

Differential Revision: D8044774

Pulled By: hramos

fbshipit-source-id: 93fad3db7022784ee949936777aa5ac25e3a64a3
2018-05-25 11:15:58 -07:00
..
__fixtures__ iOS OSS: deployment target 8.0 => 9.0 2018-05-22 01:16:45 -07:00
__tests__ Use `hg root` for all CWD in test environment 2018-05-14 13:46:51 -07:00
android Fix #18244 Support CRLF build.gradle for Linking 2018-05-25 11:15:58 -07:00
ios Prettier RN local-cli 2018-05-11 13:00:50 -07:00
pods Prettier RN local-cli 2018-05-11 13:00:50 -07:00
commandStub.js Prettier RN local-cli 2018-05-11 13:00:50 -07:00
getDependencyConfig.js Prettier RN local-cli 2018-05-11 13:00:50 -07:00
getProjectDependencies.js Use `hg root` for all CWD in test environment 2018-05-14 13:46:51 -07:00
groupFilesByType.js Prettier RN local-cli 2018-05-11 13:00:50 -07:00
link.js Prettier RN local-cli 2018-05-11 13:00:50 -07:00
pollParams.js Prettier RN local-cli 2018-05-11 13:00:50 -07:00
promiseWaterfall.js Prettier RN local-cli 2018-05-11 13:00:50 -07:00
promisify.js Prettier RN local-cli 2018-05-11 13:00:50 -07:00
unlink.js Prettier RN local-cli 2018-05-11 13:00:50 -07:00