diff --git a/buildSrc/src/main/java/Versions.kt b/buildSrc/src/main/java/Versions.kt index 4003885e6..8965581e6 100644 --- a/buildSrc/src/main/java/Versions.kt +++ b/buildSrc/src/main/java/Versions.kt @@ -2,10 +2,10 @@ object Versions { // Plugins - const val gradle = "8.1.1" - const val kotlin = "1.9.10" + const val gradle = "8.2.0" + const val kotlin = "1.9.22" const val sonatype = "1.3.0" - const val ksp = "$kotlin-1.0.13" + const val ksp = "$kotlin-1.0.16" // OneSignal const val oneSignal = "4.8.6" @@ -21,30 +21,30 @@ object Versions { // Android UI const val appcompat = "1.6.1" const val cardView = "1.0.0" - const val recyclerView = "1.3.1" + const val recyclerView = "1.3.2" const val swipeRefreshLayout = "1.1.0" const val palette = "1.0.0" const val preference = "1.2.1" - const val materialComponents = "1.9.0" - const val activityKtx = "1.7.2" - const val fragmentKtx = "1.6.1" + const val materialComponents = "1.11.0" + const val activityKtx = "1.8.2" + const val fragmentKtx = "1.6.2" // ViewModel and LiveData const val lifecycle = "2.6.2" const val lifecycleExt = "2.2.0" // Room Database - const val room = "2.5.2" + const val room = "2.6.1" // Work Manager - const val work = "2.8.1" + const val work = "2.9.0" // Network & Serialization const val gson = "2.10.1" const val retrofit = "2.9.0" // Image loading and Touch Image View - const val coil = "2.4.0" + const val coil = "2.5.0" const val touchImageView = "3.6" // Harmonic Colors @@ -63,7 +63,7 @@ object Versions { const val licenseChecker = "1.2.8" // In-App Billing - const val inAppBilling = "6.0.1" + const val inAppBilling = "6.1.0" // MultiDex const val multidex = "2.0.1" diff --git a/library/src/main/kotlin/dev/jahir/frames/data/workers/WallpaperApplier.kt b/library/src/main/kotlin/dev/jahir/frames/data/workers/WallpaperApplier.kt index f436b7e67..8fa1f0266 100644 --- a/library/src/main/kotlin/dev/jahir/frames/data/workers/WallpaperApplier.kt +++ b/library/src/main/kotlin/dev/jahir/frames/data/workers/WallpaperApplier.kt @@ -56,7 +56,6 @@ class WallpaperApplier(context: Context, params: WorkerParameters) : bitmap } } else bitmap - scaledBitmap ?: return false val result = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) { var result = 0 diff --git a/library/src/main/kotlin/dev/jahir/frames/extensions/resources/Dimens.kt b/library/src/main/kotlin/dev/jahir/frames/extensions/resources/Dimens.kt index 49b64e17f..2ac79950e 100644 --- a/library/src/main/kotlin/dev/jahir/frames/extensions/resources/Dimens.kt +++ b/library/src/main/kotlin/dev/jahir/frames/extensions/resources/Dimens.kt @@ -5,7 +5,7 @@ import android.content.res.Resources /** * Utils originally created by Allan Wang * Available at https://github.com/AllanWang/KAU - * I have added them here (copy/pasted) because this lib doesn't really uses/needs all its features + * I have added them here (copy/pasted) because this lib doesn't really use/need all its features * at a 100%. * Anyway, full credits go to Allan, for these awesome extensions */ @@ -21,15 +21,3 @@ inline val Float.pxToDp: Float inline val Int.pxToDp: Int get() = toFloat().pxToDp.toInt() - -inline val Float.dpToSp: Float - get() = this * Resources.getSystem().displayMetrics.scaledDensity - -inline val Int.dpToSp: Int - get() = toFloat().dpToSp.toInt() - -inline val Float.spToDp: Float - get() = this / Resources.getSystem().displayMetrics.scaledDensity - -inline val Int.spToDp: Int - get() = toFloat().spToDp.toInt() \ No newline at end of file