Skip to content

Commit b40964e

Browse files
committed
refactor(android): free recorder resources after detach from engine
1 parent 1708d33 commit b40964e

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
#### 0.5.0+1
2+
3+
+ Migrate to new [Android Plugin APIs](https://flutter.dev/docs/development/packages-and-plugins/plugin-api-migration)
4+
15
## 0.5.0
26

37
+ Add Pull Request #16, adding support for macOS

android/src/main/java/com/code/aaron/micstream/MicStreamPlugin.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ public void onAttachedToEngine(FlutterPluginBinding binding) {
3939
/// Cleanup after connection loss to flutter
4040
@Override
4141
public void onDetachedFromEngine(FlutterPluginBinding binding) {
42+
onCancel(null);
4243
}
4344

4445
/// Deprecated way of registering plugin

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: mic_stream
22
description: Provides a tool to get the microphone input as PCM Stream
3-
version: 0.5.0
3+
version: 0.5.0+1
44
homepage: https://github.com/anarchuser
55

66
environment:

0 commit comments

Comments
 (0)