From 2b52437cd52bbacf0376d84aa2eec5b63ba53ac4 Mon Sep 17 00:00:00 2001 From: Sam Judd Date: Wed, 26 Jan 2022 11:30:39 -0800 Subject: [PATCH] Open source the AVIF Integration AVIF integration adds support for Glide to decode and render AVIF Images without relying on the Android platform's AVIF decoder. This CL adds a new sub-project ':integration:avif' which can be used to add AVIF support in Glide. PiperOrigin-RevId: 424399907 --- integration/avif/build.gradle | 25 +++++++++++++++++++ integration/avif/gradle.properties | 4 +++ integration/avif/lint.xml | 4 +++ integration/avif/src/main/AndroidManifest.xml | 2 ++ settings.gradle | 1 + 5 files changed, 36 insertions(+) create mode 100644 integration/avif/build.gradle create mode 100644 integration/avif/gradle.properties create mode 100644 integration/avif/lint.xml create mode 100644 integration/avif/src/main/AndroidManifest.xml diff --git a/integration/avif/build.gradle b/integration/avif/build.gradle new file mode 100644 index 0000000000..7f81c27576 --- /dev/null +++ b/integration/avif/build.gradle @@ -0,0 +1,25 @@ +apply plugin: 'com.android.library' + +dependencies { + implementation project(':library') + implementation 'org.aomedia.avif.android:avif:0.9.3.545a756' + implementation "com.google.guava:guava:${GUAVA_VERSION}" +} + +android { + compileSdkVersion COMPILE_SDK_VERSION as int + + defaultConfig { + minSdkVersion MIN_SDK_VERSION as int + targetSdkVersion TARGET_SDK_VERSION as int + + versionName VERSION_NAME as String + } + + compileOptions { + sourceCompatibility JavaVersion.VERSION_1_7 + targetCompatibility JavaVersion.VERSION_1_7 + } +} + +apply from: "${rootProject.projectDir}/scripts/upload.gradle" diff --git a/integration/avif/gradle.properties b/integration/avif/gradle.properties new file mode 100644 index 0000000000..388ebe1d62 --- /dev/null +++ b/integration/avif/gradle.properties @@ -0,0 +1,4 @@ +POM_NAME=Glide AVIF Integration +POM_ARTIFACT_ID=avif-integration +POM_PACKAGING=aar +POM_DESCRIPTION=An integration library to support AVIF images in Glide diff --git a/integration/avif/lint.xml b/integration/avif/lint.xml new file mode 100644 index 0000000000..ff7e5955c4 --- /dev/null +++ b/integration/avif/lint.xml @@ -0,0 +1,4 @@ + + + + diff --git a/integration/avif/src/main/AndroidManifest.xml b/integration/avif/src/main/AndroidManifest.xml new file mode 100644 index 0000000000..9819bc0c1c --- /dev/null +++ b/integration/avif/src/main/AndroidManifest.xml @@ -0,0 +1,2 @@ + diff --git a/settings.gradle b/settings.gradle index c10c6607dc..0b1c2fe8c6 100644 --- a/settings.gradle +++ b/settings.gradle @@ -20,6 +20,7 @@ include ':samples:gallery' include ':samples:contacturi' include ':samples:imgur' include ':integration' +include ':integration:avif' include ':integration:concurrent' include ':integration:cronet' include ':integration:gifencoder'