Skip to content

Commit 6eae758

Browse files
committed
build: enable K2 compiler support for Kapt
- Add ‘kapt.use.k2=true’ to gradle.properties to resolve Kotlin 2.0+ Alpha warning. - Ensure DataBinding annotation processing aligns with the current Kotlin language version.
1 parent cbadc48 commit 6eae758

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

design/src/main/java/com/github/kr328/clash/design/view/LargeActionCard.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import android.content.res.ColorStateList
55
import android.graphics.drawable.Drawable
66
import android.util.AttributeSet
77
import androidx.annotation.AttrRes
8-
import androidx.core.graphics.ColorUtils
8+
import androidx.core.graphics.ColorUtils
99
import com.github.kr328.clash.design.R
1010
import com.github.kr328.clash.design.databinding.ComponentLargeActionLabelBinding
1111
import com.github.kr328.clash.design.util.*
@@ -52,7 +52,7 @@ class LargeActionCard @JvmOverloads constructor(
5252
)
5353

5454
val subTextColor = if (isDark) {
55-
ColorUtils.setAlphaComponent(contentColor, 178)
55+
ColorUtils.setAlphaComponent(contentColor, 178)
5656
} else {
5757
context.resolveThemedColor(com.google.android.material.R.attr.colorOnSurfaceVariant)
5858
}
@@ -65,7 +65,6 @@ class LargeActionCard @JvmOverloads constructor(
6565
init {
6666
radius = context.resources.getDimension(R.dimen.large_action_card_radius)
6767
cardElevation = context.resources.getDimension(R.dimen.large_action_card_elevation)
68-
6968
strokeWidth = 0
7069

7170
context.resolveClickableAttrs(attributeSet, defStyleAttr) {

0 commit comments

Comments
 (0)