feat: Migrate networking to Ktor and enhance multiplatform support (#4890)

Signed-off-by: James Rich <2199651+jamesarich@users.noreply.github.com>
This commit is contained in:
James Rich 2026-03-23 11:48:10 -05:00 committed by GitHub
parent acb328dae3
commit b3b38acc0b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
49 changed files with 435 additions and 897 deletions

View file

@ -16,18 +16,9 @@
*/
package org.meshtastic.core.network.di
import io.ktor.client.HttpClient
import io.ktor.client.engine.okhttp.OkHttp
import io.ktor.client.plugins.contentnegotiation.ContentNegotiation
import io.ktor.serialization.kotlinx.json.json
import kotlinx.serialization.json.Json
import org.koin.core.annotation.ComponentScan
import org.koin.core.annotation.Module
import org.koin.core.annotation.Single
@Module
@ComponentScan("org.meshtastic.core.network")
class CoreNetworkAndroidModule {
@Single
fun provideHttpClient(json: Json): HttpClient = HttpClient(OkHttp) { install(ContentNegotiation) { json(json) } }
}
class CoreNetworkAndroidModule