fix(rnsdk) update README

pull/13576/head jitsi-meet_8819
Saúl Ibarra Corretgé 1 year ago committed by Saúl Ibarra Corretgé
parent 555be6c229
commit 36a5282823
  1. 11
      react-native-sdk/README.md

@ -6,7 +6,7 @@ Inside your project, run `npm i @jitsi/react-native-sdk`.<br/><br/>Additionally,
This can be done by running the following script: This can be done by running the following script:
``` ```
"update-deps": "node node_modules/@jitsi/react-native-sdk/update_dependencies.js" node node_modules/@jitsi/react-native-sdk/update_dependencies.js
``` ```
This will check and update all your dependencies.<br/><br/> This will check and update all your dependencies.<br/><br/>
@ -63,24 +63,15 @@ module.exports = (async () => {
SOUNDS_DIR="${PROJECT_DIR}/../node_modules/@jitsi/react-native-sdk/sounds" SOUNDS_DIR="${PROJECT_DIR}/../node_modules/@jitsi/react-native-sdk/sounds"
cp $SOUNDS_DIR/* ${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/ cp $SOUNDS_DIR/* ${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/
``` ```
#### Podfile
- At the beginning of your target step add `pod 'ObjectiveDropboxOfficial', :modular_headers => true`
Run `cd ios && pod install && cd ..` Run `cd ios && pod install && cd ..`
### Android ### Android
- In your build.gradle have at least `minSdkVersion = 24` - In your build.gradle have at least `minSdkVersion = 24`
- TODO: HOW TO ADD COPY SOUNDS STEP
- In `android/app/src/debug/AndroidManifest.xml` and `android/app/src/main/AndroidManifest.xml`, under the `</application>` tag, include - In `android/app/src/debug/AndroidManifest.xml` and `android/app/src/main/AndroidManifest.xml`, under the `</application>` tag, include
``` ```
<uses-permission android:name="android.permission.RECORD_AUDIO" /> <uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.CAMERA" /> <uses-permission android:name="android.permission.CAMERA" />
``` ```
### TODOS
- Ref ConnectionService to not rely on ReactInstanceHolder anymore
- Add Copy Sounds step to build.gradle
- Include copy sounds step in podspec (if possible)
- Add ranges for dependencies
- Add Build_Config for react native to AppInfoModule

Loading…
Cancel
Save