Repository navigation
Conversation
Expose connection outcomes through an additive WiFiConnectResult API with stable codes and available native code, domain and message information. Preserve connect and findAndConnect boolean signatures and legacy channel behavior so existing clients remain compatible. Add Android and iOS result adapters, validate new API arguments and cover the method-channel contract with regression tests. Document platform limits without exposing a network handle or changing package release metadata.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The boolean connection result does not expose the reason for a failed connection. Add
connectWithResult()returning a typedWiFiConnectResultwith a stable error code and available native error/status details.Existing
connect()andfindAndConnect()retain theirFuture<bool>signatures and boolean method-channel contracts. Android's existing invalid-BSSID and unsupported-WEP exceptions are preserved for those callers.code,isSuccess, nullablenativeCode,nativeDomainandmessagethrough the Dart result type.withInternet: truesuccess means the suggestion was accepted, and thatonUnavailable()cannot reliably distinguish authentication failure from user rejection or other failures.Validation:
flutter analyze --no-pub, Dart format checks and project Java/Swift formatting passed.Physical-device connection testing has not been performed during this preparation. This PR does not add a network handle or change the package version/release changelog.
Related: #427.