Skip to content

Bluetooth#25

Merged
MouradLachhab merged 48 commits intomasterfrom
bluetooth
Oct 8, 2020
Merged

Bluetooth#25
MouradLachhab merged 48 commits intomasterfrom
bluetooth

Conversation

@MouradLachhab
Copy link
Copy Markdown
Contributor

Looking for feedback on basically anything you think should be changed. (Naming convention, structure, order of functions, bloc implementation.

Base automatically changed from base-arch-structure to master September 25, 2020 04:30
Comment thread mobile/lib/src/application/bluetooth/bluetooth_selector_state.dart Outdated
Comment thread mobile/lib/src/application/wallets/wallets_cubit.dart
Comment thread mobile/lib/src/domain/eeg_data/eeg_data.dart Outdated
Comment thread mobile/lib/src/domain/eeg_data/eeg_data.dart
Comment thread mobile/lib/src/application/bluetooth/bluetooth_selector_cubit.dart Outdated
Comment thread mobile/lib/src/application/bluetooth/bluetooth_selector_cubit.dart Outdated
@@ -0,0 +1,27 @@
import 'package:flutter_blue/flutter_blue.dart';

abstract class BluetoothStates {}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Justement, à y repenser, FlutterBlue ne devrait normalement pas être importé dans les blocs. Ce package devrait être utilisé pour aller chercher l'information dans une méthode d'une repository. Ce repository pourra alors retourner un objet du domaine qui est en lien avec la carte d'acquisition choisie.

Pour la liste des prospects de devices, on pourrait probablement juste renvoyer une dataclass ProspectDevice de List IDeviceRepository::discover(). C'est alors cette méthode discover qui pourrait utiliser flutter blue et scan les devices. Finalement, notre couche applicative pourra utiliser la méthode pour obtenir la list des ProspectDevice qui sera affiché. Lorsqu'on en sélectionne un, on peut ensuite l'utiliser dans la méthode Device IDeviceRepository::connect(ProspectDevice prospectDevice). Device correspondra alors à un objet du modèle avec son comportement.

Comment thread mobile/lib/main.dart Outdated
Comment thread mobile/lib/src/locator.dart
Comment thread mobile/lib/src/presentation/bluetooth_route/bluetoothSelector_route.dart Outdated
Comment thread mobile/lib/src/presentation/wallets/wallets_route.dart
Comment thread mobile/pubspec.lock Outdated
Copy link
Copy Markdown
Contributor

@WilliamHarvey97 WilliamHarvey97 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

L'app ne roule pas sur l'emulateur

Unhandled Exception: PlatformException(bluetooth_unavailable, the device does not have bluetooth, null, null)

Comment thread mobile/lib/src/app.dart Outdated
Comment thread mobile/lib/src/infrastructure/bluetooth_repository.dart
Comment thread mobile/lib/src/domain/acquisition_device/acquisition_device.dart Outdated
Comment thread mobile/lib/src/domain/acquisition_device/acquisition_device.dart Outdated
Comment thread mobile/lib/src/infrastructure/bluetooth_repository.dart Outdated
Comment thread mobile/lib/src/application/device/device_selector_cubit.dart Outdated
Comment thread mobile/lib/src/infrastructure/bluetooth_repository.dart
Comment thread mobile/lib/src/application/device/device_selector_cubit.dart Outdated
Comment thread mobile/lib/src/application/device/device_selector_cubit.dart Outdated
Comment thread mobile/lib/src/application/device/device_selector_cubit.dart Outdated
Comment thread mobile/lib/src/domain/acquisition_device/i_acquisition_device_repository.dart Outdated
Comment thread mobile/lib/src/infrastructure/bluetooth_repository.dart Outdated
Comment thread mobile/lib/src/infrastructure/bluetooth_repository.dart Outdated
@WilliamHarvey97 WilliamHarvey97 self-requested a review October 8, 2020 16:38
@MouradLachhab MouradLachhab merged commit 314792d into master Oct 8, 2020
@MouradLachhab MouradLachhab deleted the bluetooth branch October 8, 2020 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants