ipfs / kubo

An IPFS implementation in Go
https://docs.ipfs.tech/how-to/command-line-quick-start/
Other
16k stars 3k forks source link

gomobile building for Android #2816

Open n8fr8 opened 8 years ago

n8fr8 commented 8 years ago

I was able to build ipfs using the latest go 1.6.2 and gomobile tools, to create both an APK and an AAR library file. Yay!

The one issue is that it didn't like the fact the package was named "main" since that is a bit of a reserved word. Any chance that could be changed to something like main-ipfs?

whyrusleeping commented 8 years ago

Packages in go must be named main in order for a binary to be created

n8fr8 commented 8 years ago

Right, so with Android we aren't creating a binary of that sort, so we'll have to do something else.