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

data in client.ts should be language agnostic #22

Closed
ligi opened this issue Dec 14, 2018 · 2 comments
Closed

data in client.ts should be language agnostic #22

ligi opened this issue Dec 14, 2018 · 2 comments

Comments

@ligi
Copy link

ligi commented Dec 14, 2018

currently this tightly couples to typescript. I want to use it e.g. for native android - using ts would be a mistake there. So it would be great if the data defined in client.ts could live e.g. in a json - ideally in a separate repository.

@simon-jentzsch
Copy link
Contributor

I'm not sure, if I understand you correctly, since I'm not sure what you mean with data?
this client compiles typescript to simple javascript. So during runtime all data are just json-objects.
SO as long as you are running javascript, this should work fine.
If you want to run it on native android, there will be the option to also use the c-version, which will publish very soon. This implementation is written completly in c and should also compile to a native library useable in android (and will be much faster ;-) and smaller ).

@ligi
Copy link
Author

ligi commented Feb 16, 2019

nice!
I see b8f67ae is basically already doing what I wanted - moving the server configuration from typescript to json - so closing this issue.
Perhaps this json could even live outside this repository so it can be shared between different implementations easily (ts, c, kotlin)

@ligi ligi closed this as completed Feb 16, 2019
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

2 participants