released 0.1.1

This commit is contained in:
Prerak Mann 2019-07-15 19:21:22 +05:30
parent e274e64664
commit baffb9816c
6 changed files with 35 additions and 28 deletions

View File

@ -1,3 +1,11 @@
## 0.1.1
* Fixed sendPayload future not completing bug
## 0.1.0
* Added pub maintanence suggestions
## 0.0.2 ## 0.0.2
* Added dartdoc comments * Added dartdoc comments

View File

@ -218,7 +218,7 @@ public class NearbyConnectionsPlugin implements MethodCallHandler {
assert bytes != null; assert bytes != null;
Nearby.getConnectionsClient(activity).sendPayload(endpointId, Payload.fromBytes(bytes)); Nearby.getConnectionsClient(activity).sendPayload(endpointId, Payload.fromBytes(bytes));
Log.d("NearbyCon java", "sentPayload"); Log.d("NearbyCon java", "sentPayload");
result.success(true);
break; break;
} }
default: default:

View File

@ -1,5 +1,5 @@
# Generated by pub # Generated by pub
# See https://www.dartlang.org/tools/pub/glossary#lockfile # See https://dart.dev/tools/pub/glossary#lockfile
packages: packages:
async: async:
dependency: transitive dependency: transitive
@ -7,7 +7,7 @@ packages:
name: async name: async
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.1.0" version: "2.2.0"
boolean_selector: boolean_selector:
dependency: transitive dependency: transitive
description: description:
@ -66,7 +66,7 @@ packages:
path: ".." path: ".."
relative: true relative: true
source: path source: path
version: "0.0.2" version: "0.1.1"
path: path:
dependency: transitive dependency: transitive
description: description:
@ -80,14 +80,14 @@ packages:
name: pedantic name: pedantic
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.5.0" version: "1.7.0"
quiver: quiver:
dependency: transitive dependency: transitive
description: description:
name: quiver name: quiver
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.0.2" version: "2.0.3"
sky_engine: sky_engine:
dependency: transitive dependency: transitive
description: flutter description: flutter
@ -134,7 +134,7 @@ packages:
name: test_api name: test_api
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.2.4" version: "0.2.5"
typed_data: typed_data:
dependency: transitive dependency: transitive
description: description:
@ -150,4 +150,4 @@ packages:
source: hosted source: hosted
version: "2.0.8" version: "2.0.8"
sdks: sdks:
dart: ">=2.2.0 <3.0.0" dart: ">=2.2.2 <3.0.0"

View File

@ -120,9 +120,8 @@ class Nearby {
_onPayloadReceived?.call(endpointId, bytes); _onPayloadReceived?.call(endpointId, bytes);
break; break;
default:
return null;
} }
return null;
}); });
} }
@ -271,8 +270,8 @@ class Nearby {
/// ///
/// Call this in [OnConnctionInitiated] /// Call this in [OnConnctionInitiated]
/// to accept an incoming connection /// to accept an incoming connection
/// ///
/// [OnConnectionResult] is called on both /// [OnConnectionResult] is called on both
/// only if both of them accept the connection /// only if both of them accept the connection
Future<bool> acceptConnection( Future<bool> acceptConnection(
String endpointId, { String endpointId, {
@ -294,9 +293,9 @@ class Nearby {
/// ///
/// Call this in [OnConnctionInitiated] /// Call this in [OnConnctionInitiated]
/// to reject an incoming connection /// to reject an incoming connection
/// ///
/// [OnConnectionResult] is called on both /// [OnConnectionResult] is called on both
/// even if one of them rejects the connection /// even if one of them rejects the connection
Future<bool> rejectConnection(String endpointId) async { Future<bool> rejectConnection(String endpointId) async {
return await _channel.invokeMethod( return await _channel.invokeMethod(
'rejectConnection', 'rejectConnection',
@ -307,9 +306,9 @@ class Nearby {
} }
/// Send bytes [Uint8List] payload to endpoint /// Send bytes [Uint8List] payload to endpoint
/// ///
/// Convert String to Uint8List as follows /// Convert String to Uint8List as follows
/// ///
/// ```dart /// ```dart
/// String a = "hello"; /// String a = "hello";
/// Uint8List bytes = Uint8List.fromList(a.codeUnits); /// Uint8List bytes = Uint8List.fromList(a.codeUnits);
@ -326,11 +325,11 @@ class Nearby {
} }
/// ConnectionInfo class /// ConnectionInfo class
/// ///
/// Its a parameter in [OnConnctionInitiated] /// Its a parameter in [OnConnctionInitiated]
/// ///
/// [endPointName] is userNickName of requester /// [endPointName] is userNickName of requester
/// ///
/// [authenticationToken] is useful to check the connection security /// [authenticationToken] is useful to check the connection security
/// it must be same on both devices /// it must be same on both devices
class ConnectionInfo { class ConnectionInfo {

View File

@ -1,5 +1,5 @@
# Generated by pub # Generated by pub
# See https://www.dartlang.org/tools/pub/glossary#lockfile # See https://dart.dev/tools/pub/glossary#lockfile
packages: packages:
async: async:
dependency: transitive dependency: transitive
@ -7,7 +7,7 @@ packages:
name: async name: async
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.1.0" version: "2.2.0"
boolean_selector: boolean_selector:
dependency: transitive dependency: transitive
description: description:
@ -66,14 +66,14 @@ packages:
name: pedantic name: pedantic
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.5.0" version: "1.7.0"
quiver: quiver:
dependency: transitive dependency: transitive
description: description:
name: quiver name: quiver
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.0.2" version: "2.0.3"
sky_engine: sky_engine:
dependency: transitive dependency: transitive
description: flutter description: flutter
@ -120,7 +120,7 @@ packages:
name: test_api name: test_api
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.2.4" version: "0.2.5"
typed_data: typed_data:
dependency: transitive dependency: transitive
description: description:
@ -136,4 +136,4 @@ packages:
source: hosted source: hosted
version: "2.0.8" version: "2.0.8"
sdks: sdks:
dart: ">=2.2.0 <3.0.0" dart: ">=2.2.2 <3.0.0"

View File

@ -1,6 +1,6 @@
name: nearby_connections name: nearby_connections
description: A Flutter plugin for the android NearbyConnections API. description: Plugin for the android NearbyConnections API. Currently sending bytes (Uint8List) is possible.
version: 0.0.2 version: 0.1.1
author: Prerak Mann <mannprerak2@gmail.com> author: Prerak Mann <mannprerak2@gmail.com>
homepage: https://github.com/mannprerak2/nearby_connections homepage: https://github.com/mannprerak2/nearby_connections