Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement methods for the microphone configuration #49

Merged
merged 18 commits into from
Apr 29, 2022
110 changes: 58 additions & 52 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified flutter/android/src/main/jniLibs/arm64-v8a/libmedea_jason.so
Binary file not shown.
Binary file modified flutter/android/src/main/jniLibs/armeabi-v7a/libmedea_jason.so
Binary file not shown.
Binary file modified flutter/android/src/main/jniLibs/x86/libmedea_jason.so
Binary file not shown.
Binary file modified flutter/android/src/main/jniLibs/x86_64/libmedea_jason.so
Binary file not shown.
9 changes: 9 additions & 0 deletions flutter/example/integration_test/jason.dart
Original file line number Diff line number Diff line change
Expand Up @@ -665,6 +665,15 @@ void main() {
}
throw Exception('Exception not fired on panic');
});

testWidgets('Volume settings', (WidgetTester widgetTester) async {
var jason = Jason();
var media = jason.mediaManager();

expect(await media.microphoneVolumeIsAvailable(), true);
expect(await media.microphoneVolume(), 50);
expect(() async => await media.setMicrophoneVolume(100), returnsNormally);
});
}

class TestObj {
Expand Down
8 changes: 0 additions & 8 deletions flutter/example/linux/flutter/generated_plugins.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ list(APPEND FLUTTER_PLUGIN_LIST
medea_jason
)

list(APPEND FLUTTER_FFI_PLUGIN_LIST
)

set(PLUGIN_BUNDLED_LIBRARIES)

foreach(plugin ${FLUTTER_PLUGIN_LIST})
Expand All @@ -18,8 +15,3 @@ foreach(plugin ${FLUTTER_PLUGIN_LIST})
list(APPEND PLUGIN_BUNDLED_LIBRARIES $<TARGET_FILE:${plugin}_plugin>)
list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${plugin}_bundled_libraries})
endforeach(plugin)

foreach(ffi_plugin ${FLUTTER_FFI_PLUGIN_LIST})
add_subdirectory(flutter/ephemeral/.plugin_symlinks/${ffi_plugin}/linux plugins/${ffi_plugin})
list(APPEND PLUGIN_BUNDLED_LIBRARIES ${${ffi_plugin}_bundled_libraries})
endforeach(ffi_plugin)