Delete examples/pgp and fix other examples.

This commit is contained in:
gmp
2020-06-16 22:43:18 -04:00
parent 0b6929c522
commit 267e2e1c33
11 changed files with 9 additions and 690 deletions
+2 -3
View File
@@ -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)),
)
+2
View File
@@ -1,3 +1,5 @@
// +build !android
package main
func SetJVM() {