Skip to content

Commit

Permalink
Open source the AVIF Integration
Browse files Browse the repository at this point in the history
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
  • Loading branch information
sjudd authored and glide-copybara-robot committed Jan 26, 2022
1 parent f5e78ed commit 2b52437
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 0 deletions.
25 changes: 25 additions & 0 deletions 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"
4 changes: 4 additions & 0 deletions 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
4 changes: 4 additions & 0 deletions integration/avif/lint.xml
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<lint>
<issue id="AllowBackup" severity="ignore"/>
</lint>
2 changes: 2 additions & 0 deletions integration/avif/src/main/AndroidManifest.xml
@@ -0,0 +1,2 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.bumptech.glide.integration.avif" />
1 change: 1 addition & 0 deletions settings.gradle
Expand Up @@ -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'
Expand Down

0 comments on commit 2b52437

Please sign in to comment.