2
0
mirror of synced 2025-02-24 15:28:28 +00:00
Hana Kim 78f32148b9 misc/androidstudio: update plugin version to 0.2.11
https://plugins.gradle.org/plugin/org.golang.mobile.bind/0.2.11

Built/published with

$ docker run --rm -u root -v "$PWD":/home/gradle/project \
     -w /home/gradle/project gradle:latest gradle publishPlugins

Gradle version 4.5.1

Change-Id: I431101a2b9000147430632ec24e76e8216c66935
Reviewed-on: https://go-review.googlesource.com/95455
Reviewed-by: Elias Naur <elias.naur@gmail.com>
2018-02-20 15:45:06 +00:00

41 lines
872 B
Markdown

gobindPlugin invokes gomobile bind command on the specified package.
# Usage
build.gradle:
<pre>
plugins {
id "org.golang.mobile.bind" version "0.2.11"
}
gobind {
// Package to bind. Separate multiple packages with spaces.
pkg="github.com/someone/somepackage"
// GOPATH
GOPATH="/home/gopher"
// Optional list of architectures. Defaults to all supported architectures.
GOARCH="arm amd64"
// Absolute path to the gomobile binary. Optional.
GOMOBILE="/mypath/bin/gomobile"
// Absolute path to the gobind binary. Optional.
GOBIND="/mypath/bin/gobind"
// Absolute path to the go binary. Optional.
GO="/usr/local/go/bin/go"
// Pass extra parameters to command line. Optional.
GOMOBILEFLAGS="-javapkg my.java.package"
}
</pre>
For details:
https://plugins.gradle.org/plugin/org.golang.mobile.bind
# TODO
* Find the stale aar file (how?)