Skip to content

Commit b7b5e13

Browse files
committed
Allow configure() on an idle SDK instance
The assert was inverted: it rejected the empty (idle) status its message says is required, so any debug app calling configure() on a fresh instance crashed at startup. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QZi3f27gbhPqhG91ngbdVe
1 parent 4205092 commit b7b5e13

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎lib/src/codelessly.dart‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ class Codelessly {
332332
initErrorLogger();
333333

334334
assert(
335-
status is! CEmpty,
335+
status is CEmpty || status is CConfigured,
336336
'The SDK cannot be configured if it is not idle. '
337337
'Consider calling [Codelessly.dispose] before reconfiguring.',
338338
);

0 commit comments

Comments
 (0)