mirror of
https://github.com/pachli/pachli-android.git
synced 2025-01-07 14:21:17 +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
33 lines
717 B
INI
33 lines
717 B
INI
root = true
|
|
|
|
[*]
|
|
charset = utf-8
|
|
indent_size = 4
|
|
indent_style = space
|
|
insert_final_newline = true
|
|
trim_trailing_whitespace = true
|
|
|
|
[*.{java,kt}]
|
|
ktlint_code_style = android_studio
|
|
|
|
ij_kotlin_imports_layout = *
|
|
|
|
# Disable wildcard imports
|
|
ij_kotlin_name_count_to_use_star_import = 999
|
|
ij_kotlin_name_count_to_use_star_import_for_members = 999
|
|
ij_java_class_count_to_use_import_on_demand = 999
|
|
|
|
# Require trailing comma
|
|
ij_kotlin_allow_trailing_comma = true
|
|
ij_kotlin_allow_trailing_comma_on_call_site = true
|
|
|
|
max_line_length = off
|
|
|
|
[*.{yml,yaml}]
|
|
indent_size = 2
|
|
|
|
# Disable ktlint on generated source code, see
|
|
# https://github.com/JLLeitschuh/ktlint-gradle/issues/746
|
|
[**/build/generated/source/**]
|
|
ktlint = disabled
|