Skip to content

Commit

Permalink
Merge pull request #4082 from google/dev-v2-r2.7.3
Browse files Browse the repository at this point in the history
r2.7.3
  • Loading branch information
ojw28 authored Apr 4, 2018
2 parents 1c6149b + ccddacc commit 4b531dc
Show file tree
Hide file tree
Showing 21 changed files with 39 additions and 20 deletions.
5 changes: 5 additions & 0 deletions RELEASENOTES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Release notes #

### 2.7.3 ###

* Fix ProGuard configuration for Cast, IMA and OkHttp extensions.
* Update OkHttp extension to depend on OkHttp 3.10.0.

### 2.7.2 ###

* Gradle: Upgrade Gradle version from 4.1 to 4.4 so it can work with Android
Expand Down
4 changes: 2 additions & 2 deletions constants.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
// limitations under the License.
project.ext {
// ExoPlayer version and version code.
releaseVersion = '2.7.2'
releaseVersionCode = 2702
releaseVersion = '2.7.3'
releaseVersionCode = 2703
// Important: ExoPlayer specifies a minSdkVersion of 14 because various
// components provided by the library may be of use on older devices.
// However, please note that the core media playback functionality provided
Expand Down
5 changes: 4 additions & 1 deletion demos/cast/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@ android {
release {
shrinkResources true
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt')
proguardFiles = [
"proguard-rules.txt",
getDefaultProguardFile('proguard-android.txt')
]
}
debug {
jniDebuggable = true
Expand Down
6 changes: 6 additions & 0 deletions demos/cast/proguard-rules.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Proguard rules specific to the Cast demo app.

# Accessed via menu.xml
-keep class android.support.v7.app.MediaRouteActionProvider {
*;
}
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ private void updateButtonVisibilities() {
button.setText(label);
button.setTag(i);
button.setOnClickListener(this);
debugRootView.addView(button, debugRootView.getChildCount() - 1);
debugRootView.addView(button);
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion extensions/cast/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ android {
defaultConfig {
minSdkVersion 14
targetSdkVersion project.ext.targetSdkVersion
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
consumerProguardFiles 'proguard-rules.txt'
}
}

Expand Down
4 changes: 4 additions & 0 deletions extensions/cast/proguard-rules.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Proguard rules specific to the Cast extension.

# DefaultCastOptionsProvider is commonly referred to only by the app's manifest.
-keep class com.google.android.exoplayer2.ext.cast.DefaultCastOptionsProvider
1 change: 0 additions & 1 deletion extensions/cast/src/test/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
-->

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.google.android.exoplayer2.ext.cast.test">

<uses-sdk android:minSdkVersion="14" android:targetSdkVersion="26"/>
Expand Down
1 change: 0 additions & 1 deletion extensions/cronet/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ android {
defaultConfig {
minSdkVersion project.ext.minSdkVersion
targetSdkVersion project.ext.targetSdkVersion
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}

sourceSets.main {
Expand Down
1 change: 0 additions & 1 deletion extensions/cronet/src/test/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
-->

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.google.android.exoplayer2.ext.cronet">

<uses-sdk android:minSdkVersion="14" android:targetSdkVersion="26"/>
Expand Down
2 changes: 1 addition & 1 deletion extensions/ima/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ android {
defaultConfig {
minSdkVersion project.ext.minSdkVersion
targetSdkVersion project.ext.targetSdkVersion
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
consumerProguardFiles 'proguard-rules.txt'
}
}

Expand Down
3 changes: 2 additions & 1 deletion extensions/okhttp/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ android {
defaultConfig {
minSdkVersion project.ext.minSdkVersion
targetSdkVersion project.ext.targetSdkVersion
consumerProguardFiles 'proguard-rules.txt'
}

lintOptions {
Expand All @@ -32,7 +33,7 @@ android {
dependencies {
implementation project(modulePrefix + 'library-core')
implementation 'com.android.support:support-annotations:' + supportLibraryVersion
implementation('com.squareup.okhttp3:okhttp:3.9.0') {
api('com.squareup.okhttp3:okhttp:3.10.0') {
exclude group: 'org.json'
}
}
Expand Down
8 changes: 8 additions & 0 deletions extensions/okhttp/proguard-rules.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Proguard rules specific to the OkHttp extension.

# Options specified by https://github.com/square/okhttp/blob/master/README.md
-dontwarn okhttp3.**
-dontwarn okio.**
-dontwarn javax.annotation.**
-dontwarn org.conscrypt.**
-keepnames class okhttp3.internal.publicsuffix.PublicSuffixDatabase
2 changes: 1 addition & 1 deletion javadoc_combined.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
apply from: "${rootDir}/javadoc_util.gradle"
apply from: "${buildscript.sourceFile.parentFile}/javadoc_util.gradle"

class CombinedJavadocPlugin implements Plugin<Project> {

Expand Down
2 changes: 1 addition & 1 deletion javadoc_library.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
apply from: "${rootDir}/javadoc_util.gradle"
apply from: "${buildscript.sourceFile.parentFile}/javadoc_util.gradle"

android.libraryVariants.all { variant ->
def name = variant.buildType.name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ public final class ExoPlayerLibraryInfo {

/** The version of the library expressed as a string, for example "1.2.3". */
// Intentionally hardcoded. Do not derive from other constants (e.g. VERSION_INT) or vice versa.
public static final String VERSION = "2.7.2";
public static final String VERSION = "2.7.3";

/** The version of the library expressed as {@code "ExoPlayerLib/" + VERSION}. */
// Intentionally hardcoded. Do not derive from other constants (e.g. VERSION) or vice versa.
public static final String VERSION_SLASHY = "ExoPlayerLib/2.7.2";
public static final String VERSION_SLASHY = "ExoPlayerLib/2.7.3";

/**
* The version of the library expressed as an integer, for example 1002003.
Expand All @@ -43,7 +43,7 @@ public final class ExoPlayerLibraryInfo {
* integer version 123045006 (123-045-006).
*/
// Intentionally hardcoded. Do not derive from other constants (e.g. VERSION) or vice versa.
public static final int VERSION_INT = 2007002;
public static final int VERSION_INT = 2007003;

/**
* Whether the library was compiled with {@link com.google.android.exoplayer2.util.Assertions}
Expand Down
1 change: 0 additions & 1 deletion library/core/src/test/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
-->

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.google.android.exoplayer2.core.test">

<uses-sdk android:minSdkVersion="14" android:targetSdkVersion="26"/>
Expand Down
1 change: 0 additions & 1 deletion library/dash/src/test/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
-->

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.google.android.exoplayer2.source.dash.test">

<uses-sdk android:minSdkVersion="14" android:targetSdkVersion="25"/>
Expand Down
1 change: 0 additions & 1 deletion library/hls/src/test/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
-->

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.google.android.exoplayer2.source.hls.test">

<uses-sdk android:minSdkVersion="14" android:targetSdkVersion="26"/>
Expand Down
1 change: 0 additions & 1 deletion library/smoothstreaming/src/test/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
-->

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.google.android.exoplayer2.source.smoothstreaming.test">

<uses-sdk android:minSdkVersion="14" android:targetSdkVersion="26"/>
Expand Down
1 change: 0 additions & 1 deletion testutils/src/test/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
-->

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.google.android.exoplayer2.testutil.test">

<uses-sdk android:minSdkVersion="14" android:targetSdkVersion="26"/>
Expand Down

0 comments on commit 4b531dc

Please sign in to comment.