Skip to content

feat(MM-65147): changes to allow upgrade to RN 0.77.3#151

Merged
rahimrahman merged 1 commit intomasterfrom
feat/MM-65147-upgarde-react-native-0773
Dec 2, 2025
Merged

feat(MM-65147): changes to allow upgrade to RN 0.77.3#151
rahimrahman merged 1 commit intomasterfrom
feat/MM-65147-upgarde-react-native-0773

Conversation

@rahimrahman
Copy link
Copy Markdown

@rahimrahman rahimrahman commented Dec 1, 2025

Summary

React-Native 0.77.3 is using Kotlin v2.0.21 (was v1.9.25). After upgrade to 0.77.3, building MM android app after upgrading to react-native@0.77.3, these errors occured:

e: file:///Users/rahimrahman/code/mattermost-mobile.2/node_modules/@mattermost/react-native-network-client/android/src/main/java/com/mattermost/networkclient/NetworkClient.kt:313:34 Assignment type mismatch: actual type is 'java.util.HashMap<kotlin.String, kotlin.Any?>?', but 'kotlin.collections.Map<kotlin.String, kotlin.Any>?' was expected.
e: file:///Users/rahimrahman/code/mattermost-mobile.2/node_modules/@mattermost/react-native-network-client/android/src/main/java/com/mattermost/networkclient/NetworkClient.kt:355:34 Assignment type mismatch: actual type is 'java.util.HashMap<kotlin.String, kotlin.Any?>?', but 'kotlin.collections.Map<kotlin.String, kotlin.Any>?' was expected.
e: file:///Users/rahimrahman/code/mattermost-mobile.2/node_modules/@mattermost/react-native-network-client/android/src/main/java/com/mattermost/networkclient/NetworkClient.kt:396:34 Assignment type mismatch: actual type is 'java.util.HashMap<kotlin.String, kotlin.Any?>?', but 'kotlin.collections.Map<kotlin.String, kotlin.Any>?' was expected.

Cursor with the help of claude-sonnet-4.5 suggested the changes.

Ticket Link

@rahimrahman rahimrahman requested review from enahum and larkox December 1, 2025 23:26
Copy link
Copy Markdown
Contributor

@enahum enahum left a comment

Choose a reason for hiding this comment

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

I'm guessing you had to bump the version of Kotlin

@rahimrahman
Copy link
Copy Markdown
Author

I'm guessing you had to bump the version of Kotlin

Yes, moved from 1.9.25 => 2.0.21

https://github.com/mattermost/mattermost-mobile/pull/9253/files#diff-197b190e4a3512994d2cebed8aff5479ff88e136b8cc7a4b148ec9c3945bd65aL8

@rahimrahman rahimrahman merged commit 232c3a8 into master Dec 2, 2025
@rahimrahman rahimrahman deleted the feat/MM-65147-upgarde-react-native-0773 branch December 2, 2025 15:16
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.

2 participants