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

3157 Commits

Author SHA1 Message Date
Albert Vaca Cintora
d0923b845b Have a single PairingHandler for all links 2023-06-04 20:06:21 +02:00
Albert Vaca Cintora
0eb4b5bced Replace DeviceNames library
The version of the library we used stopped working in 2020 when the names
database it tries to download got deleted from the master branch of their
Github repo. There's a newer version, but it seems to have lost the
fetch-from-the-internet functionality (it only bundles a list of names) and
for some reason it crashes when I tested it (I've opened an issue on their
repo). Since Google now provides a CSV with all the Android device names
that exist, I've replaced the library by my own function that downloads the
CSV file (~3MB) in the first run of the app and looks for the name there.
2023-06-04 20:06:21 +02:00
Albert Vaca Cintora
476304d6fb Changes from code review 2023-06-04 18:05:48 +00:00
Albert Vaca Cintora
1ccf15010e Compute total number of packets sent and received by type 2023-06-04 18:05:48 +00:00
Albert Vaca Cintora
8ea82ff053 Add empty device list message 2023-06-04 17:22:34 +00:00
Albert Vaca Cintora
d4076245dd Prettier widget 2023-06-04 17:22:34 +00:00
Albert Vaca Cintora
afd4219732 More code review changes 2023-06-04 17:22:34 +00:00
Albert Vaca Cintora
7d3cf9690a Rename RunCommandWidgetConfig -> RunCommandWidgetConfigActivity 2023-06-04 17:22:34 +00:00
Albert Vaca Cintora
a977b6da17 Improvements from code review 2023-06-04 17:22:34 +00:00
Albert Vaca Cintora
11634b2cde Allow having widgets for more than once device
Rewrites the RunCommand widget. Now we can have different widgets for
different devices at the same time. Also removes the startService call
that could cause ForegroundServiceStartNotAllowedException on API 12+.
2023-06-04 17:22:34 +00:00
l10n daemon script
2fda82cd02 GIT_SILENT made messages (after extraction) 2023-06-04 00:46:32 +00:00
Albert Vaca Cintora
8ba4b532d4 Fix catch not working because broadcastUdpPacket starts a thread
We don't want to crash if we get onNetworkChange before tcpServer has been
initialized, however the way to do it was wrong because the exception was
being thrown from a new thread.
2023-06-03 18:59:14 +02:00
l10n daemon script
b201dadf12 GIT_SILENT Sync po/docbooks with svn 2023-06-03 01:49:41 +00:00
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