This is done by moving app.Context to internal/mobileinit, introducing mobileinit.SetCurrentContext and, making bind/java depend on it. TODO: check gomobile bind's proguard rule - context lookup was implemented through reflection on android.app.AppGlobals class. Change-Id: Ieb6ad503eeef8c2c1c5836a21c667938c5a701a2 Reviewed-on: https://go-review.googlesource.com/12279 Reviewed-by: David Crawshaw <crawshaw@golang.org>
10 lines
404 B
Go
10 lines
404 B
Go
// Copyright 2015 The Go Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
// Package mobileinit contains common initialization logic for mobile platforms
|
|
// that is relevant to both all-Go apps and gobind-based apps.
|
|
//
|
|
// Long-term, some code in this package should consider moving into Go stdlib.
|
|
package mobileinit
|