Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] How i can install? #7

Open
jershell opened this issue May 19, 2020 · 10 comments
Open

[Question] How i can install? #7

jershell opened this issue May 19, 2020 · 10 comments

Comments

@jershell
Copy link

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.

@nwillc
Copy link
Owner

nwillc commented May 21, 2020 via email

@jershell
Copy link
Author

For JS

@nwillc
Copy link
Owner

nwillc commented May 22, 2020 via email

@redbassett
Copy link

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.

@nwillc
Copy link
Owner

nwillc commented Jul 9, 2020

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

@redbassett
Copy link

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
Copy link

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

@harryjph
Copy link
Contributor

Please see #10

@redbassett
Copy link

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

@aSemy
Copy link

aSemy commented Jul 8, 2022

JitPack doesn't support Kotlin Multiplatform jitpack/jitpack.io#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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants