Skip to content

Commit

Permalink
update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
sdex committed Jan 28, 2023
1 parent 72921fb commit 90d9244
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 16 deletions.
12 changes: 6 additions & 6 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -81,15 +81,15 @@ kapt {

dependencies {
implementation "androidx.activity:activity-ktx:1.6.1"
implementation "androidx.appcompat:appcompat:1.5.1"
implementation "androidx.appcompat:appcompat:1.6.0"
implementation "androidx.browser:browser:1.4.0"
implementation "androidx.constraintlayout:constraintlayout:2.1.4"
implementation "androidx.core:core-ktx:1.9.0"
implementation "androidx.fragment:fragment:1.4.1"
implementation "androidx.multidex:multidex:2.0.1"
implementation "androidx.preference:preference-ktx:1.2.0"
implementation "androidx.recyclerview:recyclerview:1.2.1"
def room_version = "2.4.3"
def room_version = "2.5.0"
implementation "androidx.room:room-ktx:$room_version"
kapt "androidx.room:room-compiler:$room_version"
implementation "androidx.vectordrawable:vectordrawable:1.1.0"
Expand All @@ -99,7 +99,7 @@ dependencies {
def glide_version = "4.14.2"
implementation "com.github.bumptech.glide:glide:$glide_version"
kapt "com.github.bumptech.glide:compiler:$glide_version"
implementation "com.google.android.material:material:1.7.0"
implementation "com.google.android.material:material:1.8.0"
implementation ("com.google.dagger:hilt-android:$hilt_version") {
exclude group: 'androidx.fragment', module: 'fragment'
}
Expand All @@ -115,8 +115,8 @@ dependencies {
testImplementation "junit:junit:4.13.2"

androidTestImplementation "androidx.room:room-testing:$room_version"
androidTestImplementation "androidx.test:runner:1.5.1"
androidTestImplementation "androidx.test:runner:1.5.2"
androidTestImplementation "androidx.test:rules:1.5.0"
androidTestImplementation "androidx.test.espresso:espresso-core:3.5.0"
androidTestImplementation "androidx.test.espresso:espresso-intents:3.5.0"
androidTestImplementation "androidx.test.espresso:espresso-core:3.5.1"
androidTestImplementation "androidx.test.espresso:espresso-intents:3.5.1"
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package com.sdex.activityrunner.glide
import android.app.ActivityManager
import android.content.Context
import android.graphics.drawable.Drawable
import android.os.Build
import com.bumptech.glide.Glide
import com.bumptech.glide.GlideBuilder
import com.bumptech.glide.Registry
Expand Down Expand Up @@ -89,15 +88,13 @@ class MyAppGlideModule : AppGlideModule() {
}

private fun getDecodeFormat(context: Context): DecodeFormat {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
val activityManager =
context.getSystemService(Context.ACTIVITY_SERVICE) as ActivityManager?
if (activityManager != null) {
return if (activityManager.isLowRamDevice) {
DecodeFormat.PREFER_RGB_565
} else {
DecodeFormat.PREFER_ARGB_8888
}
val activityManager =
context.getSystemService(Context.ACTIVITY_SERVICE) as ActivityManager?
if (activityManager != null) {
return if (activityManager.isLowRamDevice) {
DecodeFormat.PREFER_RGB_565
} else {
DecodeFormat.PREFER_ARGB_8888
}
}
return DecodeFormat.DEFAULT
Expand Down

0 comments on commit 90d9244

Please sign in to comment.