2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-08-30 21:55:10 +00:00
Commit Graph

3109 Commits

Author SHA1 Message Date
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 921d0ee884 (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
Albert Vaca Cintora
5d2b9557e7 Release 1.24.5 v1.24.5 2023-04-26 22:29:19 +02:00
Albert Vaca Cintora
891da46c3c Simplify how we get the app's version code 2023-04-26 22:29:11 +02:00
Dmitry Yudin
e9bc90d91a Modernize ComposeSendActivity
* UI update for the old compose send screen.
* Introduces Jetpack Compose.
* Migrates activity to Kotlin.
* Fixes "send" button being next to "clear".
2023-04-26 20:16:08 +00:00
Albert Vaca Cintora
921d0ee884 Upgrde gradle and AGP 2023-04-25 23:51:30 +02:00
Albert Vaca Cintora
3e8948339d Call requireView only once 2023-04-25 23:51:30 +02:00
Albert Vaca Cintora
e56f73da83 Fix ConcurrentModificationException when device disconnects while iterating 2023-04-25 21:50:02 +00:00
Albert Vaca Cintora
c250d2c674 Merge branch 'kdeconnect-android-mouse_pad_prefs_fix' 2023-04-25 10:22:46 +02:00
Jakub Wiśnia
c15469f477 Add gyro sensitivity pref 2023-04-25 10:22:12 +02:00
l10n daemon script
73f15149b6 GIT_SILENT made messages (after extraction) 2023-04-25 00:50:42 +00:00
Dmitry Yudin
118a35c304 Merge remote-tracking branch 'kubawis/master' into mouse_pad_prefs_fix
# Conflicts:
#	res/values/strings.xml
#	res/xml/mousepadplugin_preferences.xml
#	src/org/kde/kdeconnect/Plugins/MousePadPlugin/MousePadActivity.java
2023-04-25 01:41:51 +02:00
Albert Vaca Cintora
acb869b21c Bump the TLS version to 1.2
TLSv1.2 is supported on all the Android versions we support now.
TLSv1.3 is only supported in API 29+. Although we could conditionally
enable it on 29+, it seems to cause problems (disconnects & reconnects
when the LanLink gets refreshed) also on newer devices.
2023-04-24 20:52:45 +00:00
Dmitry Yudin
71706879d0 Fix onBackPressed after screen rotation
Moved onBackPressedDispatcher.addCallback(s) to onResume
2023-04-24 17:37:19 +00:00
Dmitry Yudin
f5b3523ec6 Fix applying preferences changes when returned from plugin settings 2023-04-23 22:50:05 +02:00
l10n daemon script
8639938584 GIT_SILENT Sync po/docbooks with svn 2023-04-23 02:36:32 +00:00
l10n daemon script
011ee20fbb GIT_SILENT made messages (after extraction) 2023-04-23 00:48:42 +00:00
Albert Vaca Cintora
763859d478 Release 1.24.3 2023-04-22 23:49:03 +02:00
Albert Vaca Cintora
c19019a500 Comment verbose logs 2023-04-22 23:49:03 +02:00
Albert Vaca Cintora
b1a2257d4d Fix incorrect text showing in main activity plugin cards 2023-04-22 23:49:03 +02:00
Albert Vaca Cintora
32d6a346ab Disable MouseReceiver Plugin so we don't need accessibility API
Google doesn't like it :( Hopefully we can re-add it back soon.
2023-04-22 22:44:49 +02:00
Albert Vaca Cintora
2616a7a529 Release 1.24.2 v1.24.2 2023-04-22 18:45:49 +02:00
Albert Vaca Cintora
f16a770fee Revert "Do not force TLS v1"
Breaks compatibility with older desktop clients.
We need to bump the protocol version to do this.

This reverts commit e2dbc39e3a.
2023-04-22 14:02:10 +02:00