Update
This commit is contained in:
parent
a441093713
commit
c83ba0dd7e
|
|
@ -7,10 +7,10 @@ import com.whl.quickjs.wrapper.QuickJSContext;
|
|||
|
||||
public class Method {
|
||||
|
||||
private final QuickJSContext context;
|
||||
private QuickJSContext ctx;
|
||||
|
||||
public Method(QuickJSContext context) {
|
||||
this.context = context;
|
||||
public Method(QuickJSContext ctx) {
|
||||
this.ctx = ctx;
|
||||
}
|
||||
|
||||
@Keep
|
||||
|
|
@ -18,14 +18,4 @@ public class Method {
|
|||
public void showToast(String msg) {
|
||||
Utils.notify(msg);
|
||||
}
|
||||
|
||||
@Keep
|
||||
public static class test {
|
||||
|
||||
@Keep
|
||||
@JSMethod
|
||||
public int add(int a, int b) {
|
||||
return a + b;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -1 +1 @@
|
|||
8ebd953e794760d656dc0e0cbe9f8d65
|
||||
ae1463f4584754ef50ab902920ccb7da
|
||||
|
|
|
|||
Loading…
Reference in New Issue