Skip to content

Commit 1ec2735

Browse files
authored
0.8.2 (#121)
* [Feature] v11 지원 및 다크모드 지원 (#115) * [Feature] v11 지원 및 다크모드 지원 * [Fix] 리뷰반영 * [Fix] isAppearance 삭제 후 toAppearance에 합침 * 0.8.1 (#118) * Android - 11.1.0 and ChannelButtonIcon * iOS - ChannelButtonIcon * 0.8.1 * [Fix] 리뷰반영 * 0.8.2 (#120)
1 parent 0b214e0 commit 1ec2735

File tree

7 files changed

+28
-4
lines changed

7 files changed

+28
-4
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# 0.8.2
2+
3+
## Update
4+
* support android channel-io 11.2.2
5+
* support openSupportBot
6+
17
# 0.8.1
28

39
## Update

RNChannelIO.podspec

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "RNChannelIO"
3-
s.version = "0.2.1"
3+
s.version = "0.2.2"
44
s.summary = "RNChannelIO"
55
s.description = "channel plugin for react native"
66
s.homepage = "https://channel.io"
@@ -15,5 +15,5 @@ Pod::Spec.new do |s|
1515
s.ios.deployment_target = '11.0'
1616

1717
s.dependency "React"
18-
s.dependency "ChannelIOSDK", '~> 11'
18+
s.dependency "ChannelIOSDK", '~> 11.2'
1919
end

android/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,5 +55,5 @@ repositories {
5555

5656
dependencies {
5757
implementation 'com.facebook.react:react-native'
58-
api 'io.channel:plugin-android:11.1.0'
58+
api 'io.channel:plugin-android:11.2.2'
5959
}

android/src/main/java/com/zoyi/channel/rn/RNChannelIO.java

+5
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,11 @@ public void openChat(String chatId, String message) {
107107
ChannelIO.openChat(getCurrentActivity(), chatId, message);
108108
}
109109

110+
@ReactMethod
111+
public void openSupportBot(String supportBotId, String message) {
112+
ChannelIO.openSupportBot(getCurrentActivity(), supportBotId, message);
113+
}
114+
110115
@ReactMethod
111116
public void track(String name, ReadableMap eventProperty) {
112117
ChannelIO.track(name, ParseUtils.toHashMap(eventProperty));

index.js

+9
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,15 @@ export const ChannelIO = {
134134
}
135135
},
136136

137+
/**
138+
* Opens User chat to run a specific Support bot.
139+
* @param {String} supportBotId This is the support bot's ID. If supportBotId is invalid or nil, the chat room is closed.
140+
* @param {String} message This message will be displayed in the input field after completing the support bot operation.
141+
*/
142+
openSupportBot: (supportBotId, message) => {
143+
ChannelModule.openSupportBot(supportBotId, message);
144+
},
145+
137146
/**
138147
* Send a event
139148
* @param {String} eventName event name

ios/RNChannelIO.m

+4
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,10 @@ - (NSDictionary *)constantsToExport {
209209
[ChannelIO openChatWith:chatId message:payload];
210210
}
211211

212+
RCT_EXPORT_METHOD(openSupportBot:(NSString *)supportBotId message:(NSString *)message) {
213+
[ChannelIO openSupportBotWith:supportBotId message:message];
214+
}
215+
212216
RCT_EXPORT_METHOD(track:(NSString *)name eventProperty:(NSDictionary *)properties) {
213217
[ChannelIO trackWithEventName:name eventProperty:properties];
214218
}

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-channel-plugin",
3-
"version": "0.8.1",
3+
"version": "0.8.2",
44
"description": "react native module for channel io",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)