-
Notifications
You must be signed in to change notification settings - Fork 58
Improve pinned participant state on rejoin with new session #1644
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
rahul-lohra
wants to merge
13
commits into
develop
Choose a base branch
from
feature/rahullohra/pinned_users
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 7 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
97f19f4
update sfu models
rahul-lohra 8c09bdf
feat: add pins param in ParticipantJoinedEvent
rahul-lohra 56a0249
Merge branch 'develop' into feature/rahullohra/pinned_users
rahul-lohra a8921c7
feat: add logic with logs
rahul-lohra 70bfcc8
feat: remove logs
rahul-lohra 1c763bf
fix: correct the jetpack compose logic to render pinned icon
rahul-lohra dada793
Merge branch 'develop' into feature/rahullohra/pinned_users
rahul-lohra 24ad3a4
fix: remove logs
rahul-lohra bd10d0e
chore: revert changes
rahul-lohra 350a430
chore: revert changes
rahul-lohra 4056ffd
chore: remove finally
rahul-lohra c72056d
fix: fix unit tests
rahul-lohra 6530dcf
Merge branch 'develop' into feature/rahullohra/pinned_users
rahul-lohra File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,61 @@ | ||
| #!/usr/bin/env bash | ||
|
|
||
| set -e | ||
|
|
||
| REPO_URL="git@github.com:GetStream/protocol.git" | ||
| REFERENCE_TYPE="branch" | ||
| REFERENCE_VALUE="main" | ||
|
|
||
| PROJECT_ROOT="$(dirname "$(realpath "$0")")/" | ||
| BUILD_DIR="$PROJECT_ROOT/build" | ||
| CLONE_DIR="$BUILD_DIR/protocol-repo" | ||
| OUTPUT_CLIENT_PATH="$PROJECT_ROOT/stream-video-android-core/src/main/proto/video/sfu/" | ||
|
|
||
| # Step 1: Delete OUTPUT_CLIENT_PATH if exists else create an empty directory | ||
| echo "🧹 Preparing output directory: $OUTPUT_CLIENT_PATH" | ||
| rm -rf "$OUTPUT_CLIENT_PATH" | ||
| mkdir -p "$OUTPUT_CLIENT_PATH" | ||
|
|
||
| # Step 2: Clone the repository with shallow depth | ||
| echo "🚀 Cloning repository: $REPO_URL (Type: $REFERENCE_TYPE, Value: $REFERENCE_VALUE)..." | ||
| rm -rf "$CLONE_DIR" | ||
| mkdir -p "$BUILD_DIR" | ||
| git clone --depth=1 --branch "$REFERENCE_VALUE" "$REPO_URL" "$CLONE_DIR" | ||
|
|
||
| cd "$CLONE_DIR" | ||
|
|
||
| # Step 3: Checkout to the correct branch, tag, or commit | ||
| if [ "$REFERENCE_TYPE" == "branch" ]; then | ||
| git checkout "$REFERENCE_VALUE" | ||
| elif [ "$REFERENCE_TYPE" == "tag" ]; then | ||
| git fetch --tags | ||
| git checkout "tags/$REFERENCE_VALUE" | ||
| elif [ "$REFERENCE_TYPE" == "commit" ]; then | ||
| git fetch --depth=1 origin "$REFERENCE_VALUE" | ||
| git checkout "$REFERENCE_VALUE" | ||
| else | ||
| echo "❌ ERROR: Invalid reference type '$REFERENCE_TYPE'. Use 'branch', 'tag', or 'commit'." | ||
| exit 1 | ||
| fi | ||
|
|
||
| # Step 4: Copy content from CLONE_DIR/protobuf/video/sfu to OUTPUT_CLIENT_PATH | ||
| echo "📦 Copying proto files..." | ||
| SOURCE_PROTO_PATH="$CLONE_DIR/protobuf/video/sfu" | ||
|
|
||
| if [ ! -d "$SOURCE_PROTO_PATH" ]; then | ||
| echo "❌ ERROR: Source proto directory does not exist: $SOURCE_PROTO_PATH" | ||
| exit 1 | ||
| fi | ||
|
|
||
| cp -R "$SOURCE_PROTO_PATH/"* "$OUTPUT_CLIENT_PATH" | ||
|
|
||
| # Step 5: Run Spotless (from project root, not inside cloned repo) | ||
| echo "✨ Running Spotless..." | ||
| cd "$PROJECT_ROOT" | ||
| ./gradlew spotlessApply | ||
|
|
||
| # Step 6: Delete CLONE_DIR | ||
| echo "🗑 Cleaning up cloned repo..." | ||
| rm -rf "$CLONE_DIR" | ||
|
|
||
| echo "✅ Done." | ||
205 changes: 186 additions & 19 deletions
205
stream-video-android-core/api/stream-video-android-core.api
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.