Commit 48aac9ba by yschimke Committed by microkatz

Disable publishing block when media3 included in another build.

From https://github.com/androidx/media/pull/127/files

PiperOrigin-RevId: 485921271
parent 58b32b61
......@@ -30,6 +30,8 @@ Release notes
([#10684](https://github.com/google/ExoPlayer/issues/10684)).
* Add `Player.getVideoSurfaceSize` that returns the size of the surface on
which the video is rendered.
* Build:
* Avoid publishing block when included in another gradle build.
* Downloads:
* Fix potential infinite loop in `ProgressiveDownloader` caused by
simultaneous download and playback with the same `PriorityTaskManager`
......
......@@ -16,6 +16,7 @@ apply plugin: 'maven-publish'
apply from: "$gradle.ext.androidxMediaSettingsDir/missing_aar_type_workaround.gradle"
afterEvaluate {
if (rootProject.name == "media3") {
publishing {
repositories {
maven {
......@@ -60,6 +61,7 @@ afterEvaluate {
}
}
}
}
}
tasks.withType(PublishToMavenRepository) { it.dependsOn lint, test }
......
......@@ -18,6 +18,8 @@ if (gradle.ext.has('androidxMediaModulePrefix')) {
modulePrefix += gradle.ext.androidxMediaModulePrefix
}
rootProject.name = 'media3'
include modulePrefix + 'demo'
project(modulePrefix + 'demo').projectDir = new File(rootDir, 'demos/main')
include modulePrefix + 'demo-cast'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment