Skip to content

Commit

Permalink
chore: update dependencies and clean code a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
jahirfiquitiva committed Jan 3, 2024
1 parent e76aa1a commit bbcfdba
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 25 deletions.
22 changes: 11 additions & 11 deletions buildSrc/src/main/java/Versions.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
Expand All @@ -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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand All @@ -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()

0 comments on commit bbcfdba

Please sign in to comment.