devconnect_manage_kit 1.1.1
devconnect_manage_kit: ^1.1.1 copied to clipboard
DevConnect client SDK for Flutter - auto-intercepts HTTP, logs, state, storage. Works with Dio, http, Firebase, OAuth2, logger, talker, fimber, and more.
1.1.1 #
- Network: a response read only with
drain(), or whose subscription'sonDoneis replaced (asasFuture()does), now completes on the desktop with its request body. Replays from the desktop read the response that way, so they no longer stay pending, and replaying such a request keeps its body. - Network conditions: the desktop's simulated latency now counts in a request's reported duration, and a request the simulated offline network refuses is reported as failed instead of not at all.
1.1.0 #
- Database inspector: new
DevConnect.registerDatabase(name, query)lets the desktop's Database page list tables and run SQL through your own query function (sqflitedb.rawQuery, driftcustomSelect) (server:database:request_schema,server:database:query). - Storage editing: new
DevConnect.registerStorage(storageType, adapter)with the exportedDevConnectStorageAdapterlets the desktop's Storage page show, edit, delete and clear keys (server:storage:write,server:storage:delete,server:storage:clear). - Layout Inspector:
server:layout:captureanswers with the widget tree (position, size, padding, props) and a screenshot (client:layout:snapshot). - Desktop commands: open a deep link through the app's Router
(
server:open_url), add latency or go offline (server:network:throttle), and replay a captured request (server:network:replay). - State controls: new
DevConnect.onReduxDispatchreceives the actions sent from State Inspector › Controls › Dispatch action. - Custom commands: registered commands are announced to the desktop
(
client:custom:commands) so its Commands panel lists them. - Handshake: reports the SDK's real version (
lib/src/version.dart) instead of1.0.0. - Mock server: desktop rules now answer requests.
server:mock_rules_updateis handled frominit(each push replaces the whole list); matching requests are served throughHttpOverrides(anydart:ioclient) and through the Dio interceptor givenresponseFactory: Response.new, and reported asclient:mocked_request. Rules honourexpiresAtandscope.deviceIds, and a rule with header matchers no longer matches a request without those headers. - WebSocket:
DevConnectWebSocketis exported and is aStream: frames received throughlisten()/await for/framesare captured, events carry aconnectionId, and exactly oneclient:ws_closeis sent (onclose()or when the stream ends).DevConnect.websocketConnect/websocketWrapreturn it instead ofdynamic. - GraphQL:
DevConnect.reportGraphQLOperationreturns anoperationId; the newDevConnect.reportGraphQLResponsecompletes it withdata,errorsor a transporterror. Anonymous operations are named "anonymous". The README has agql_linkadapter (DevConnectGqlLink). - Payloads: a value that can't be JSON-encoded (e.g. a
DateTimein GraphQL variables) no longer turns its whole map into a string. A map or list inside itself becomes<cycle>and the copy stops after 10,000 values, so cyclic data with branches no longer freezes the app. - BLoC:
DevConnect.blocObserver()is deprecated. It is not aflutter_blocBlocObserver, soBloc.observer = DevConnect.blocObserver()threw at startup; it is now typed, so that line fails to compile. CallDevConnect.reportBlocChangefrom your ownBlocObserver(see its docs). - Network: bodies past 1 MB are no longer buffered and are reported as
<N bytes, cut>; event streams as<event stream, N bytes>, binary types asN bytes. Dio byte data (ResponseType.bytes, uploads) is reported asN bytesinstead of a huge JSON array of ints. - Docs: the Dio interceptor is added through
InterceptorsWrapper(it is not a DioInterceptorsubclass).
1.0.6 #
- WebSocket inspector (Round 3): new
DevConnectWebSocketwrapper (dart:io) andDevConnectWebSocketHelperemitclient:ws_openandclient:ws_frameevents to the DevConnect desktop (client:ws_closeonly through the helper; see Unreleased). - GraphQL link (Round 3): new
DevConnectLink, on the package's own link types (it does not plug intogql_link), emitsclient:graphql_operationandclient:graphql_responseevents with operation name and variables (data and errors: see Unreleased). - Mock server (Round 4):
MockRule,setMockRules, andfindMockMatchmodel and match the server→client mock rule push (server:mock_rules_update) with regex + header matching and an optional delay; requests were not yet answered from the rules (see Unreleased). - Structured header/query values: network interceptors now carry structured data for headers and query parameters instead of stringifying everything.
1.0.5 #
- Hot reload / hot restart from desktop: new public API
DevConnect.onReloadRequestandDevConnect.onHotRestartRequest. The SDK now responds toserver:reloadandserver:hot_restartmessages from DevConnect Manage Tool. Default implementation callsWidgetsBinding.reassembleApplication(the same mechanismflutter run -ruses). Override the hooks to wipe in-memory state before reload or to remount your root widget for true hot-restart semantics. - Host cache identity verification: the cached host entry now
carries the desktop's stable
machineId, and the SDK probes the server with a short-lived WebSocket on every reconnect to verify the cached IP still points at the same machine. Stale or mismatched entries are invalidated automatically — fixes the simulator/device-swap reconnect bug. - Legacy cache invalidation: caches written by older SDKs (no
machineId) are now treated as absent instead of being trusted blindly.
1.0.4 #
- Error monitoring: new
error_monitorplugin + cross-platform Error Inspector that captures uncaught and zone errors. - Storage:
TextComponent, expanded storage-type coverage, andSharedPreferencesasync + cached wrappers. - Network: interceptors now parse
multipart/form-databodies and capture Android error streams.
1.0.3 #
- Auto HTTP interception (Dio/http), Realm & Isar storage wrappers, zone-mismatch fix.
1.0.2 #
- Storage reporters and auto-wrappers; internal refactor (font/color constants).
1.0.1 #
- Performance profiling, benchmark and memory-leak detection plugins across all SDKs.
1.0.0 #
- Initial release.
- Auto-intercept HTTP (Dio, http, Firebase, OAuth2, GraphQL, gRPC-web).
- Auto-capture logs (print, debugPrint, logger, talker, fimber, logging).
- State management support (Riverpod, BLoC, Provider, GetX, MobX, Signals).
- Storage wrappers (SharedPreferences, Hive, Realm, SecureStorage, MMKV, ObjectBox, Sembast, sqflite, Floor).
- Database support (Drift, Isar, sqflite).
- Performance metrics & benchmarking.
- Custom commands.
- Multi-platform: Android, iOS, macOS, Linux, Windows.