Swiftpack.co - FluxorOrg/FluxorExplorerInterceptor as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by FluxorOrg.
FluxorOrg/FluxorExplorerInterceptor 5.0.0
Intercepting actions and state changes and sending them to FluxorExplorer
⭐️ 0
🕓 2 years ago
iOS macOS tvOS
.package(url: "https://github.com/FluxorOrg/FluxorExplorerInterceptor.git", from: "5.0.0")

FluxorExplorerInterceptor

An Interceptor to register on a Fluxor Store. When registered it will send FluxorExplorerSnapshots to FluxorExplorer.

Swift version Platforms

Test Maintainability Test Coverage Twitter

⚙️ Usage

For FluxorExplorer to receive all actions and state changes from an app, just register the FluxorExplorerInterceptor in the app's Fluxor Store. When FluxorExplorer and the app are running on the same network (eg. running the app on the iOS Simulator), they will automatically connect and transmit data.

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

NOTE: It is recommended to only register the interceptor in DEBUG builds.

When developing with macOS App Sandbox

If the app is running on macOS and uses the App Sandbox, remember to enable the "Incoming Connections (Server)" and "Outgoing Connections (Client)", to be able to communicate with FluxorExplorer.

GitHub

link
Stars: 0
Last commit: 2 years ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Release Notes

5.0.0
2 years ago

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics