2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-08-23 02:17:20 +00:00

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.
This commit is contained in:
Simon Redman 2023-01-30 23:07:27 +00:00 committed by Philip Cohn-Cort
parent ba77fa786f
commit 26ceeceb45
2 changed files with 2 additions and 5 deletions

View File

@ -171,7 +171,7 @@ dependencies {
// This library was originally authored as com.klinkerapps at https://github.com/klinker41/android-smsmms.
// However, that version is under-loved. I have therefore made "some fixes" and published it.
// Please see https://invent.kde.org/sredman/android-smsmms/-/tree/master
implementation 'org.kde:android-smsmms:5.2.7'
implementation 'org.kde.invent.sredman:android-smsmms:kdeconnect-1-21-0'
implementation 'com.klinkerapps:logger:1.0.3'
implementation 'commons-io:commons-io:2.8.0' // newer versions don't work on Android 7: https://stackoverflow.com/questions/73604534/no-static-method-threadlocal-withinitial-commons-io-dependency

View File

@ -16,10 +16,7 @@ dependencyResolutionManagement {
google()
mavenCentral()
maven {
name = "KDE Invent Maven"
// This project_id corresponds to kdeconnect-android project
// Depending on how long we need this custom package, we may decide to move it to a more-official repo
url = "https://invent.kde.org/api/v4/projects/72/packages/maven"
url = "https://jitpack.io"
}
}
}