Skip to content

Commit

Permalink
[Issue Splitties#512] Added dependency notations for Glide.
Browse files Browse the repository at this point in the history
  • Loading branch information
ceNobiteElf committed Dec 8, 2022
1 parent 077954f commit 36c62ae
Show file tree
Hide file tree
Showing 4 changed files with 79 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ open class RefreshVersionsPlugin : Plugin<Any> {

internal val artifactVersionKeyRulesFileNames: List<String> = listOf(
"androidx-version-alias-rules.txt",
"bumptech-version-alias-rules.txt",
"cashapp-version-alias-rules.txt",
"dependency-groups-alias-rules.txt",
"google-version-alias-rules.txt",
Expand Down
68 changes: 68 additions & 0 deletions plugins/dependencies/src/main/kotlin/dependencies/BumpTech.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
@file:Suppress("PackageDirectoryMismatch", "SpellCheckingInspection", "unused")

import de.fayard.refreshVersions.core.DependencyNotationAndGroup
import org.gradle.kotlin.dsl.IsNotADependency

object BumpTech : IsNotADependency {

/**
* Glide is a fast and efficient open source media management and image loading framework for Android. Glide offers an easy to use API,
* a performant and extensible resource decoding pipeline and automatic resource pooling.
*
* [Official website](https://bumptech.github.io/glide)
*
* GitHub page: [bumptech/glide](https://github.com/bumptech/glide)
*/
val glide = Glide

object Glide : DependencyNotationAndGroup(group = "com.github.bumptech.glide", name = "glide") {

/** A set of annotations for configuring Glide. */
val annotations = module("annotations")

/** An integration library to support AVIF images in Glide. */
val avif = module("avif-integration")

/** Glide's anntation processor. */
val compiler = module("compiler")

/** An integration library to integrate with Jetpack Compose. */
val compose = module("compose")

/** An integration library for using Glide with [`ListenableFutures`](https://developer.android.com/guide/background/listenablefuture). */
val concurrent = module("concurrent-integration")

/** An integration library to use Cronet to fetch data over HTTP/HTTPS in Glide. */
val cronet = module("cronet-integration")

/** A cache that uses a bounded amount of space on a filesystem. Based on Jake Wharton's tailored for Glide. */
val diskLruCache = module("disklrucache")

/** An integration library allowing users to re-encode or create animated GIFs. */
val gifEncoder = module("gifencoder-integration")

/** Implementation of GifDecoder that is more memory efficient to animate for Android devices. */
val gifDecoder = module("gifdecoder")

/** Glide's KSP based annotation processor. */
val ksp = module("ksp")

/** An integration library to improve Kotlin interop with Glide. */
val ktx = module("ktx")

/** A set of mocks to ease testing with Glide. */
val mocks = module("mocks")

/** An integration library to use OkHttp 2.x to fetch data over HTTP/HTTPS in Glide. */
val okhttp = module("okhttp-integration")

/** An integration library to use OkHttp 3.x to fetch data over HTTP/HTTPS in Glide. */
val okhttp3 = module("okhttp3-integration")

/** An integration library to display images in `RecyclerView`. */
val recyclerView = module("recyclerView-integration")

/** An integration library to use Volley to fetch data over HTTP/HTTPS in Glide. */
val volley = module("concurrent-integration")
}
}
2 changes: 2 additions & 0 deletions plugins/dependencies/src/main/kotlin/dependencies/_ALL.kt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import Android
import AndroidX
import ApolloGraphQL
import Arrow
import BumpTech
import COIL
import CashApp
import Chucker
Expand Down Expand Up @@ -35,6 +36,7 @@ internal val ALL_DEPENDENCIES_NOTATIONS = listOf(
AndroidX,
ApolloGraphQL,
Arrow,
BumpTech,
CashApp,
Chucker,
COIL,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
com.github.bumptech.glide:*
^^^^^^^^^^^^^^

com.github.bumptech.glide:compose
^^^^^^^^^^^^^^.^^^^^^^

com.github.bumptech.glide:ktx
^^^^^^^^^^^^^^.^^^

0 comments on commit 36c62ae

Please sign in to comment.