textileio / go-textile

[DEPRECATED] Textile is a set of tools and infrastructure for building composable apps and services on the IPFS network
https://textile.io
MIT License
357 stars 43 forks source link

Mobile GUI ? #143

Closed ghost closed 6 years ago

ghost commented 6 years ago

Pretty nice example of ipfs usage.

where is the Mobile GUI ?

I think that you can speed up alot of the code using WASM and protobufs

sanderpick commented 6 years ago

Hey @gedw99, cheers! https://github.com/textileio/textile-mobile is our React Native UI which relies on gomobile-generated iOS + Android frameworks from this repo

ghost commented 6 years ago

thanks @sanderpick

found it.. I had a lot of trouble getting react native and golang talking. i ended up getting flutter and golang talking using a json rpc. Its much less messy compared to the bridge i found. Highly subjective opinion of course with this stuff. For example, i hate JS.

am now messing around with doing the exact same json rpc bridge for asci-electron.

Does the react bridge work well for you ? Can you upgrade the client code without having to go past the Apple app store gates of hell ?

sanderpick commented 6 years ago

Apologies for the delay here @gedw99. I hadn't heard of Flutter. Will check it out.

For our more or less POC desktop app, we're using asci-electron and just vanilla JS. Would be nice to share some code from our mobile app (react native), but hasn't been a priority so far.

To do the live client code updates I believe you'd need to use some third party SDK (or write your own that swaps in a script to the JS runtime on iOS / Android). I know MS App Center provides something like this.

ghost commented 6 years ago

I also use asci- electron for desktop.

It works well too.

But for really high fidelity GUI with all the corner cases that web presents Flutter is awesome.

https://github.com/google/flutter-desktop-embedding

Desktop does not work for windows but will soon. For Mac and Linux it works.

For mobile is works well.

I write all other code in golang and have a jsonrpc between the flutter and golang layers. So in the golang I put everything like pub sub, logic, database ( like boltdb or badgerdb ). So everything works for offline scenarios :)

Then sync with server over grpc

On Fri, 22 Jun 2018, 18:57 Sander Pick, notifications@github.com wrote:

Apologies for the delay here @gedw99 https://github.com/gedw99. I hadn't heard of Flutter. Will check it out.

For our more or less POC desktop app, we're using asci-electron and just vanilla JS. Would be nice to share some code from our mobile app (react native), but hasn't been a priority so far.

To do the live client code updates I believe you'd need to use some third party SDK (or write your own that swaps in a script to the JS runtime on iOS / Android). I know MS App Center provides something like this.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/textileio/textile-go/issues/143#issuecomment-399510683, or mute the thread https://github.com/notifications/unsubscribe-auth/ATuCwgvFLmtXVjVcwgosz26INZ7Ihns3ks5t_SISgaJpZM4Upxy_ .

sanderpick commented 6 years ago

Sounds pretty slick! Gonna close this but please ping if you need some testers on your project :)