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

Fix kotlin build issues with react native 73.x #7831

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

siddarthkay
Copy link

In this PR we do the following :

  • We make sure react-native-navigation uses java 17 which is needed by react-native 0.73.1
  • We fix a type mismatch error when executing this gradle task :react-native-navigation:compileReactNative71DebugKotlin

fixes #7819

relevant patch in status-mobile repo : https://github.com/status-im/status-mobile/pull/18496/files#diff-b3d31b1df4cceb663a7dba96bcc3ea45686afe2208d7945b6e7e269067d753fbR100-R106

@Spxc
Copy link

Spxc commented Feb 2, 2024

Any status on release for this?

@siddarthkay
Copy link
Author

Tests are failing, I'll try to fix the tests this weekend

@Spxc
Copy link

Spxc commented Feb 3, 2024

Tests are failing, I'll try to fix the tests this weekend

Thanks, i did a PR as well (with test failing, what a surprise haha), with a bit more changes to the ButtonPresenter

#7842

Copy link

@ovidiubularda ovidiubularda left a comment

Choose a reason for hiding this comment

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

LGTM - 😃

@siddarthkay siddarthkay force-pushed the fix-kotlin-issues-with-react-native-73 branch from 10593c5 to 034f02e Compare March 16, 2024 15:10
@siddarthkay
Copy link
Author

Hi @asafkorem @d4vidi @yogevbd
How important is postCommandsOnMainThread_doesNotCrashIfActivityIsNull test? can this be skipped?
This is the only test that fails on this PR when i run npm run test-unit-android -- --release

If not could you please provide some assistance here so that we can make progress on this PR :)

Thank you

Otherwise we get errors like this :

```
e: file:///private/tmp/nix-build-status-mobile-build-nightly-android.drv-1/node_modules/react-native-navigation/lib/android/app/src/main/java/com/reactnativenavigation/viewcontrollers/stack/topbar/button/ButtonPresenter.kt:196:21 'onInitializeAccessibilityNodeInfo' overrides nothing
e: file:///private/tmp/nix-build-status-mobile-build-nightly-android.drv-1/node_modules/react-native-navigation/lib/android/app/src/main/java/com/reactnativenavigation/viewcontrollers/stack/topbar/button/ButtonPresenter.kt:200:65 Type mismatch: inferred type is View? but View was expected
e: file:///private/tmp/nix-build-status-mobile-build-nightly-android.drv-1/node_modules/react-native-navigation/lib/android/app/src/main/java/com/reactnativenavigation/viewcontrollers/stack/topbar/button/ButtonPresenter.kt:200:71 Type mismatch: inferred type is AccessibilityNodeInfoCompat? but AccessibilityNodeInfoCompat was expected
```
These upgrades are needed to deal get playground app to work with java 17
@siddarthkay siddarthkay force-pushed the fix-kotlin-issues-with-react-native-73 branch from 034f02e to b8e666a Compare March 21, 2024 05:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Execution failed for task ':react-native-navigation:compileReactNative71DebugKotlin'.
3 participants