2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-08-31 06:05:12 +00:00
Commit Graph

3144 Commits

Author SHA1 Message Date
l10n daemon script
15b78d8a2d GIT_SILENT made messages (after extraction) 2023-06-03 00:46:48 +00:00
Albert Vaca Cintora
94c2ac3b4c Fix comment 2023-06-02 23:20:54 +02:00
Albert Vaca Cintora
969d78d404 Improvements from code review 2023-06-02 16:59:42 +00:00
Albert Vaca Cintora
a6ec1744b7 Use Jetpack Compose for the Device UI 2023-06-02 16:59:42 +00:00
Albert Vaca Cintora
03f50994ee Remove unused imports 2023-06-02 18:41:58 +02:00
l10n daemon script
582542451c GIT_SILENT made messages (after extraction) 2023-06-02 00:47:23 +00:00
l10n daemon script
5f8675ee43 GIT_SILENT made messages (after extraction) 2023-06-01 00:46:32 +00:00
Albert Vaca Cintora
8c86ef4ac5 Remove unused argument 2023-05-31 17:24:05 +02:00
Albert Vaca Cintora
537f2e35ac Add the option to cancel a pairing request we sent
BUG: 469877
2023-05-31 15:23:30 +00:00
l10n daemon script
f588bf9502 GIT_SILENT Sync po/docbooks with svn 2023-05-31 02:24:25 +00:00
l10n daemon script
c2bf8e8521 GIT_SILENT made messages (after extraction) 2023-05-31 00:47:33 +00:00
Albert Vaca Cintora
550e9b0c8b Use kotlin's apply 2023-05-30 17:23:18 +02:00
Albert Vaca Cintora
457721e8c7 Simplify loops 2023-05-30 17:23:18 +02:00
Albert Vaca Cintora
f26bd54be5 Enable the loopback link on Google test devices
See docs here: https://firebase.google.com/docs/test-lab/android/android-studio#modify_instrumented_test_behavior_for_testlab
2023-05-30 17:23:18 +02:00
l10n daemon script
eb843cf901 GIT_SILENT made messages (after extraction) 2023-05-30 00:46:11 +00:00
Albert Vaca Cintora
8b66bef865 Fix glitch displaying hint in add device dialog 2023-05-30 00:41:09 +02:00
Albert Vaca Cintora
28ed8209c4 Do not allow multi-line device names 2023-05-30 00:34:09 +02:00
Albert Vaca Cintora
f00e420535 Do not ignore exceptions in LanLink onStart
broadcastUdpPacket will throw if setupTcpListener isn't successful, and
at that point we no longer know the real issue. Re-throw exceptions in
setupTcpListener so we can see what goes wrong.
2023-05-30 00:14:39 +02:00
Albert Vaca Cintora
ad725e7a24 Release 1.25.0 v1.25.0 2023-05-29 15:41:31 +02:00
Albert Vaca Cintora
947cd54cb0 Add fastlane
This is read by F-Droid, so it should fix our app not having an icon or
having outdated screenshots there.

Also, this can be used to update the Play Store by doing:
  fastlane supply --version-code <version code> --json-key <path to key>

In a future, it would be nice to update the StaticMessages.sh script so
it converts the app description here to .pot and back so we can have KDE
localization teams translate it and updates are automatically picked up.
2023-05-29 15:41:20 +02:00
Albert Vaca Cintora
14270ea71a Re-add file removed by mistake 2023-05-29 15:02:58 +02:00
Albert Vaca Cintora
46ecd2b05f Fix NPEs 2023-05-29 13:09:35 +02:00
Albert Vaca Cintora
2839793e9d SystemVolumePlugin: Do not call requestSinkList once per second
When playing music on Windows, we receive MPRIS player updates ~once per
second. This calls the MprisMediaSession updateMediaNotification function
which then calls updateCurrentPlayer which used to call
SystemVolumeProvider's startTrackingVolumeKeys (now renamed to
startListeningForSinks) which is quite bad because on each call:
 * It would add yet another copy of this to the listeners list
 * It would send a network packet to get the sinks from the other device
