Skip to content

Commit

Permalink
Update info.ts (#48876)
Browse files Browse the repository at this point in the history
Summary:
Found this while I was trying to make my own react native info for CI. For android Podfile.lock is being read instead of gradle.properties

## Changelog:

<!-- Help reviewers and the release process by writing your own changelog entry.

Pick one each for the category and type tags:
[INTERNAL][FIXED] - Fixed React native info where Podfile.lock was being read for android

For more details, see:
https://reactnative.dev/contributing/changelogs-in-pull-requests

Pull Request resolved: #48876

Reviewed By: blakef

Differential Revision: D68553964

Pulled By: cortinico

fbshipit-source-id: 7d6391195dab0c2230fe86fb465de6d3f94ccbef
  • Loading branch information
riteshshukla04 authored and facebook-github-bot committed Jan 23, 2025
1 parent dab9b3b commit 317f130
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/react-native-info/src/info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,11 @@ export default async function getInfo(options: CliOptions, ctx: Config) {
if (ctx.project.android?.sourceDir) {
platforms.Android.hermesEnabled = fileContains('hermesEnabled=true', [
ctx.project.Android.sourceDir,
'Podfile.lock',
'gradle.properties',
]);
platforms.Android.newArchEnabled = fileContains('newArchEnabled=true', [
ctx.project.Android.sourceDir,
'Podfile.lock',
'gradle.properties',
]);
}

Expand Down

0 comments on commit 317f130

Please sign in to comment.