Skip to content

Commit

Permalink
Merge pull request #32 from hariharsubramanyam/exoplayer_jar
Browse files Browse the repository at this point in the history
Replace Exoplayer git submodule with JAR
  • Loading branch information
hariharsubramanyam committed Aug 13, 2014
2 parents 9082325 + f0f521d commit 0c1185b
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 14 deletions.
3 changes: 0 additions & 3 deletions .gitmodules

This file was deleted.

23 changes: 15 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,11 @@ The framework is currently in beta, allowing interested developers to try it out

Clone the repository

```git clone https://github.com/googleads/google-media-framework-android.git GoogleMediaFramework```

Then navigate to the directory and set up the ExoPlayer submodule.

```
cd GoogleMediaFramework
git submodule init
git submodule update
git clone https://github.com/googleads/google-media-framework-android.git GoogleMediaFramework
```

Finally import the project in Android Studio (or build using Gradle via ``./gradlew``).
Then import the project in Android Studio (or build using Gradle via `./gradlew`).

##Documentation

Expand All @@ -51,6 +45,19 @@ If you have questions about the framework, you can ask them in our [google group
##How do I contribute?
See [CONTRIBUTING.md](./CONTRIBUTING.md) for details.

##I want to use a newer version of Exoplayer
The Exoplayer library is located in the `libs` folder of the `googlemediaframework` module of this project as `exoplayer.jar`. If you want to update Exoplayer, you need to replace this with a new JAR.

To make a new JAR, please do the following:

1) Clone [Exoplayer](https://github.com/google/ExoPlayer).

2) Run the `./gradlew jarRelease` command in the Exoplayer project.

3) Look in the `build` folder of the `library` module, there should be a file called `library.jar`. Again, this must be done in the Exoplayer project.

Then, rename `library.jar` to `exoplayer.jar` and put it into the `libs` folder of the `googlemediaframework` module of this project.

##Requirements

###Deployment
Expand Down
1 change: 0 additions & 1 deletion exoplayer
Submodule exoplayer deleted from 553a1d
1 change: 0 additions & 1 deletion googlemediaframework/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,4 @@ android {

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile project(':exoplayer:library')
}
Binary file added googlemediaframework/libs/exoplayer.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
limitations under the License.
*/

include ':demo', ':googlemediaframework', ':exoplayer:library'
include ':demo', ':googlemediaframework'

0 comments on commit 0c1185b

Please sign in to comment.