Skip to content

Commit b220f50

Browse files
committed
refactor(gemini-client): update naming and return type
Changed framework base name to "GeminiClient" and updated the return type of the gemini function to return a Gemini instance using Koin for dependency injection. This improves consistency and type safety in the API.
1 parent 4377cfb commit b220f50

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

gemini-client/gemini-client-darwin/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ kotlin {
1313
).forEach { macosTarget ->
1414
macosTarget.binaries.framework {
1515
export(projects.geminiClient.geminiClientCore)
16-
baseName = "geminiClientDarwin"
16+
baseName = "GeminiClient"
1717
isStatic = true
1818
}
1919
}

gemini-client/gemini-client-darwin/src/appleMain/kotlin/com/tddworks/gemini/api/DarwinGemini.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@ object DarwinGemini {
2323
fun gemini(
2424
apiKey: () -> String = { "CONFIG_API_KEY" },
2525
baseUrl: () -> String = { Gemini.BASE_URL },
26-
) = initGemini(GeminiConfig(apiKey, baseUrl))
26+
): Gemini = initGemini(GeminiConfig(apiKey, baseUrl)).koin.get<Gemini>()
2727
}

0 commit comments

Comments
 (0)