Skip to content

Conversation

@molant
Copy link
Contributor

@molant molant commented Feb 26, 2020

Summary:

Working on #976 I had some issues making the CLI crash when build.gradle is missing.

Test Plan:

const buildToolsVersionEntry = 'buildToolsVersion';

if (!fs.existsSync(gradleBuildFilePath)) {
return '';
Copy link
Member

@thymikee thymikee Feb 26, 2020

Choose a reason for hiding this comment

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

Can we return Not Found instead? I don't feel too good about returning an empty string, but this way we could be consistent. It also seems like this function can return either non-empty string or Not Found. Which makes code on line 52 unreachable. Can you investigate and remove stuff if possible?

@molant
Copy link
Contributor Author

molant commented Feb 26, 2020 via email

@thymikee thymikee merged commit 109ebf2 into react-native-community:master Feb 26, 2020
@molant molant deleted the fix/gradle-crash branch February 27, 2020 20:51
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.

2 participants