Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Commit 3f8abcf

Browse files
eneddnfield
authored andcommitted
[video_player] ExoPlayer 2.9.1, Android 9, Demo fixes (#908)
* [video_player] ExoPlayer 2.9.1, Android 9, Demo fixes * Mark version as 0.8.0, revert gradle wrapper changes (to be published in a separate PR)
1 parent 48793cf commit 3f8abcf

File tree

7 files changed

+37
-10
lines changed

7 files changed

+37
-10
lines changed

packages/video_player/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## 0.8.0
2+
3+
* Android: Upgrade ExoPlayer to 2.9.1
4+
* Android: Use current gradle dependencies
5+
* Android 9 compatibility fixes for Demo App
6+
17
## 0.7.2
28

39
* Updated to use factories on exoplayer `MediaSource`s for Android instead of the now-deprecated constructors.

packages/video_player/android/build.gradle

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ buildscript {
88
}
99

1010
dependencies {
11-
classpath 'com.android.tools.build:gradle:3.1.2'
11+
classpath 'com.android.tools.build:gradle:3.2.1'
1212
}
1313
}
1414

@@ -22,7 +22,7 @@ rootProject.allprojects {
2222
apply plugin: 'com.android.library'
2323

2424
android {
25-
compileSdkVersion 27
25+
compileSdkVersion 28
2626

2727
defaultConfig {
2828
minSdkVersion 16
@@ -31,11 +31,17 @@ android {
3131
lintOptions {
3232
disable 'InvalidPackage'
3333
}
34+
android {
35+
compileOptions {
36+
sourceCompatibility 1.8
37+
targetCompatibility 1.8
38+
}
39+
}
3440

3541
dependencies {
36-
implementation 'com.google.android.exoplayer:exoplayer-core:2.8.0'
37-
implementation 'com.google.android.exoplayer:exoplayer-hls:2.8.0'
38-
implementation 'com.google.android.exoplayer:exoplayer-dash:2.8.0'
39-
implementation 'com.google.android.exoplayer:exoplayer-smoothstreaming:2.8.0'
42+
implementation 'com.google.android.exoplayer:exoplayer-core:2.9.1'
43+
implementation 'com.google.android.exoplayer:exoplayer-hls:2.9.1'
44+
implementation 'com.google.android.exoplayer:exoplayer-dash:2.9.1'
45+
implementation 'com.google.android.exoplayer:exoplayer-smoothstreaming:2.9.1'
4046
}
4147
}

packages/video_player/example/android/app/build.gradle

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ apply plugin: 'com.android.application'
1515
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
1616

1717
android {
18-
compileSdkVersion 27
18+
compileSdkVersion 28
1919

2020
lintOptions {
2121
disable 'InvalidPackage'
@@ -27,6 +27,13 @@ android {
2727
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
2828
}
2929

30+
android {
31+
compileOptions {
32+
sourceCompatibility 1.8
33+
targetCompatibility 1.8
34+
}
35+
}
36+
3037
buildTypes {
3138
release {
3239
// TODO: Add your own signing config for the release build.

packages/video_player/example/android/app/src/main/AndroidManifest.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
<application
77
android:name="io.flutter.app.FlutterApplication"
88
android:label="video_player_example"
9-
android:icon="@mipmap/ic_launcher">
9+
android:icon="@mipmap/ic_launcher"
10+
android:networkSecurityConfig="@xml/network_security_config">
1011
<activity
1112
android:name=".MainActivity"
1213
android:launchMode="singleTop"
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<network-security-config>
3+
<domain-config cleartextTrafficPermitted="true">
4+
<domain includeSubdomains="true">www.sample-videos.com</domain>
5+
<domain includeSubdomains="true">184.72.239.149</domain>
6+
</domain-config>
7+
</network-security-config>

packages/video_player/example/android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ buildscript {
55
}
66

77
dependencies {
8-
classpath 'com.android.tools.build:gradle:3.1.2'
8+
classpath 'com.android.tools.build:gradle:3.2.1'
99
}
1010
}
1111

packages/video_player/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: video_player
22
description: Flutter plugin for displaying inline video with other Flutter
33
widgets on Android and iOS.
44
author: Flutter Team <flutter-dev@googlegroups.com>
5-
version: 0.7.2
5+
version: 0.8.0
66
homepage: https://github.com/flutter/plugins/tree/master/packages/video_player
77

88
flutter:

0 commit comments

Comments
 (0)