Skip to content

FluxorOrg/FluxorExplorer

Repository files navigation

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.

About

A macOS and iPadOS app for debugging apps using Fluxor

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages