mobile/misc/androidstudio
Hana Kim 683b305bdb misc/androidstudio: version up gradle plugin to 0.2.9
Change-Id: Icedef49c575937fca885e050e569e513bb7880f7
Reviewed-on: https://go-review.googlesource.com/49258
Reviewed-by: Elias Naur <elias.naur@gmail.com>
2017-07-17 18:12:14 +00:00
..
src misc/androidstudio: check on javaCompile to avoid exception 2017-07-11 14:22:22 +00:00
.gitignore misc/androidstudio: source code for gomobile bind gradle plugin. 2015-07-22 22:16:26 +00:00
README.md misc/androidstudio: version up gradle plugin to 0.2.9 2017-07-17 18:12:14 +00:00
build.gradle misc/androidstudio: version up gradle plugin to 0.2.9 2017-07-17 18:12:14 +00:00
settings.gradle misc/androidstudio: source code for gomobile bind gradle plugin. 2015-07-22 22:16:26 +00:00

README.md

gobindPlugin invokes gomobile bind command on the specified package.

Usage

build.gradle:

plugins {
  id "org.golang.mobile.bind" version "0.2.9"
}

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"
}

For details: https://plugins.gradle.org/plugin/org.golang.mobile.bind

TODO

  • Find the stale aar file (how?)