diff --git a/benchmark_di/pubspec.lock b/benchmark_di/pubspec.lock index e50d513..f29068a 100644 --- a/benchmark_di/pubspec.lock +++ b/benchmark_di/pubspec.lock @@ -47,7 +47,7 @@ packages: path: "../cherrypick" relative: true source: path - version: "3.0.0-dev.10" + version: "3.0.0-dev.12" collection: dependency: transitive description: diff --git a/cherrypick/example/cycle_detection_example.dart b/cherrypick/example/cycle_detection_example.dart index ee6c566..8f669da 100644 --- a/cherrypick/example/cycle_detection_example.dart +++ b/cherrypick/example/cycle_detection_example.dart @@ -141,6 +141,8 @@ void main() { // Example 2: Without circular dependency detection (dangerous!) print('2. Same code without circular dependency detection:'); try { + CherryPick.disableGlobalCrossScopeCycleDetection(); + CherryPick.disableGlobalCycleDetection(); final scope = CherryPick.openRootScope(); // НЕ включаем обнаружение циклических зависимостей diff --git a/cherrypick/example/disposable_example.dart b/cherrypick/example/disposable_example.dart index 722e339..94ffa86 100644 --- a/cherrypick/example/disposable_example.dart +++ b/cherrypick/example/disposable_example.dart @@ -14,6 +14,14 @@ class MyService implements Disposable { void doSomething() => print('Doing something...'); } +/// Пример модуля CherryPick +class ModuleImpl extends Module { + @override + void builder(Scope scope) { + bind().toProvide(() => MyService()).singleton(); + } +} + void main() { final scope = CherryPick.openRootScope(); @@ -29,12 +37,4 @@ void main() { // Освобождаем все ресурсы scope.dispose(); print('Service wasDisposed = ${service.wasDisposed}'); // true -} - -/// Пример модуля CherryPick -class ModuleImpl extends Module { - @override - void builder(Scope scope) { - bind().toProvide(() => MyService()).singleton(); - } -} +} \ No newline at end of file diff --git a/examples/client_app/pubspec.lock b/examples/client_app/pubspec.lock index 8e3fb00..b0ce412 100644 --- a/examples/client_app/pubspec.lock +++ b/examples/client_app/pubspec.lock @@ -127,28 +127,28 @@ packages: path: "../../cherrypick" relative: true source: path - version: "3.0.0-dev.9" + version: "3.0.0-dev.12" cherrypick_annotations: dependency: "direct main" description: path: "../../cherrypick_annotations" relative: true source: path - version: "1.1.2-dev.0" + version: "1.1.2-dev.2" cherrypick_flutter: dependency: "direct main" description: path: "../../cherrypick_flutter" relative: true source: path - version: "1.1.3-dev.9" + version: "1.1.3-dev.12" cherrypick_generator: dependency: "direct dev" description: path: "../../cherrypick_generator" relative: true source: path - version: "2.0.0-dev.0" + version: "2.0.0-dev.2" clock: dependency: transitive description: diff --git a/examples/postly/pubspec.lock b/examples/postly/pubspec.lock index 8e1a4c9..129a158 100644 --- a/examples/postly/pubspec.lock +++ b/examples/postly/pubspec.lock @@ -175,21 +175,21 @@ packages: path: "../../cherrypick" relative: true source: path - version: "3.0.0-dev.9" + version: "3.0.0-dev.12" cherrypick_annotations: dependency: "direct main" description: path: "../../cherrypick_annotations" relative: true source: path - version: "1.1.2-dev.0" + version: "1.1.2-dev.2" cherrypick_generator: dependency: "direct main" description: path: "../../cherrypick_generator" relative: true source: path - version: "2.0.0-dev.0" + version: "2.0.0-dev.2" cli_launcher: dependency: transitive description: @@ -864,7 +864,7 @@ packages: path: "../../talker_cherrypick_logger" relative: true source: path - version: "1.1.0-dev.3" + version: "1.1.0-dev.7" talker_dio_logger: dependency: "direct main" description: