Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for compilation error with flutter version 3.29 #84

Merged
merged 19 commits into from
Feb 19, 2025

Conversation

rahulmaindargi
Copy link
Contributor

#83

…ConnectionsPlugin

- Removed the legacy plugin registration method `registerWith` as it is no longer needed.
- Removed unused `pluginRegistrar` variable.
- Eliminated commented-out code related to method invocation within event callbacks for better readability.
- Replaced the `//channel.invokeMethod` with `//` for readability in `onConnectionInitiated`, `onConnectionResult`, `onDisconnected`, `onPayloadReceived`, `onPayloadTransferUpdate`, `onEndpointFound`, and `onEndpointLost` callbacks.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure why it is coming as a changed file.
I am unable to find a way to remove the file from Pull request, but its not required to fix compilation error

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can try running git pull upstream release --no-rebase

then resolve the merge conflicts (use keep theirs)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

# Conflicts:
#	android/src/main/java/com/pkmnapps/nearby_connections/NearbyConnectionsPlugin.java
#	lib/src/nearby.dart
@mannprerak2
Copy link
Owner

u may wanna run dart format . for the tests to pass

This commit refactors the Dart code within the `Nearby` class to improve readability by aligning the code within the `receiveBroadcastStream` listener. Specifically, it ensures consistency by aligning the `case` statements and their corresponding code blocks.
@mannprerak2 mannprerak2 merged commit f20c939 into mannprerak2:master Feb 19, 2025
1 check passed
@mannprerak2
Copy link
Owner

Thanks @rahulmaindargi 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants