Skip to content
Merged

0.9.2 #134

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
# 0.9.2

## Update
* support android channel-io 12.3.0

## Bug Fixes
* Android - Fixed issue #133
* Android - Fixed issue #129

# 0.9.1

## Update
Expand Down
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,5 @@ repositories {

dependencies {
implementation 'com.facebook.react:react-native'
api 'io.channel:plugin-android:12.2.0'
api 'io.channel:plugin-android:12.3.0'
}
5 changes: 5 additions & 0 deletions android/src/main/java/com/zoyi/channel/rn/ParseUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,11 @@ public static UserData toUserData(ReadableMap userDataMap) {

public static Map<String, String> toPushNotification(ReadableMap pushNotificationMap) {
HashMap<String, String> pushNotification = new HashMap<>();

if(pushNotificationMap == null) {
return pushNotification;
}

ReadableMapKeySetIterator iterator = pushNotificationMap.keySetIterator();

while (iterator.hasNextKey()) {
Expand Down
8 changes: 8 additions & 0 deletions android/src/main/java/com/zoyi/channel/rn/RNChannelIO.java
Original file line number Diff line number Diff line change
Expand Up @@ -348,4 +348,12 @@ public void setAppearance(@Nullable String appearance) {
public void hidePopup() {
ChannelIO.hidePopup();
}

@ReactMethod
public void addListener(String eventName) {
}

@ReactMethod
public void removeListeners(Integer count) {
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-channel-plugin",
"version": "0.9.1",
"version": "0.9.2",
"description": "react native module for channel io",
"main": "index.js",
"scripts": {
Expand Down