Skip to content

Commit 2d578a9

Browse files
hamdikahlounEgor
authored andcommitted
[video_player] VideoPlayerPlugin.java uses or overrides a deprecated API (flutter#3019)
1 parent acfd545 commit 2d578a9

File tree

4 files changed

+11
-2
lines changed

4 files changed

+11
-2
lines changed

packages/video_player/video_player/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.10.12+3
2+
3+
* Avoiding uses or overrides a deprecated API in `VideoPlayerPlugin` class.
4+
15
## 0.10.12+2
26

37
* Fix `setMixWithOthers` test.

packages/video_player/video_player/android/build.gradle

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
group 'io.flutter.plugins.videoplayer'
22
version '1.0-SNAPSHOT'
3+
def args = ["-Xlint:deprecation","-Xlint:unchecked","-Werror"]
34

45
buildscript {
56
repositories {
@@ -19,6 +20,10 @@ rootProject.allprojects {
1920
}
2021
}
2122

23+
project.getTasks().withType(JavaCompile){
24+
options.compilerArgs.addAll(args)
25+
}
26+
2227
apply plugin: 'com.android.library'
2328

2429
android {

packages/video_player/video_player/android/src/main/java/io/flutter/plugins/videoplayer/VideoPlayerPlugin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public void onAttachedToEngine(FlutterPluginBinding binding) {
6060
binding.getBinaryMessenger(),
6161
FlutterMain::getLookupKeyForAsset,
6262
FlutterMain::getLookupKeyForAsset,
63-
binding.getFlutterEngine().getRenderer());
63+
binding.getTextureRegistry());
6464
flutterState.startListening(this, binding.getBinaryMessenger());
6565
}
6666

packages/video_player/video_player/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Flutter plugin for displaying inline video with other Flutter
44
# 0.10.y+z is compatible with 1.0.0, if you land a breaking change bump
55
# the version to 2.0.0.
66
# See more details: https://github.com/flutter/flutter/wiki/Package-migration-to-1.0.0
7-
version: 0.10.12+2
7+
version: 0.10.12+3
88
homepage: https://github.com/flutter/plugins/tree/master/packages/video_player/video_player
99

1010
flutter:

0 commit comments

Comments
 (0)