Skip to content

Commit 8c222e4

Browse files
committed
chore: update stream_core dependency and fix comment request
- Updated stream_core dependency to use a git reference. - Added activityId to ActivityAddCommentRequest in sample_app.
1 parent 1a15dfc commit 8c222e4

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

melos.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,10 @@ command:
4242

4343
# TODO Replace with hosted version when published
4444
stream_core:
45-
path: /Users/xsahil03x/StudioProjects/stream-core-flutter/packages/stream_core
45+
git:
46+
url: https://github.com/GetStream/stream-core-flutter.git
47+
ref: 944f677e72e30f148f5f7c251419f3ad1dac2ffa
48+
path: packages/stream_core
4649

4750
# List of all the dev_dependencies used in the project.
4851
dev_dependencies:

packages/stream_feeds/pubspec.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,10 @@ dependencies:
3434
rxdart: ^0.28.0
3535
state_notifier: ^1.0.0
3636
stream_core:
37-
path: /Users/xsahil03x/StudioProjects/stream-core-flutter/packages/stream_core
37+
git:
38+
url: https://github.com/GetStream/stream-core-flutter.git
39+
ref: 944f677e72e30f148f5f7c251419f3ad1dac2ffa
40+
path: packages/stream_core
3841
uuid: ^4.5.1
3942

4043
dev_dependencies:

sample_app/lib/screens/home/widgets/activity_comments_view.dart

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,11 @@ class _ActivityCommentsViewState extends State<ActivityCommentsView> {
122122
if (text == null) return;
123123

124124
await activity.addComment(
125-
ActivityAddCommentRequest(comment: text, parentId: parentComment?.id),
125+
ActivityAddCommentRequest(
126+
comment: text,
127+
parentId: parentComment?.id,
128+
activityId: activity.activityId,
129+
),
126130
);
127131
}
128132

0 commit comments

Comments
 (0)