Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: third_party/go/src/golang.org/x/mobile/example/libhellojni/main.go

Issue 1275153002: Remove third_party/golang.org/x/mobile as it is no longer used with Go 1.5. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Remove golang.org/x/mobile Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2014 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
4
5 /*
6 This example program compiles to a gojni.so shared library, that can
7 be loaded from an android application. Build it by configuring a cross
8 compiler (see go.mobile/README) and then running:
9
10 ANDROID_APP=/path/to/Myapp/app ./make.bash
11
12 This program expects app/Go.java to be included in the Android
13 project, along with a Java class named Demo defining
14
15 public static native void hello();
16
17 calling hello prints "Hello, world!" to logcat.
18
19 This is a very early example program that does not represent the
20 intended development model for Go on Android. A language binding
21 generator will follow, as will gradle build system integration.
22 The result will be no make.bash, and no need to write C.
23 */
24 package main
25
26 import "golang.org/x/mobile/app"
27
28 func main() {
29 app.Run(app.Callbacks{})
30 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698