analytics-kotlin icon indicating copy to clipboard operation
analytics-kotlin copied to clipboard

Kotlin Multiplatform support

Open scottkruse opened this issue 4 years ago • 13 comments
trafficstars

Is your feature request related to a problem? Please describe. Is there plans for enabling Kotlin for multiplatform support? One current pain point is standardizing data flow coming from client apps. Looking at the source it looks well equipped for a Multiplatform future (pure Kotlin, coroutines, kotlinx serialization, etc)

Describe the solution you'd like Id like to share higher level architecture for data schemas / middlewares between clients.

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context Add any other context or screenshots about the feature request here.

scottkruse avatar Sep 28 '21 19:09 scottkruse

Hi! @scottkruse. We do not have any current plans to support kotlin multi-platform in the near future. This could change if we get more customer demand for this feature.

In order to understand the scope more, which platforms are you planning to work with?

prayansh avatar Sep 29 '21 17:09 prayansh

Android, Native, JS targets

scottkruse avatar Sep 30 '21 19:09 scottkruse

I would also like to have this, but mainly for:

Android & Native(iOS)

Reedyuk avatar Jan 01 '22 18:01 Reedyuk

@scottkruse - I have created a KMP wrapper which should work for you. https://github.com/MyUNiDAYS/Segmenkt

Reedyuk avatar Feb 16 '22 19:02 Reedyuk

If this could support Android and Native (iOS) also, so mainly the KMM approach, that would be fantastic!

eirikvaa avatar Jan 20 '23 15:01 eirikvaa

+1 for this.

Shabinder avatar Apr 28 '23 03:04 Shabinder

+1 here too, we'd be interested in this.

PepeGuerrero avatar Aug 08 '23 15:08 PepeGuerrero

Joining in on this - Android and iOS would be great. Actually got here while looking for such library for segment

yosi199 avatar Oct 29 '23 09:10 yosi199

@yosi199 - I am using the library I posted above, it's in production.

Reedyuk avatar Oct 29 '23 09:10 Reedyuk

@yosi199 - I am using the library I posted above, it's in production.

Cant get it to compile. getting this:

Could not determine the dependencies of task ':analytica:transformAppleMainCInteropDependenciesMetadataForIde'.

Could not resolve all dependencies for configuration ':analytica:appleMainResolvableDependenciesMetadata'. The project declares repositories, effectively ignoring the repositories you have declared in the settings. You can figure out how project repositories are declared by configuring your build to fail on project repositories. See https://docs.gradle.org/8.0/userguide/declaring_repositories.html#sub:fail_build_on_project_repositories for details. Could not find com.myunidays:segmenkt:0.0.9. Required by: project :analytica

Possible solution:

  • Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html

yosi199 avatar Oct 29 '23 09:10 yosi199

@yosi199 - I am using the library I posted above, it's in production.

Cant get it to compile. getting this:

Could not determine the dependencies of task ':analytica:transformAppleMainCInteropDependenciesMetadataForIde'.

Could not resolve all dependencies for configuration ':analytica:appleMainResolvableDependenciesMetadata'.

The project declares repositories, effectively ignoring the repositories you have declared in the settings.

You can figure out how project repositories are declared by configuring your build to fail on project repositories.

See https://docs.gradle.org/8.0/userguide/declaring_repositories.html#sub:fail_build_on_project_repositories for details.

Could not find com.myunidays:segmenkt:0.0.9.

 Required by:

     project :analytica

Possible solution:

  • Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html

Can you post this on the project and not here as it's an unofficial library

Reedyuk avatar Oct 29 '23 10:10 Reedyuk

We have created a custom wrapper similar to https://github.com/MyUNiDAYS/Segmenkt and we integrate segment on the android and iOS side only

carlos-prezzee avatar May 07 '24 22:05 carlos-prezzee