Skip to content

Commit fec0898

Browse files
chore(release): prepare 2.4.0
1 parent 91d2884 commit fec0898

4 files changed

Lines changed: 9 additions & 24 deletions

File tree

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
## Unreleased
1+
## 2.4.0
22

33
* added audio response capability support for OpenEarable V2 devices.
44
* added audio response upload progress reporting.
5+
* added microphone gain control for the outer and inner microphones of OpenEarable V2 devices.
56
* BREAKING CHANGE: `BleGattManager.subscribe` now returns `Future<Stream<List<int>>>`, so callers must `await` subscription setup before listening to BLE notifications.
67
* BREAKING CHANGE: `SensorHandler.subscribeToSensorData` now returns `Future<Stream<Map<String, dynamic>>>`, so callers must `await` sensor notification readiness before listening to sensor data.
8+
* BREAKING CHANGE: `MicrophoneManager.setMicrophone` now returns `Future<void>`, allowing callers to await completion of the BLE write.
79
* fixed BLE notification setup races by ensuring subscription futures complete only after the underlying GATT notification subscription is enabled.
810
* fixed OpenEarable V2 sensor scheme loading on devices that update the scheme characteristic without sending a notification.
911
* improved OpenEarable V2 sensor scheme loading reliability by keeping one notification subscription active while reading schemes and falling back to synchronous reads.

example/pubspec.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ packages:
414414
path: ".."
415415
relative: true
416416
source: path
417-
version: "2.3.10"
417+
version: "2.4.0"
418418
open_earable_protocols:
419419
dependency: transitive
420420
description:

example/test/widget_test.dart

Lines changed: 4 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,13 @@
1-
// This is a basic Flutter widget test.
2-
//
3-
// To perform an interaction with a widget in your test, use the WidgetTester
4-
// utility in the flutter_test package. For example, you can send tap and scroll
5-
// gestures. You can also use WidgetTester to find child widgets in the widget
6-
// tree, read text, and verify that the values of widget properties are correct.
7-
8-
import 'package:flutter/material.dart';
91
import 'package:flutter_test/flutter_test.dart';
102

113
import 'package:example/main.dart';
124

135
void main() {
14-
testWidgets('Counter increments smoke test', (WidgetTester tester) async {
15-
// Build our app and trigger a frame.
6+
testWidgets('renders the device scan screen', (WidgetTester tester) async {
167
await tester.pumpWidget(const MyApp());
178

18-
// Verify that our counter starts at 0.
19-
expect(find.text('0'), findsOneWidget);
20-
expect(find.text('1'), findsNothing);
21-
22-
// Tap the '+' icon and trigger a frame.
23-
await tester.tap(find.byIcon(Icons.add));
24-
await tester.pump();
25-
26-
// Verify that our counter has incremented.
27-
expect(find.text('0'), findsNothing);
28-
expect(find.text('1'), findsOneWidget);
9+
expect(find.text('Bluetooth Devices'), findsOneWidget);
10+
expect(find.text('SCANNED DEVICES'), findsOneWidget);
11+
expect(find.text('Restart Scan'), findsOneWidget);
2912
});
3013
}

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: open_earable_flutter
22
description: This package provides functionality for interacting with OpenEarable devices. Control LED colors, control audio, and access raw sensor data.
3-
version: 2.3.10
3+
version: 2.4.0
44
repository: https://github.com/OpenEarable/open_earable_flutter/tree/main
55

66
platforms:

0 commit comments

Comments
 (0)