touchlab / KaMPKit

KaMP Kit by Touchlab. A collection of code & tools designed to get your mobile team started quickly w/Kotlin Multiplatform
https://touchlab.co/
Apache License 2.0
2.18k stars 197 forks source link

help help help! #16 #296

Closed aplha98 closed 1 year ago

aplha98 commented 1 year ago

using https://github.com/touchlab/KaMPKit this sample from touch lab ./gradlew podPublishReleaseXCFramework The size of the pod is 30mb and 74.5 for debugging, and our project is 3x KaMPKit this is a huge size, we are hosting the kmm pod on git repo, and the ios pull that repo using coco pods , it is so slow both debug and release pos artifact should exceed 2mb please help

russhwolf commented 1 year ago

Can you describe your setup in a bit more detail? Is the issue that you're hosting binaries in github, and they're too big? If so, you might want to take a look at KMMBridge as an alternative. Or are you worried about the size on-device or when downloading from the store? In that case, you should measure that size directly rather than worrying about the framework size in particular because some unused things will get stripped during the build process.

aplha98 commented 1 year ago

thanks @russhwolf , my setup like this,

  1. a repo for the KMM + Android code
  2. a repo for KMM binaries (shared/build/cocoapods/publish/release/*)
  3. a repo for the ios code (UI), consume 2nd repo

any change on 1st repo required a push with 74.5MB to 2nd push then download with 74.5MB in 3rd repo on my colleague

do you think this is an issue of KMM team, they should limit the binaries to less then 3MB

russhwolf commented 1 year ago

Git is generally a bad place to store binaries. I recommend looking at KMMBridge which can publish artifacts to other places such as maven repositories, S3, or Artifactory. Our default setup uses a github maven repository.

In any event, this is outside the scope of KaMPKit which is meant as a starter sample for trying out architecture, but doesn't deal with publishing.

aplha98 commented 1 year ago

@russhwolf may Allah blees you , we can close this issue