Skip to content

Latest commit

 

History

History
56 lines (46 loc) · 3.24 KB

README.md

File metadata and controls

56 lines (46 loc) · 3.24 KB

FluxorExplorer

Download on the App Store
A macOS and iPadOS app for debugging apps using Fluxor.

Platform: Mac+iOS Swift 5.2 Twitter: @mortengregersen
Build Status Maintainability Test Coverage

FluxorExplorer allows developers of apps using Fluxor, to step through the actions dispatched and the corresponding state changes, to easily debug the data flow of their app.

🗣 Make your app talk

The only thing you need to do, to make your app send out the dispatched actions and state changes, is to register the FluxorExplorerInterceptor in the store:

let store = Store(initialState: AppState())
#if DEBUG
store.register(interceptor: FluxorExplorerInterceptor(displayName: UIDevice.current.name))
#endif

Note: It is recommended that the FluxorExplorerInterceptor is only registered in debug builds.

🔌 How does it connect?

FluxorExplorer and FluxorExplorerInterceptor uses Apple's MultipeerConnectivity framework to connect and communicate.

  1. When FluxorExplorer is launched, it instantiates a MCNearbyServiceBrowser and starts browsing for peers.
  2. When a FluxorExplorerInterceptor is instantiated a MCNearbyServiceAdvertiser and starts advertising.
  3. When FluxorExplorer discovers an advertising peer it automatically sends an invite to the peer
  4. When the advertising FluxorExplorerInterceptor receives an invite, it automatically accepts it

This means that as long as FluxorExplorer and the app using FluxorExplorerInterceptor is on the same network, they will automatically connect and send/receive data.