-
Notifications
You must be signed in to change notification settings - Fork 255
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
[PLAT-6128] RN-CLI: Use a more exhaustive search for MainApplication.java #1365
Conversation
…ion.java Ejected Expo projects have a different directory structure to RN projects generated with the RN CLI. This update uses the glob package to determine the location of MainApplication.java no matter where it exists within the app directory.
|
Minified | Minfied + Gzipped | |
---|---|---|
Before | 40.86 kB |
12.61 kB |
After | 40.86 kB |
12.61 kB |
± | No change | No change |
code coverage diff
Coverage values did not change👌.
Total:
Lines | Branches | Functions | Statements |
---|---|---|---|
81.47%(-0.01%) | 70.42%(+0%) | 84.01%(+0%) | 80.39%(+0%) |
a879c0d
to
c3a630d
Compare
ce5f737
to
25ffde7
Compare
5da5b49
to
01e09c4
Compare
259b089
to
f827015
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes look good — approved assuming fixing the timeout won't change much of the main focus of this PR
Co-authored-by: Joe Haines <[email protected]>
…m:bugsnag/bugsnag-js into bengourley/rn-cli-main-application-search
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No comments from me.
Ejected Expo projects have a different directory structure to RN projects generated with the RN CLI. This update uses the glob package to determine the location of MainApplication.java no matter where it exists within the app directory.
Goal
Ensure the CLI works with the default directory structure of an ejected Expo app.
Design
The
glob
module was added to recursively search the app directory forMainApplication.java
. This means the CLI can cope with various directory structures.Changeset
glob
dependencyTesting
Relying on updated unit tests and existing automated tests.
As well as catching regressions on the existing fixture apps, I'm currently adding a new ejected Expo fixture to the automated tests to determine that the updated logic does works as intended.