Fix android build errors with RN 0.74
After updating to React Native 0.71, we are getting build failures on Android (including #646).
This PR makes the following changes to resolve these:
-
Add redundant handling for missing permission exceptions. Existing checks work but do not satisfy lint, so this is the only way to resolve https://github.com/react-native-webrtc/react-native-callkeep/issues/646
-
Upgrade gradle to maximum compatible version (3.6.4) to satisfy new minimum (3.2.0)
-
Use AudioManager.MODE_NORMAL constant explicitly (instead of the equivalent value of "0" currently being used) to satisfy lint
-
Replace deprecated WindowManager.LayoutParams constants with Activity API methods when using Android SDK v27+
@saghul please review this
Sorry I'm not familiar enough with this project to give a proper review.
Personally, bumping the minimum SDK to 27 sounds like it would leave too many users out.
@manuquentin I've updated the PR to maintain compatibility with older platform versions.
@manuquentin Can you please advise if there any further changes you would like to get this merged? Thanks!