Fixes README instructions for depending on modules locally

#cherrypick

PiperOrigin-RevId: 659504142
This commit is contained in:
Googler 2024-08-05 04:10:25 -07:00 committed by Copybara-Service
parent 399f48ab42
commit e7eef0ce34

View File

@ -110,7 +110,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
@ -124,7 +123,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")
```
@ -133,17 +132,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