Some checks are pending
Backend CI / test (push) Waiting to run
Backend CI / build (push) Blocked by required conditions
Deploy Mnemo Cards / Deploy Backend (push) Waiting to run
Deploy Mnemo Cards / Deploy Web App (push) Blocked by required conditions
Deploy Mnemo Cards / Final Verification (push) Blocked by required conditions
16 lines
No EOL
509 B
Dart
16 lines
No EOL
509 B
Dart
import 'package:injectable/injectable.dart';
|
|
import '../../database/database.dart';
|
|
import '../../main.dart' as backend_main;
|
|
import '../purchase/yoo_money.dart';
|
|
|
|
@module
|
|
abstract class AppModule {
|
|
@singleton
|
|
AppDatabase get database => backend_main.database;
|
|
|
|
@singleton
|
|
YooMoneyHandler get yooMoneyHandler => YooMoneyHandler(
|
|
shopId: const String.fromEnvironment('YOOKASSA_SHOP_ID', defaultValue: ''),
|
|
secretKey: const String.fromEnvironment('YOOKASSA_SECRET_KEY', defaultValue: ''),
|
|
);
|
|
} |