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

React Native v.71 Compliance #4097

Merged
merged 30 commits into from
Jul 3, 2023
Merged

React Native v.71 Compliance #4097

merged 30 commits into from
Jul 3, 2023

Conversation

asafkorem
Copy link
Contributor

@asafkorem asafkorem commented May 31, 2023

This PR resolves #4066, #4067, #4068, #4069 and #4070.

error Failed to build the app: No package name found. Found errors in .../android/app/src/main/AndroidManifest.xml.
README.md Outdated

### Environment
Detox was built from the ground up to support React Native projects.
While Detox should work out of the box with almost any React Native version from the past few minor releases, official support is provided for React Native versions `0.70.x` and `0.71.x` without React Native's ["New Architecture"](https://reactnative.dev/docs/the-new-architecture/landing-page).
Copy link
Contributor Author

@asafkorem asafkorem Jun 13, 2023

Choose a reason for hiding this comment

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

@d4vidi regarding your comment - What do you think about:

We officially support Detox for React Native versions 0.70 and 0.71, without the "New Architecture".

TBH I'm not a huge fan of the table since there is really no difference between iOS and Android in terms of our official support. If you want some border that will wrap the version numbers I can make a 1x1 table 😄

@d4vidi d4vidi marked this pull request as ready for review June 29, 2023 12:39

android {
compileSdkVersion rootProject.ext.compileSdkVersion
namespace 'com.example'

buildToolsVersion rootProject.ext.buildToolsVersion
Copy link
Collaborator

Choose a reason for hiding this comment

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

todo (note to self)

.buildkite/jobs/pipeline.android_demo_app_rn_71.yml Outdated Show resolved Hide resolved
.buildkite/jobs/pipeline.android_rn_71.yml Outdated Show resolved Hide resolved
.buildkite/jobs/pipeline.ios_demo_app_rn_71.yml Outdated Show resolved Hide resolved
.buildkite/jobs/pipeline.ios_rn_71.yml Outdated Show resolved Hide resolved
.buildkite/pipeline.debug.yml Outdated Show resolved Hide resolved
maven {
url "$projectDir/../../node_modules/react-native/android"
mavenCentral()
mavenLocal()
Copy link
Contributor Author

Choose a reason for hiding this comment

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

let's consider to remove this

detox/android/detox/build.gradle Outdated Show resolved Hide resolved
detox/android/rninfo.gradle Outdated Show resolved Hide resolved
detox/test/android/build.gradle Outdated Show resolved Hide resolved
detox/test/android/build.gradle Outdated Show resolved Hide resolved
Copy link
Contributor Author

@asafkorem asafkorem left a comment

Choose a reason for hiding this comment

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

GG us

detox/test/package.json Outdated Show resolved Hide resolved
docs/contributing.md Outdated Show resolved Hide resolved
docs/introduction/partials/_getting-started-rn.md Outdated Show resolved Hide resolved
docs/introduction/partials/_getting-started-rn.md Outdated Show resolved Hide resolved
docs/introduction/partials/_getting-started-rn.md Outdated Show resolved Hide resolved
examples/demo-react-native/android/build.gradle Outdated Show resolved Hide resolved
examples/demo-react-native/ios/Podfile Outdated Show resolved Hide resolved
examples/demo-react-native/package.json Outdated Show resolved Hide resolved
scripts/ci.android.sh Outdated Show resolved Hide resolved
@d4vidi d4vidi merged commit ce52384 into master Jul 3, 2023
@d4vidi d4vidi deleted the rn-71-support branch July 3, 2023 16:16
@kevindice
Copy link

Thank you! 🎉

@RohovDmytro
Copy link

Wow! Great & epic.

When 0.72? 😜 I observe that going from 0.71 to 0.72 is doing not bad in the community. Me personally had a great migration experience in a moderately complex project.

@asafkorem
Copy link
Contributor Author

asafkorem commented Jul 4, 2023

Wow! Great & epic.

When 0.72? 😜 I observe that going from 0.71 to 0.72 is doing not bad in the community. Me personally had a great migration experience in a moderately complex project.

Great question, we may try this soon and if the migration will be seamless we won't postpone it.. Anyhow, Detox might work with 0.72 now without changes. Feel free to try this and update
The new Detox version that officially supports React Native 0.71 is 20.9.1

@RohovDmytro
Copy link

RohovDmytro commented Jul 4, 2023

Wow! Great & epic.
When 0.72? 😜 I observe that going from 0.71 to 0.72 is doing not bad in the community. Me personally had a great migration experience in a moderately complex project.

Great question, we may try this soon and if the migration will be seamless we won't postpone it.. Anyhow, Detox might work with 0.72 now without changes. Feel free to try this and update The new Detox version that officially supports React Native 0.71 is 20.9.1

Sweet.

5 cents:
[email protected] + [email protected] + Android = 👍, worked seamlessly from the first run
[email protected] + [email protected] + iOS = investigating :)

@RohovDmytro
Copy link

RohovDmytro commented Jul 4, 2023

Btw, you guys should know this, but react native 0.71 had a nasty, nasty, awful performance issue (people not screaming enough, but I do).

It had quite severe impact in my bigger project. My performance KPI's plummeted. The app seems okay, but some many skipped frames...

facebook/react-native#35778

It was fixed in 0.72.0 ;) 🙂

@d4vidi
Copy link
Collaborator

d4vidi commented Jul 4, 2023

Wow! Great & epic.
When 0.72? 😜 I observe that going from 0.71 to 0.72 is doing not bad in the community. Me personally had a great migration experience in a moderately complex project.

Great question, we may try this soon and if the migration will be seamless we won't postpone it.. Anyhow, Detox might work with 0.72 now without changes. Feel free to try this and update The new Detox version that officially supports React Native 0.71 is 20.9.1

Correction: The official version is 20.10.0 🚀

@d4vidi
Copy link
Collaborator

d4vidi commented Jul 4, 2023

@RohovDmytro Thanks for this valuable input. We will definitely take that into account

@ruibinch
Copy link

ruibinch commented Sep 7, 2023

@RohovDmytro Hello, just curious if you managed to get this new version of detox working seamlessly with RN 0.72.x on iOS? (will be performing the upgrade soon too)

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