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

167 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
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
Albert Vaca Cintora
2b1e4dcb23 Bump deps 2023-01-02 22:00:32 +01:00
Albert Vaca Cintora
028a2992c9 Bump deps 2022-12-30 23:58:13 +01:00
Albert Vaca Cintora
ea66605ef0 Fix crash on Android 7 2022-12-28 17:31:42 +01:00
Albert Vaca Cintora
6fbd923c60 Bump dependencies and targetSdkVersion
Motivation: We can't publish to the Play Store with a targetSdkVersion < 31

The new targetSdk required two changes:

* Specifying when activities, services and receivers should be exported or
  not to other apps. For the ones I wasn't sure of what we want, I made
  them exported to not break something.
* Specifying when a PendingIntent should be mutable or immutable. I made
  them all mutable for now.
2022-12-27 23:53:13 +01:00
Isira Seneviratne
59303c1d0f Update Gradle Plugin to 7.2.2. 2022-10-10 20:49:22 +00:00
Mikhail Zolotukhin
fccbdf0699 Declare repositories and project name in settings.gradle
Official gradle docs recommend using settings.gradle file (see https://docs.gradle.org/current/userguide/organizing_gradle_projects.html#always_define_a_settings_file).
Blank Android projects in Android Studio declare their name and repositories in settings.gradle. Therefore, it makes sense to create such file here and add that information in it.

An explicit project name allows us to know exactly to what `project.name` resolves, instead of relying on the project root directory name, which can be changed by the developer locally.
2022-07-25 20:44:56 +00:00
Nicolas Fella
f2481644ae Update Gradle plugin 2022-06-02 00:39:06 +02:00
Albert Vaca Cintora
4fa634afa4 Upgrade gradle plugin 2022-03-03 23:58:23 +01:00
Albert Vaca Cintora
60ecec9751 Bump dependencies 2022-01-24 01:56:10 +01:00
Albert Vaca Cintora
767fbdfdd9 Bump dependencies 2022-01-22 11:28:49 +01:00
Maxim Leshchenko
7286b8a24a Add ability to run commands from Android 11 power menu 2022-01-15 20:30:19 +00:00
Albert Vaca Cintora
bfb3eae492 Release 1.18.0 2021-11-17 19:15:31 +01:00
Albert Vaca Cintora
9ce72908e1 Bump all the things 2021-11-17 19:04:00 +01:00
Albert Vaca Cintora
e395dbae1d Bump kotlin patch version 2021-10-18 20:34:05 +02:00
Albert Vaca Cintora
33f1e29401 Remove deprecated option 2021-10-05 00:31:50 +02:00
Albert Vaca Cintora
66a81f3612 Update gradle and gradle plugin 2021-10-05 00:30:26 +02:00
Albert Vaca Cintora
28f2ccb391 Bump dependencies and change jcenter (EOLd) to maven 2021-05-06 20:01:33 +02:00
Albert Vaca Cintora
3825970c8e Update dependencies 2021-03-28 20:09:52 +02:00
Albert Vaca Cintora
1c31d3cb49 Update everything 2021-03-16 21:21:15 +01:00
Daniel Tang
3444771a62 Help Android Studio select the correct res dir 2021-02-19 18:28:47 +00:00
Daniel Tang
04a8bebe3a Add links and comply with GPL 2021-01-12 04:04:28 +00:00
Albert Vaca Cintora
d6a284cb25 Bump all the versions 2021-01-06 12:47:33 +01:00
Isira Seneviratne
9aeb49ad49 Remove Butterknife. 2020-11-03 11:31:20 +00:00
Albert Vaca Cintora
b4119a18dc Pin gradle plugin 4.0.2 2020-11-01 15:43:37 -08:00
Albert Vaca Cintora
1aa29c56fe Bump gradle version 2020-10-18 14:51:20 +02:00
Albert Vaca Cintora
bbd648c2fc Bump all deps 2020-10-10 14:40:14 +02:00
Isira Seneviratne
b49dda30f8 Update project dependencies. 2020-09-19 05:38:53 +00:00
Nicolas Fella
17f37ebd04 Bump gradle stuff 2020-08-18 14:10:16 +02:00
Isira Seneviratne
340d7b0154 Adjust build optimizations 2020-08-02 06:31:33 +00:00
Isira Seneviratne
29c6d28569 Add Apache Commons Lang. 2020-07-26 21:50:10 +00:00
Isira Seneviratne
179d04ef00 Enable view binding. 2020-07-24 10:50:15 +00:00
Isira Seneviratne
268d01bb71 Add Apache Commons IO. 2020-07-11 21:36:24 +00:00
Isira Seneviratne
e4774b5d17 Add Kotlin dependencies. 2020-07-11 02:10:37 +00:00
Isira Seneviratne
771dab54c3 Remove 'vectorDrawables.useSupportLibrary' flag. 2020-07-10 20:21:06 +05:30
Isira Seneviratne
8f342ed239 Add Apache Commons Collections. 2020-07-10 11:15:00 +00:00
Isira Seneviratne
45b2ac263f Enable vector drawable support and override some layouts for higher API levels. 2020-07-09 14:35:10 +00:00
Aniket Kumar
b119de8e76 Added MMS support to the SMSPlugin using Klinker library. 2020-07-05 13:32:44 +05:30
Isira Seneviratne
2a4ac97880 Add Java 8 API desugaring support. 2020-07-02 13:31:04 +05:30
Nicolas Fella
d7fc002609 Bump gradle stuff 2020-06-23 12:38:40 +02:00
Nicolas Fella
e315cbd9ef Update some dependency versions 2020-05-12 00:06:14 +02:00
Philip Cohn-Cort
09a20e8b8e Include git commit in APK filename 2020-04-29 18:59:00 +00:00
Sylvia van Os
e3ca5aca57 Initial Bigscreen remote support 2020-03-27 20:33:10 +00:00
Philip Cohn-Cort
23337fb2f4 Target and compile against Android 10.0 (SDK 29) 2020-03-21 22:43:29 -04:00
Philip Cohn-Cort
5e0ae437bb Upgrade gradle plugin for AS 3.6.1 2020-03-21 22:43:29 -04:00
Philip Cohn-Cort
51b5989183 Request v10.2.1 of the butterknife runtime dependency
Note that there haven't been any updates to 'butterknife-compiler' since
the 10.0.0 release.
2020-03-21 22:43:29 -04:00
Philip Cohn-Cort
06a73ca856 Use gradle.properties to control what kind of code optimization runs 2020-03-21 22:43:29 -04:00
Albert Vaca Cintora
546613f4b8 Bump Androidx version
We went over the DEX methods limit, so I enabled Proguard on debug :(
2020-02-09 21:51:56 +01:00