Skip to content

Common backend #1

@ghost

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions