-
Notifications
You must be signed in to change notification settings - Fork 52
Description
Thanks for making this public.
I am using golang on iOS and Android and when you compile for each mobile it generates the bindings to the Java and iOS code.
I think I can also generate the code for the bridge also.
This would mean you just code app in golang, run the code generator and it will gen all the bridging code all the way through Java / objective c and JavaScript.
@influx6 FYI.
If it's something you interested in let me know. I can certainly understand if it's not as golang is not every emancipated coders cup of tea.
Also there is a 2nd way to do all of this.
Flutter have a webview plugin for both iOS and Android. You can bridge the webview to flutter ( dart Lang ) and from dart bridge to Java / objective c and bridge to golang. It's one more step but the plugin architecture of flutter is much easier to use because it's agnostic to Android or iOS from the programmers point of view.
Either way the codegen for both architectures are easy so we can do both. For ease of conversion of types across programming language you can use a json string or a protobuf type. I would use a json string just to get it working and can easily change get it to also use a protobuf.
Feedback would be very nice either way as I am not a mobile programmer