Skip to content
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

fix: use stable compose bom version to fix video calls [WPB-4992] #2326

Merged
merged 12 commits into from
Oct 16, 2023

Conversation

Garzas
Copy link
Contributor

@Garzas Garzas commented Oct 13, 2023

BugWPB-4992 [Android]- Crash while trying to enable camera during a call


PR Submission Checklist for internal contributors

  • The PR Title

    • conforms to the style of semantic commits messages¹ supported in Wire's Github Workflow²
    • contains a reference JIRA issue number like SQPIT-764
    • answers the question: If merged, this PR will: ... ³
  • The PR Description

    • is free of optional paragraphs and you have filled the relevant parts to the best of your ability

What's new in this PR?

Issues

  • camera preview and videos in ongoing call screen was not working

Solutions

  • downgrade compose libs to latest stable version
  • comment code for making snackbar swipeable because anchoredDraggable is not available on stable version yet
  • use the Bill of Materials to have better control of compose libraries

Dependencies (Optional)

If there are some other pull requests related to this one (e.g. new releases of frameworks), specify them here.

Needs releases with:

  • GitHub link to other pull request

Testing

Test Coverage (Optional)

  • I have added automated test to this contribution

How to Test

Briefly describe how this change was tested and if applicable the exact steps taken to verify that it works as expected.

Notes (Optional)

Specify here any other facts that you think are important for this issue.

Attachments (Optional)

Attachments like images, videos, etc. (drag and drop in the text box)


PR Post Submission Checklist for internal contributors (Optional)

  • Wire's Github Workflow has automatically linked the PR to a JIRA issue

PR Post Merge Checklist for internal contributors

  • If any soft of configuration variable was introduced by this PR, it has been added to the relevant documents and the CI jobs have been updated.

References
  1. https://sparkbox.com/foundry/semantic_commit_messages
  2. https://github.com/wireapp/.github#usage
  3. E.g. feat(conversation-list): Sort conversations by most emojis in the title #SQPIT-764.

@github-actions
Copy link
Contributor

github-actions bot commented Oct 13, 2023

Test Results

647 tests  ±0   647 ✔️ ±0   10m 23s ⏱️ +56s
  94 suites ±0       0 💤 ±0 
  94 files   ±0       0 ±0 

Results for commit 729b8cf. ± Comparison against base commit 05fe218.

♻️ This comment has been updated with latest results.

@AndroidBob
Copy link
Collaborator

Build 1297 failed.

@AndroidBob
Copy link
Collaborator

Build 1302 failed.

Copy link
Contributor

@alexandreferris alexandreferris left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is really weird keeping commented code 😅 But the explanation is fine and looking forward for when it is uncommented 💪🏻

@github-actions
Copy link
Contributor

APKs built during tests are available here. Scroll down to Artifacts!

compose-compiler = "1.5.2"
compose-constraint = "1.0.1"
compose-material3 = "1.2.0-alpha09"
compose-navigation = "2.6.0"
compose-navigation = "2.7.4"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

question: is it necessary? have you checked if it works well with "compose destinations" and we don't need to update it as well? 😄

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

revered

@@ -51,7 +43,8 @@ import kotlin.math.roundToInt
* @see SnackbarData
* @see SnackbarHostState
*/
@OptIn(ExperimentalFoundationApi::class)

// TODO uncomment all lines when anchoredDraggable will be available on new compose version
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion: add the info about which particular version we would need to have to make it work again, maybe also mark that in the comment in libs.versions.toml next to the current version number, so that if someone updates it, will see that it can be now uncommented

I would also mark each one of the comments that are related to this, because with time we can have more things commented, or remove commented code completely and just add reference to this PR in comment so that it would be still easy to put back 😄

@AndroidBob
Copy link
Collaborator

Build 1320 succeeded.

The build produced the following APK's:

@Garzas Garzas enabled auto-merge October 16, 2023 13:36
@AndroidBob
Copy link
Collaborator

Build 1334 failed.

@AndroidBob
Copy link
Collaborator

Build 1335 failed.

@Garzas Garzas added this pull request to the merge queue Oct 16, 2023
@github-actions
Copy link
Contributor

APKs built during tests are available here. Scroll down to Artifacts!

@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Oct 16, 2023
@Garzas Garzas added this pull request to the merge queue Oct 16, 2023
@AndroidBob
Copy link
Collaborator

Build 1336 succeeded.

The build produced the following APK's:

Merged via the queue into develop with commit e066cb0 Oct 16, 2023
11 of 12 checks passed
@Garzas Garzas deleted the fix/compose-bom branch October 16, 2023 14:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
5 participants