Souhail Marghabi
04/04/2020, 8:32 AM// RecyclerViewListItem.kt
val encryptedImageEndpoint = "API_URL"
val glideUrl = GlideUrl(encryptedImageEndpoint) { mapOf(Pair("Authorization", "Bearer $testToken")) }
Glide.with(this.containerView).load(glideUrl).signature(ObjectKey(imageID))
.transition(DrawableTransitionOptions.withCrossFade()).thumbnail(0.25f)
.apply(RequestOptions().diskCacheStrategy(DiskCacheStrategy.AUTOMATIC).skipMemoryCache(true).override(selfReference.snapshotImage.width, selfReference.snapshotImage.height)
.placeholder(R.drawable.empty_result)
).into(this.itemView.snapshotImage)
//before loading to imageVIiew I need the following to be done with the API Call response: val decryptedByteArray = CryptoCbc.decryptAesCBC(byteArrayFromResponse, sharedSecret)
psh
04/04/2020, 12:45 PMSouhail Marghabi
04/06/2020, 2:19 PM