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

[Android] Remove @override annotation to support RN 0.53-0.55 on detox 9.0 #922

Merged

Conversation

JamesWatling
Copy link

@JamesWatling JamesWatling commented Sep 4, 2018

remove @OverRide annotation on onBridgeDestroyed as it is not introduced until react-native 0.56 and breaks previous react-native versions

See #919

The NotThreadSafeBridgeIdleDebugListener interface doesn't add the method onBridgeDestroyed() until RN 0.56 this causes builds prior than that to break with an error as follows:

Task :detox:compileMinReactNative46DebugJavaWithJavac FAILED
.../node_modules/detox/android/detox/src/main/java/com/wix/detox/espresso/ReactBridgeIdlingResource.java:65: error: method does not override or implement a method from a supertype
    @Override
    ^
Note: .../node_modules/detox/android/detox/src/main/java/com/wix/detox/espresso/MultiTap.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error

This simply removes the @Override annotation without changing the expected functionality

…ced until react-native 0.56 and breaks previous react-native versions
@hazen
Copy link

hazen commented Sep 4, 2018

Thanks, @JamesWatling , I saw the same issue

@rotemmiz
Copy link
Member

rotemmiz commented Sep 4, 2018

Thanks for this PR!

This is weird, I can't see the CI integration here. @yershalom , any idea what happened ?

@yershalom
Copy link
Contributor

@rotemmiz nope.
@JamesWatling Can you please push some dummy commit, so it will trigger our CI?

@JamesWatling
Copy link
Author

JamesWatling commented Sep 4, 2018

@rotemmiz @yershalom weird. I just pushed an empty commit and it still isn't triggered...

Is there anyway for it to be manually triggerred?

@JamesWatling JamesWatling reopened this Sep 5, 2018
@rotemmiz
Copy link
Member

rotemmiz commented Sep 5, 2018

@yershalom I started getting notifications from GitHub named wix/Detox instead of wix/detox. Maybe this is somehow related?

@JamesWatling
Copy link
Author

It looks like the project name changed? If I look back to last month it was wix/detox, and now it's wix/Detox. Maybe the Jenkins needs to be updated too

@yershalom
Copy link
Contributor

@rotemmiz who changed it? And yes, this is related

@rotemmiz
Copy link
Member

rotemmiz commented Sep 5, 2018

No idea

@yershalom
Copy link
Contributor

Change it back?

@rotemmiz
Copy link
Member

rotemmiz commented Sep 5, 2018

I guess, yes

@yershalom
Copy link
Contributor

Mk

@yershalom
Copy link
Contributor

@JamesWatling can you please push another dummy commit?
And sorry for the trouble.

@rotemmiz rotemmiz merged commit 3e82a3b into wix:master Sep 5, 2018
@hazen
Copy link

hazen commented Sep 7, 2018

Any chance we could get a tag for this change? 9.0.2? Thanks!

@phosphene
Copy link

Yes. Looking forward to the next version bump to 9.0.2 that includes this change.

@lock lock bot locked as resolved and limited conversation to collaborators Sep 11, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants