Fixes README instructions for depending on modules locally

#cherrypick

PiperOrigin-RevId: 659504142
(cherry picked from commit e7eef0ce346d2567e3f51090bb64ee5fe7b8f727)
This commit is contained in:
Googler 2024-08-05 04:10:25 -07:00 committed by Tianyi Feng
parent eb19aefa57
commit efb79472ff

View File

@ -116,7 +116,6 @@ First, clone the repository into a local directory:
```sh ```sh
git clone https://github.com/androidx/media.git git clone https://github.com/androidx/media.git
cd media
``` ```
Next, add the following to your project's `settings.gradle.kts` file, replacing Next, add the following to your project's `settings.gradle.kts` file, replacing
@ -130,7 +129,7 @@ apply(from = file("path/to/media/core_settings.gradle"))
Or in Gradle Groovy DSL `settings.gradle`: Or in Gradle Groovy DSL `settings.gradle`:
```groovy ```groovy
gradle.ext.androidxMediaModulePrefix = 'media-' gradle.ext.androidxMediaModulePrefix = 'media3-'
apply from: file("path/to/media/core_settings.gradle") apply from: file("path/to/media/core_settings.gradle")
``` ```
@ -139,17 +138,17 @@ You can depend on them from `build.gradle.kts` as you would on any other local
module, for example: module, for example:
```kotlin ```kotlin
implementation(project(":media-lib-exoplayer")) implementation(project(":media3-lib-exoplayer"))
implementation(project(":media-lib-exoplayer-dash")) implementation(project(":media3-lib-exoplayer-dash"))
implementation(project(":media-lib-ui")) implementation(project(":media3-lib-ui"))
``` ```
Or in Gradle Groovy DSL `build.gradle`: Or in Gradle Groovy DSL `build.gradle`:
```groovy ```groovy
implementation project(':media-lib-exoplayer') implementation project(':media3-lib-exoplayer')
implementation project(':media-lib-exoplayer-dash') implementation project(':media3-lib-exoplayer-dash')
implementation project(':media-lib-ui') implementation project(':media3-lib-ui')
``` ```
#### MIDI module #### MIDI module