2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-08-30 13:47:41 +00:00

3180 Commits

Author SHA1 Message Date
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 d09ad45e112bf5ce5e50ab4bb0ed651dccdc8775
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
Albert Vaca Cintora
9f64cbbfaf Remove backwards compat flags for AGP 2023-05-20 14:00:09 +02:00
Simon Redman
d2d43c55a7 Bump OpenJDK to v17 as required by latest Gradle version
## Summary

Gradle version bump in 921d0ee8846180d18b0c953dedfd87f58f77704f (probably) is incompatible with Java 11.

Fix Gitlab CI by increasing Java version, as required by latest Gradle version.

## Test Plan

### Before:
Gitlab CI does not work, complaining about Java version. See for example: https://invent.kde.org/network/kdeconnect-android/-/jobs/950701

### After:
Gitlab CI does work
2023-05-17 16:29:08 +00:00
l10n daemon script
948d075fb3 GIT_SILENT made messages (after extraction) 2023-05-17 00:46:57 +00:00
Albert Vaca Cintora
e409ec37eb Simplify constructor call 2023-05-10 16:57:47 +02:00
Albert Vaca Cintora
ed0f97de1b Remove redundant supports-screens section 2023-05-10 16:57:44 +02:00
Albert Vaca Cintora
961a839ac3
Fix crash when onNetworkChanged was called before link was initialized
This race condition could happen on slow devices
2023-05-03 19:38:21 +02:00
l10n daemon script
b189556d6a GIT_SILENT made messages (after extraction) 2023-05-03 00:48:41 +00:00
l10n daemon script
ddd2e741f4 GIT_SILENT Sync po/docbooks with svn 2023-05-01 02:12:57 +00:00
l10n daemon script
4f1cff22ab GIT_SILENT made messages (after extraction) 2023-05-01 00:51:22 +00:00
l10n daemon script
72130c0cfa GIT_SILENT Sync po/docbooks with svn 2023-04-30 02:43:27 +00:00
l10n daemon script
2147dc5313 GIT_SILENT made messages (after extraction) 2023-04-30 00:47:55 +00:00
l10n daemon script
52a27790d0 GIT_SILENT made messages (after extraction) 2023-04-29 00:49:48 +00:00
l10n daemon script
9c18f3f799 GIT_SILENT made messages (after extraction) 2023-04-28 00:48:19 +00:00
l10n daemon script
7e32d2962f GIT_SILENT made messages (after extraction) 2023-04-27 00:48:25 +00:00