Skip to content

Commit

Permalink
0.21.1 (#619)
Browse files Browse the repository at this point in the history
* - add flow support
- add OTSession deprecated-react-native-prop-types package

* - fix double import

* - remove eventEmitter warnings

* - update ios dependency with XCFramework

* - update minimum target

* 0.21.1

* - update changelog
  • Loading branch information
Enrico Portolan authored Oct 14, 2022
1 parent 6acac7d commit 28ff333
Show file tree
Hide file tree
Showing 8 changed files with 81 additions and 13 deletions.
11 changes: 11 additions & 0 deletions .flowconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[ignore]

[include]

[libs]

[lints]

[options]

[strict]
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# 0.21.1 (Oct 14, 2022)

- [Update]: iOS SDK to 2.23.1 and Android to 2.23.1
- [Update]: min target for iOS is now 12.0


# 0.21.0 (June 14, 2022)

- [Update]: Add DTX Option for Publisher
Expand Down
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ android {
dependencies {
implementation fileTree(dir: "libs", include: ["*.jar"])
implementation "com.facebook.react:react-native:${_reactNativeVersion}" // From node_modules
implementation 'com.opentok.android:opentok-android-sdk:2.22.3'
implementation 'com.opentok.android:opentok-android-sdk:2.23.1'
}
12 changes: 12 additions & 0 deletions android/src/main/java/com/opentokreactnative/OTSessionManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,18 @@ public void removeJSComponentEvents(ReadableArray events) {
}
}

// Required for rn built in EventEmitter Calls.
@ReactMethod
public void addListener(String eventName) {

}

@ReactMethod
public void removeListeners(Integer count) {

}


@ReactMethod
public void sendSignal(String sessionId, ReadableMap signal, Callback callback) {
ConcurrentHashMap<String, Session> mSessions = sharedState.getSessions();
Expand Down
4 changes: 2 additions & 2 deletions opentok-react-native.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ Pod::Spec.new do |s|

s.authors = package['author']
s.homepage = package['homepage']
s.platform = :ios, "9.0"
s.platform = :ios, "12.0"
s.swift_version = "4.2"

s.source = { :git => "https://github.com/opentok/opentok-react-native.git", :tag => "v#{s.version}" }
s.source_files = "ios/**/*.{h,m,swift}"

s.dependency 'React'
s.dependency 'OpenTok','~> 2.22.3'
s.dependency 'OTXCFramework','2.23.1'
end
51 changes: 43 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
{
"name": "opentok-react-native",
"version": "0.21.0",
"version": "0.21.1",
"description": "React Native components for OpenTok iOS and Android SDKs",
"main": "src/index.js",
"homepage": "https://www.tokbox.com",
"scripts": {
"flow": "flow",
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [
Expand All @@ -26,6 +27,8 @@
},
"dependencies": {
"axios": "^0.21.1",
"deprecated-react-native-prop-types": "^2.3.0",
"flow-bin": "^0.180.0",
"prop-types": "^15.7.2",
"underscore": "^1.13.0",
"uuid": "^3.4.0"
Expand Down
3 changes: 2 additions & 1 deletion src/OTSession.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React, { Component, Children, cloneElement } from 'react';
import { View, ViewPropTypes } from 'react-native';
import { View } from 'react-native';
import { ViewPropTypes } from 'deprecated-react-native-prop-types';
import PropTypes from 'prop-types';
import { pick, isNull } from 'underscore';
import { setNativeEvents, removeNativeEvents, OT } from './OT';
Expand Down

0 comments on commit 28ff333

Please sign in to comment.