(fn: any)
| 17 | // rpc export will sniff and resolve before returning |
| 18 | // the result when its ready. |
| 19 | export const wrapJavaPerform = (fn: any): Promise<any> => { |
| 20 | return new Promise((resolve, reject) => { |
| 21 | Java.perform(() => { |
| 22 | try { |
| 23 | resolve(fn()); |
| 24 | } catch (e) { |
| 25 | reject(e); |
| 26 | } |
| 27 | }); |
| 28 | }); |
| 29 | }; |
| 30 | |
| 31 | export const getApplicationContext = (): any => { |
| 32 | const ActivityThread = Java.use("android.app.ActivityThread"); |
no outgoing calls
no test coverage detected
searching dependent graphs…