fixed react native 81 sdk compatibility issues
This pull request updates the React Native HMS Android module to improve compatibility with React Native 0.81 by ensuring that event and command maps are returned as MutableMap instances. It also refactors the usage of the current activity throughout HMSManager to consistently use reactApplicationContext.currentActivity, which is a more reliable way to access the current activity in React Native modules.
React Native 0.81 compatibility improvements
- Updated
getExportedCustomDirectEventTypeConstants,getExportedCustomBubblingEventTypeConstants, andgetCommandsMapinHMSHLSPlayerManagerandHMSSDKViewManagerto wrap maps withHashMap, ensuring the returned type matches the expectedMutableMapsignature for React Native 0.81. [1] [2] [3] [4] [5]
Activity access refactoring
- Replaced all instances of
currentActivitywithreactApplicationContext.currentActivityinHMSManager, making activity access more robust and preventing potential null pointer issues. This change affects PIP registration, screenshare, audioshare, and lifecycle callback registration/unregistration. [1] [2] [3] [4] [5] [6] [7] [8] [9]
Merging to main in this repository is managed by Trunk.
- [ ] To merge this pull request, check the box to the left or comment
/trunk mergebelow.
An error occurred while submitting your PR to the queue: Only users that are a part of this repo's Trunk organization or have write permissions to the repo can submit a PR to the queue
@gzerad @s-dvd This is costing our Business Money!!
@ygit , please look into this and approve so we can have access to the FIX!
We're a paying customer FGS and you're all acting non-challant while we have to scramble for solutions.
This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days.