Now we only call startListeningForSinks when the tracked player changes.
2023-05-29 10:01:51 +00:00
Albert Vaca Cintora
ad53138928 Make linter happy 2023-05-29 03:37:46 +02:00
Albert Vaca Cintora
3a05548333 Remove unneeded overrides 2023-05-28 22:38:24 +02:00
Albert Vaca Cintora
d0ec7dd755 Make newInstance calls explicit 2023-05-28 12:05:08 +02:00
Albert Vaca Cintora
53f14e9c77 Bump AGP plugin version 2023-05-28 11:45:29 +02:00
l10n daemon script
853e5b1903 GIT_SILENT made messages (after extraction) 2023-05-28 00:46:42 +00:00
Albert Vaca Cintora
6b450d558e Add NonNull annotations to Plugin and PluginFactory 2023-05-26 22:19:21 +02:00
Albert Vaca Cintora
b065d5c1d1 Remove unused functions 2023-05-26 20:21:56 +02:00
Albert Vaca Cintora
c70d03dbe8 Catch BackgroundServiceStartNotAllowedException 2023-05-26 20:21:40 +02:00
Albert Vaca Cintora
9e39cbd979 Remove unused & commented code 2023-05-26 20:03:14 +02:00
Albert Vaca Cintora
1e904fcbfa Re-add missing setContentIntent
Removed by mistake in d09ad45e11
2023-05-26 20:02:26 +02:00
Albert Vaca Cintora
38edbd260a Removed unused privateKey field from BaseLink 2023-05-26 19:56:59 +02:00
Albert Vaca Cintora
62cf2d6b44 Add NonNull annotations to Link classes 2023-05-26 19:54:57 +02:00
Albert Vaca Cintora
f172ffd129 Added TODO 2023-05-25 16:09:09 +00:00
Albert Vaca Cintora
0f3ad63ee3 Make sending the payloads async
Fixes the bug described in !359. Since we made sending packets sequential
in !90 (including the payload part of the packet) we could be blocking the
queue for up to 10 seconds if the other end didn't fetch our payload.

This makes the payload part async by default but keeps the option to make
it sync, since we want that behavior in CompositeUploadFileJob.
2023-05-25 16:09:09 +00:00
Albert Vaca Cintora
ea1675c76a Hide presenter plugin when other device is a phone
The use case doesn't make sense
2023-05-25 18:04:54 +02:00
Albert Vaca Cintora
40b05fbe8f Remove reference to Device when the view is destroyed 2023-05-25 02:41:46 +02:00
Albert Vaca Cintora
ae23413971 Refactor BackgroundService
Added a new KdeConnect Application class that holds the Devices now, while
BackgroundService "only" takes care of the LinkProviders.

Since KdeConnect subclasses Application we have the guarantee that it will
exist as long as our process does, so we can use it as a singleton. This
removes the "BackgroundService.RunCommand" hack (which sent an Intent that
would awake BackgroundService in case it wasn't running already and then
call our code in a callback). This saves lots of round trips between the
system and us and makes things simpler (and stack traces useful) by making
the code sequential.

We already had an Application subclass that I moved to a new helper, which
now the KdeConnect class initializes together with all the other helpers.
2023-05-24 19:28:02 +02:00
Albert Vaca Cintora
a6eea8e996 Handle SocketTimeoutException when sending a payload
This means that the whole packet queue was 10 seconds blocked (!) which
I think we shouldn't let happen, but for now I've added this error message.
2023-05-24 17:08:40 +00:00
Albert Vaca Cintora
58a304a81e Catch SocketException from sendPacket
So we get to print the error message saying which packet got lost and so
that the sending loop doesn't crash.
2023-05-24 17:08:40 +00:00
Albert Vaca Cintora
da3ee10567 Kotlin style 2023-05-24 19:07:36 +02:00
Albert Vaca Cintora
f6ea3e01b0 Remove outdated comments 2023-05-24 17:12:19 +02:00
l10n daemon script
e372c47789 GIT_SILENT Sync po/docbooks with svn 2023-05-24 01:52:28 +00:00
Albert Vaca Cintora
72af26016b Cleanup 2023-05-23 21:41:57 +02:00
l10n daemon script
e17073bb7b GIT_SILENT Sync po/docbooks with svn 2023-05-23 02:26:35 +00:00
Krzysztof Dziembała
faedc2e6c8 Fix tests: allow unnamed modules to access internal APIs 2023-05-21 21:46:01 +02:00
Pluto Hu
4081dc593d Add search functionality for filtering apps by name in NotificationFilterActivity. 2023-05-20 19:02:49 +00:00
Albert Vaca Cintora
2246d3f458 Bump dependencies 2023-05-20 14:00:41 +02:00