Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Modernized Compile-Time Dependency Injection for Dart & Flutter
# Compile-Time Dependency Injection for Dart & Flutter

A compile-time, Dagger-inspired dependency injection (DI) framework for Dart and
Flutter.

This repository contains a modernized port of the original [inject.dart](https://github.com/google/inject.dart/) package
from Google, updated to support modern Dart, sound null safety, the latest
analyzer, and modern build runner systems.
This repository contains a port of the original [inject.dart](https://github.com/google/inject.dart/) package
from Google, updated to support Dart 3, sound null safety, the latest
analyzer, and modern build tooling.

## Packages

Expand Down
3 changes: 3 additions & 0 deletions package/inject_compile/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 0.9.1
- Add example/example.md file

## 0.9.0

- Initial version.
10 changes: 8 additions & 2 deletions package/inject_compile/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

This package provides the annotations used to declare a compile-time dependency
injection (DI) graph. It is a modern, sound null-safe port of the original
`inject.dart` from Google.
[inject.dart](https://github.com/google/inject.dart/) from Google.

Since this library generates code at compile time, it does not rely on runtime
reflection (such as `dart:mirrors`). This ensures maximum performance and
reflection or any kind of dynamic lookup. This ensures maximum performance and
minimal build sizes for Flutter and standalone Dart applications.

## Getting Started
Expand Down Expand Up @@ -64,3 +64,9 @@ Differentiates multiple bindings of the same type by associating a symbol

* To run the generator, refer to the `inject_compile_generator` package page.
* For complete samples, see the workspace examples.

## Acknowledgement

Please note that all of the original code in [inject.dart](https://github.com/google/inject.dart/)
which these packages is heavily based on is Copyright by Google and originally licenced under a
MIT Licence which has been kept. Special thanks to Matan Lurey who was the primary original author.
11 changes: 11 additions & 0 deletions package/inject_compile/example/example.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
## Examples

Explore the `example/` directory on Github for sample projects:

* [`example/coffee`](https://github.com/dropbear-software/inject_compile/tree/main/example/coffee): A basic command-line coffee
shop simulation (the classic Dagger example).
* [`example/train`](https://github.com/dropbear-software/inject_compile/tree/main/example/train): An example demonstrating multi-module
composition and asynchronous injection (`@asynchronous`).
* [`example/clean_architecture`](https://github.com/dropbear-software/inject_compile/tree/main/example/clean_architecture): A complete
command-line notes application demonstrating clean architecture (Domain,
Data, and Presentation layers) integrated with compile-time DI.
10 changes: 8 additions & 2 deletions package/inject_compile/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
name: inject_compile
description: Compile-time dependency injection for Dart
version: 0.9.0
description: Compile-Time Dependency Injection for Dart & Flutter
version: 0.9.1
homepage: https://github.com/dropbear-software/inject_compile/tree/main/package/inject_compile
repository: https://github.com/dropbear-software/inject_compile/tree/main/package/inject_compile
issue_tracker: https://github.com/dropbear-software/inject_compile/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Ainject_compile
topics:
- dependency-injection
- di
- dependency-management
- dependency-injector
- build-runner

environment:
sdk: ^3.12.2
Expand Down
3 changes: 3 additions & 0 deletions package/inject_compile_generator/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 0.9.1
- Add example/example.md file

## 0.9.0

- Initial version.
6 changes: 6 additions & 0 deletions package/inject_compile_generator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,9 @@ runtime exceptions.

* To learn how to define your object graph, visit the `inject_compile` annotations library.
* For complete samples, see the workspace examples.

## Acknowledgement

Please note that all of the original code in [inject.dart](https://github.com/google/inject.dart/)
which these packages is heavily based on is Copyright by Google and originally licenced under a
MIT Licence which has been kept. Special thanks to Matan Lurey who was the primary original author.
11 changes: 11 additions & 0 deletions package/inject_compile_generator/example/example.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
## Examples

Explore the `example/` directory on Github for sample projects:

* [`example/coffee`](https://github.com/dropbear-software/inject_compile/tree/main/example/coffee): A basic command-line coffee
shop simulation (the classic Dagger example).
* [`example/train`](https://github.com/dropbear-software/inject_compile/tree/main/example/train): An example demonstrating multi-module
composition and asynchronous injection (`@asynchronous`).
* [`example/clean_architecture`](https://github.com/dropbear-software/inject_compile/tree/main/example/clean_architecture): A complete
command-line notes application demonstrating clean architecture (Domain,
Data, and Presentation layers) integrated with compile-time DI.
10 changes: 8 additions & 2 deletions package/inject_compile_generator/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
name: inject_compile_generator
description: Dev-time dependency for package:inject.
version: 0.9.0
description: The dev dependency for package:inject_compile that enables compile time dependency injection.
version: 0.9.1
homepage: https://github.com/dropbear-software/inject_compile/tree/main/package/inject_compile_generator
repository: https://github.com/dropbear-software/inject_compile/tree/main/package/inject_compile_generator
issue_tracker: https://github.com/dropbear-software/inject_compile/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Ainject_compile_generator
topics:
- dependency-injection
- di
- dependency-management
- dependency-injector
- build-runner

environment:
sdk: ^3.12.2
Expand Down
Loading