Skip to content

Commit

Permalink
Update nearby connections to 18.7.0 that fixes onEndpointLost not bei…
Browse files Browse the repository at this point in the history
…ng called. Update example, version, changelog (#63)
  • Loading branch information
mannprerak2 authored Sep 2, 2023
1 parent b7ecb5f commit 9355efa
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 4.0.1
- Updated nearby connections (`play-services-nearby:18.4.0` -> `play-services-nearby:18.7.0`)

## 4.0.0
- Breaking change: removes all permission/location convenience methods.
- Please use [permission_handler](https://pub.dev/packages/permission_handler) and
Expand Down
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ android {
disable 'InvalidPackage'
}
dependencies{
api 'com.google.android.gms:play-services-nearby:18.4.0'
api 'com.google.android.gms:play-services-nearby:18.7.0'
}
}
2 changes: 1 addition & 1 deletion example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ class _MyBodyState extends State<Body> {
},
onEndpointLost: (id) {
showSnackbar(
"Lost discovered Endpoint: ${endpointMap[id]!.endpointName}, id $id");
"Lost discovered Endpoint: ${endpointMap[id]?.endpointName}, id $id");
},
);
showSnackbar("DISCOVERING: $a");
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: nearby_connections
description: Plugin for the android NearbyConnections API. Bytes and Files Supported.
version: 4.0.0
version: 4.0.1
homepage: https://github.com/mannprerak2/nearby_connections

environment:
Expand Down

0 comments on commit 9355efa

Please sign in to comment.