Skip to content

Commit 96fb186

Browse files
authored
Merge pull request #1015 from wordpress-mobile/build/update-kotlin-to-1.6.10
Update Kotlin to 1.6.10
2 parents 3762b38 + 47a77e8 commit 96fb186

File tree

10 files changed

+5
-16
lines changed

10 files changed

+5
-16
lines changed

app/build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ dependencies {
4141
implementation project(':wordpress-shortcodes')
4242
implementation project(':media-placeholders')
4343

44-
implementation "org.jetbrains.kotlin:kotlin-stdlib:$gradle.ext.kotlinVersion"
4544
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$kotlinCoroutinesVersion"
4645
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:$kotlinCoroutinesVersion"
4746

aztec/build.gradle

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,6 @@ android {
4848
}
4949

5050
dependencies {
51-
implementation "org.jetbrains.kotlin:kotlin-stdlib:$gradle.ext.kotlinVersion"
52-
5351
implementation "org.ccil.cowan.tagsoup:tagsoup:$tagSoupVersion"
5452
implementation "org.jsoup:jsoup:$jSoupVersion"
5553

aztec/src/main/kotlin/org/wordpress/aztec/spans/IAztecNestable.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ interface IAztecNestable {
1212
fun getNestingLevelAt(spanned: Spanned, index: Int, nextIndex: Int = index): Int {
1313
return spanned.getSpans(index, nextIndex, IAztecNestable::class.java)
1414
.filter { spanned.getSpanEnd(it) != index || index == 0 || spanned[index - 1] != Constants.NEWLINE }
15-
.maxBy { it.nestingLevel }?.nestingLevel ?: 0
15+
.maxByOrNull { it.nestingLevel }?.nestingLevel ?: 0
1616
}
1717

1818
fun getMinNestingLevelAt(spanned: Spanned, index: Int, nextIndex: Int = index): Int {
@@ -21,7 +21,7 @@ interface IAztecNestable {
2121
.filter { spanned.getSpanStart(it) <= index && spanned.getSpanEnd(it) >= nextIndex &&
2222
(spanned.getSpanStart(it) != index || spanned.getSpanEnd(it) != nextIndex) }
2323
.filter { index != nextIndex || spanned.getSpanStart(it) != index && spanned.getSpanEnd(it) != index }
24-
.minBy { it.nestingLevel }?.nestingLevel ?: 0
24+
.minByOrNull { it.nestingLevel }?.nestingLevel ?: 0
2525
}
2626

2727
fun pushDeeper(spannable: Spannable, start: Int, end: Int, fromLevel: Int = 0, pushBy: Int = 1): List<SpanWrapper<IAztecNestable>> {

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ ext {
6161
tagSoupVersion = '1.2.1'
6262
glideVersion = '4.10.0'
6363
picassoVersion = '2.5.2'
64-
robolectricVersion = '4.4'
64+
robolectricVersion = '4.9'
6565
jUnitVersion = '4.12'
6666
jSoupVersion = '1.11.3'
6767
wordpressUtilsVersion = 'trunk-1ed207c03d2242b6fc3d74f9e388e9163cbc82a6'

glide-loader/build.gradle

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ android {
2424
}
2525

2626
dependencies {
27-
implementation "org.jetbrains.kotlin:kotlin-stdlib:$gradle.ext.kotlinVersion"
28-
2927
implementation aztecProjectDependency
3028
implementation "com.github.bumptech.glide:glide:$glideVersion"
3129
}

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# Specifies the JVM arguments used for the daemon process.
1111
# The setting is particularly useful for tweaking memory settings.
1212
# Default value: -Xmx10248m -XX:MaxPermSize=256m
13-
org.gradle.jvmargs=-Xmx1536m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
13+
org.gradle.jvmargs=-Xmx1536m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
1414
android.enableJetifier=false
1515
android.useAndroidX=true
1616

picasso-loader/build.gradle

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ android {
2323
}
2424

2525
dependencies {
26-
implementation "org.jetbrains.kotlin:kotlin-stdlib:$gradle.ext.kotlinVersion"
27-
2826
implementation aztecProjectDependency
2927

3028
implementation 'androidx.legacy:legacy-support-v4:1.0.0'

settings.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
pluginManagement {
2-
gradle.ext.kotlinVersion = '1.4.20'
2+
gradle.ext.kotlinVersion = '1.6.10'
33
gradle.ext.agpVersion = '7.2.1'
44

55
plugins {

wordpress-comments/build.gradle

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ android {
3535
}
3636

3737
dependencies {
38-
implementation "org.jetbrains.kotlin:kotlin-stdlib:$gradle.ext.kotlinVersion"
39-
4038
implementation aztecProjectDependency
4139

4240
implementation 'androidx.legacy:legacy-support-v4:1.0.0'

wordpress-shortcodes/build.gradle

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ android {
3434
}
3535

3636
dependencies {
37-
implementation "org.jetbrains.kotlin:kotlin-stdlib:$gradle.ext.kotlinVersion"
38-
3937
implementation aztecProjectDependency
4038

4139
implementation 'androidx.appcompat:appcompat:1.0.0'

0 commit comments

Comments
 (0)