Skip to content
This repository was archived by the owner on Dec 3, 2024. It is now read-only.
This repository was archived by the owner on Dec 3, 2024. It is now read-only.

Go support for android #46

Closed
Closed

Activity

  1. Nutomic commented on Jun 21, 2014

    @Nutomic
    Contributor

    Ah great!

    Any idea where to look for releases? (once they're up)

  2. jpjp commented on Jun 21, 2014

    @jpjp
    Author

    No idea yet, sorry!

  3. Nutomic commented on Jun 21, 2014

    @Nutomic
    Contributor

    Alright, just comment if you find out something new ;)

  4. ferongr commented on Jun 30, 2014

    @ferongr

    Since the document mentions the 1.4 cycle, it probably means it will be in the 1.4 stable release of Go. Judging for releace cadence until now, that will be around the end of 2014. Note that the document mentions the NDK bindings regarding graphic APIs so I'm not sure if Syncthing's use case is applicable here.

  5. Nutomic commented on Jun 30, 2014

    @Nutomic
    Contributor

    Well one thing that we can definitely use is fixed DNS resolving. Currently, we have to hardcode IPs for announce and statistics servers.

    Edit: Note to self: This could make it possible to run syncthing via NDK (calling main() directly), and thus might fix various problems with the current way of executing syncthing via shell, where the binary is left running after the app has been killed.

  6. Nutomic commented on Sep 22, 2014

    @Nutomic
    Contributor

    @c1432666 It doesn't say anything about Android support, and seems to be pretty big, so not sure if @calmh wants to use that.

  7. Nutomic commented on Oct 8, 2014

    @Nutomic
    Contributor

    Okay the Go builder supports this now, using cgo and Android NDK

    issue link

  8. Nutomic commented on Dec 11, 2014

    @Nutomic
    Contributor

    Go 1.4 is out.

    However, all the Android examples I've seen use makefiles, not gradle, and I don't know how this works together.

    In the mean time, using Go 1.4 with the current build setup should already improve things.

  9. AudriusButkevicius commented on Dec 11, 2014

    @AudriusButkevicius
    Member

    I wonder if they fixed the DNS issue.

  10. Nutomic commented on Dec 11, 2014

    @Nutomic
    Contributor

    @AudriusButkevicius The issue is closed as fixed ;)

  11. AudriusButkevicius commented on Dec 11, 2014

    @AudriusButkevicius
    Member

    It's closed because it got moved: golang/go#8877

  12. Nutomic commented on Dec 11, 2014

    @Nutomic
    Contributor

    Ah I misread that. But it says DNS works with cgo, so that should be fine for us, right?

  13. AudriusButkevicius commented on Dec 11, 2014

    @AudriusButkevicius
    Member

    It all depends how you compile. We are trying to avoid cgo, and as far as I understand you also used a go compiler so far?

  14. calmh commented on Dec 12, 2014

    @calmh
    Member

    We do have working cgo for many of the builds currently (using gonative). We could probably get it working for Android as well, in a slightly more painful way by using the android SDK's compiler etc. It just needs to be set up once in the Dockerfile and we should be good to go.

    (Of course, knowing how the SDK works, what the compiler is, and having an Android device to test with makes all of that easier, so it's not something I'm going to start pulling on immediately. But I would like it to happen.)

  15. Nutomic commented on Dec 13, 2014

    @Nutomic
    Contributor

    I've never worked with the NDK myself, let alone Docker. So I'll probably just wait for some kind of guide for now.

    The current build script is here.

  16. AudriusButkevicius commented on Dec 20, 2014

    @AudriusButkevicius
    Member

    So it seems that Android 5 has /etc/resolv.conf

  17. Nutomic commented on Dec 20, 2014

    @Nutomic
    Contributor

    Nope:

    # ls /etc/res*                                                                   
    /etc/res*: No such file or directory
    
  18. AudriusButkevicius commented on Dec 20, 2014

    @AudriusButkevicius
    Member

    Ok my phone is probably like a can of worms full of hacks... that's why...

  19. Nutomic commented on May 18, 2015

    @Nutomic
    Contributor

    Closing this, #57 should be all we need.

  20. locked and limited conversation to collaborators on Nov 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions