Delete examples/pgp and fix other examples.
This commit is contained in:
@@ -132,14 +132,13 @@ import (
|
||||
var theJVM *C.JavaVM
|
||||
|
||||
func SetJVM() {
|
||||
h := app.PlatformHandle()
|
||||
theJVM = (*C.JavaVM)(unsafe.Pointer(h.JVM))
|
||||
theJVM = (*C.JavaVM)(unsafe.Pointer(app.JavaVM()))
|
||||
dex := MustAsset("java/classes.dex")
|
||||
RunInJVM(func(env *C.JNIEnv) {
|
||||
labchan <- "Set up JVM"
|
||||
C.SetupJVM(
|
||||
env,
|
||||
(C.jobject)(h.Context),
|
||||
(C.jobject)(app.AppContext()),
|
||||
unsafe.Pointer(&dex[0]),
|
||||
C.int(len(dex)),
|
||||
)
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// +build !android
|
||||
|
||||
package main
|
||||
|
||||
func SetJVM() {
|
||||
|
||||
Reference in New Issue
Block a user