galex
02/09/2024, 4:59 AMJan Holešovský
02/09/2024, 7:13 AMgalex
02/09/2024, 7:17 AMhfhbd
02/09/2024, 7:24 AMgalex
02/09/2024, 7:26 AMgalex
02/09/2024, 7:26 AMJan Holešovský
02/09/2024, 7:26 AMgalex
02/09/2024, 7:27 AMPablichjenkov
02/09/2024, 1:06 PMJan Holešovský
02/09/2024, 1:42 PMPablichjenkov
02/09/2024, 1:54 PMgalex
02/09/2024, 5:21 PMPablichjenkov
02/09/2024, 7:56 PMdynamic
not static
. The fact of importing
a dependency doesn't mean it will be included in the package. It just tells the build tool(Maven/Gradle) that the specific library depends on it, eg: stdlib, but it doesn't include the stdlib in your library, it just compiles and links against it. In the final build, when the application is built. Then the build-tool pulls the stdlib and resolves the bindings/links to it and bundles the final binary with only one binary copy of stdlib.
As long as all your packages are .klibs
it will do these, somebody correct me if I am wrong.
Now in your case, I think you want to generate a .framework
file for each of your modules/`spm-packages`. In that case I am not sure but I think you are right, kotlin bundles everything repeatedly for each package. But I am not 100 percent sure, hopefully someone share more details.
But in such a case I would stay in the klib
zone.galex
02/10/2024, 4:26 AM