Skip to content

Commit

Permalink
3.6.6
Browse files Browse the repository at this point in the history
  • Loading branch information
anggrayudi committed Feb 2, 2021
1 parent ab308f9 commit 3a78ce1
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 12 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -222,14 +222,14 @@ In your `build.gradle` of project level:
````gradle
buildscript {
// add this line
ext.kotlin_version = '1.3.61'
ext.kotlin_version = '1.4.21'
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.3'
classpath 'com.android.tools.build:gradle:4.1.2'
// add this line
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ buildscript {
}

dependencies {
classpath 'com.android.tools.build:gradle:4.1.1'
classpath 'com.android.tools.build:gradle:4.1.2'
classpath 'com.google.gms:google-services:4.3.4'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.vanniktech:gradle-maven-publish-plugin:0.13.0'
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ org.gradle.daemon=false
#kapt.use.worker.api=true
# ------- Library versions
PROCESSOR_VERSION=1.7
MATERIAL_PREFERENCE_VERSION=3.6.5
MATERIAL_PREFERENCE_VERSION=3.6.6
4 changes: 2 additions & 2 deletions materialpreference/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ android {

dependencies {
api 'androidx.appcompat:appcompat:1.2.0'
api 'com.google.android.material:material:1.3.0-beta01'
api 'com.google.android.material:material:1.3.0-rc01'
api 'androidx.documentfile:documentfile:1.0.1'
api 'androidx.cardview:cardview:1.0.0'

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

implementation "com.anggrayudi:storage:0.4.1"
implementation "com.anggrayudi:storage:0.4.3"
// implementation("com.anggrayudi:storage:0.4.1-SNAPSHOT") { changing = true }
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -916,14 +916,11 @@ open class Preference @Keep @JvmOverloads constructor(
*/
override fun compareTo(other: Preference): Int {
return when {
order != other.order -> // Do order comparison
order - other.order
_title === other._title -> // If titles are null or share same object comparison
0
order != other.order -> order - other.order // Do order comparison
_title === other._title -> 0 // If titles are null or share same object comparison
_title == null -> 1
other._title == null -> -1
else -> // Do name comparison
_title!!.toString().compareTo(other._title!!.toString(), ignoreCase = true)
else -> _title!!.toString().compareTo(other._title!!.toString(), ignoreCase = true) // Do name comparison
}
}

Expand Down

0 comments on commit 3a78ce1

Please sign in to comment.