adb-ready 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -171,7 +171,7 @@
171
171
  "additionalProperties": false,
172
172
  "properties": {
173
173
  "preset": {
174
- "enum": ["custom", "expo", "gradle", "react-native"]
174
+ "enum": ["capacitor", "custom", "expo", "flutter", "gradle", "react-native"]
175
175
  },
176
176
  "packageManager": {
177
177
  "enum": ["bun", "npm", "pnpm", "yarn"]
@@ -206,6 +206,7 @@
206
206
  "logs": { "type": "boolean" },
207
207
  "cleanupPorts": { "type": "boolean" },
208
208
  "watch": { "type": "boolean" },
209
+ "ready": { "$ref": "#/$defs/ready" },
209
210
  "recovery": {
210
211
  "type": "object",
211
212
  "additionalProperties": false,
@@ -263,6 +264,97 @@
263
264
  "type": "array",
264
265
  "items": { "$ref": "#/$defs/hook" }
265
266
  },
267
+ "ready": {
268
+ "type": "object",
269
+ "additionalProperties": false,
270
+ "required": ["all"],
271
+ "properties": {
272
+ "timeoutMs": { "type": "integer", "minimum": 1 },
273
+ "pollIntervalMs": { "type": "integer", "minimum": 1 },
274
+ "all": {
275
+ "type": "array",
276
+ "items": { "$ref": "#/$defs/readinessAssertion" }
277
+ }
278
+ }
279
+ },
280
+ "readinessAssertion": {
281
+ "oneOf": [
282
+ {
283
+ "type": "object",
284
+ "additionalProperties": false,
285
+ "required": ["kind"],
286
+ "properties": { "kind": { "enum": ["boot", "unlocked"] } }
287
+ },
288
+ {
289
+ "type": "object",
290
+ "additionalProperties": false,
291
+ "required": ["kind", "package"],
292
+ "properties": {
293
+ "kind": { "enum": ["foreground", "process"] },
294
+ "package": {
295
+ "type": "string",
296
+ "pattern": "^[A-Za-z][A-Za-z0-9_]*(?:\\.[A-Za-z0-9_]+)+$"
297
+ }
298
+ }
299
+ },
300
+ {
301
+ "type": "object",
302
+ "additionalProperties": false,
303
+ "required": ["kind", "value"],
304
+ "properties": {
305
+ "kind": { "const": "activity" },
306
+ "value": { "type": "string", "minLength": 1 }
307
+ }
308
+ },
309
+ {
310
+ "type": "object",
311
+ "additionalProperties": false,
312
+ "required": ["kind", "port"],
313
+ "properties": {
314
+ "kind": { "const": "host-port" },
315
+ "host": { "type": "string", "minLength": 1 },
316
+ "port": { "type": "integer", "minimum": 1, "maximum": 65535 }
317
+ }
318
+ },
319
+ {
320
+ "type": "object",
321
+ "additionalProperties": false,
322
+ "required": ["kind", "url"],
323
+ "properties": {
324
+ "kind": { "const": "http" },
325
+ "url": { "type": "string", "pattern": "^https?://" },
326
+ "status": {
327
+ "type": "array",
328
+ "minItems": 1,
329
+ "items": { "type": "integer", "minimum": 100, "maximum": 599 }
330
+ }
331
+ }
332
+ },
333
+ {
334
+ "type": "object",
335
+ "additionalProperties": false,
336
+ "required": ["kind", "contains"],
337
+ "properties": {
338
+ "kind": { "const": "log" },
339
+ "contains": { "type": "string", "minLength": 1, "maxLength": 256 },
340
+ "absent": { "type": "boolean" }
341
+ }
342
+ },
343
+ {
344
+ "type": "object",
345
+ "additionalProperties": false,
346
+ "required": ["kind", "selector"],
347
+ "properties": {
348
+ "kind": { "const": "ui" },
349
+ "selector": {
350
+ "type": "string",
351
+ "pattern": "^(?:desc|id|package|text)=.{1,256}$"
352
+ },
353
+ "state": { "enum": ["visible", "gone"] }
354
+ }
355
+ }
356
+ ]
357
+ },
266
358
  "hook": {
267
359
  "type": "object",
268
360
  "additionalProperties": false,