()
| 1251 | const isAndroid = !!(App && (App as any).android !== undefined); |
| 1252 | if (isAndroid) { |
| 1253 | const isReady = () => { |
| 1254 | try { |
| 1255 | const a: any = (App as any).android; |
| 1256 | const act = a && (a.foregroundActivity || a.startActivity); |
| 1257 | return !!act; |
| 1258 | } catch { |
| 1259 | return false; |
| 1260 | } |
| 1261 | }; |
| 1262 | const waitFor = async (pred: () => boolean, ms = 6000, step = 60) => { |
| 1263 | const start = Date.now(); |
| 1264 | while (Date.now() - start < ms) { |
no outgoing calls
no test coverage detected