Commit 3c49044f by olly Committed by Oliver Woodman

Updates for ExoPlayer modularization

- Update relevant documentation
- Use individual modules for the demo app. Given it's
  preferable to use them over the full library, and that
  many people probably use the demo app as a starting
  point, we should set the right example even though we
  currently need to include all of them.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=153454898
parent 8be85d4d
...@@ -30,17 +30,39 @@ repositories { ...@@ -30,17 +30,39 @@ repositories {
} }
``` ```
Next, include the following in your module's `build.gradle` file: Next add a gradle compile dependency to the `build.gradle` file of your app
module. The following will add a dependency to the full ExoPlayer library:
```gradle ```gradle
compile 'com.google.android.exoplayer:exoplayer:rX.X.X' compile 'com.google.android.exoplayer:exoplayer:r2.X.X'
``` ```
where `rX.X.X` is the your preferred version. For the latest version, see the where `r2.X.X` is your preferred version. Alternatively, you can depend on only
project's [Releases][]. For more details, see the project on [Bintray][]. the library modules that you actually need. For example the following will add
dependencies on the Core, DASH and UI library modules, as might be required for
an app that plays DASH content:
[Releases]: https://github.com/google/ExoPlayer/releases ```gradle
[Bintray]: https://bintray.com/google/exoplayer/exoplayer/view compile 'com.google.android.exoplayer:exoplayer-core:r2.X.X'
compile 'com.google.android.exoplayer:exoplayer-dash:r2.X.X'
compile 'com.google.android.exoplayer:exoplayer-ui:r2.X.X'
```
The available modules are listed below. Adding a dependency to the full
ExoPlayer library is equivalent to adding dependencies on all of the modules
individually.
* `exoplayer-core`: Core functionality (required).
* `exoplayer-dash`: Support for DASH content.
* `exoplayer-hls`: Support for HLS content.
* `exoplayer-smoothstreaming`: Support for SmoothStreaming content.
* `exoplayer-ui`: UI components and resources for use with ExoPlayer.
For more details, see the project on [Bintray][]. For information about the
latest versions, see the [Release notes][].
[Bintray]: https://bintray.com/google/exoplayer
[Release notes]: https://github.com/google/ExoPlayer/blob/release-v2/RELEASENOTES.md
## Developing ExoPlayer ## ## Developing ExoPlayer ##
......
...@@ -45,7 +45,11 @@ android { ...@@ -45,7 +45,11 @@ android {
} }
dependencies { dependencies {
compile project(':library') compile project(':library-core')
compile project(':library-dash')
compile project(':library-hls')
compile project(':library-smoothstreaming')
compile project(':library-ui')
withExtensionsCompile project(path: ':extension-ffmpeg') withExtensionsCompile project(path: ':extension-ffmpeg')
withExtensionsCompile project(path: ':extension-flac') withExtensionsCompile project(path: ':extension-flac')
withExtensionsCompile project(path: ':extension-opus') withExtensionsCompile project(path: ':extension-opus')
......
...@@ -24,6 +24,6 @@ android { ...@@ -24,6 +24,6 @@ android {
} }
dependencies { dependencies {
compile project(':library') compile project(':library-core')
compile 'org.mockito:mockito-core:' + mockitoVersion compile 'org.mockito:mockito-core:' + mockitoVersion
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment