2
0
mirror of synced 2025-02-23 14:58:12 +00:00
mobile/misc/androidstudio
Elias Naur 37c5126484 misc/androidstudio/src/main/groovy/org/golang/mobile: update gobind path
Gobind now outputs Java sources to the java/ subdirectory. Update the
gradle plugin to match. Only projects using reverse bindings are
affected.

Change-Id: Id7f893d3c67a9ab63336c4e031c9196a0b6dad2c
Reviewed-on: https://go-review.googlesource.com/99775
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
2018-03-16 06:59:25 +00:00
..

gobindPlugin invokes gomobile bind command on the specified package.

Usage

build.gradle:

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

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

TODO

  • Find the stale aar file (how?)