Skip to content

Commit

Permalink
Update Cronet extension readme on how to enable Java 8 features.
Browse files Browse the repository at this point in the history
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=180660349
  • Loading branch information
tonihei authored and ojw28 committed Jan 4, 2018
1 parent 7b9f71b commit 183870d
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions extensions/cronet/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,20 @@ and enable the extension:
1. Copy the three jar files into the `libs` directory of this extension
1. Copy the content of the downloaded `libs` directory into the `jniLibs`
directory of this extension

* In your `settings.gradle` file, add
`gradle.ext.exoplayerIncludeCronetExtension = true` before the line that
applies `core_settings.gradle`.
1. In your `settings.gradle` file, add
`gradle.ext.exoplayerIncludeCronetExtension = true` before the line that
applies `core_settings.gradle`.
1. In all `build.gradle` files where this extension is linked as a dependency,
add
```
android {
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
```
to enable Java 8 features required by the Cronet library.

[top level README]: https://github.com/google/ExoPlayer/blob/release-v2/README.md
[here]: https://console.cloud.google.com/storage/browser/chromium-cronet/android
Expand Down

0 comments on commit 183870d

Please sign in to comment.