Skip to content

Make sure *.ts files are considered for task avoidance in the Gradle Plugin - #34296

Closed
cortinico wants to merge 1 commit into
mainfrom
nc/ts-task-avoidance
Closed

Make sure *.ts files are considered for task avoidance in the Gradle Plugin#34296
cortinico wants to merge 1 commit into
mainfrom
nc/ts-task-avoidance

Conversation

@cortinico

Copy link
Copy Markdown
Contributor

Summary

I've realized that the gradle plugin is currently looking at .js files for task re-execution. This means that, while the *.ts would still be considered when the codegen is invoked, an edit on one of those file, won't retrigger the codegen on Android.

This change fixes it so that we consider both *.ts and *.js files.

Changelog

[Android] [Fixed] - Make sure *.ts files are considered for task avoidance in the Gradle Plugin

Test Plan

Tests are attached.

@facebook-github-botfacebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jul 28, 2022
@facebook-github-bot

Copy link
Copy Markdown
Contributor

@cortinico has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@analysis-bot

Copy link
Copy Markdown
PlatformEngineArchSize (bytes)Diff
ios-universaln/a--

Base commit: 1ce23ce
Branch: main

@react-native-bot

Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @cortinico in 1a9fb6c.

When will my fix make it into a release? | Upcoming Releases

@react-native-botreact-native-bot added the Merged This PR has been merged. label Jul 28, 2022
@kelset
kelset deleted the nc/ts-task-avoidance branch July 29, 2022 07:53
@danilobuerger

Copy link
Copy Markdown
Contributor

@cortinico I just stumbled upon this randomly. Quick question: Shouldn't it also include .jsx and .tsx files?

@cortinico

Copy link
Copy Markdown
ContributorAuthor

Shouldn't it also include .jsx and .tsx files?

Not really as spec files should not use jsx/tsx

kelset pushed a commit that referenced this pull request Aug 2, 2022
…Plugin (#34296)
Summary:
I've realized that the gradle plugin is currently looking at `.js` files for task re-execution. This means that, while the *.ts would still be considered when the codegen is invoked, an edit on one of those file, won't retrigger the codegen on Android.
This change fixes it so that we consider both `*.ts` and `*.js` files.
## Changelog
[Android] [Fixed] - Make sure *.ts files are considered for task avoidance in the Gradle Plugin
Pull Request resolved: #34296
Test Plan: Tests are attached.
Reviewed By: cipolleschi
Differential Revision: D38246125
Pulled By: cortinico
fbshipit-source-id: 80efcc9ef747c598ca040d65b25d270593c8aed2
roryabraham pushed a commit to Expensify/react-native that referenced this pull request Aug 17, 2022
…Plugin (react#34296)
Summary:
I've realized that the gradle plugin is currently looking at `.js` files for task re-execution. This means that, while the *.ts would still be considered when the codegen is invoked, an edit on one of those file, won't retrigger the codegen on Android.
This change fixes it so that we consider both `*.ts` and `*.js` files.
## Changelog
[Android] [Fixed] - Make sure *.ts files are considered for task avoidance in the Gradle Plugin
Pull Request resolved: react#34296
Test Plan: Tests are attached.
Reviewed By: cipolleschi
Differential Revision: D38246125
Pulled By: cortinico
fbshipit-source-id: 80efcc9ef747c598ca040d65b25d270593c8aed2
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

BugCLA SignedThis label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.MergedThis PR has been merged.p: FacebookPartner: FacebookPartnerPlatform: AndroidAndroid applications.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@cortinico@facebook-github-bot@analysis-bot@react-native-bot@danilobuerger