mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Fixes README instructions for depending on modules locally
#cherrypick
PiperOrigin-RevId: 659504142
(cherry picked from commit e7eef0ce34)
This commit is contained in:
parent
eb19aefa57
commit
efb79472ff
1 changed files with 7 additions and 8 deletions
15
README.md
15
README.md
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue