diff --git a/build.gradle b/build.gradle index d27f3f664c..355ce465a9 100644 --- a/build.gradle +++ b/build.gradle @@ -8,7 +8,7 @@ buildscript { } dependencies { - classpath 'com.android.tools.build:gradle:3.3.2' + classpath 'com.android.tools.build:gradle:3.5.1' classpath 'com.automattic.android:fetchstyle:1.1' } } @@ -70,7 +70,7 @@ subprojects { ext { daggerVersion = '2.22.1' - wellSqlVersion = '1.4.0' + wellSqlVersion = '1.5.0' supportLibraryVersion = '27.1.1' arch_paging_version = '1.0.1' arch_lifecycle_version = '1.1.1' diff --git a/fluxc/src/main/java/org/wordpress/android/fluxc/model/list/ListOrder.kt b/fluxc/src/main/java/org/wordpress/android/fluxc/model/list/ListOrder.kt index b6123f4d23..ec8061f6b9 100644 --- a/fluxc/src/main/java/org/wordpress/android/fluxc/model/list/ListOrder.kt +++ b/fluxc/src/main/java/org/wordpress/android/fluxc/model/list/ListOrder.kt @@ -1,11 +1,13 @@ package org.wordpress.android.fluxc.model.list +import java.util.Locale + enum class ListOrder(val value: String) { ASC("ASC"), DESC("DESC"); companion object { fun fromValue(value: String): ListOrder? { - return values().firstOrNull { it.value.toLowerCase() == value.toLowerCase() } + return values().firstOrNull { it.value.toLowerCase(Locale.ROOT) == value.toLowerCase(Locale.ROOT) } } } } diff --git a/fluxc/src/main/java/org/wordpress/android/fluxc/model/list/PostListDescriptor.kt b/fluxc/src/main/java/org/wordpress/android/fluxc/model/list/PostListDescriptor.kt index 0ac248cf84..3640b91fd9 100644 --- a/fluxc/src/main/java/org/wordpress/android/fluxc/model/list/PostListDescriptor.kt +++ b/fluxc/src/main/java/org/wordpress/android/fluxc/model/list/PostListDescriptor.kt @@ -7,6 +7,7 @@ import org.wordpress.android.fluxc.model.list.ListOrder.DESC import org.wordpress.android.fluxc.model.list.PostListOrderBy.DATE import org.wordpress.android.fluxc.model.post.PostStatus import org.wordpress.android.fluxc.store.PostStore.DEFAULT_POST_STATUS_LIST +import java.util.Locale sealed class PostListDescriptor( val site: SiteModel, @@ -91,7 +92,7 @@ enum class PostListOrderBy(val value: String) { companion object { fun fromValue(value: String): PostListOrderBy? { - return values().firstOrNull { it.value.toLowerCase() == value.toLowerCase() } + return values().firstOrNull { it.value.toLowerCase(Locale.ROOT) == value.toLowerCase(Locale.ROOT) } } } } diff --git a/fluxc/src/main/java/org/wordpress/android/fluxc/store/PageStore.kt b/fluxc/src/main/java/org/wordpress/android/fluxc/store/PageStore.kt index f94f657117..83d9dc3672 100644 --- a/fluxc/src/main/java/org/wordpress/android/fluxc/store/PageStore.kt +++ b/fluxc/src/main/java/org/wordpress/android/fluxc/store/PageStore.kt @@ -21,6 +21,7 @@ import org.wordpress.android.fluxc.store.PostStore.PostErrorType import org.wordpress.android.fluxc.store.PostStore.PostErrorType.UNKNOWN_POST import org.wordpress.android.fluxc.store.PostStore.RemotePostPayload import org.wordpress.android.util.DateTimeUtils +import java.util.Locale import javax.inject.Inject import javax.inject.Singleton import kotlin.coroutines.Continuation @@ -74,7 +75,7 @@ class PageStore @Inject constructor( } suspend fun search(site: SiteModel, searchQuery: String): List = withContext(coroutineContext) { - getPagesFromDb(site).filter { it.title.toLowerCase().contains(searchQuery.toLowerCase()) } + getPagesFromDb(site).filter { it.title.toLowerCase(Locale.ROOT).contains(searchQuery.toLowerCase(Locale.ROOT)) } } suspend fun updatePageInDb(page: PageModel): OnPostChanged = suspendCoroutine { cont -> diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 9b4a5546b5..96a09f854d 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ -#Thu Nov 02 13:54:34 EDT 2017 +#Mon Sep 30 16:27:52 EDT 2019 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.3-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip