mirror of
https://github.com/go-i2p/gomobile-java.git
synced 2025-07-13 20:41:37 -04:00
all: update docs to remove code.google.com
Fixes golang/go#9259. Change-Id: I4768ce0a2abc56100e6616bacdf6aad196639b10 Reviewed-on: https://go-review.googlesource.com/1370 Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
This commit is contained in:
@ -167,7 +167,7 @@ func onLowMemory(activity *C.ANativeActivity) {
|
||||
}
|
||||
|
||||
// JavaInit is an initialization function registered by the package
|
||||
// code.google.com/p/go.mobile/bind/java. It gives the Java language
|
||||
// golang.org/x/mobile/bind/java. It gives the Java language
|
||||
// bindings access to the JNI *JavaVM object.
|
||||
var JavaInit func(javaVM uintptr)
|
||||
|
||||
|
@ -13,7 +13,7 @@ Shared Library
|
||||
|
||||
A Go program can be compiled for Android as a shared library. JNI
|
||||
methods can be implemented via cgo, or generated automatically with
|
||||
gobind: http://godoc.org/code.google.com/p/go.mobile/cmd/gobind
|
||||
gobind: http://golang.org/x/mobile/cmd/gobind
|
||||
|
||||
The library must include a package main and a main function that does
|
||||
not return until the process exits. Libraries can be cross-compiled
|
||||
@ -22,7 +22,7 @@ using the Android NDK and the Go tool:
|
||||
GOOS=android GOARCH=arm GOARM=7 CGO_ENABLED=1 \
|
||||
go build -ldflags="-shared" .
|
||||
|
||||
See code.google.com/p/go.mobile/example/libhello for an example of
|
||||
See http://golang.org/x/mobile/example/libhello for an example of
|
||||
calling into a Go shared library from a Java Android app.
|
||||
|
||||
Native App
|
||||
@ -40,7 +40,7 @@ on iOS, a single UIWindow. Touch events will be accessible via this
|
||||
package. When Android support is out of preview, all APIs supported by
|
||||
the Android NDK will be exposed via a Go package.
|
||||
|
||||
See code.google.com/p/go.mobile/example/apphello for an example app.
|
||||
See http://golang.org/x/mobile/example/sprite for an example app.
|
||||
|
||||
Lifecycle in Native Apps
|
||||
|
||||
|
@ -24,7 +24,7 @@ Go. Start with a Go package:
|
||||
|
||||
Generate a Go binding package and Java stubs:
|
||||
|
||||
go install code.google.com/p/go.mobile/cmd/gobind
|
||||
go install golang.org/x/mobile/cmd/gobind
|
||||
gobind -lang=go github.com/crawshaw/hi > hi/go_hi/go_hi.go
|
||||
gobind -lang=java github.com/crawshaw/hi > hi/Hi.java
|
||||
|
||||
@ -165,7 +165,7 @@ Java, do not store an instance of Seq.Object inside it.
|
||||
|
||||
Further reading
|
||||
|
||||
Examples can be found in http://code.google.com/p/go.mobile/example.
|
||||
Examples can be found in http://golang.org/x/mobile/example.
|
||||
|
||||
Design doc: http://golang.org/s/gobind
|
||||
*/
|
||||
|
@ -6,7 +6,7 @@
|
||||
set -e
|
||||
|
||||
if [ ! -f make.bash ]; then
|
||||
echo 'make.bash must be run from $GOPATH/src/code.google.com/p/go.mobile/example/basic'
|
||||
echo 'make.bash must be run from $GOPATH/src/golang.org/x/mobile/example/basic'
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
@ -21,7 +21,7 @@ contains the function Hello:
|
||||
Java language bindings are generated for this package using the gobind
|
||||
tool. There is a user guide for gobind at
|
||||
|
||||
http://godoc.org/code.google.com/p/go.mobile/cmd/gobind
|
||||
http://golang.org/x/mobile/cmd/gobind
|
||||
|
||||
The generated source has been included in the distribution. If you
|
||||
modify the exported interface of package hi, you have to run gobind
|
||||
|
@ -1,5 +1,5 @@
|
||||
// Package go_hi is an autogenerated binder stub for package hi.
|
||||
// gobind -lang=go code.google.com/p/go.mobile/example/libhello/hi
|
||||
// gobind -lang=go golang.org/x/mobile/example/libhello/hi
|
||||
//
|
||||
// File is generated by gobind. Do not edit.
|
||||
package go_hi
|
||||
|
@ -6,7 +6,7 @@
|
||||
set -e
|
||||
|
||||
if [ ! -f make.bash ]; then
|
||||
echo 'make.bash must be run from $GOPATH/src/code.google.com/p/go.mobile/example/libhello'
|
||||
echo 'make.bash must be run from $GOPATH/src/golang.org/x/mobile/example/libhello'
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
@ -8,7 +8,7 @@
|
||||
set -e
|
||||
|
||||
if [ ! -f make.bash ]; then
|
||||
echo 'make.bash must be run from $GOPATH/src/code.google.com/p/go.mobile/example/libhellojni'
|
||||
echo 'make.bash must be run from $GOPATH/src/golang.org/x/mobile/example/libhellojni'
|
||||
exit 1
|
||||
fi
|
||||
if [ -z "$ANDROID_APP" ]; then
|
||||
|
@ -7,7 +7,7 @@
|
||||
// A tree of nodes is drawn by a rendering Engine, provided by another
|
||||
// package. The OS-independent Go version based on the image package is:
|
||||
//
|
||||
// code.google.com/p/go.mobile/sprite/portable
|
||||
// golang.org/x/mobile/sprite/portable
|
||||
//
|
||||
// An Engine draws a screen starting at a root Node. The tree is walked
|
||||
// depth-first, with affine transformations applied at each level.
|
||||
|
Reference in New Issue
Block a user