Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove hardcoded React Native configuration #767

Merged
merged 5 commits into from
Nov 14, 2019

Conversation

grabbou
Copy link
Member

@grabbou grabbou commented Oct 3, 2019

Summary:

Historically, React Native used to be tightly coupled with the CLI, support for Android and iOS was hardcoded. Since 0.60, we have made React Native ship with its own configuration, specifying Android and iOS platforms just like React Native Windows.

This PR removes "dead-code" that was only needed during the transition period. It wasn't used and called in the 0.60.

I have also removed some obsolete tests that were no longer needed.

Copy link
Member

@thymikee thymikee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@@ -79,8 +105,7 @@ test('should return dependencies from package.json', () => {

test('should read a config of a dependency and use it to load other settings', () => {
writeFiles(DIR, {
'node_modules/react-native/package.json': '{}',
'node_modules/react-native-test/package.json': '{}',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why this is removed?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Accident, but I am surprised that the tests are passing.

@grabbou
Copy link
Member Author

grabbou commented Oct 3, 2019

Tests are failing on Windows. I will need a Windows machine to debug why the mocking logic doesn't work.

If there's anybody with Windows that's willing to give it a go, let me know!

@thymikee
Copy link
Member

thymikee commented Oct 8, 2019

@thecodrr would you like to help us debug this?

@thecodrr
Copy link
Contributor

thecodrr commented Oct 8, 2019

Yup. On it.

@thymikee thymikee force-pushed the feat/decouple-cli-from-native branch from 114fedc to 307f50b Compare October 11, 2019 13:49
@grabbou
Copy link
Member Author

grabbou commented Nov 4, 2019

Any luck @thecodrr? We do happen to have same on #811. I have Windows machine with me as I am working on React Native Windows project right now. Will try to debug this in the coming days.

Meanwhile, help is appreciated :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants