Skip to content

build(deps): Bump the kotlin-ksp group across 1 directory with 11 updates #21723

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 5 commits into from
Closed
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
Original file line number Diff line number Diff line change
@@ -132,7 +132,6 @@ class DebugSettingsViewModel
return when (this) {
FeatureFlagConfigDao.FeatureFlagValueSource.BUILD_CONFIG -> "Local value"
FeatureFlagConfigDao.FeatureFlagValueSource.REMOTE -> "Remote Value"
else -> null
}
}

Original file line number Diff line number Diff line change
@@ -209,9 +209,9 @@ class MySiteFragment : Fragment(R.layout.my_site_fragment),
}

override fun onConfirm(result: Bundle?) {
val task = result?.getSerializableCompat(
val task = result?.getSerializableCompat<QuickStartStore.QuickStartTask>(
QuickStartFullScreenDialogFragment.RESULT_TASK
) as? QuickStartStore.QuickStartTask
)
task?.let { viewModel.onQuickStartTaskCardClick(it) }
}

Original file line number Diff line number Diff line change
@@ -81,9 +81,9 @@ class StatsFragment : Fragment(R.layout.stats_fragment), ScrollableViewInitializ
WeakReference<StatsPullToRefreshListener.PullToRefreshEmitterListener>? = null

override fun setPullToRefreshReceiver(
pullToRefreshEmitterListener: StatsPullToRefreshListener.PullToRefreshEmitterListener
emitterListener: StatsPullToRefreshListener.PullToRefreshEmitterListener
) {
currentStatsPullToRefreshListener = WeakReference(pullToRefreshEmitterListener)
currentStatsPullToRefreshListener = WeakReference(emitterListener)
}

override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
4 changes: 2 additions & 2 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -83,10 +83,10 @@ json-path = '2.9.0'
jsoup = '1.21.1'
junit = '4.13.2'
kotlin-compile-testing = '1.6.0'
kotlin-main = '2.0.21'
kotlin-main = '2.1.21'
kotlinx-coroutines = '1.10.2'
kotlinx-kover = '0.7.6'
ksp = '2.0.21-1.0.28'
ksp = '2.1.21-2.0.1'
mockito-android = '5.18.0'
mockito-kotlin = '4.1.0'
mpandroidchart = 'v3.1.0'
Original file line number Diff line number Diff line change
@@ -7,7 +7,7 @@ enum class ListOrder(val value: String) {
DESC("DESC");
companion object {
fun fromValue(value: String): ListOrder? {
return values().firstOrNull { it.value.toLowerCase(Locale.ROOT) == value.toLowerCase(Locale.ROOT) }
return values().firstOrNull { it.value.lowercase(Locale.ROOT) == value.lowercase(Locale.ROOT) }
}
}
}
Original file line number Diff line number Diff line change
@@ -105,7 +105,7 @@ enum class PostListOrderBy(val value: String) {

companion object {
fun fromValue(value: String): PostListOrderBy? {
return values().firstOrNull { it.value.toLowerCase(Locale.ROOT) == value.toLowerCase(Locale.ROOT) }
return values().firstOrNull { it.value.lowercase(Locale.ROOT) == value.lowercase(Locale.ROOT) }
}
}
}
Original file line number Diff line number Diff line change
@@ -62,7 +62,7 @@ data class NotificationModel(
return if (type.isEmpty()) {
NONE
} else {
reverseMap[type.toUpperCase(Locale.US)] ?: UNKNOWN
reverseMap[type.uppercase(Locale.US)] ?: UNKNOWN
}
}
}
Original file line number Diff line number Diff line change
@@ -16,7 +16,7 @@ internal class BooleanTypeAdapter : JsonDeserializer<Boolean?> {
return when {
jsonPrimitive.isBoolean -> jsonPrimitive.asBoolean
jsonPrimitive.isNumber -> jsonPrimitive.asNumber.toInt() == 1
jsonPrimitive.isString -> TRUE_STRINGS.contains(jsonPrimitive.asString.toLowerCase(
jsonPrimitive.isString -> TRUE_STRINGS.contains(jsonPrimitive.asString.lowercase(
Locale.getDefault()
))
else -> false
Original file line number Diff line number Diff line change
@@ -74,7 +74,7 @@ class NotificationStore @Inject constructor(

companion object {
private val reverseMap = values().associateBy(DeviceRegistrationErrorType::name)
fun fromString(type: String) = reverseMap[type.toUpperCase(Locale.US)] ?: GENERIC_ERROR
fun fromString(type: String) = reverseMap[type.uppercase(Locale.US)] ?: GENERIC_ERROR
}
}

@@ -147,7 +147,7 @@ class NotificationStore @Inject constructor(

companion object {
private val reverseMap = values().associateBy(NotificationErrorType::name)
fun fromString(type: String) = reverseMap[type.toUpperCase(Locale.US)] ?: GENERIC_ERROR
fun fromString(type: String) = reverseMap[type.uppercase(Locale.US)] ?: GENERIC_ERROR
}
}

Original file line number Diff line number Diff line change
@@ -83,8 +83,8 @@ class PageStore @Inject constructor(
suspend fun search(site: SiteModel, searchQuery: String): List<PageModel> =
coroutineEngine.withDefaultContext(AppLog.T.POSTS, this, "search") {
getPagesFromDb(site).filter {
it.title.toLowerCase(Locale.ROOT)
.contains(searchQuery.toLowerCase(Locale.ROOT))
it.title.lowercase(Locale.ROOT)
.contains(searchQuery.lowercase(Locale.ROOT))
}
}

Original file line number Diff line number Diff line change
@@ -11,6 +11,7 @@ import org.wordpress.android.fluxc.store.QuickStartStore.QuickStartTaskType.CUST
import org.wordpress.android.fluxc.store.QuickStartStore.QuickStartTaskType.GET_TO_KNOW_APP
import org.wordpress.android.fluxc.store.QuickStartStore.QuickStartTaskType.GROW
import org.wordpress.android.util.AppLog
import java.io.Serializable
import javax.inject.Inject
import javax.inject.Singleton

@@ -19,7 +20,7 @@ class QuickStartStore @Inject constructor(
private val quickStartSqlUtils: QuickStartSqlUtils,
dispatcher: Dispatcher
) : Store(dispatcher) {
interface QuickStartTask {
interface QuickStartTask: Serializable {
val string: String
val taskType: QuickStartTaskType
val order: Int
Original file line number Diff line number Diff line change
@@ -1013,7 +1013,7 @@ open class SiteStore @Inject constructor(
private const val SITE = "SITE"
@JvmStatic fun fromString(string: String): NewSiteErrorType {
if (!TextUtils.isEmpty(string)) {
val siteString = string.toUpperCase(Locale.US).replace(BLOG, SITE)
val siteString = string.uppercase(Locale.US).replace(BLOG, SITE)
for (v in values()) {
if (siteString.equals(v.name, ignoreCase = true)) {
return v