Skip to content

Commit 10e39b5

Browse files
committed
+Comment out two problematic asserts
1 parent 16e410b commit 10e39b5

3 files changed

Lines changed: 16 additions & 18 deletions

File tree

README.md

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
1-
<a href="https://www.buymeacoffee.com/dev_cetera" target="_blank"><img align="right" src="https://cdn.buymeacoffee.com/buttons/default-orange.png" height="48"></a>
2-
<a href="https://discord.gg/gEQ8y2nfyX" target="_blank"><img align="right" src="https://raw.githubusercontent.com/dev-cetera/.github/refs/heads/main/assets/icons/discord_icon/discord_icon.svg" height="48"></a>
1+
[![banner](https://github.com/dev-cetera/df_di/blob/v0.15.6/doc/assets/banner.png?raw=true)](https://github.com/dev-cetera)
32

4-
Dart & Flutter Packages by dev-cetera.com & contributors.
5-
6-
[![sponsor](https://img.shields.io/badge/sponsor-grey?logo=github-sponsors)](https://github.com/sponsors/dev-cetera)
7-
[![patreon](https://img.shields.io/badge/patreon-grey?logo=patreon)](https://www.patreon.com/c/RobertMollentze)
83
[![pub](https://img.shields.io/pub/v/df_di.svg)](https://pub.dev/packages/df_di)
9-
[![tag](https://img.shields.io/badge/tag-v0.15.6-purple?logo=github)](https://github.com/dev-cetera/df_di/tree/v0.15.6)
10-
[![license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/dev-cetera/df_di/main/LICENSE)
4+
[![tag](https://img.shields.io/badge/Tag-v0.15.6-purple?logo=github)](https://github.com/dev-cetera/df_di/tree/v0.15.6)
5+
[![buymeacoffee](https://img.shields.io/badge/Buy%20Me%20A%20Coffee-FFDD00?logo=buy-me-a-coffee&logoColor=black)](https://www.buymeacoffee.com/dev_cetera)
6+
[![sponsor](https://img.shields.io/badge/Sponsor-grey?logo=github-sponsors&logoColor=pink)](https://github.com/sponsors/dev-cetera)
7+
[![patreon](https://img.shields.io/badge/Patreon-grey?logo=patreon)](https://www.patreon.com/t0mb3rr)
8+
[![discord](https://img.shields.io/badge/Discord-5865F2?logo=discord&logoColor=white)](https://discord.gg/gEQ8y2nfyX)
9+
[![instagram](https://img.shields.io/badge/Instagram-E4405F?logo=instagram&logoColor=white)](https://www.instagram.com/dev_cetera/)
10+
[![license](https://img.shields.io/badge/License-MIT-blue.svg)](https://raw.githubusercontent.com/dev-cetera/df_di/main/LICENSE)
1111

1212
---
1313

14-
[![banner](https://github.com/dev-cetera/df_safer_dart/blob/v0.15.6/doc/assets/banner.png?raw=true)](https://github.com/dev-cetera)
15-
1614
<!-- BEGIN _README_CONTENT -->
1715

1816
`df_di` is a lightweight, powerful "dependency injection" package for Dart and Flutter that makes your app modular, testable, and easy to maintain. It stops the confusion of finding and tracking services, like APIs or databases. With `df_di`, you store these services in "containers" that make them easy to access whenever you need them.
@@ -199,7 +197,7 @@ DI.session.unregisterAll();
199197

200198
---
201199

202-
☝️ Please refer to the [API reference](https://pub.dev/documentation/df_di/) for more information.
200+
🔍 For more information, refer to the [API reference](https://pub.dev/documentation/df_di/).
203201

204202
---
205203

@@ -209,7 +207,6 @@ This is an open-source project, and we warmly welcome contributions from everyon
209207

210208
### ☝️ Ways you can contribute
211209

212-
- **Buy me a coffee:** If you'd like to support the project financially, consider [buying me a coffee](https://www.buymeacoffee.com/dev_cetera). Your support helps cover the costs of development and keeps the project growing.
213210
- **Find us on Discord:** Feel free to ask questions and engage with the community here: https://discord.gg/gEQ8y2nfyX.
214211
- **Share your ideas:** Every perspective matters, and your ideas can spark innovation.
215212
- **Help others:** Engage with other users by offering advice, solutions, or troubleshooting assistance.
@@ -226,6 +223,7 @@ If you're enjoying this package and find it valuable, consider showing your appr
226223

227224
<a href="https://www.buymeacoffee.com/dev_cetera" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/default-orange.png" height="40"></a>
228225

229-
## 🧑‍⚖️ License
226+
## LICENSE
230227

231228
This project is released under the [MIT License](https://raw.githubusercontent.com/dev-cetera/df_di/main/LICENSE). See [LICENSE](https://raw.githubusercontent.com/dev-cetera/df_di/main/LICENSE) for more information.
229+

lib/src/services/service.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ mixin ServiceMixin {
8484
if (state.didDispose()) {
8585
return Sync.result(prev);
8686
}
87-
assert(!state.didPause());
87+
//assert(!state.didPause());
8888
if (state.didPause()) {
8989
return Sync.result(prev);
9090
}
@@ -112,7 +112,7 @@ mixin ServiceMixin {
112112
if (state.didDispose()) {
113113
return Sync.result(prev);
114114
}
115-
assert(!state.didResume());
115+
//assert(!state.didResume());
116116
if (state.didResume()) {
117117
return Sync.result(prev);
118118
}

pubspec.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ name: df_di
1515
homepage: https://dev-cetera.com/
1616
repository: https://github.com/robmllze/df_di
1717
funding:
18+
- https://www.patreon.com/c/t0mb3rr
19+
- https://github.com/sponsors/t0mb3rr
1820
- https://www.buymeacoffee.com/dev_cetera
19-
- https://www.patreon.com/c/RobertMollentze
20-
- https://github.com/sponsors/robmllze
2121
description: A pragmatic dependency injection (DI) system, coupled with service classes for seamless state management in Dart.
22-
version: 0.15.6
22+
version: 0.15.7
2323
topics:
2424
- get-it
2525
- dependency-injection

0 commit comments

Comments
 (0)