2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-08-29 21:27:40 +00:00

2900 Commits

Author SHA1 Message Date
Simon Redman
26ceeceb45 Switch to jitpack build for smsmms library
Is the third time the charm?

f-droid does not allow libraries pulled from non-listed maven repositories, thus the build fails in f-droid:
https://gitlab.com/fdroid/fdroiddata/-/jobs/3654530159#L236
> Found unknown maven repo 'https://invent.kde.org/api/v4/projects/72/packages/maven' at settings.gradle

This MR changes to use [jitpack](https://jitpack.io/#org.kde.invent.sredman/android-smsmms/kdeconnect-1-21-0), which is an allowed repository.
2023-01-30 23:07:27 +00:00
l10n daemon script
ba77fa786f GIT_SILENT made messages (after extraction) 2023-01-30 00:57:09 +00:00
l10n daemon script
aca039433c GIT_SILENT made messages (after extraction) 2023-01-29 00:57:31 +00:00
Albert Vaca Cintora
bbbc315cf7 Release 1.22.1 v1.22.1 2023-01-27 18:25:54 +01:00
Albert Vaca Cintora
d74ad30740 Disable jetifier
Android Studio suggested it since we are not using it
2023-01-27 18:24:02 +01:00
Albert Vaca Cintora
b5d9293103 Remove REQUEST_INSTALL_PACKAGES permission
Google keeps being annoying and now they got really strict with which apps
can be published to the Play Store using this permission
2023-01-27 18:23:16 +01:00
Albert Vaca Cintora
9eb047e7a1 Actually, release 1.22 v1.22 2023-01-23 23:34:24 +01:00
Albert Vaca Cintora
82415b3fa7 Release 1.21.2 2023-01-23 23:26:07 +01:00
Albert Vaca Cintora
15fec5e515 Bump deps 2023-01-23 23:24:27 +01:00
Simon Redman
bcf080f6eb [SMS Plugin] Change android-smsmms to in-house build until upstream supports SDK31
## Summary

Android apps which target SDK 31+ require specifying the mutability of any PENDING_INTENT. This is not supported in the upstream android-smsmms library: https://github.com/klinker41/android-smsmms/pull/193

Until the above PR is merged, we need a solution. I have pulled the code into https://invent.kde.org/sredman/android-smsmms and published the package in the Maven repository in gitlab.

BUG: 464392

## Test Plan

### Before:
Attempting to send an SMS or MMS message using kdeconnect-sms results in no message being sent, and an error being logged:

> V/Sending message: Sending new SMS
> E/Sending message: Exception
>     java.lang.IllegalArgumentException: org.kde.kdeconnect_tp: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent.
>     Strongly consider using FLAG_IMMUTABLE, only use FLAG_MUTABLE if some functionality depends on the PendingIntent being mutable, e.g. if it needs to be used with inline replies or bubbles.
>         at android.app.PendingIntent.checkFlags(PendingIntent.java:382)
>         at android.app.PendingIntent.getBroadcastAsUser(PendingIntent.java:673)
>         at android.app.PendingIntent.getBroadcast(PendingIntent.java:660)
>         at com.klinker.android.send_message.Transaction.sendSmsMessage(Transaction.java:267)
>         at com.klinker.android.send_message.Transaction.sendNewMessage(Transaction.java:158)
>         at com.klinker.android.send_message.Transaction.sendNewMessage(Transaction.java:172)
>         at org.kde.kdeconnect.Plugins.SMSPlugin.SmsMmsUtils.sendMessage(SmsMmsUtils.java:188)
>         at org.kde.kdeconnect.Plugins.SMSPlugin.SMSPlugin.onPacketReceived(SMSPlugin.java:414)
>         at org.kde.kdeconnect.Device.onPacketReceived(Device.java:570)
>         <snipped for brevity>

### After:
SMS and MMS sends normally.
2023-01-23 22:02:01 +00:00
Simon Redman
9db4c885a5 [SMS Plugin] Fix handling for addresses list of multi-target group messages
## Summary

Fix a logic error in the SMS plugin which caused it to skip the addresses of other targets when reporting group messages.

Notionally, this bug originated with the logic change in !197, where everything switched to using the android-smsmms library.

BUG: 464555

## Test Plan

### Before:
Group messages would be returned as single-target messages between you and the sender, meaning the desktop app would have a bad time showing them.

### After:
Group messages are returned with the appropriate list of addresses, the desktop app groups them appropriately.
2023-01-22 20:16:06 +00:00
l10n daemon script
67dc1f1fae GIT_SILENT made messages (after extraction) 2023-01-22 00:56:52 +00:00
Simon Redman
e76da90fa9 Correct logic error when determining which "new" messages to return
With the old logic, the mostRecentTimestamp would effectively only be updated once, the first time the app noticed an SMS/MMS. This means that, until the app was next closed, it would return every message sent or received after that timestamp. Since the app doesn't crash as often as it used to, this can grow to a quite significant number of messages.
2023-01-20 21:21:30 -05:00
l10n daemon script
f74336da30 GIT_SILENT made messages (after extraction) 2023-01-21 00:57:51 +00:00
l10n daemon script
154ce67a7c GIT_SILENT made messages (after extraction) 2023-01-16 00:56:06 +00:00
l10n daemon script
207d7b7eb0 GIT_SILENT made messages (after extraction) 2023-01-15 00:55:51 +00:00
l10n daemon script
9870150155 GIT_SILENT Sync po/docbooks with svn 2023-01-14 02:14:51 +00:00
l10n daemon script
141f711b8d GIT_SILENT Sync po/docbooks with svn 2023-01-13 02:51:57 +00:00
l10n daemon script
02ee982991 GIT_SILENT made messages (after extraction) 2023-01-13 00:55:52 +00:00
l10n daemon script
b5b2ebde9d GIT_SILENT Sync po/docbooks with svn 2023-01-12 02:15:28 +00:00
l10n daemon script
cd2dde90cd GIT_SILENT Sync po/docbooks with svn 2023-01-11 02:16:02 +00:00
l10n daemon script
725c302caa GIT_SILENT made messages (after extraction) 2023-01-11 00:56:46 +00:00
l10n daemon script
2680859acc GIT_SILENT made messages (after extraction) 2023-01-10 00:55:40 +00:00
l10n daemon script
7148038ea9 GIT_SILENT made messages (after extraction) 2023-01-09 00:55:14 +00:00
Albert Vaca Cintora
889e0d5c52 Release 1.21.1 v1.21.1 2023-01-08 13:30:42 +01:00
l10n daemon script
c075cc0b63 GIT_SILENT made messages (after extraction) 2023-01-08 00:58:22 +00:00
l10n daemon script
91c0097158 GIT_SILENT made messages (after extraction) 2023-01-07 00:48:52 +00:00
l10n daemon script
a25e88238d GIT_SILENT made messages (after extraction) 2023-01-06 00:47:14 +00:00
l10n daemon script
4336ea4761 GIT_SILENT made messages (after extraction) 2023-01-05 00:47:29 +00:00
Albert Vaca Cintora
58fabe06bf Revert "Separate persistent notification channel based on whether devices are connected"
This reverts commit 9f9b565ce6a25f642e45312ebaa61c3962c95024.

Explained here: https://invent.kde.org/network/kdeconnect-android/-/merge_requests/299#note_590553

# Conflicts:
#	src/org/kde/kdeconnect/BackgroundService.java
2023-01-04 15:14:02 +01:00
l10n daemon script
7d7162bb5b GIT_SILENT Sync po/docbooks with svn 2023-01-04 02:43:22 +00:00
l10n daemon script
b0655fc9d0 GIT_SILENT made messages (after extraction) 2023-01-04 00:48:28 +00:00
Albert Vaca Cintora
1241a560f2 Change the explanation of the permission location
The app is being rejected from the Play Store because we are not explicit
about why whe require the location when the app is in the background.
2023-01-03 18:33:14 +01:00
l10n daemon script
f7b55e4416 GIT_SILENT Sync po/docbooks with svn 2023-01-03 02:57:06 +00:00
l10n daemon script
ff78fdfd59 GIT_SILENT made messages (after extraction) 2023-01-03 00:46:55 +00:00
Albert Vaca Cintora
8b01db3c34 Release 1.21.0 v1.21.0 2023-01-02 22:29:09 +01:00
Albert Vaca Cintora
25728eae18 If you use FINE_LOCATION you also should declare COARSE_LOCATION 2023-01-02 22:28:48 +01:00
Albert Vaca Cintora
dc7fc46e62 Revert "Comment out MouseReceiverPlugin"
This reverts commit a663f4d106f11112d8f7a9deda9e010732df3ed6.
2023-01-02 22:08:09 +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
Harry Cheng
bb0ab51d3b Do not send cancel packet from disabled apps 2023-01-02 16:08:04 +08:00
l10n daemon script
f503b18993 GIT_SILENT made messages (after extraction) 2023-01-02 01:00:29 +00:00
l10n daemon script
58e9a5d2b6 GIT_SILENT made messages (after extraction) 2023-01-01 00:56:32 +00:00
Albert Vaca Cintora
fd34e56675 Use registerNetworkCallback to listen to network changes
ConnectivityManager.CONNECTIVITY_ACTION was deprecated in Android 9
2022-12-31 00:35:08 +01:00
Albert Vaca Cintora
4be79b52ae Show a toast if keyboard input is not supported 2022-12-31 00:03:41 +01:00
Albert Vaca Cintora
028a2992c9 Bump deps 2022-12-30 23:58:13 +01:00
Albert Vaca Cintora
bdfc21cf64 Hopefully fix NPE 2022-12-29 18:51:12 +01:00
Albert Vaca Cintora
5225d0b200 Release 1.20.2 v1.20.2 2022-12-28 19:29:55 +01:00
Albert Vaca Cintora
54e5224f20 Fix minifier deleting "unused" xml that were actually used 2022-12-28 19:29:23 +01:00
Albert Vaca Cintora
6ab846cbbd Fix NPE 2022-12-28 17:31:52 +01:00