Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ dependencies {
implementation libs.review
implementation libs.app.update
implementation libs.volley
implementation libs.glide

// Firebase
implementation platform(libs.firebase.bom)
Expand Down Expand Up @@ -98,6 +99,7 @@ dependencies {
annotationProcessor libs.hilt.compiler
implementation libs.androidx.room.runtime
annotationProcessor libs.androidx.room.compiler
annotationProcessor libs.glide.compiler

// Testing
testImplementation libs.junit
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

import me.zhanghai.android.fastscroll.FastScrollerBuilder;

import com.bumptech.glide.Glide;
import dagger.hilt.android.AndroidEntryPoint;

@AndroidEntryPoint
Expand Down Expand Up @@ -103,14 +104,9 @@ private void shareApp(com.d4rk.androidtutorials.java.data.model.PromotedApp app)
}

private void loadImage(String url, android.widget.ImageView imageView) {
com.android.volley.toolbox.ImageRequest request = new com.android.volley.toolbox.ImageRequest(
url,
imageView::setImageBitmap,
0,
0,
android.widget.ImageView.ScaleType.CENTER_INSIDE,
android.graphics.Bitmap.Config.ARGB_8888,
error -> {});
com.android.volley.toolbox.Volley.newRequestQueue(requireContext()).add(request);
Glide.with(imageView.getContext())
.load(url)
.centerInside()
.into(imageView);
}
}
3 changes: 3 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ playServicesAds = "24.5.0"
codeview = "1.3.9"
hilt = "2.57.1"
room = "2.6.1"
glide = "4.16.0"

[libraries]
aboutlibraries = { module = "com.mikepenz:aboutlibraries", version.ref = "aboutlibraries" }
Expand Down Expand Up @@ -70,3 +71,5 @@ hilt-android = { module = "com.google.dagger:hilt-android", version.ref = "hilt"
hilt-compiler = { module = "com.google.dagger:hilt-android-compiler", version.ref = "hilt" }
androidx-room-runtime = { module = "androidx.room:room-runtime", version.ref = "room" }
androidx-room-compiler = { module = "androidx.room:room-compiler", version.ref = "room" }
glide = { module = "com.github.bumptech.glide:glide", version.ref = "glide" }
glide-compiler = { module = "com.github.bumptech.glide:compiler", version.ref = "glide" }