CAKE-279 | canceled changes in AndroidManifest.xml and MainActivity.java; added static constants to wyre_service.dart; moved WyreException class into own file; imported WyreService by di.dart

This commit is contained in:
OleksandrSobol
2021-03-23 20:57:20 +02:00
parent 08efc52f71
commit 1cbbc71201
6 changed files with 29 additions and 53 deletions
+4 -6
View File
@@ -12,8 +12,8 @@ class WyreViewModel = WyreViewModelBase with _$WyreViewModel;
abstract class WyreViewModelBase with Store {
WyreViewModelBase(this.ordersSource, this.ordersStore,
{@required this.walletId, @required this.address, @required this.type})
: wyreService = WyreService(walletType: type, walletAddress: address);
{@required this.walletId, @required this.address, @required this.type,
@required this.wyreService});
Future<String> get wyreUrl => wyreService.getWyreUrl();
@@ -26,7 +26,7 @@ abstract class WyreViewModelBase with Store {
final WalletType type;
final String address;
WyreService wyreService;
final WyreService wyreService;
Future<void> saveOrder(String orderId) async {
try {
@@ -39,6 +39,4 @@ abstract class WyreViewModelBase with Store {
print(e.toString());
}
}
}
}