Skip to content

Commit

Permalink
fix: support kotlin 1.8.21 (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
jleon15 authored Jun 5, 2023
1 parent af5cfb9 commit b998fb4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ buildscript {
plugins {
id 'com.android.application' version '7.3.1' apply false
id 'com.android.library' version '7.3.1' apply false
id 'org.jetbrains.kotlin.android' version '1.7.20' apply false
id 'org.jetbrains.kotlin.android' version '1.8.21' apply false
}
8 changes: 4 additions & 4 deletions compose-example/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,17 @@ android {
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}
kotlinOptions {
jvmTarget = '1.8'
jvmTarget = '11'
}
buildFeatures {
compose true
}
composeOptions {
kotlinCompilerExtensionVersion '1.3.2'
kotlinCompilerExtensionVersion '1.4.7'
}
packagingOptions {
resources {
Expand Down
6 changes: 3 additions & 3 deletions lib/src/main/java/com/basistheory/android/view/TextElement.kt
Original file line number Diff line number Diff line change
Expand Up @@ -279,9 +279,9 @@ open class TextElement @JvmOverloads constructor(

_editText.onFocusChangeListener = OnFocusChangeListener { _, hasFocus ->
if (hasFocus)
_eventListeners.focus.forEach { it(FocusEvent()) }
_eventListeners.focus.iterator().forEach { it(FocusEvent()) }
else
_eventListeners.blur.forEach { it(BlurEvent()) }
_eventListeners.blur.iterator().forEach { it(BlurEvent()) }
}
}

Expand Down Expand Up @@ -319,7 +319,7 @@ open class TextElement @JvmOverloads constructor(
protected fun publishChangeEvent() {
val event = createElementChangeEvent()

_eventListeners.change.forEach {
_eventListeners.change.iterator().forEach {
it(event)
}
}
Expand Down

0 comments on commit b998fb4

Please sign in to comment.