From 4a2856cf1455ae034ee5670cf5dd8df06d0bc381 Mon Sep 17 00:00:00 2001 From: ethicnology Date: Mon, 16 Dec 2024 12:59:59 -0500 Subject: [PATCH] chore: remove maintainance --- maintainance/style.dart | 488 ------------------ maintainance/widgetbook/app.dart | 246 --------- maintainance/widgetbook/home/page.dart | 0 .../ztest/__test_utils/path_provider.dart | 20 - maintainance/ztest/__test_utils/wallets.dart | 15 - maintainance/ztest/_ui/app_bar_test.dart | 0 maintainance/ztest/auth/bloc/cubit_test.dart | 0 maintainance/ztest/auth/bloc/state_test.dart | 0 maintainance/ztest/auth/page_test.dart | 0 maintainance/ztest/auth/ui/keypad_test.dart | 0 .../ztest/create/bloc/cubit_test.dart | 0 .../ztest/create/bloc/state_test.dart | 0 maintainance/ztest/create/page_test.dart | 0 maintainance/ztest/create/ui/card_test.dart | 0 maintainance/ztest/home/bloc/cubit_test.dart | 0 maintainance/ztest/home/bloc/state_test.dart | 0 maintainance/ztest/home/page_test.dart | 0 .../ztest/home/ui/home_card_test.dart | 0 .../ztest/import/bloc/cubit_test.dart | 0 .../ztest/import/bloc/state_test.dart | 0 maintainance/ztest/import/page_test.dart | 0 maintainance/ztest/import/ui/card_test.dart | 0 maintainance/ztest/main_test.dart | 0 .../ztest/receive/bloc/cubit_test.dart | 0 .../ztest/receive/bloc/state_test.dart | 0 maintainance/ztest/receive/page_test.dart | 0 maintainance/ztest/receive/ui/card_test.dart | 0 maintainance/ztest/send/bloc/cubit_test.dart | 0 maintainance/ztest/send/bloc/state_test.dart | 0 maintainance/ztest/send/page_test.dart | 0 maintainance/ztest/send/ui/card_test.dart | 0 .../ztest/settings/bloc/cubit_test.dart | 0 .../ztest/settings/bloc/state_test.dart | 0 maintainance/ztest/settings/page_test.dart | 0 maintainance/ztest/settings/ui/card_test.dart | 0 .../ztest/transaction/bloc/cubit_test.dart | 0 .../ztest/transaction/bloc/state_test.dart | 0 maintainance/ztest/transaction/page_test.dart | 0 .../ztest/transaction/ui/card_test.dart | 0 .../ztest/wallet/bloc/cubit_test.dart | 128 ----- .../ztest/wallet/bloc/state_test.dart | 0 .../wallet_settings/bloc/cubit_test.dart | 0 .../wallet_settings/bloc/state_test.dart | 0 .../ztest/wallet_settings/page_test.dart | 0 .../ztest/wallet_settings/ui/card_test.dart | 0 45 files changed, 897 deletions(-) delete mode 100644 maintainance/style.dart delete mode 100644 maintainance/widgetbook/app.dart delete mode 100644 maintainance/widgetbook/home/page.dart delete mode 100644 maintainance/ztest/__test_utils/path_provider.dart delete mode 100644 maintainance/ztest/__test_utils/wallets.dart delete mode 100644 maintainance/ztest/_ui/app_bar_test.dart delete mode 100644 maintainance/ztest/auth/bloc/cubit_test.dart delete mode 100644 maintainance/ztest/auth/bloc/state_test.dart delete mode 100644 maintainance/ztest/auth/page_test.dart delete mode 100644 maintainance/ztest/auth/ui/keypad_test.dart delete mode 100644 maintainance/ztest/create/bloc/cubit_test.dart delete mode 100644 maintainance/ztest/create/bloc/state_test.dart delete mode 100644 maintainance/ztest/create/page_test.dart delete mode 100644 maintainance/ztest/create/ui/card_test.dart delete mode 100644 maintainance/ztest/home/bloc/cubit_test.dart delete mode 100644 maintainance/ztest/home/bloc/state_test.dart delete mode 100644 maintainance/ztest/home/page_test.dart delete mode 100644 maintainance/ztest/home/ui/home_card_test.dart delete mode 100644 maintainance/ztest/import/bloc/cubit_test.dart delete mode 100644 maintainance/ztest/import/bloc/state_test.dart delete mode 100644 maintainance/ztest/import/page_test.dart delete mode 100644 maintainance/ztest/import/ui/card_test.dart delete mode 100644 maintainance/ztest/main_test.dart delete mode 100644 maintainance/ztest/receive/bloc/cubit_test.dart delete mode 100644 maintainance/ztest/receive/bloc/state_test.dart delete mode 100644 maintainance/ztest/receive/page_test.dart delete mode 100644 maintainance/ztest/receive/ui/card_test.dart delete mode 100644 maintainance/ztest/send/bloc/cubit_test.dart delete mode 100644 maintainance/ztest/send/bloc/state_test.dart delete mode 100644 maintainance/ztest/send/page_test.dart delete mode 100644 maintainance/ztest/send/ui/card_test.dart delete mode 100644 maintainance/ztest/settings/bloc/cubit_test.dart delete mode 100644 maintainance/ztest/settings/bloc/state_test.dart delete mode 100644 maintainance/ztest/settings/page_test.dart delete mode 100644 maintainance/ztest/settings/ui/card_test.dart delete mode 100644 maintainance/ztest/transaction/bloc/cubit_test.dart delete mode 100644 maintainance/ztest/transaction/bloc/state_test.dart delete mode 100644 maintainance/ztest/transaction/page_test.dart delete mode 100644 maintainance/ztest/transaction/ui/card_test.dart delete mode 100644 maintainance/ztest/wallet/bloc/cubit_test.dart delete mode 100644 maintainance/ztest/wallet/bloc/state_test.dart delete mode 100644 maintainance/ztest/wallet_settings/bloc/cubit_test.dart delete mode 100644 maintainance/ztest/wallet_settings/bloc/state_test.dart delete mode 100644 maintainance/ztest/wallet_settings/page_test.dart delete mode 100644 maintainance/ztest/wallet_settings/ui/card_test.dart diff --git a/maintainance/style.dart b/maintainance/style.dart deleted file mode 100644 index 656c2a22..00000000 --- a/maintainance/style.dart +++ /dev/null @@ -1,488 +0,0 @@ - -// -// - -// -// - -// -// - -// -// - -// -// - -// -// - -// -// - -// -// - -// -// - -// -// - -// -// - -// -// - -// -// - -// -// - -// -// - -// -// - -// -// - -// -// - -// -// - -// -// - -// -// - -// -// - -// -// - -// -// - -// -// - -// -// - -// -// - -// -// - -// -// - -// -// - -// -// - -// -// - -// -// - -// -// - -// -// - -// -// - -// -// - -// -// - -// -// - -// -// - -// -// - -// -// - -// -// - -// -// - -// -// - -// -// - -// -// - -// -// - -// -// - -// -// - -// -// - -// -// - -// -// - -// -// - -// -// - -// -// - -// -// - -// -// - -// -// - -// -// - -// -// - -// -// - -// -// - -// -// - -// -// - -// -// - -// -// - -// -// - -// -// - -// -// - -// -// - -// -// - -// -// - -// -// - -// -// - -// -// - -// -// - -// -// - -// -// - -// -// - -// -// - -// -// - -// -// - -// -// - -// -// - -// -// - -// -// - -// -// - -// -// - -// -// - -// -// - -// -// - -// -// - -// -// - -// -// - -// -// - -// -// - -// -// - -// -// - -// -// - -// -// - -// -// -// class Buttons { -// static final fillButtonRed = OutlinedButton.styleFrom( -// padding: const EdgeInsets.symmetric(vertical: 16), -// shape: const StadiumBorder(), -// backgroundColor: _Colours.red, -// foregroundColor: _Colours.white, -// ); - -// static final fillButtonBlack = OutlinedButton.styleFrom( -// padding: const EdgeInsets.symmetric(vertical: 16, horizontal: 16), -// shape: const StadiumBorder(), -// backgroundColor: _Colours.black, -// foregroundColor: _Colours.white, -// textStyle: GoogleFonts.inter().copyWith( -// fontSize: 12, -// fontWeight: FontWeight.w600, -// letterSpacing: 2.5, -// ), -// ); - -// static final fillButtonDisabled = OutlinedButton.styleFrom( -// padding: const EdgeInsets.symmetric(vertical: 16), -// shape: const StadiumBorder( -// // side: const BorderSide(color: _Colours.red), -// // borderRadius: BorderRadius.circular(18), -// ), -// backgroundColor: _Colours.lightBlack.withOpacity(0.4), -// foregroundColor: _Colours.white, -// ); - -// static final outlinedButtonBorderRed = OutlinedButton.styleFrom( -// padding: const EdgeInsets.symmetric(vertical: 16), -// side: const BorderSide( -// color: _Colours.red, -// ), -// shape: const StadiumBorder( -// side: BorderSide( -// color: _Colours.red, -// ), -// ), -// foregroundColor: _Colours.red, -// ); - -// static final outlinedButtonBorderRed2 = OutlinedButton.styleFrom( -// elevation: 2, -// padding: const EdgeInsets.symmetric(vertical: 16, horizontal: 24), -// side: const BorderSide( -// color: _Colours.red, -// ), -// shape: const StadiumBorder( -// side: BorderSide( -// color: _Colours.red, -// ), -// ), -// foregroundColor: _Colours.red, -// backgroundColor: _Colours.white, -// ); - -// static final outlinedButtonBorderBlackTextRed = OutlinedButton.styleFrom( -// padding: const EdgeInsets.symmetric(vertical: 16), -// textStyle: GoogleFonts.inter().copyWith( -// fontSize: 16, -// fontWeight: FontWeight.w300, -// // letterSpacing: 2.5, -// ), -// side: const BorderSide(), -// shape: const StadiumBorder( -// side: BorderSide( -// width: 2, -// ), -// ), -// foregroundColor: _Colours.red, -// ); -// } -// -// - // labelLarge: GoogleFonts.inter( - // fontSize: 22, - // fontWeight: FontWeight.w200, - // color: _Colours.red, - // ), - // labelMedium: GoogleFonts.inter( - // color: _Colours.red, - // ), - // labelSmall: GoogleFonts.inter( - // fontWeight: FontWeight.w800, - // // color: _Colours.black, - // ), - // titleSmall: GoogleFonts.inter( - // color: _Colours.black, - // fontWeight: FontWeight.bold, - // fontSize: 24, - // ), - // bodyMedium: - // headlineMedium: - // displayLarge: - // ), - - // inputDecorationTheme: InputDecorationTheme( - // border: OutlineInputBorder( - // borderRadius: BorderRadius.circular(80.0), - // borderSide: const BorderSide( - // color: _Colours.blue, - // ), - // ), - // enabledBorder: OutlineInputBorder( - // borderRadius: BorderRadius.circular(80.0), - // borderSide: const BorderSide( - // color: _Colours.lightBlack, - // ), - // ), - // hintStyle: const TextStyle( - // // fontSize: 16, - // color: _Colours.lightBlack, - // ), - // filled: true, - // fillColor: _Colours.white, - // contentPadding: const EdgeInsets.only( - // bottom: 8, - // left: 24, - // ), - // focusColor: _Colours.blue, - // activeIndicatorBorder: const BorderSide( - // color: _Colours.blue, - // ), - // ), - // textSelectionTheme: const TextSelectionThemeData( - // cursorColor: _Colours.blue, - // selectionColor: _Colours.blue, - // selectionHandleColor: _Colours.blue, - // ), - // textButtonTheme: TextButtonThemeData( - // style: TextButton.styleFrom( - // foregroundColor: _Colours.blue, - // textStyle: GoogleFonts.inter( - // fontSize: 16, - // color: _Colours.blue, - // ), - // ), - // ), - // filledButtonTheme: FilledButtonThemeData( - // style: FilledButton.styleFrom( - // padding: const EdgeInsets.symmetric(vertical: 16), - // shape: const StadiumBorder(), - // backgroundColor: _Colours.red, - // foregroundColor: _Colours.white, - // ), - // ), - // outlinedButtonTheme: OutlinedButtonThemeData( - // style: OutlinedButton.styleFrom( - // elevation: 8, - // padding: const EdgeInsets.symmetric(vertical: 16), - // side: const BorderSide(color: _Colours.red), - // foregroundColor: _Colours.red, - // disabledBackgroundColor: _Colours.lightBlack.withOpacity(0.2), - // disabledForegroundColor: _Colours.white, - // ), - // ), - -// class Fonts { -// // static TextStyle _fontt() => GoogleFonts.inter( -// // height: 1.3, -// // ); - -// // static final authText = GoogleFonts.inter( -// // color: _Colours.black, -// // fontWeight: FontWeight.bold, -// // fontSize: 24, -// // ); - -// // static final circleButtonThin = GoogleFonts.inter( -// // color: _Colours.white, -// // fontWeight: FontWeight.w200, -// // fontSize: 36, -// // ); - -// // static final buttonThin = GoogleFonts.inter( -// // // color: _Colours.red, -// // fontWeight: FontWeight.w200, -// // fontSize: 22, -// // ); -// } diff --git a/maintainance/widgetbook/app.dart b/maintainance/widgetbook/app.dart deleted file mode 100644 index 8966cd60..00000000 --- a/maintainance/widgetbook/app.dart +++ /dev/null @@ -1,246 +0,0 @@ -import 'package:bb_mobile/_pkg/storage.dart'; -import 'package:bb_mobile/auth/bloc/cubit.dart'; -import 'package:bb_mobile/auth/page.dart'; -import 'package:bb_mobile/home/home_page.dart'; -import 'package:bb_mobile/locator.dart'; -import 'package:bb_mobile/settings/bloc/settings_cubit.dart'; -import 'package:flutter/material.dart'; -import 'package:flutter_bloc/flutter_bloc.dart'; -import 'package:widgetbook/widgetbook.dart'; - -void main() { - setupLocator(); - runApp( - BlocProvider.value( - value: locator(), - child: const BullBitcoinBook(), - ), - ); -} - -class BullBitcoinBook extends StatelessWidget { - const BullBitcoinBook({super.key}); - - @override - Widget build(BuildContext context) { - return Widgetbook.material( - addons: [ - CustomThemeAddon( - setting: ThemeSetting( - themes: [ - WidgetbookTheme( - name: 'Light', - data: ThemeData.light(), - ), - WidgetbookTheme( - name: 'Dark', - data: ThemeData.dark(), - ), - ], - activeTheme: WidgetbookTheme( - name: 'Light', - data: ThemeData.light(), - ), - ), - ), - TextScaleAddon( - setting: TextScaleSetting( - textScales: [ - 1.0, - 1.5, - 2.0, - ], - activeTextScale: 1.0, - ), - ), - FrameAddon( - setting: FrameSetting( - frames: [ - NoFrame(), - DefaultDeviceFrame( - setting: DeviceSetting( - devices: [ - Apple.iPhone12Mini, - ], - activeDevice: Apple.iPhone12Mini, - ), - ), - WidgetbookFrame( - setting: DeviceSetting( - devices: [ - Apple.iPhone12Mini, - ], - activeDevice: Apple.iPhone12Mini, - ), - ), - ], - activeFrame: NoFrame(), - ), - ), - ], - directories: [ - WidgetbookFolder( - name: 'Auth', - children: [ - WidgetbookComponent( - name: 'Pin Area', - useCases: [ - WidgetbookUseCase( - name: 'elevated', - builder: (context) => ElevatedButton( - onPressed: () {}, - child: const Text('Widgetbook'), - ), - ), - WidgetbookUseCase( - name: 'elevated2', - builder: (context) => Center( - child: ElevatedButton( - onPressed: () {}, - child: const Text('zzz'), - ), - ), - ), - ], - ), - WidgetbookComponent( - name: 'Keypad', - useCases: [ - WidgetbookUseCase( - name: 'active', - builder: (context) { - final authCubit = AuthCubit(storage: locator()); - - return BlocProvider.value( - value: authCubit, - child: Center( - child: Container( - height: 800, - width: 500, - // color: Colors.grey, - child: ListView( - children: const [ - AuthKeyPad(), - // Gap(100), - ], - ), - ), - ), - ); - }, - ), - WidgetbookUseCase( - name: 'disabled', - builder: (context) => Center( - child: ElevatedButton( - onPressed: () {}, - child: const Text('zzz'), - ), - ), - ), - ], - ), - ], - ), - WidgetbookFolder( - name: 'Home', - children: [ - WidgetbookComponent( - name: 'Page', - useCases: [ - WidgetbookUseCase( - name: 'default', - builder: (context) => const HomePage(), - ), - ], - ), - // WidgetbookFolder( - // name: 'page', - // children: [ - - // ], - // ), - ], - ), - const WidgetbookFolder( - name: 'Settings', - children: [ - WidgetbookComponent( - name: 'Page', - useCases: [], - ), - WidgetbookFolder( - name: 'Network', - children: [], - ), - WidgetbookFolder( - name: 'Fees', - children: [], - ), - ], - ), - const WidgetbookFolder( - name: 'New Wallet', - children: [ - WidgetbookFolder( - name: 'Menu', - children: [], - ), - WidgetbookFolder( - name: 'New Seed', - children: [], - ), - WidgetbookFolder( - name: 'Import', - children: [], - ), - WidgetbookFolder( - name: 'Recover', - children: [], - ), - WidgetbookFolder( - name: 'Select Wallet Type', - children: [], - ), - ], - ), - const WidgetbookFolder( - name: 'Wallet Settings', - children: [ - WidgetbookFolder( - name: 'x1', - children: [], - ), - ], - ), - const WidgetbookFolder( - name: 'Receive', - children: [ - WidgetbookFolder( - name: 'x1', - children: [], - ), - ], - ), - const WidgetbookFolder( - name: 'Send', - children: [ - WidgetbookFolder( - name: 'x1', - children: [], - ), - ], - ), - const WidgetbookFolder( - name: 'Transaction', - children: [ - WidgetbookFolder( - name: 'x1', - children: [], - ), - ], - ), - ], - ); - } -} diff --git a/maintainance/widgetbook/home/page.dart b/maintainance/widgetbook/home/page.dart deleted file mode 100644 index e69de29b..00000000 diff --git a/maintainance/ztest/__test_utils/path_provider.dart b/maintainance/ztest/__test_utils/path_provider.dart deleted file mode 100644 index 4ae1821a..00000000 --- a/maintainance/ztest/__test_utils/path_provider.dart +++ /dev/null @@ -1,20 +0,0 @@ -import 'package:flutter_test/flutter_test.dart'; -import 'package:path_provider_platform_interface/path_provider_platform_interface.dart'; -export 'package:path_provider_platform_interface/path_provider_platform_interface.dart'; - -class FakePathProvider extends PathProviderPlatform { - @override - Future getApplicationDocumentsPath() async { - return 'docs'; - } - - @override - Future getDownloadsPath() async { - return 'downloads'; - } - - @override - Future getTemporaryPath() async { - return 'temp'; - } -} diff --git a/maintainance/ztest/__test_utils/wallets.dart b/maintainance/ztest/__test_utils/wallets.dart deleted file mode 100644 index 45882cbd..00000000 --- a/maintainance/ztest/__test_utils/wallets.dart +++ /dev/null @@ -1,15 +0,0 @@ -import 'package:bb_mobile/_model/wallet.dart'; - -const w1 = Wallet( - network: BBNetwork.Testnet, - type: BBWalletType.words, - walletType: WalletType.bip44, - mnemonic: 'trust gift fiber stove subject reject kite pride jewel expose shield cinnamon', - password: '', - externalDescriptor: - "pkh([ddffda99/44'/1'/0']tpubDC5phKKvZNyMBySbRhQW6t1AkutpvxpAbPacFw38eM2DpiMRZAUBXooGNaBUzVKsST56w1osYwEuRtmqsEpKw4fw8mYWm3jbsjMGnYrgbUz/0/*)#23krdrn4", - internalDescriptor: - "pkh(tprv8ZgxMBicQKsPdQeKoeaGn3iLf7JJskBJEZhaMtLpXhL22K6uzHiR2S3EdnkMf1cSBmur4gjKgKN6QmGmi5nHPNzuEeLssSMgfCWer9JyrAx/44'/1'/0'/1/*)#m47v4wdu", - fingerprint: 'tn::ddffda99', - name: '', -); diff --git a/maintainance/ztest/_ui/app_bar_test.dart b/maintainance/ztest/_ui/app_bar_test.dart deleted file mode 100644 index e69de29b..00000000 diff --git a/maintainance/ztest/auth/bloc/cubit_test.dart b/maintainance/ztest/auth/bloc/cubit_test.dart deleted file mode 100644 index e69de29b..00000000 diff --git a/maintainance/ztest/auth/bloc/state_test.dart b/maintainance/ztest/auth/bloc/state_test.dart deleted file mode 100644 index e69de29b..00000000 diff --git a/maintainance/ztest/auth/page_test.dart b/maintainance/ztest/auth/page_test.dart deleted file mode 100644 index e69de29b..00000000 diff --git a/maintainance/ztest/auth/ui/keypad_test.dart b/maintainance/ztest/auth/ui/keypad_test.dart deleted file mode 100644 index e69de29b..00000000 diff --git a/maintainance/ztest/create/bloc/cubit_test.dart b/maintainance/ztest/create/bloc/cubit_test.dart deleted file mode 100644 index e69de29b..00000000 diff --git a/maintainance/ztest/create/bloc/state_test.dart b/maintainance/ztest/create/bloc/state_test.dart deleted file mode 100644 index e69de29b..00000000 diff --git a/maintainance/ztest/create/page_test.dart b/maintainance/ztest/create/page_test.dart deleted file mode 100644 index e69de29b..00000000 diff --git a/maintainance/ztest/create/ui/card_test.dart b/maintainance/ztest/create/ui/card_test.dart deleted file mode 100644 index e69de29b..00000000 diff --git a/maintainance/ztest/home/bloc/cubit_test.dart b/maintainance/ztest/home/bloc/cubit_test.dart deleted file mode 100644 index e69de29b..00000000 diff --git a/maintainance/ztest/home/bloc/state_test.dart b/maintainance/ztest/home/bloc/state_test.dart deleted file mode 100644 index e69de29b..00000000 diff --git a/maintainance/ztest/home/page_test.dart b/maintainance/ztest/home/page_test.dart deleted file mode 100644 index e69de29b..00000000 diff --git a/maintainance/ztest/home/ui/home_card_test.dart b/maintainance/ztest/home/ui/home_card_test.dart deleted file mode 100644 index e69de29b..00000000 diff --git a/maintainance/ztest/import/bloc/cubit_test.dart b/maintainance/ztest/import/bloc/cubit_test.dart deleted file mode 100644 index e69de29b..00000000 diff --git a/maintainance/ztest/import/bloc/state_test.dart b/maintainance/ztest/import/bloc/state_test.dart deleted file mode 100644 index e69de29b..00000000 diff --git a/maintainance/ztest/import/page_test.dart b/maintainance/ztest/import/page_test.dart deleted file mode 100644 index e69de29b..00000000 diff --git a/maintainance/ztest/import/ui/card_test.dart b/maintainance/ztest/import/ui/card_test.dart deleted file mode 100644 index e69de29b..00000000 diff --git a/maintainance/ztest/main_test.dart b/maintainance/ztest/main_test.dart deleted file mode 100644 index e69de29b..00000000 diff --git a/maintainance/ztest/receive/bloc/cubit_test.dart b/maintainance/ztest/receive/bloc/cubit_test.dart deleted file mode 100644 index e69de29b..00000000 diff --git a/maintainance/ztest/receive/bloc/state_test.dart b/maintainance/ztest/receive/bloc/state_test.dart deleted file mode 100644 index e69de29b..00000000 diff --git a/maintainance/ztest/receive/page_test.dart b/maintainance/ztest/receive/page_test.dart deleted file mode 100644 index e69de29b..00000000 diff --git a/maintainance/ztest/receive/ui/card_test.dart b/maintainance/ztest/receive/ui/card_test.dart deleted file mode 100644 index e69de29b..00000000 diff --git a/maintainance/ztest/send/bloc/cubit_test.dart b/maintainance/ztest/send/bloc/cubit_test.dart deleted file mode 100644 index e69de29b..00000000 diff --git a/maintainance/ztest/send/bloc/state_test.dart b/maintainance/ztest/send/bloc/state_test.dart deleted file mode 100644 index e69de29b..00000000 diff --git a/maintainance/ztest/send/page_test.dart b/maintainance/ztest/send/page_test.dart deleted file mode 100644 index e69de29b..00000000 diff --git a/maintainance/ztest/send/ui/card_test.dart b/maintainance/ztest/send/ui/card_test.dart deleted file mode 100644 index e69de29b..00000000 diff --git a/maintainance/ztest/settings/bloc/cubit_test.dart b/maintainance/ztest/settings/bloc/cubit_test.dart deleted file mode 100644 index e69de29b..00000000 diff --git a/maintainance/ztest/settings/bloc/state_test.dart b/maintainance/ztest/settings/bloc/state_test.dart deleted file mode 100644 index e69de29b..00000000 diff --git a/maintainance/ztest/settings/page_test.dart b/maintainance/ztest/settings/page_test.dart deleted file mode 100644 index e69de29b..00000000 diff --git a/maintainance/ztest/settings/ui/card_test.dart b/maintainance/ztest/settings/ui/card_test.dart deleted file mode 100644 index e69de29b..00000000 diff --git a/maintainance/ztest/transaction/bloc/cubit_test.dart b/maintainance/ztest/transaction/bloc/cubit_test.dart deleted file mode 100644 index e69de29b..00000000 diff --git a/maintainance/ztest/transaction/bloc/state_test.dart b/maintainance/ztest/transaction/bloc/state_test.dart deleted file mode 100644 index e69de29b..00000000 diff --git a/maintainance/ztest/transaction/page_test.dart b/maintainance/ztest/transaction/page_test.dart deleted file mode 100644 index e69de29b..00000000 diff --git a/maintainance/ztest/transaction/ui/card_test.dart b/maintainance/ztest/transaction/ui/card_test.dart deleted file mode 100644 index e69de29b..00000000 diff --git a/maintainance/ztest/wallet/bloc/cubit_test.dart b/maintainance/ztest/wallet/bloc/cubit_test.dart deleted file mode 100644 index 410b07cb..00000000 --- a/maintainance/ztest/wallet/bloc/cubit_test.dart +++ /dev/null @@ -1,128 +0,0 @@ -// import 'package:bb_mobile/_model/wallet.dart'; - -// import 'package:bb_mobile/_pkg/bull_bitcoin_api.dart'; -// import 'package:bb_mobile/_pkg/result.dart'; -// import 'package:bb_mobile/_pkg/secured_storage.dart'; -// import 'package:bb_mobile/settings/bloc/settings_cubit.dart'; -// import 'package:bb_mobile/wallet/bloc/wallet_cubit.dart'; -// import 'package:bdk_flutter/bdk_flutter.dart' as bdk; -// import 'package:flutter/material.dart'; -// import 'package:flutter_animate/flutter_animate.dart'; -// import 'package:flutter_test/flutter_test.dart'; -// import 'package:mocktail/mocktail.dart'; -// import 'package:path_provider_platform_interface/path_provider_platform_interface.dart'; - -// import '../../__test_utils/path_provider.dart'; -// import '../../__test_utils/wallets.dart'; - -// class MockWalletStorage extends Mock implements WalletStorage { -// @override -// Future> getWalletDetails( -// String fingerprint, { -// bool removeSensitive = false, -// }) async { -// return Result(value: w1); -// } -// } - -// class MockSecureStorage extends Mock implements SecureStorage { -// @override -// Future> getValue( -// StorageKeys key, -// ) async { -// return Result(error: 'Storage Empty'); -// } - -// @override -// Future> saveValue({ -// required StorageKeys key, -// required String value, -// }) async { -// return Result(); -// } -// } - -// // class MockSettingsCubit extends MockCubit implements SettingsCubit {} - -// void main() { -// WidgetsFlutterBinding.ensureInitialized(); - -// group('Wallet Cubit', () { -// // late WalletCubit walletCubit; - -// // setUpAll(() async { -// // PathProviderPlatform.instance = FakePathProvider(); - -// // final settingsCubit = SettingsCubit( -// // storage: MockSecureStorage(), -// // bbAPI: BullBitcoinAPI(), -// // ); - -// // walletCubit = WalletCubit( -// // walletStorage: MockWalletStorage(), -// // saveDir: w1.fingerprint, -// // settingsCubit: settingsCubit, -// // ); -// // }); - -// test('test bdk', () async { -// try { -// final mne = await bdk.Mnemonic.create(bdk.WordCount.Words12); -// print(mne); -// } catch (e) { -// print(e); -// } -// }); - -// // test('Load BDK Wallet', () async { -// // await Future.delayed(300.milliseconds); -// // expect(walletCubit.state.bdkWallet, isNotNull); -// // }); - -// // test('Check Transactions Exist', () async { -// // await Future.delayed(10.seconds); -// // expect(walletCubit.state.wallet!.transactions!.length, isNot(0)); -// // }); - -// // test('Check Transactions Exist via Stream', () async { -// // walletCubit.stream.listen((event) { -// // expect( -// // event.wallet!.transactions!.length, -// // equals(4), -// // // isNot(0), -// // ); -// // }); -// // }); - -// test('description', () {}); -// }); -// } - - - - - - - - - - -// // blocTest( -// // 'description', -// // build: () => WalletCubit( -// // walletStorage: MockWalletStorage(), -// // fingerprint: w1.fingerprint, -// // settingsCubit: MockSettingsCubit(), -// // ), -// // // act: (cubit) => cubit.loadWallet(w1.fingerprint), -// // expect: () => [ -// // const WalletState( -// // loadingWallet: true, -// // errLoadingWallet: '', -// // ), -// // const WalletState( -// // loadingWallet: true, -// // wallet: w1, -// // ), -// // ], -// // ); diff --git a/maintainance/ztest/wallet/bloc/state_test.dart b/maintainance/ztest/wallet/bloc/state_test.dart deleted file mode 100644 index e69de29b..00000000 diff --git a/maintainance/ztest/wallet_settings/bloc/cubit_test.dart b/maintainance/ztest/wallet_settings/bloc/cubit_test.dart deleted file mode 100644 index e69de29b..00000000 diff --git a/maintainance/ztest/wallet_settings/bloc/state_test.dart b/maintainance/ztest/wallet_settings/bloc/state_test.dart deleted file mode 100644 index e69de29b..00000000 diff --git a/maintainance/ztest/wallet_settings/page_test.dart b/maintainance/ztest/wallet_settings/page_test.dart deleted file mode 100644 index e69de29b..00000000 diff --git a/maintainance/ztest/wallet_settings/ui/card_test.dart b/maintainance/ztest/wallet_settings/ui/card_test.dart deleted file mode 100644 index e69de29b..00000000