growthbook / growthbook-kotlin

GrowthBook Kotlin SDK
https://www.growthbook.io
MIT License
24 stars 20 forks source link

Kotlin Multiplatform Project Library Support #88

Closed jacksonej closed 5 days ago

jacksonej commented 6 months ago

I can see that this project is based on KMP. However, when I try to add this library inside Kotlin Multiplatform shared code, I am getting an error like this:

Caused by: org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all files for configuration ':shared:iosX64CompilationDependenciesMetadata'

Is there any way we can make this work in a KMP project? Currently, my project supports Android and iOS

Bohdan-Kim commented 6 months ago

Dear Jackson,

This project was really started as KMP project initially. Then Swift SDK appeared. Do you have ability to use Kotlin SDK for Android target and Swift SDK for iOS target in your KMP project? If you can add iOS support in Kotlin SDK create your pull request, please.

We will work on adding iOS distribution target too, but it seems like some troubles appeared between 1.1.1 and 1.1.13 versions of Kotlin SDK that lead to the absence of iOS distribution target.

vazarkevych commented 5 days ago

Hi, @jacksonej. We added functionality and provide pull request for it.