android-go-mobile/README.md

34 lines
837 B
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
2021-03-23 01:32:05 +00:00
### Version 2021.03
2018-07-17 14:32:04 +00:00
This image includes:
2021-03-23 01:32:05 +00:00
- Android SDK, NDK, tools, and API version 29 and Buildtools 30.0.2 at `/usr/local/android-sdk`
2018-07-17 14:32:04 +00:00
- Go lang 1.10.3 at `/usr/local/go`
2021-03-23 01:32:05 +00:00
- $GOPATH set to `/gomobile`
- GOPATH includes gomobile cmd tools and source
2018-07-17 14:32:04 +00:00
2021-03-23 01:32:05 +00:00
This container has its own GOPATH with only gomobile in it, so to use, you'll need to re-get your go dependancies and then run `gomobile init`. The following example shows a Drone CI step using this image
2018-07-17 14:32:04 +00:00
2021-03-23 01:32:05 +00:00
gomobile-build:
image: openpriv/android-go-mobile:2021.03
2018-07-14 14:19:51 +00:00
commands:
2021-03-23 01:32:05 +00:00
- go mod download
- gomobile init
- make
2018-07-14 14:19:51 +00:00