opentok-react-native
Advanced tools
Comparing version 0.6.5 to 0.7.0
{ | ||
"name": "opentok-react-native", | ||
"version": "0.6.5", | ||
"version": "0.7.0", | ||
"description": "React Native components for OpenTok iOS and Android SDKs", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -37,3 +37,4 @@ # opentok-react-native | ||
**Note** Please make sure to have [CocoaPods](https://cocoapods.org/) on your computer. | ||
**Note:** Please make sure to have [CocoaPods](https://cocoapods.org/) on your computer. | ||
If you've installed this package before, you may need to edit your `Podfile` and project structure because the installation process has changed. | ||
1. In you terminal, change into your `ios` directory. | ||
@@ -49,3 +50,2 @@ | ||
target '<YourProjectName>' do | ||
use_frameworks! | ||
@@ -60,28 +60,17 @@ # Pods for <YourProject> | ||
5. Open XCode | ||
5. After installing the iOS SDK, change into your root directory of your project. | ||
6. Open `<YourProjectName>.xcworkspace` file in XCode. This file can be found in the `ios` folder of your React Native project. | ||
6. Now run, `react-native link opentok-react-native`. | ||
7. Click `File` and `Add Files to` | ||
7. Open `<YourProjectName>.xcworkspace` file in XCode. This file can be found in the `ios` folder of your React Native project. | ||
8. Add the following files from `../node_modules/opentok-react-native/ios` to the project: | ||
* `OTPublisher.h` | ||
* `OTPublisher.m` | ||
* `OTPublisherManager.swift` | ||
* `OTPublisherView.swift` | ||
* `OTRN.swift` | ||
* `OTScreenCapturer.swift` | ||
* `OTSessionManager.m` | ||
* `OTSessionManager.swift` | ||
* `OTSubscriber.h` | ||
* `OTSubscriber.m` | ||
* `OTSubscriberManager.swift` | ||
* `OTSubscriberView.swift` | ||
7. Click `File` and `New File` | ||
8. Add an empty swift file to your project: | ||
* You can name this file anything i.e: `OTInstall.swift`. This is done to set some flags in XCode so the Swift code can be used. | ||
9. Click `Create Bridging Header` when you're prompted with the following modal: `Would you like to configure an Objective-C bridging header?` | ||
10. Add the contents from the `Bridging-Header.h` file in `../node_modules/opentok-react-native/ios` to `<YourProjectName>-Bridging-Header.h` | ||
10. Ensure you have enabled both camera and microphone usage by adding the following entries to your `Info.plist` file: | ||
11. Ensure you have enabled both camera and microphone usage by adding the following entries to your `Info.plist` file: | ||
``` | ||
@@ -98,3 +87,4 @@ <key>NSCameraUsageDescription</key> | ||
2. Run `react-native link opentok-react-native` | ||
2. If you have already run `react-native link opentok-react-native` for the iOS installation, please skip this step. | ||
* Run `react-native link opentok-react-native | ||
@@ -101,0 +91,0 @@ 3. Open your Android project in Android Studio. |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
438555
47
123
88
1
1
0
14