Commit graph

6064 commits

Author SHA1 Message Date
Daniel Calviño Sánchez
175944e932 Move handling of call participants to its own class
CallParticipant provides a read-only CallParticipantModel and internally
handles the data channel and peer connection events that modify the
model. Nevertheless, the CallParticipant requires certain properties to
be externally set, like the userId or the peer connections.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2023-01-16 09:05:50 +00:00
Daniel Calviño Sánchez
4aef76e347 Keep track of the stream in the peer connection
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2023-01-16 09:05:50 +00:00
Daniel Calviño Sánchez
18f21c4f48 Update ParticipantDisplayItem from CallParticipantModel
Instead of explicitly setting the values on the ParticipantDisplayItems
now the values are set on the CallParticipantModels, and the items are
automatically updated from their model when they change.

Different items are still used for the audio/video and screen shares of
the same participant, so the type is used to select from which
properties of the model is the item updated.

As the model may be updated from background threads it is explicitly
observed by the items from the main thread using a Handler shared by all
the items.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2023-01-16 09:05:50 +00:00
Daniel Calviño Sánchez
d72648379e Add model for (remote) call participants
Clients that modify the model would define the variables using the
mutable subclass, while clients that only need to access the model are
expected to use the read-only base class.

The read-only class provides an observer; as it is expected that the
model will be modified from background threads but observed from the
main thread the observer can be registered along a handler to be
notified on its thread, independently of on which thread the values were
set.

Currently there does not seem to be a need to observe each value on its
own, so the observer is notified in a coarse way when any value changes.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2023-01-16 09:05:50 +00:00
Daniel Calviño Sánchez
8a316d94f5 Notify that data set changed automatically when display item changes
Instead of explicitly calling "notifyDataSetChanged" after setting
values on a ParticipantDisplayItem now the adapter observes all its
items and calls "notifyDataSetChanged" automatically when any of them
changes.

