opentok-react-native icon indicating copy to clipboard operation
opentok-react-native copied to clipboard

fix(android): Set minSdkVersion to 23

Open simonboisset opened this issue 2 years ago • 2 comments

Hi

I've submitted this Pull Request to update your library to be compatible with the latest Expo version. The change involves setting minSDKVersion to 23.

Updating to minSDKVersion 23 ensures compatibility with the latest Expo features, enhancing the user experience for Expo developers using your library.

simonboisset avatar Oct 25 '23 14:10 simonboisset

up .. we need this patch also

redfluz avatar Nov 06 '23 01:11 redfluz

If it can help

This fix with expo plugin is working for me:

const withOpentokPlugin: ConfigPlugin = (config) => {
  const manifestConfig = withAndroidManifest(config, (newConfig) => {
    newConfig.modResults.manifest['uses-sdk'] = [
      ...(newConfig.modResults.manifest['uses-sdk'] || []),
      { $: { 'tools:overrideLibrary': 'com.opentok.android, com.vonage.mltransformers' } },
    ];

    return newConfig;
  });

  return manifestConfig;
};

export default withOpentokPlugin(expoConfig)

simonboisset avatar Nov 07 '23 23:11 simonboisset