android-go-mobile/README.md

33 lines
1.1 KiB
Markdown
Raw Normal View History

2018-07-17 14:32:04 +00:00
# Android, Go, and gomobile
2018-07-14 14:19:51 +00:00
2018-07-17 14:32:04 +00:00
This image was built for use with Drone CI but can be used with any docker setup you want.
Versions are:
- 2021.03
- Go 1.15.10
- Android API 29
- 2018.07
- Go 1.10.3
- Android API 28
## Install and Use
### Version 2018.07
2018-07-17 14:32:04 +00:00
This image includes:
- Android SDK, NDK, tools, and API version 28 at `/usr/local/android-sdk`
- Go lang 1.10.3 at `/usr/local/go`
- $GOPATH set to `/workspace/go`
- A go directory with an initialized gomobile installed at `/go`
This image comes with gomobile checkedout and preinitialized (time and space consuming). In order to install this predone work from the image into your Drone CI workspace (a docker volume mounted to `/workspace`), you will want your first pipeline step to be:
go-link:
2018-07-14 14:19:51 +00:00
image: openpriv/android-go-mobile
commands:
2018-07-17 14:32:04 +00:00
- cp -as /go /workspace/go
2018-07-14 14:19:51 +00:00
2018-07-17 14:32:04 +00:00
`cp -as` recreates the directory structure from /go in /workspace/go but for each file, it just creates a symlink. This is the quickest and most efficent way to mirror the work supplied with the image into your workspace.