From 26dcdcf1c01e1734cda5313487f27a19d4606513 Mon Sep 17 00:00:00 2001 From: Googler Date: Tue, 2 Aug 2022 12:36:47 +0000 Subject: [PATCH] Create effect module. PiperOrigin-RevId: 464767396 --- core_settings.gradle | 3 ++ .../media/libraries/effect/README.md | 19 ++++++++ .../media/libraries/effect/build.gradle | 48 +++++++++++++++++++ .../effect/src/main/AndroidManifest.xml | 18 +++++++ .../androidx/media3/effect/package-info.java | 19 ++++++++ .../effect/src/test/AndroidManifest.xml | 19 ++++++++ 6 files changed, 126 insertions(+) create mode 100644 google3/third_party/java_src/android_libs/media/libraries/effect/README.md create mode 100644 google3/third_party/java_src/android_libs/media/libraries/effect/build.gradle create mode 100644 google3/third_party/java_src/android_libs/media/libraries/effect/src/main/AndroidManifest.xml create mode 100644 google3/third_party/java_src/android_libs/media/libraries/effect/src/main/java/androidx/media3/effect/package-info.java create mode 100644 google3/third_party/java_src/android_libs/media/libraries/effect/src/test/AndroidManifest.xml diff --git a/core_settings.gradle b/core_settings.gradle index 83ec79ef72..a29116941f 100644 --- a/core_settings.gradle +++ b/core_settings.gradle @@ -82,6 +82,9 @@ project(modulePrefix + 'library-extractor').projectDir = new File(rootDir, 'libr include modulePrefix + 'extension-cast' project(modulePrefix + 'extension-cast').projectDir = new File(rootDir, 'extensions/cast') +include modulePrefix + 'lib-effect' +project(modulePrefix + 'lib-effect').projectDir = new File(rootDir, 'libraries/effect') + include modulePrefix + 'library-transformer' project(modulePrefix + 'library-transformer').projectDir = new File(rootDir, 'library/transformer') diff --git a/google3/third_party/java_src/android_libs/media/libraries/effect/README.md b/google3/third_party/java_src/android_libs/media/libraries/effect/README.md new file mode 100644 index 0000000000..50fc67fe3b --- /dev/null +++ b/google3/third_party/java_src/android_libs/media/libraries/effect/README.md @@ -0,0 +1,19 @@ +# Effect module + +Provides functionality for applying effects to video frames. + +## Getting the module + +The easiest way to get the module is to add it as a gradle dependency: + +```gradle +implementation 'androidx.media3:media3-effect:1.X.X' +``` + +where `1.X.X` is the version, which must match the version of the other media +modules being used. + +Alternatively, you can clone this GitHub project and depend on the module +locally. Instructions for doing this can be found in the [top level README][]. + +[top level README]: ../../README.md diff --git a/google3/third_party/java_src/android_libs/media/libraries/effect/build.gradle b/google3/third_party/java_src/android_libs/media/libraries/effect/build.gradle new file mode 100644 index 0000000000..e731754acd --- /dev/null +++ b/google3/third_party/java_src/android_libs/media/libraries/effect/build.gradle @@ -0,0 +1,48 @@ +// Copyright 2022 The Android Open Source Project +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +apply from: "$gradle.ext.exoplayerSettingsDir/common_library_config.gradle" +android { + + defaultConfig { + minSdkVersion 18 + // The following argument makes the Android Test Orchestrator run its + // "pm clear" command after each test invocation. This command ensures + // that the app's state is completely cleared between tests. + testInstrumentationRunnerArguments clearPackageData: 'true' + multiDexEnabled true + } + + buildTypes { + debug { + testCoverageEnabled = true + } + } + + sourceSets { + androidTest.assets.srcDir '../test_data/src/test/assets/' //copybara:media3-only + androidTest.assets.srcDir '../../testdata/src/test/assets/' + test.assets.srcDir '../../testdata/src/test/assets/' + } +} + +ext { + javadocTitle = 'Effect module' +} +apply from: '../../javadoc_library.gradle' + +ext { + releaseArtifactId = 'exoplayer-effect' + releaseDescription = 'The ExoPlayer library effect module.' +} +apply from: '../../publish.gradle' diff --git a/google3/third_party/java_src/android_libs/media/libraries/effect/src/main/AndroidManifest.xml b/google3/third_party/java_src/android_libs/media/libraries/effect/src/main/AndroidManifest.xml new file mode 100644 index 0000000000..cfa68782d8 --- /dev/null +++ b/google3/third_party/java_src/android_libs/media/libraries/effect/src/main/AndroidManifest.xml @@ -0,0 +1,18 @@ + + + + + diff --git a/google3/third_party/java_src/android_libs/media/libraries/effect/src/main/java/androidx/media3/effect/package-info.java b/google3/third_party/java_src/android_libs/media/libraries/effect/src/main/java/androidx/media3/effect/package-info.java new file mode 100644 index 0000000000..adfe0a3bc7 --- /dev/null +++ b/google3/third_party/java_src/android_libs/media/libraries/effect/src/main/java/androidx/media3/effect/package-info.java @@ -0,0 +1,19 @@ +/* + * Copyright 2022 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@NonNullApi +package androidx.media3.effect; + +import com.google.android.exoplayer2.util.NonNullApi; diff --git a/google3/third_party/java_src/android_libs/media/libraries/effect/src/test/AndroidManifest.xml b/google3/third_party/java_src/android_libs/media/libraries/effect/src/test/AndroidManifest.xml new file mode 100644 index 0000000000..86e4880700 --- /dev/null +++ b/google3/third_party/java_src/android_libs/media/libraries/effect/src/test/AndroidManifest.xml @@ -0,0 +1,19 @@ + + + + + +