Skip to content

Commit

Permalink
Fixes README instructions for depending on modules locally
Browse files Browse the repository at this point in the history
#cherrypick

PiperOrigin-RevId: 659504142
(cherry picked from commit e7eef0c)
  • Loading branch information
Googler authored and tianyif committed Aug 21, 2024
1 parent eb19aef commit efb7947
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@ First, clone the repository into a local directory:

```sh
git clone https://github.com/androidx/media.git
cd media
```

Next, add the following to your project's `settings.gradle.kts` file, replacing
Expand All @@ -130,7 +129,7 @@ apply(from = file("path/to/media/core_settings.gradle"))
Or in Gradle Groovy DSL `settings.gradle`:

```groovy
gradle.ext.androidxMediaModulePrefix = 'media-'
gradle.ext.androidxMediaModulePrefix = 'media3-'
apply from: file("path/to/media/core_settings.gradle")
```

Expand All @@ -139,17 +138,17 @@ You can depend on them from `build.gradle.kts` as you would on any other local
module, for example:

```kotlin
implementation(project(":media-lib-exoplayer"))
implementation(project(":media-lib-exoplayer-dash"))
implementation(project(":media-lib-ui"))
implementation(project(":media3-lib-exoplayer"))
implementation(project(":media3-lib-exoplayer-dash"))
implementation(project(":media3-lib-ui"))
```

Or in Gradle Groovy DSL `build.gradle`:

```groovy
implementation project(':media-lib-exoplayer')
implementation project(':media-lib-exoplayer-dash')
implementation project(':media-lib-ui')
implementation project(':media3-lib-exoplayer')
implementation project(':media3-lib-exoplayer-dash')
implementation project(':media3-lib-ui')
```

#### MIDI module
Expand Down

0 comments on commit efb7947

Please sign in to comment.