You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 3, 2024. It is now read-only.
Repository navigation
This repository was archived by the owner on Dec 3, 2024. It is now read-only.
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.
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.
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.)
Activity
Nutomic commentedon Jun 21, 2014
Ah great!
Any idea where to look for releases? (once they're up)
jpjp commentedon Jun 21, 2014
No idea yet, sorry!
Nutomic commentedon Jun 21, 2014
Alright, just comment if you find out something new ;)
ferongr commentedon Jun 30, 2014
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.
Nutomic commentedon Jun 30, 2014
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.
k4vej commentedon Sep 22, 2014
Seem this: https://github.com/miekg/dns
Nutomic commentedon Sep 22, 2014
@c1432666 It doesn't say anything about Android support, and seems to be pretty big, so not sure if @calmh wants to use that.
Nutomic commentedon Oct 1, 2014
Go 1.4 code freeze is September 1, 2014; release is December 1, 2014
Nutomic commentedon Oct 8, 2014
Okay the Go builder supports this now, using cgo and Android NDK
issue link
Nutomic commentedon Dec 11, 2014
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.
AudriusButkevicius commentedon Dec 11, 2014
I wonder if they fixed the DNS issue.
Nutomic commentedon Dec 11, 2014
@AudriusButkevicius The issue is closed as fixed ;)
AudriusButkevicius commentedon Dec 11, 2014
It's closed because it got moved: golang/go#8877
Nutomic commentedon Dec 11, 2014
Ah I misread that. But it says DNS works with cgo, so that should be fine for us, right?
AudriusButkevicius commentedon Dec 11, 2014
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?
calmh commentedon Dec 12, 2014
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.)
Nutomic commentedon Dec 13, 2014
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.
AudriusButkevicius commentedon Dec 20, 2014
So it seems that Android 5 has /etc/resolv.conf
Nutomic commentedon Dec 20, 2014
Nope:
AudriusButkevicius commentedon Dec 20, 2014
Ok my phone is probably like a can of worms full of hacks... that's why...
Nutomic commentedon May 18, 2015
Closing this, #57 should be all we need.