ksvg icon indicating copy to clipboard operation
ksvg copied to clipboard

[Question] How i can install?

Open jershell opened this issue 4 years ago • 10 comments

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.

jershell avatar May 19 '20 19:05 jershell

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.

nwillc avatar May 21 '20 22:05 nwillc

For JS

jershell avatar May 21 '20 22:05 jershell

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.

nwillc avatar May 22 '20 22:05 nwillc

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.

redbassett avatar Jul 08 '20 17:07 redbassett

I did the code, but never found someone to help with the JS packaging.

nwillc avatar Jul 09 '20 00:07 nwillc

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…

redbassett avatar Jul 09 '20 02:07 redbassett

@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.

redbassett avatar Jul 21 '20 04:07 redbassett

Please see #10

harryjph avatar Jan 12 '22 18:01 harryjph

As noted in #8 , that PR is now outdated by subsequent changes in #10. Releases should now work for Kotlin/JS.

redbassett avatar Jan 14 '22 19:01 redbassett

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!

aSemy avatar Jul 08 '22 06:07 aSemy