ksvg
ksvg copied to clipboard
[Question] How i can install?
I want to try your solution, but I don't know how to add to my project. Do you can to add info to the README.
For a JVM or JS project?
On May 19, 2020, at 3:24 PM, jershell [email protected] wrote:
I want to try your solution, but I don't know how to add to my project. Do you can to add info to the README.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.
For JS
Sorry - I'm really not familiar with JavaScript packaging. The person that motivated the JS port of ksvg didn't explain how they used it :-(
On Thu, May 21, 2020 at 6:43 PM jershell [email protected] wrote:
For JS
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.
Who did the JS port? I've been trying to use this library in a Kotlin/JS project but I can't seem to get it set up correctly either.
I did the code, but never found someone to help with the JS packaging.
Ah. I don't know packaging for libs, but I've been talking to some folks who do, so I may look into seeing if I can improve that at all. No promises…
@jershell, check out the instructions I proposed adding to the README in #8. That is what I am using to get KSVG working in Kotlin/JS at the moment.
Please see #10
As noted in #8 , that PR is now outdated by subsequent changes in #10. Releases should now work for Kotlin/JS.
JitPack doesn't support Kotlin Multiplatform https://github.com/jitpack/jitpack.io/issues/3853
A fairly quick solution for sharing this library is to publish it to GitHub packages. This has a drawback however: users must create an access token. https://github.community/t/download-from-github-package-registry-without-authentication/14407/145
Alternatively, you can publish to a local directory within the project and commit that directory to the repo. Users can then add the 'raw' GitHub link to that directory as a Maven repo.
Publishing to Maven Central is best for users - but it's a little more involved. The Gradle + KMP plugin support for this is poor, but as this is a single project I think it should be easy.
There are other solutions, like hosting your own Maven repo, or a paid solution - but I don't have experience with those.
I'd recommend doing it properly with Maven Central, but 'publish to local directory' is a quick and easy win. I can help out with either!