Skip to content

Fix for compilation error with flutter version 3.29#84

Merged
mannprerak2 merged 19 commits intomannprerak2:masterfrom
rahulmaindargi:master
Feb 19, 2025
Merged

Fix for compilation error with flutter version 3.29#84
mannprerak2 merged 19 commits intomannprerak2:masterfrom
rahulmaindargi:master

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