mirror of
https://github.com/pachli/pachli-android.git
synced 2025-01-26 15:05:10 +01:00
5cfe6d055b
Previous code could return an error on Friendica version strings like `2024.03-dev-1547`. Fix this: - Extend the list of explicitly supported servers to include Fedibird, Friendica, Glitch, Hometown, Iceshrimp, Pixelfed, and Sharkey. - Add version parsing routines for these servers. - Test the version parsing routines fetching every server and version seen by Fediverse Observer (~ 2,000 servers) and ensuring that the server and version information can be parsed. Improve the error message: - Show the hostname with a `ServerRepository` error Clean up the code: - Remove the custom `resultOf` and `mapResult` functions, they have equivalents in newer versions of the library (like `runSuspendCatching`) Fixes #372
52 lines
1.2 KiB
Plaintext
52 lines
1.2 KiB
Plaintext
pluginManagement {
|
|
repositories {
|
|
google()
|
|
gradlePluginPortal()
|
|
}
|
|
|
|
includeBuild("build-logic")
|
|
includeBuild("plugins/markdown2resource")
|
|
}
|
|
|
|
dependencyResolutionManagement {
|
|
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
|
|
repositories {
|
|
google()
|
|
mavenCentral()
|
|
maven("https://jitpack.io")
|
|
}
|
|
}
|
|
|
|
plugins {
|
|
id("com.gradle.enterprise") version "3.16.1"
|
|
}
|
|
|
|
val isCiBuild = !System.getenv("CI").isNullOrBlank()
|
|
|
|
gradleEnterprise {
|
|
buildScan {
|
|
termsOfServiceUrl = "https://gradle.com/terms-of-service"
|
|
termsOfServiceAgree = "yes"
|
|
isUploadInBackground = !isCiBuild
|
|
tag(if (isCiBuild) "CI" else "Local")
|
|
publishAlwaysIf(isCiBuild)
|
|
}
|
|
}
|
|
|
|
enableFeaturePreview("STABLE_CONFIGURATION_CACHE")
|
|
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
|
|
|
|
rootProject.name = "pachli-android"
|
|
|
|
include(":app")
|
|
include(":core:accounts")
|
|
include(":core:common")
|
|
include(":core:database")
|
|
include(":core:preferences")
|
|
include(":core:navigation")
|
|
include(":core:network")
|
|
include(":core:testing")
|
|
include(":tools:mklanguages")
|
|
include(":tools:mkserverversions")
|
|
include(":checks")
|