Commit Graph

76 Commits

Author SHA1 Message Date
Niels van Velzen
a63f3e5d6e Split KtorClient to separate module 2023-05-09 13:04:02 +02:00
Niels van Velzen
cd764ec8b4 Fix invalid kdoc in DiscoveryService 2023-05-09 12:40:34 +02:00
Niels van Velzen
5a8da03321 Remove unused androidx libraries 2023-04-06 23:42:57 +02:00
Niels van Velzen
16ab373a70 Migrate Android namespace to build file, remove deprecated target SDK 2023-04-06 23:41:38 +02:00
Yash-Garg
f22735c7b4 refactor: convert Long to Duration for HttpClientOptions 2023-01-29 14:15:50 +01:00
Niels van Velzen
b87c21fdae Bump Android SDK to 33 2023-01-14 00:10:37 +01:00
Niels van Velzen
04ccbf9acf Migrate to new Kotlin Multiplatform source set layout 2022-12-28 20:11:44 +01:00
Niels van Velzen
5848050d72 Configure core-android publishing 2022-12-28 13:56:32 +01:00
Jarne Demeulemeester
a61ef50fa8
Use broadcast address 255.255.255.255 for server discovery (#484)
* Use multicast for server discovery

* Update api files

* Use broadcast address 255.255.255.255 for server discovery
2022-11-07 18:48:15 +01:00
Niels van Velzen
4290cf7a5a Fallback to manufacturer + model when device name is null 2022-09-18 16:05:00 +02:00
Niels van Velzen
7a639f8138 Improve RecommendedServerDiscovery speed significantly 2022-09-06 19:40:30 +02:00
Niels van Velzen
f1115e6611 Fix AddressCandidateHelper issues with empty input and invalid ports 2022-09-06 19:30:05 +02:00
Jarne Demeulemeester
f8db631fee Remove READ_EXTERNAL_STORAGE permission 2022-08-25 19:31:35 +02:00
Niels van Velzen
8540a61898 Bump Android compile and target SDK to 32 (Android 12L) 2022-08-11 18:54:06 +02:00
Niels van Velzen
c2fa8d2f5e Update build.gradle.kts 2022-08-03 21:24:02 +02:00
Niels van Velzen
df7102f41d Catch all ApiClientException instances in RecommendedServerDiscovery 2022-08-02 13:58:52 +02:00
Niels van Velzen
1c674abd1d Remove catching Throwable exceptions
This fixes the TooGenericExceptionCaught linter issue. We ignored it, but it actually ended up causing issues. When a coroutine is cancelled it often throws a CancellationException. This was caught and converted to an ApiClientException causing coroutine cancellation to stop working. This change removes the places that catch Throwable, and they may throw exceptions now. We'll need to watch this and possibly add new catch branches later.
2022-07-29 21:33:49 +02:00
Niels van Velzen
369277b5cb
Allow client to change minimum server version (#434)
This mostly affects the RecommendedServerDiscovery rejecting servers not meeting the hardcoded minimum server version, but the option value can be used by the client too.
2022-07-08 18:49:21 +02:00
Niels van Velzen
845776f71b Increase minimum supported Jellyfin version to 10.8.1 2022-07-05 17:39:51 +02:00
Niels van Velzen
010e54a348 Suppress false positive in Android linter 2022-06-15 19:21:16 +02:00
Niels van Velzen
a687223c51 Migrate unit tests to Kotest 2022-04-30 15:51:04 +02:00
Niels van Velzen
0e99c75860
Update minimumVersion to 10.8 (#379) 2022-04-17 17:32:39 +02:00
Niels van Velzen
a56bdbf340
Add OkHttpWebsocketSession for JVM and Android targets (#366) 2022-04-04 21:58:51 +02:00
Niels van Velzen
5dd9e24984
WebSocket API rewrite (#352)
* WebSocket API rewrite
* Review changes
2022-03-26 20:45:43 +01:00
Niels van Velzen
135c1c5198
Allow custom device info in Android target (#353) 2022-02-05 20:27:10 +01:00
Niels van Velzen
e14969e998 Update generated files 2021-12-31 12:25:48 +01:00
Niels van Velzen
287c1498d9 Rewrite Java callback helpers to support error handling and non-api functions 2021-12-31 12:25:48 +01:00
Niels van Velzen
012f76f7f3
Disable wildcard imports (#344) 2021-12-23 13:41:22 +01:00
Niels van Velzen
61f853f990 Update imports
Flow.collect no longer needs to be imported when it has a collector
2021-12-22 10:49:38 +01:00
Niels van Velzen
6563267f06 Compile and target Android 31 2021-12-22 10:49:37 +01:00
GiviMAD
18ca13abdf
Add compatibility util to collect flows from Java (#338)
* add compatibility util to consume flows from Java

* add api changes

* Make JavaFlow static and tweak the behavior a bit

Co-authored-by: Niels van Velzen <git@ndat.nl>
2021-12-11 18:51:49 +01:00
Niels van Velzen
5a6b9496a9
Require explicit enabling of publishing (#331)
Prevents testutils (and potential future projects) from being published, also moves publishing config to AFTER the kotlin block to fix jellyfin-core-android POM and jellyfin-core Dokka
2021-10-17 14:36:57 +00:00
Niels van Velzen
0de06304f3 Remove redundant visibility modifiers from tests 2021-10-09 12:11:33 +02:00
Niels van Velzen
b5af0ace91
Use testutils in all modules (#328) 2021-10-06 22:39:13 +02:00
Niels van Velzen
158f9d08d0
Update binary-compatibility-validator to 0.8.0-RC and re-enable jellyfin-core api validation again (#326) 2021-10-04 17:19:19 +00:00
Niels van Velzen
bb14bf6d19
Add Api instances to ApiClient as extension properties (#324)
* Add Api interface as super for all Api classes

* Update generated sources

* Make ApiClient abstract and add getOrCreateApi function

* Add ApiClient.webSocket extension

* Add ApiClientExtensionsBuilder

* Update generated sources

* Update api usages to new syntax

* Fix package names

* Add api suffix back
2021-09-20 21:49:30 +02:00
Niels van Velzen
568c9f52c2
Add ApiClientFactory option to allow different http clients (#318) 2021-09-02 19:19:14 +02:00
Niels van Velzen
ea90ef1cdf Return ApiClient from Jellyfin.createApi function 2021-08-28 13:32:03 +02:00
Niels van Velzen
977266df23
Rename main to commonMain (#311) 2021-08-22 14:51:06 +02:00
Niels van Velzen
bc979d632c Move jellyfin-platform-android into jellyfin-core 2021-08-22 13:10:01 +02:00
Niels van Velzen
3fefad0118 Convert jellyfin-core to Kotlin Multiplatform 2021-08-21 10:56:05 +02:00
Niels van Velzen
87e76dcffa Use dependency catalog for plugins 2021-08-19 15:33:37 +02:00
Niels van Velzen
8e885e1d58
Replace slf4j with kotlin-logging (#303) 2021-08-15 10:36:59 +02:00
Niels van Velzen
0869193525 Add typealias for UUID 2021-08-12 14:20:11 +02:00
Niels van Velzen
bb63d7a488
Emit issue information in RecommendedServerDiscovery (#296) 2021-07-15 10:26:37 +00:00
Niels van Velzen
3eeac38aad Update generated sources 2021-06-13 11:07:18 +02:00
Niels van Velzen
9c9137b8e4 Add userId property to ApiClient and KtorClient 2021-06-13 11:07:16 +02:00
Niels van Velzen
a7c163496b
Improve usage of Jellyfin class in Java code (#268) 2021-06-05 17:28:07 +02:00
Niels van Velzen
dab1fbc740 Set all timeouts to 5 seconds in RecommendedServerDiscovery 2021-05-21 17:43:16 +02:00
Niels van Velzen
230878c569
Update kotlinx.coroutines and fix warnings in WebSocketApi (#257) 2021-05-14 18:34:11 +02:00