Albert Vaca Cintora
fd51ec7c14
Fix linter warnings
2025-04-05 00:44:08 +02:00
Albert Vaca Cintora
e9e406de88
Deprecate packet id field
2025-02-26 11:10:06 +00:00
Albert Vaca Cintora
7a4fb8b584
Make the verification key change every time in protocol v8
2025-02-23 15:50:11 +00:00
TPJ Schikhof
a9a99ea7bd
Add PeerTube support to formatUriWithSeek function
2025-02-16 21:43:14 +00:00
Albert Vaca Cintora
7bc90fbe85
Simplify regex
2025-01-18 20:42:27 +00:00
Albert Vaca Cintora
818b99774d
Add test
2025-01-18 20:42:27 +00:00
TPJ Schikhof
a149100d74
Add unit tests for TelephonyHelper
2024-10-05 05:55:22 +00:00
TPJ Schikhof
592b8a74a7
Unit testing for the SslHelper methods
...
(excluding methods involving RsaHelper)
2024-10-02 04:47:48 +00:00
TPJ Schikhof
bb8649d869
Refactor storage helper and added unit tests
2024-10-02 04:26:23 +00:00
TPJ Schikhof
2c0a9d262e
Migrate MockSharedPreference to Kotlin
2024-09-16 10:18:16 +00:00
TPJ Schikhof
7ebac70d47
Migrate DeviceTest to Kotlin
2024-09-02 10:29:16 +00:00
TPJ Schikhof
9037647281
Migrate SafeTextCheckerTest to Kotlin
2024-09-02 10:27:24 +00:00
TPJ Schikhof
fb0e2cc01d
Migrate files helper to Kotlin + add unit tests
2024-08-30 18:02:12 +00:00
TPJ Schikhof
c9fb81363d
Migrate video urls helper to Kotlin
...
- Migrated code to Kotlin
- Fixed crash
- Added unit tests
2024-08-18 21:54:42 +00:00
Albert Vaca Cintora
4ae6e50020
Remove DevicePacketQueue, use a IO coroutine to send packets
2024-06-04 19:57:59 +02:00
Albert Vaca Cintora
23701bc4ae
Migrate Device to Kotlin
...
Co-authored-by: ShellWen Chen <me@shellwen.com>
2024-05-19 13:31:19 +02:00
Albert Vaca Cintora
440f1d4fa3
Filter device name
...
Following the spec: https://invent.kde.org/network/kdeconnect-meta/-/blob/master/protocol.md?ref_type=heads#kdeconnectidentity
2024-05-19 10:02:28 +00:00
Albert Vaca Cintora
ef760a3628
Revert "refactor: migrate DevicePacketQueue
to Kotlin Coroutine"
...
This reverts merge request !431
2024-05-13 21:53:15 +00:00
Albert Vaca Cintora
3e96d5ecd3
Remove leftover mock line
2024-05-13 12:34:19 +02:00
Albert Vaca Cintora
c6dbadce21
Upgrade to Mockito 5, remove PowerMock and update test
...
PowerMock is no longer maintained and is only compatible with Mockito 3.
However, modern Mockito supports mocking static methods, so PowerMock is
no longer needed (after adjusting the tests a bit).
2024-05-13 12:31:59 +02:00
Albert Vaca Cintora
dc2c2e71df
Fix test by removing unused mocks
2024-05-12 22:27:32 +02:00
ShellWen Chen
295dc7b42a
refactor: migrate DevicePacketQueue
to Kotlin Coroutine
2024-04-14 23:04:55 +00:00
ShellWen Chen
05cdbf98d7
refactor: migrate NetworkPacket
to Kotlin
2024-04-06 11:20:17 +00:00
ShellWen Chen
66877d6730
refactor: migrate DeviceStats
to Kotlin
2024-03-30 20:08:30 +00:00
Albert Vaca Cintora
7c649be2ce
Add "laptop" as a device type
...
For consistency with the other implementations, which distinguish the
two kinds of computers.
2023-09-18 07:31:06 +00:00
Erik Duisters
3da626156c
Fix addPacket replacing existing and then adding duplicate item
2023-08-03 12:25:40 +02:00
Erik Duisters
0bd326d403
Some Kotlin refactorings
2023-08-01 11:22:41 +00:00
Albert Vaca Cintora
8c1603f6e4
Add DeviceInfo class
...
`DeviceInfo` contains all the properties we need to instantiate a `Device`:
id, name, type, cert, capabilities and protocol version. Before, we had a mix
of passing those around as arguments or passing identity packets (ie: json).
This simplifies the `Device` class quite a bit.
Now, `BaseLink` subclasses need to implement the `getDeviceInfo()` interface
that returns a `DeviceInfo`, which is what we will pass around and eventually
use to instantiate a `Device`.
This means that identity packets are an implementation detail of the
`LanLinkProvider` and that other implementations could get the `DeviceInfo`
in a different way.
In a future, we can add a mechanism for links to notify when their `DeviceInfo` changed.
This will allow us to better support device renames (which now are implemented by
reconnecting to the device and don't always work) or sending the capabilities fields
later in the case of MacOS/iOS where we can't send them in a UDP packet due to the
size limit of 1500 bytes.
2023-06-27 11:14:36 +00:00
Albert Vaca Cintora
867bdfb6fb
Move PairingHandler out from the UI package
2023-06-16 19:51:57 +02:00
Albert Vaca Cintora
b14df9d09c
Fail earlier if we don't have a certificate
2023-06-05 10:29:27 +02:00
Albert Vaca Cintora
a20fb00b7d
Have a single PairingHandler for all links
2023-06-05 10:28:45 +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
0f4643e502
Project-wide optimize imports
2023-03-05 22:11:58 +01:00
Albert Vaca Cintora
2b1e4dcb23
Bump deps
2023-01-02 22:00:32 +01:00
Albert Vaca Cintora
97b7eb71cf
Delete tests broken since 2019
...
I spent a few hours and couldn't fix them
2023-01-02 21:54:21 +01:00
Daniel Weigl
801b6451ed
Accept data via Intent and pass them on to the host as keystrokes
...
Adds new functionality to the MousepadPlugin to accept data via Intent and pass them on to the host as keystrokes via the existing MousePadPlugin.PACKET_TYPE_MOUSEPAD_REQUEST PackageType
eg. to easily send OTP codes from the phone to the Desktop
2021-03-09 16:47:15 +00:00
Nicolas Fella
b3b74f25f4
Convert license headers to SPDX
2020-08-17 16:17:20 +02:00
Isira Seneviratne
c6f8a2ecdc
Fix test compilation errors.
2020-08-02 16:56:21 +00:00
Isira Seneviratne
fe3cbeb65b
Mock ContextCompat.getSystemService() using PowerMockito.
2020-07-07 17:52:54 +05:30
Isira Seneviratne
52aafe6b8c
Use ContextCompat.getSystemService() to retrieve system services without casting.
2020-07-07 16:47:39 +05:30
Philip Cohn-Cort
7e935a495e
Remove old protocol v6 code from DeviceTest.java
2020-03-21 22:43:29 -04:00
Nicolas Fella
0072911c5b
Use java style instead of C style for arrays
2019-04-19 01:11:35 +02:00
Nicolas Fella
96a83ddcd3
Inline fields
2019-04-19 01:09:52 +02:00
Albert Vaca Cintora
168b16527c
Remove compat with protocol 6 with RSA encryption
...
Since we already removed compat with protocol 7 ^.^u
2019-04-18 19:52:30 +02:00
Nicolas Fella
f1194e88c2
Use Log.e instead of printStackTrace
2019-03-31 20:09:44 +02:00
Erik Duisters
085fb1025b
Capture PairingHandlerCallback and call its pairingDone method instead of calling Device.pairingDone using reflection
2019-03-04 19:24:04 +01:00
Erik Duisters
bc2836f45f
Also verify that Device.PairingCallback.unpaired() is called
2019-03-04 19:22:46 +01:00
Erik Duisters
b135ffa92a
Also verify that Device.PairingCallback.pairingSuccessful() is called
2019-03-04 19:21:04 +01:00
Erik Duisters
024a084b9a
Add DeviceType test
2019-03-02 17:42:46 +01:00