adb-ready 0.1.2 → 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.
@@ -43,6 +43,9 @@
43
43
  "targets": {
44
44
  "$ref": "#/$defs/targets"
45
45
  },
46
+ "app": {
47
+ "$ref": "#/$defs/app"
48
+ },
46
49
  "dev": {
47
50
  "$ref": "#/$defs/dev"
48
51
  }
@@ -107,6 +110,9 @@
107
110
  }
108
111
  }
109
112
  },
113
+ "app": {
114
+ "$ref": "#/$defs/app"
115
+ },
110
116
  "dev": {
111
117
  "$ref": "#/$defs/dev"
112
118
  }
@@ -144,12 +150,28 @@
144
150
  }
145
151
  }
146
152
  },
153
+ "app": {
154
+ "type": "object",
155
+ "additionalProperties": false,
156
+ "properties": {
157
+ "android": {
158
+ "type": "object",
159
+ "additionalProperties": false,
160
+ "properties": {
161
+ "package": {
162
+ "type": "string",
163
+ "pattern": "^[A-Za-z][A-Za-z0-9_]*(?:\\.[A-Za-z0-9_]+)+$"
164
+ }
165
+ }
166
+ }
167
+ }
168
+ },
147
169
  "dev": {
148
170
  "type": "object",
149
171
  "additionalProperties": false,
150
172
  "properties": {
151
173
  "preset": {
152
- "enum": ["custom", "expo", "gradle", "react-native"]
174
+ "enum": ["capacitor", "custom", "expo", "flutter", "gradle", "react-native"]
153
175
  },
154
176
  "packageManager": {
155
177
  "enum": ["bun", "npm", "pnpm", "yarn"]
@@ -184,6 +206,7 @@
184
206
  "logs": { "type": "boolean" },
185
207
  "cleanupPorts": { "type": "boolean" },
186
208
  "watch": { "type": "boolean" },
209
+ "ready": { "$ref": "#/$defs/ready" },
187
210
  "recovery": {
188
211
  "type": "object",
189
212
  "additionalProperties": false,
@@ -241,6 +264,97 @@
241
264
  "type": "array",
242
265
  "items": { "$ref": "#/$defs/hook" }
243
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
+ },
244
358
  "hook": {
245
359
  "type": "object",
246
360
  "additionalProperties": false,