Skip to content

Commit e654636

Browse files
fix: downgrade media_kit and related dependency versions
1 parent 6c9245a commit e654636

File tree

7 files changed

+25
-6
lines changed

7 files changed

+25
-6
lines changed

linux/flutter/generated_plugin_registrant.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#include <media_kit_video/media_kit_video_plugin.h>
1616
#include <screen_retriever_linux/screen_retriever_linux_plugin.h>
1717
#include <url_launcher_linux/url_launcher_plugin.h>
18+
#include <volume_controller/volume_controller_plugin.h>
1819
#include <window_manager/window_manager_plugin.h>
1920
#include <window_to_front/window_to_front_plugin.h>
2021

@@ -46,6 +47,9 @@ void fl_register_plugins(FlPluginRegistry* registry) {
4647
g_autoptr(FlPluginRegistrar) url_launcher_linux_registrar =
4748
fl_plugin_registry_get_registrar_for_plugin(registry, "UrlLauncherPlugin");
4849
url_launcher_plugin_register_with_registrar(url_launcher_linux_registrar);
50+
g_autoptr(FlPluginRegistrar) volume_controller_registrar =
51+
fl_plugin_registry_get_registrar_for_plugin(registry, "VolumeControllerPlugin");
52+
volume_controller_plugin_register_with_registrar(volume_controller_registrar);
4953
g_autoptr(FlPluginRegistrar) window_manager_registrar =
5054
fl_plugin_registry_get_registrar_for_plugin(registry, "WindowManagerPlugin");
5155
window_manager_plugin_register_with_registrar(window_manager_registrar);

linux/flutter/generated_plugins.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ list(APPEND FLUTTER_PLUGIN_LIST
1212
media_kit_video
1313
screen_retriever_linux
1414
url_launcher_linux
15+
volume_controller
1516
window_manager
1617
window_to_front
1718
)

macos/Flutter/GeneratedPluginRegistrant.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ import screen_brightness_macos
2424
import screen_retriever_macos
2525
import sqflite_darwin
2626
import url_launcher_macos
27+
import volume_controller
2728
import wakelock_plus
2829
import window_manager
2930
import window_to_front
@@ -48,6 +49,7 @@ func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
4849
ScreenRetrieverMacosPlugin.register(with: registry.registrar(forPlugin: "ScreenRetrieverMacosPlugin"))
4950
SqflitePlugin.register(with: registry.registrar(forPlugin: "SqflitePlugin"))
5051
UrlLauncherPlugin.register(with: registry.registrar(forPlugin: "UrlLauncherPlugin"))
52+
VolumeControllerPlugin.register(with: registry.registrar(forPlugin: "VolumeControllerPlugin"))
5153
WakelockPlusMacosPlugin.register(with: registry.registrar(forPlugin: "WakelockPlusMacosPlugin"))
5254
WindowManagerPlugin.register(with: registry.registrar(forPlugin: "WindowManagerPlugin"))
5355
WindowToFrontPlugin.register(with: registry.registrar(forPlugin: "WindowToFrontPlugin"))

pubspec.lock

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1124,10 +1124,10 @@ packages:
11241124
dependency: "direct main"
11251125
description:
11261126
name: media_kit_video
1127-
sha256: afaa509e7b7e0bf247557a3a740cde903a52c34ace9810f94500e127bd7b043d
1127+
sha256: a656a9463298c1adc64c57f2d012874f7f2900f0c614d9545a3e7b8bb9e2137b
11281128
url: "https://pub.dev"
11291129
source: hosted
1130-
version: "2.0.1"
1130+
version: "1.3.0"
11311131
meta:
11321132
dependency: transitive
11331133
description:
@@ -1837,6 +1837,14 @@ packages:
18371837
url: "https://pub.dev"
18381838
source: hosted
18391839
version: "14.2.5"
1840+
volume_controller:
1841+
dependency: transitive
1842+
description:
1843+
name: volume_controller
1844+
sha256: "5c1a13d2ea99d2f6753e7c660d0d3fab541f36da3999cafeb17b66fe49759ad7"
1845+
url: "https://pub.dev"
1846+
source: hosted
1847+
version: "3.4.1"
18401848
wakelock_plus:
18411849
dependency: transitive
18421850
description:

pubspec.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ dependencies:
2525
flutter_carousel_widget: ^3.1.0
2626
grouped_list: ^6.0.0
2727
cached_network_image: ^3.4.1
28-
media_kit: ^1.2.6
29-
media_kit_video: ^2.0.1
30-
media_kit_libs_video: ^1.0.7
31-
media_kit_libs_android_video: ^1.3.8
28+
media_kit: ^1.2.0
29+
media_kit_video: 1.3.0
30+
media_kit_libs_video: ^1.0.6
31+
media_kit_libs_android_video: ^1.3.7
3232
media_kit_libs_linux: ^1.2.1
3333
device_info_plus: ^11.2.1
3434
window_manager: ^0.4.3

windows/flutter/generated_plugin_registrant.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#include <screen_brightness_windows/screen_brightness_windows_plugin.h>
2020
#include <screen_retriever_windows/screen_retriever_windows_plugin_c_api.h>
2121
#include <url_launcher_windows/url_launcher_windows.h>
22+
#include <volume_controller/volume_controller_plugin_c_api.h>
2223
#include <window_manager/window_manager_plugin.h>
2324
#include <window_to_front/window_to_front_plugin.h>
2425

@@ -49,6 +50,8 @@ void RegisterPlugins(flutter::PluginRegistry* registry) {
4950
registry->GetRegistrarForPlugin("ScreenRetrieverWindowsPluginCApi"));
5051
UrlLauncherWindowsRegisterWithRegistrar(
5152
registry->GetRegistrarForPlugin("UrlLauncherWindows"));
53+
VolumeControllerPluginCApiRegisterWithRegistrar(
54+
registry->GetRegistrarForPlugin("VolumeControllerPluginCApi"));
5255
WindowManagerPluginRegisterWithRegistrar(
5356
registry->GetRegistrarForPlugin("WindowManagerPlugin"));
5457
WindowToFrontPluginRegisterWithRegistrar(

windows/flutter/generated_plugins.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ list(APPEND FLUTTER_PLUGIN_LIST
1616
screen_brightness_windows
1717
screen_retriever_windows
1818
url_launcher_windows
19+
volume_controller
1920
window_manager
2021
window_to_front
2122
)

0 commit comments

Comments
 (0)