-dontwarn ai.devrev.sdk.**
-keep class ai.devrev.sdk.** { *; }

# Ktor client plugins used by the SDK.
# Ktor 2.x does not ship its own ProGuard/R8 keep rules, so we must
# prevent R8 from stripping plugin classes loaded via the install() DSL.
-keep class io.ktor.client.plugins.contentnegotiation.** { *; }
-keep class io.ktor.client.plugins.logging.** { *; }
-keep class io.ktor.client.engine.okhttp.** { *; }
-keep class io.ktor.serialization.kotlinx.** { *; }
-keep class io.ktor.serialization.** { *; }

# Ktor HTTP internals needed at runtime for request/response processing.
-keep class io.ktor.client.statement.** { *; }
-keep class io.ktor.client.request.** { *; }
-keep class io.ktor.client.call.** { *; }
-keep class io.ktor.http.** { *; }
-keep class io.ktor.util.** { *; }
-keep class io.ktor.client.HttpClient { *; }
-keep class io.ktor.client.HttpClientConfig { *; }

# Suppress warnings for Ktor optional dependencies not present at runtime.
-dontwarn io.ktor.**

# OkHttp and Okio (underlying HTTP transport for Ktor).
# OkHttp ships its own rules but we add -dontwarn as safety net for older AGP versions.
-dontwarn okhttp3.**
-dontwarn okio.**