Although this adds some boilerplate code it will make possible to update
the ParticipantDisplayItems and automatically propagate the changes to
the adapter when a model changes, rather than having to explicitly do it
from the CallActivity.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2023-01-16 09:05:50 +00:00
Daniel Calviño Sánchez
d67b04dff8 Reorder attributes
Generic final attributes first, followed by object specific final
attributes and then other object attributes.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2023-01-16 09:05:50 +00:00
Daniel Calviño Sánchez
5fe9154c9a Declare attributes set just once in constructor as "final"
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2023-01-16 09:05:50 +00:00
Daniel Calviño Sánchez
e887fde2a3 Remove unused getters and setters
Note that the session ID, user ID and the stream type attributes are
still kept, as they can be useful to identify the instance when
debugging.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2023-01-16 09:05:50 +00:00
Daniel Calviño Sánchez
339d65dff8 Handle the raw ICE connection state in the views
Rather than just providing a coarse "connected" or "not connected" value
now the views receive the raw ICE connection state. Combined with other
properties this will make possible to show a finer grained status (like
done in the WebUI), although for now just "connected" or "not connected"
is still shown as before.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2023-01-16 09:05:50 +00:00
Andy Scherzinger
2e2e96c91f
Merge pull request #2692 from nextcloud/dependabot/gradle/org.mockito-mockito-core-5.0.0
Build(deps): Bump mockito-core from 4.11.0 to 5.0.0
2023-01-16 09:21:48 +01:00
Nextcloud bot
ee0dadaf02
Fix(l10n): 🔠 Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2023-01-16 03:39:10 +00:00
Nextcloud bot
2efa5bb72e
Fix(l10n): 🛠️ Update Transifex configuration
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2023-01-16 03:38:52 +00:00
Nextcloud Android Bot
b2a23c3ccb Weekly 16.0.0 Alpha 02 2023-01-16 03:10:38 +00:00
dependabot[bot]
69bf849418
Build(deps): Bump mockito-core from 4.11.0 to 5.0.0
Bumps [mockito-core](https://github.com/mockito/mockito) from 4.11.0 to 5.0.0.
- [Release notes](https://github.com/mockito/mockito/releases)
- [Commits](https://github.com/mockito/mockito/compare/v4.11.0...v5.0.0)

---
updated-dependencies:
- dependency-name: org.mockito:mockito-core
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-16 02:26:48 +00:00
Nextcloud bot
a635078adb
Fix(l10n): 🔠 Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2023-01-15 03:35:52 +00:00
Nextcloud bot
4fb163aea0
Fix(l10n): 🛠️ Update Transifex configuration
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2023-01-15 03:35:33 +00:00
Andy Scherzinger
635c05dc2a
Merge pull request #2690 from nextcloud/repo-sync/android-config/master
🔄 synced file(s) with nextcloud/android-config
2023-01-14 08:34:07 +01:00
Nextcloud bot
bd3784c03c
Fix(l10n): 🔠 Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2023-01-14 03:37:48 +00:00
Nextcloud bot
95f6be8b6c
Fix(l10n): 🛠️ Update Transifex configuration
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2023-01-14 03:37:29 +00:00
nextcloud-android-bot
1ad6534a9f 🔄 synced local '.github/workflows/' with remote 'config/workflows/'
Signed-off-by: nextcloud-android-bot <android@nextcloud.com>
2023-01-14 02:32:00 +00:00
Andy Scherzinger
6c6207beeb
Merge pull request #2687 from nextcloud/chore/noid/1600
Bump version to 16.0.0
2023-01-13 12:11:37 +01:00
Andy Scherzinger
2174dfc38d
Bump version to 16.0.0
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2023-01-13 12:10:11 +01:00
Andy Scherzinger
b316adfb56
Merge pull request #2685 from nextcloud/dependabot/gradle/com.android.tools.build-gradle-7.4.0
Build(deps): Bump gradle from 7.3.1 to 7.4.0
2023-01-13 11:26:16 +01:00
Andy Scherzinger
f75e754957
Build(deps): Bump gradle from 7.3.1 to 7.4.0
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2023-01-13 11:05:22 +01:00
Nextcloud bot
94628b700e
Fix(l10n): 🔠 Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2023-01-13 03:52:28 +00:00
Nextcloud bot
66033adfa0
Fix(l10n): 🛠️ Update Transifex configuration
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2023-01-13 03:52:07 +00:00
Marcel Hibbe
7c0419a7c8
Merge pull request #2683 from nextcloud/updateChangelogFor15.1.0
update changelog for 15.1.0
2023-01-12 14:00:42 +01:00
Marcel Hibbe
22df632148
update changelog for 15.1.0
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2023-01-12 11:34:28 +01:00
Nextcloud bot
e81461ba80
Fix(l10n): 🔠 Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2023-01-12 03:38:17 +00:00
Nextcloud bot
2a247e50ea
Fix(l10n): 🛠️ Update Transifex configuration
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2023-01-12 03:37:57 +00:00
Andy Scherzinger
906626e555
Merge pull request #2677 from nextcloud/repo-sync/android-config/master
🔄 synced file(s) with nextcloud/android-config
2023-01-11 15:37:19 +01:00
nextcloud-android-bot
ddf7004137 🔄 synced local '.github/workflows/' with remote 'config/workflows/'
Signed-off-by: nextcloud-android-bot <android@nextcloud.com>
2023-01-11 14:32:52 +00:00
Andy Scherzinger
7d9996e6c1
Merge pull request #2676 from nextcloud/dependabot/gradle/com.github.nextcloud.android-common-ui-0.4.0
Build(deps): Bump ui from 0.3.0 to 0.4.0
2023-01-11 09:27:18 +01:00
Nextcloud bot
f0070f09e6
Fix(l10n): 🔠 Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2023-01-11 03:39:46 +00:00
Nextcloud bot
2317df8625
Fix(l10n): 🛠️ Update Transifex configuration
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2023-01-11 03:39:27 +00:00
dependabot[bot]
8d38c15a46
Build(deps): Bump ui from 0.3.0 to 0.4.0
Bumps ui from 0.3.0 to 0.4.0.

---
updated-dependencies:
- dependency-name: com.github.nextcloud.android-common:ui
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-11 02:04:17 +00:00
Andy Scherzinger
87f1fbdd47
Merge pull request #2675 from nextcloud/dependabot/github_actions/actions/upload-artifact-3.1.2
Build(deps): Bump actions/upload-artifact from 3.1.1 to 3.1.2
2023-01-10 09:33:19 +01:00
Andy Scherzinger
ca55413812
Update scorecards.yml
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2023-01-10 09:33:02 +01:00
Andy Scherzinger
e48cc426ca
Update assembleFlavors.yml
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2023-01-10 09:32:46 +01:00
Andy Scherzinger
d52866ebf2
Merge pull request #2674 from nextcloud/dependabot/github_actions/actions/checkout-3.3.0
Build(deps): Bump actions/checkout from 3.2.0 to 3.3.0
2023-01-10 09:32:14 +01:00
Andy Scherzinger
d2a92f36fd
Update check.yml
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2023-01-10 09:31:47 +01:00
Andy Scherzinger
7279f65b00
Update codeql.yml
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2023-01-10 09:30:07 +01:00
Andy Scherzinger
dc08010e63
Update command-rebase.yml
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2023-01-10 09:29:50 +01:00
Andy Scherzinger
1cbc7d73df
Update gradle-wrapper-validation.yml
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2023-01-10 09:29:36 +01:00
Andy Scherzinger
14e2315c3b
Update scorecards.yml
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2023-01-10 09:29:17 +01:00
Andy Scherzinger
858e0e8efa
Update qa.yml
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2023-01-10 09:28:56 +01:00
Andy Scherzinger
ea8bda7516
Update assembleFlavors.yml
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2023-01-10 09:28:35 +01:00
Andy Scherzinger
4f2b8d3f09
Update analysis.yml
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2023-01-10 09:28:18 +01:00
Nextcloud bot
2c9267be43
Fix(l10n): 🔠 Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2023-01-10 03:43:36 +00:00
Nextcloud bot
1df26c1b48
Fix(l10n): 🛠️ Update Transifex configuration
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2023-01-10 03:43:17 +00:00