-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
android(feat):new arch support #4675
Conversation
# Conflicts: # detox/android/detox/src/full/java/com/wix/detox/reactnative/idlingresources/animations/AnimatedModuleIdlingResource.kt
Change the way of getting is fabric enabled
Change the way of getting is fabric enabled
@gosha212 I think the test app will crash on the Localization screen on Android, since it uses a legacy native module. |
we should check if our bridge native modules work with backward comp. or if there's something magically /hybrid that happens here |
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.
In iOS we can check the env flag process.env.RCT_NEW_ARCH_ENABLED
We can use this when running new arch on android as well (for the tests)
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.
Overall, great job. Lot's of notes on my end but we are nevertheless very close to finish 👑
.../demo-react-native/android/app/src/androidTest/java/com/example/DetoxTestAppJUnitRunner.java
Show resolved
Hide resolved
examples/demo-react-native/android/app/src/main/java/com/example/MainActivity.kt
Show resolved
Hide resolved
detox/android/detox/src/full/java/com/wix/detox/reactnative/reloader/ReactNativeReloader.kt
Outdated
Show resolved
Hide resolved
...src/full/java/com/wix/detox/reactnative/idlingresources/timers/FabricTimersIdlingResource.kt
Outdated
Show resolved
Hide resolved
...src/full/java/com/wix/detox/reactnative/idlingresources/timers/FabricTimersIdlingResource.kt
Show resolved
Hide resolved
...src/full/java/com/wix/detox/reactnative/idlingresources/timers/FabricTimersIdlingResource.kt
Outdated
Show resolved
Hide resolved
...src/full/java/com/wix/detox/reactnative/idlingresources/timers/FabricTimersIdlingResource.kt
Outdated
Show resolved
Hide resolved
…lingresources/uimodule/fabric/FabricUIManagerIdlingResources.kt Co-authored-by: d4vidi <[email protected]>
Co-authored-by: d4vidi <[email protected]>
detox/android/detox/build.gradle
Outdated
api('androidx.test:core-ktx:1.6.1') { | ||
because 'Needed by Detox but also makes AndroidX test core seamlessly provided to Detox users with hybrid apps/E2E-tests.' | ||
} | ||
api("org.jetbrains.kotlin:kotlin-reflect:$_kotlinVersion") { | ||
because('Needed by Detox for kotlin reflection') | ||
} |
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.
on 2nd thought, maybe implementation
would be a better idea here
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.
Description
In this pull request, I have added support for the new arch in detox