Skip to content

Commit 2df8c20

Browse files
committed
feat: add MarkAsUnread feature to GroupChannel
1 parent a99ff44 commit 2df8c20

File tree

27 files changed

+579
-51
lines changed

27 files changed

+579
-51
lines changed

.circleci/config.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ jobs:
8989

9090
deploy-android:
9191
docker:
92-
- image: cimg/android:2023.10-node
92+
- image: cimg/android:2025.04.1-node
9393
resource_class: xlarge
9494
environment:
9595
APP_VERSION: << pipeline.parameters.version >>
@@ -109,6 +109,12 @@ jobs:
109109
- save_cache: *save_node_modules_base
110110
- save_cache: *save_node_modules_packages
111111
- run: *create_app_env
112+
- run:
113+
name: Set up trusted certificates
114+
command: |
115+
sudo apt-get update
116+
sudo apt-get install -y ca-certificates
117+
echo 'export SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt' >> $BASH_ENV
112118
- run:
113119
name: Create service-account.json
114120
environment:

.github/workflows/publish-sample.yml

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,27 @@ jobs:
2121
execute:
2222
runs-on: ubuntu-latest
2323
steps:
24-
- run: echo "BRANCH_NAME=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV
25-
- name: '[${{ github.event.inputs.platform }}] Deploy trigger'
26-
if: ${{github.event.inputs.platform}}
27-
uses: promiseofcake/circleci-trigger-action@v1
28-
with:
29-
user-token: ${{ secrets.CIRCLECI_PERSONAL_API_TOKEN }}
30-
project-slug: sendbird/sendbird-uikit-react-native
31-
branch: ${{ env.BRANCH_NAME }}
32-
payload: '{"platform": "${{ github.event.inputs.platform }}", "version": "${{ github.event.inputs.version }}" }'
24+
- name: Set BRANCH_NAME env
25+
run: echo "BRANCH_NAME=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV
26+
27+
- name: '[${{ github.event.inputs.platform }}] Deploy trigger (CircleCI REST API)'
28+
if: ${{ github.event.inputs.platform }}
29+
env:
30+
CIRCLECI_PERSONAL_API_TOKEN: ${{ secrets.CIRCLECI_PERSONAL_API_TOKEN }}
31+
BRANCH_NAME: ${{ env.BRANCH_NAME }}
32+
PLATFORM: ${{ github.event.inputs.platform }}
33+
VERSION: ${{ github.event.inputs.version }}
34+
run: |
35+
curl -u ${CIRCLECI_PERSONAL_API_TOKEN}: \
36+
-X POST "https://circleci.com/api/v2/project/gh/sendbird/sendbird-uikit-react-native/pipeline" \
37+
-H "Content-Type: application/json" \
38+
-d '{
39+
"branch": "'"${BRANCH_NAME}"'",
40+
"parameters": {
41+
"platform": "'"${PLATFORM}"'",
42+
"version": "'"${VERSION}"'"
43+
}
44+
}'
3345
3446
#env:
3547
# CACHE_NODE_MODULES_PATH: |
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
import type { StringSet } from '@sendbird/uikit-react-native';
2+
3+
/**
4+
* String resource
5+
* {@link https://sendbird.com/docs/chat/uikit/v3/react-native/features/reactions}
6+
* */
7+
function _stringResource(str: StringSet) {
8+
str.GROUP_CHANNEL.LIST_NEW_LINE;
9+
str.GROUP_CHANNEL.LIST_FLOATING_UNREAD_MSG;
10+
str.LABELS.CHANNEL_MESSAGE_MARK_AS_UNREAD;
11+
}
12+
/** ------------------ **/
13+
// interface StringSet {
14+
// GROUP_CHANNEL: {
15+
// LIST_NEW_LINE: string;
16+
// LIST_FLOATING_UNREAD_MSG: (unreadMessageCount: number) => string;
17+
// };
18+
// }
19+
20+
// interface StringSet {
21+
// LABELS: {
22+
// CHANNEL_MESSAGE_MARK_AS_UNREAD: string;
23+
// };
24+
// }
25+
26+
/** ------------------ **/
27+
28+
/**
29+
* Icon resource
30+
* {@link https://sendbird.com/docs/chat/uikit/v3/react-native/features/reactions#mark-as-unread-icon-resource}
31+
* */
32+
import { Icon } from '@sendbird/uikit-react-native-foundation';
33+
34+
Icon.Assets['mark-as-unread'] = require('your_icons/icon-mark-as-unread.png');
35+
/** ------------------ **/

docs-validation/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"@react-native-firebase/messaging": "^14.7.0",
1616
"@react-navigation/native": "^6.1.17",
1717
"@react-navigation/native-stack": "^6.10.0",
18-
"@sendbird/chat": "^4.16.0",
18+
"@sendbird/chat": "^4.19.2",
1919
"date-fns": "^4.1.0",
2020
"react": "18.2.0",
2121
"react-native": "0.74.3",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898
]
9999
},
100100
"resolutions": {
101-
"@sendbird/chat": "4.16.5",
101+
"@sendbird/chat": "4.19.2",
102102
"@types/react": "^18"
103103
}
104104
}

packages/uikit-chat-hooks/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
"typescript": "5.2.2"
5656
},
5757
"peerDependencies": {
58-
"@sendbird/chat": "^4.16.0",
58+
"@sendbird/chat": "^4.19.2",
5959
"react": ">=16.13.1"
6060
},
6161
"react-native-builder-bob": {
Loading
Loading
Loading

packages/uikit-react-native-foundation/src/assets/icon/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ const IconAssets = {
3535
'gif': require('./icon-gif.png'),
3636
'info': require('./icon-info.png'),
3737
'leave': require('./icon-leave.png'),
38+
'mark-as-unread': require('./icon-mark-as-unread.png'),
3839
'members': require('./icon-members.png'),
3940
'message': require('./icon-message.png'),
4041
'moderation': require('./icon-moderation.png'),

0 commit comments

Comments
 (0)