google-gemini / generative-ai-swift

The official Swift library for the Google Gemini API

Home Page:https://ai.google.dev/gemini-api/docs/get-started/tutorial?lang=swift

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GenerativeAISwift with ObjC export

jesusdmedinac opened this issue · comments

Description of the feature request:

Adapt the package to expose objc support.

What problem are you trying to solve with this feature?

I'm trying to create a KMP (Kotlin Multiplatform) library that adapt both Android and iOS implementations. Nevertheless, pure Swift packages are not yet supported on KMP projects.

Any other information you'd like to share?

I would like to know if there is another way to use this amazing lib on KMP.

@jesusdmedinac Thanks for the request. Like many future-looking Swift libraries, Objective-C support is not currently a priority. We're taking advantage of modern Swift features for much of the API, that don't trivially wrap to Obj-C.

If Objective-C were to be added, the approach would likely be a separate wrapper library, instead of internal @objc annotations.

It seems the most future-proof strategy for KMP would be pure Swift-interop instead of relying on the rapidly deprecating Objective C.

This is not a currently prioritized feature request, but will continue to evaluate.

Please indicate interest with a thumbs-up vote on the issue.

Marking this issue as stale since it has been open for 14 days with no activity. This issue will be closed if no further activity occurs.

This issue was closed because it has been inactive for 28 days. Please post a new issue if you need further assistance. Thanks!