2015-07-22 16:56:39 -04:00
|
|
|
gobindPlugin invokes gomobile bind command on the specified package.
|
|
|
|
|
|
|
|
# Usage
|
|
|
|
|
|
|
|
build.gradle:
|
|
|
|
<pre>
|
|
|
|
plugins {
|
2015-07-30 13:41:20 -04:00
|
|
|
id "org.golang.mobile.bind" version "0.2.2"
|
2015-07-22 16:56:39 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
gobind {
|
|
|
|
// package to bind
|
|
|
|
pkg "github.com/someone/somepackage"
|
|
|
|
|
|
|
|
// GOPATH
|
|
|
|
GOPATH "/home/gopher"
|
|
|
|
|
2015-07-30 13:41:20 -04:00
|
|
|
// Absolute path to the gomobile binary
|
|
|
|
GOMOBILE "/mypath/bin/gomobile"
|
|
|
|
|
|
|
|
// Absolute path to the go binary
|
|
|
|
GO "/usr/local/go/bin/go"
|
2015-07-22 16:56:39 -04:00
|
|
|
}
|
|
|
|
</pre>
|
|
|
|
|
|
|
|
For details:
|
|
|
|
https://plugins.gradle.org/plugin/org.golang.mobile.bind
|
|
|
|
|
|
|
|
# TODO
|
|
|
|
|
|
|
|
* Find the stale aar file (how?)
|