mirror of
https://github.com/netbirdio/gomobile-tvos-fork.git
synced 2026-05-22 18:43:29 -07:00
mobile/bind: only generate callable jmethodID declarations
Change-Id: I11b901be718d730f50fdc3877cbc2cf173aa6c66 Reviewed-on: https://go-review.googlesource.com/20658 Reviewed-by: David Crawshaw <crawshaw@golang.org>
This commit is contained in:
+2
-2
@@ -892,8 +892,8 @@ func (g *javaGen) genC() error {
|
||||
for _, iface := range g.interfaces {
|
||||
g.Printf("jclass proxy_class_%s_%s;\n", g.pkgPrefix, iface.obj.Name())
|
||||
g.Printf("jmethodID proxy_class_%s_%s_cons;\n", g.pkgPrefix, iface.obj.Name())
|
||||
for i := 0; i < iface.t.NumMethods(); i++ {
|
||||
g.Printf("static jmethodID mid_%s_%s;\n", iface.obj.Name(), iface.t.Method(i).Name())
|
||||
for _, m := range iface.summary.callable {
|
||||
g.Printf("static jmethodID mid_%s_%s;\n", iface.obj.Name(), m.Name())
|
||||
}
|
||||
}
|
||||
for _, s := range g.structs {
|
||||
|
||||
Reference in New Issue
Block a user