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

Request: standalone example project / tutorial / documentation #1512

Open
mattylase opened this issue Feb 7, 2025 · 4 comments
Open

Request: standalone example project / tutorial / documentation #1512

mattylase opened this issue Feb 7, 2025 · 4 comments

Comments

@mattylase
Copy link

mattylase commented Feb 7, 2025

I know this may not be an actionable issue, but wanted to share all the same.

I've spent most of my day trying to get a project with zipline running, to no avail. In the scenarios where I could get the build running, serveDevelopmentZipline never actually seemed to sever anything, either through curl or integrated into projects.

  • I tried adapting the code samples in the README.md, but couldn't really understand how to adapt them to the shape of a brand new KMP project/library
  • Tried searching a lot of this - search results are almost all filled with youtube videos or slides from presentations on this topic
  • Followed the only written tutorial I could find on the subject, and failed
  • Assumed I made a typo, so just tried cloning & running their code directly, didn't work either
  • Assume everything else is wrong, clone this entire repo so I can just run the samples
  • Encounter an ExceptionInInitializationError pointing to libquickjs.dylib
  • The link on TROUBLESHOOTING.md mentioning this issue is dead and didn't take me anywhere

I think this is a really promising project, but I wasn't able to get to "Hello, World" in a full day. While I'm certainly not a Zipline or KMP expert, I think it would be really beneficial to this project & dev community to create an example repo separate from the main zipline project with a clear set of end-to-end instructions, or even a known working sample app that wasn't reliant on this repo's project/gradle configuration

@yushaye
Copy link

yushaye commented Feb 10, 2025

I'm experiencing similar difficulties. I've also spent a lot of time trying to get Zipline running in a new KMP project, but unfortunately, I haven't been successful either.

Would it be possible to provide some guidance or additional resources to help us get started? Any assistance would be greatly appreciated!

@JakeWharton
Copy link
Collaborator

There are two external samples we manage in the Redwood repo which use Zipline:

Of course, you have to contend with that repo which is also fairly large. Additionally, because we embed the compiled Zipline application in assets for automated testing the hot reload is broken (cashapp/redwood#1820).

I'm not aware of any other samples or anything.

@yushaye
Copy link

yushaye commented Feb 16, 2025

There are two external samples we manage in the Redwood repo which use Zipline:

Of course, you have to contend with that repo which is also fairly large. Additionally, because we embed the compiled Zipline application in assets for automated testing the hot reload is broken (cashapp/redwood#1820).

I'm not aware of any other samples or anything.

Thank you for your response! You've cleared up my confusion. I want to implement a JavaScript-based plugin system leveraging a JavaScript engine, which can import JavaScript files to add extra functions. It seems that Zipline isn't entirely designed for this purpose.

@JakeWharton
Copy link
Collaborator

No, it is not. But you could use the underlying QuickJs type for that. It is the raw JS engine.

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

No branches or pull requests

3 participants