Skip to content

Commit

Permalink
Introduce second Lokalise factory function
Browse files Browse the repository at this point in the history
Otherwise the HttpClientEngine would leak into the api classpath
and therefore needs to be an API dependency.
I don't want this so I made this internal.
  • Loading branch information
StefMa committed Sep 22, 2023
1 parent 7f571c9 commit 60a778e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/commonMain/kotlin/com/ioki/lokalise/api/LokaliseClient.kt
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,14 @@ interface LokaliseQueuedProcesses {
fun Lokalise(
token: String,
fullLoggingEnabled: Boolean = false,
): Lokalise = Lokalise(token, fullLoggingEnabled, null)

/**
* Creates a new [Lokalise] object.
*/
internal fun Lokalise(
token: String,
fullLoggingEnabled: Boolean = false,
httpClientEngine: HttpClientEngine? = null
): Lokalise {

Expand Down

0 comments on commit 60a778e

Please sign in to comment.