fix(wyatt_cd): make getIt initializable
Some checks failed
continuous-integration/drone/pr Build is failing

This commit is contained in:
Hugo Pointcheval 2024-02-18 23:20:30 +01:00
parent 1492745e54
commit 995e122c1b
Signed by: hugo
GPG Key ID: 3AAC487E131E00BC

View File

@ -14,10 +14,23 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
import 'package:get_it/get_it.dart';
import 'package:mason_logger/mason_logger.dart';
import 'package:wyatt_continuous_deployment/src/core/injection/injectable.dart';
export 'domain/domain.dart';
abstract class WyattContinuousDeployment {
/// The logger used by the package
static Logger logger = Logger();
/// The service locator used by the package
static GetIt getIt = GetIt.instance;
/// Configure the dependencies
/// This method should be called before WyattContinuousDeployment.getIt
/// to ensure that all dependencies are registered
static Future<void> configureDependencies() async {
await Injectable.configureDependencies();
}
}