Skip to content
This repository was archived by the owner on Jul 13, 2026. It is now read-only.

Commit 3a78ce1

Browse files
committed
3.6.6
1 parent ab308f9 commit 3a78ce1

5 files changed

Lines changed: 9 additions & 12 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,14 +222,14 @@ In your `build.gradle` of project level:
222222
````gradle
223223
buildscript {
224224
// add this line
225-
ext.kotlin_version = '1.3.61'
225+
ext.kotlin_version = '1.4.21'
226226
227227
repositories {
228228
google()
229229
jcenter()
230230
}
231231
dependencies {
232-
classpath 'com.android.tools.build:gradle:3.5.3'
232+
classpath 'com.android.tools.build:gradle:4.1.2'
233233
// add this line
234234
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
235235

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ buildscript {
1212
}
1313

1414
dependencies {
15-
classpath 'com.android.tools.build:gradle:4.1.1'
15+
classpath 'com.android.tools.build:gradle:4.1.2'
1616
classpath 'com.google.gms:google-services:4.3.4'
1717
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
1818
classpath 'com.vanniktech:gradle-maven-publish-plugin:0.13.0'

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ org.gradle.daemon=false
77
#kapt.use.worker.api=true
88
# ------- Library versions
99
PROCESSOR_VERSION=1.7
10-
MATERIAL_PREFERENCE_VERSION=3.6.5
10+
MATERIAL_PREFERENCE_VERSION=3.6.6

materialpreference/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ android {
3434

3535
dependencies {
3636
api 'androidx.appcompat:appcompat:1.2.0'
37-
api 'com.google.android.material:material:1.3.0-beta01'
37+
api 'com.google.android.material:material:1.3.0-rc01'
3838
api 'androidx.documentfile:documentfile:1.0.1'
3939
api 'androidx.cardview:cardview:1.0.0'
4040

@@ -48,7 +48,7 @@ dependencies {
4848
api "org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutinesVersion"
4949
api "org.jetbrains.kotlinx:kotlinx-coroutines-android:$coroutinesVersion"
5050

51-
implementation "com.anggrayudi:storage:0.4.1"
51+
implementation "com.anggrayudi:storage:0.4.3"
5252
// implementation("com.anggrayudi:storage:0.4.1-SNAPSHOT") { changing = true }
5353
}
5454

materialpreference/src/main/java/com/anggrayudi/materialpreference/Preference.kt

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -916,14 +916,11 @@ open class Preference @Keep @JvmOverloads constructor(
916916
*/
917917
override fun compareTo(other: Preference): Int {
918918
return when {
919-
order != other.order -> // Do order comparison
920-
order - other.order
921-
_title === other._title -> // If titles are null or share same object comparison
922-
0
919+
order != other.order -> order - other.order // Do order comparison
920+
_title === other._title -> 0 // If titles are null or share same object comparison
923921
_title == null -> 1
924922
other._title == null -> -1
925-
else -> // Do name comparison
926-
_title!!.toString().compareTo(other._title!!.toString(), ignoreCase = true)
923+
else -> _title!!.toString().compareTo(other._title!!.toString(), ignoreCase = true) // Do name comparison
927924
}
928925
}
929926

0 commit comments

Comments
 (0)