Android: Support Android Embedding V2 (#109)

* Bump AGP & Gradle
* Migrate the project to Android Embedding to V2
This commit is contained in:
Sebastian Roth 2020-06-08 12:20:14 +01:00 committed by GitHub
parent 4dee0906db
commit 8f146e559a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 158 additions and 74 deletions

View file

@ -451,7 +451,7 @@ class AudioPlayer {
/// * [AudioPlaybackState.none]
/// * [AudioPlaybackState.connecting]
Future<void> dispose() async {
await _invokeMethod('dispose');
await _invokeMethod('dispose', [_id]);
if (_cacheFile?.existsSync() == true) {
_cacheFile?.deleteSync();
}