Skip to content

Latest commit

 

History

History
108 lines (83 loc) · 1.83 KB

UPGRADING.md

File metadata and controls

108 lines (83 loc) · 1.83 KB

Upgrading guide

6.0.0 (JitPack)

  • You should remove a local repository from build.gradle:
flatDir {
    dirs "$rootDir/../node_modules/react-native-zoom-us/android/libs"
}
  • Set pickFirst rules

  • In your MainApplication.java inside of onCreate add SoLoader.loadLibrary("zoom");

  • ZoomSDk now uses exoplayer. So you can experience problems if it already exists in project. You can try to disable it:

implementation (project(':react-native-zoom-us')) {
    exclude group: 'com.google.android.exoplayer'
}

or check troubleshooting docs for extra options

5.0.0 (TypeScript)

You can check notes there: mieszko4#31

Methods requires objects now, so you have to update them. Check next methods:

ZoomUs.initialize

before:

await ZoomUs.initialize(
  config.zoom.appKey,
  config.zoom.appSecret,
  config.zoom.domain
);

after:

await ZoomUs.initialize({
  clientKey: '...',
  clientSecret: '...',
  domain: 'zoom.us',
})

ZoomUs.startMeeting

before:

await ZoomUs.startMeeting(
  displayName,
  meetingNo,
  userId,
  userType,
  zoomAccessToken, 
  zoomToken
);

after:

await ZoomUs.startMeeting({
  userName: displayName,
  meetingNumber: meetingNo,
  userId: userId,
  zoomAccessToken: zoomAccessToken,
  userType: userType,
})

ZoomUs.joinMeeting

before:

await ZoomUs.joinMeeting(
  displayName,
  meetingNo
);

after:

ZoomUs.joinMeeting({
  userName: displayName,
  meetingNumber: meetingNo,
})

4.0.0

All IOS native dependencies are linking automatically.

So you need to remove all old references:

  • MobileRTC.framework
  • MobileRTCResources.bundle
  • RNZoomUs.xcodeproj

Ideally your *.xcodeproj shouldn't match react-native-zoom-us now.