This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Credits https://kotlinlang.slack.com/archives/CJLTWPH7S/p1718623704772239 | |
import android.graphics.RenderEffect | |
import android.graphics.RuntimeShader | |
import android.os.Build | |
import androidx.annotation.RequiresApi | |
import androidx.compose.animation.core.Animatable | |
import androidx.compose.animation.core.LinearEasing | |
import androidx.compose.animation.core.tween | |
import androidx.compose.runtime.LaunchedEffect | |
import androidx.compose.runtime.getValue |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[*.{kt,kts}] | |
# possible values: number (e.g. 2), "unset" (makes ktlint ignore indentation completely) | |
indent_size=unset | |
# true (recommended) / false | |
insert_final_newline=false | |
# possible values: number (e.g. 120) (package name, imports & comments are ignored), "off" | |
# it's automatically set to 100 on `ktlint --android ...` (per Android Kotlin Style Guide) | |
max_line_length=140 | |
# Comma-separated list of rules to disable (Since 0.34.0) | |
# Note that rules in any ruleset other than the standard ruleset will need to be prefixed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#https://detekt.github.io/detekt/ | |
build: | |
maxIssues: 0 | |
excludeCorrectable: false | |
weights: | |
# complexity: 2 | |
# LongParameterList: 1 | |
# style: 1 | |
# comments: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Setting up guide http://dmitrysamoylenko.com/2020/12/06/configure_lints.html | |
# https://github.com/checkstyle/checkstyle | |
# https://github.com/pinterest/ktlint | |
# https://github.com/detekt/detekt | |
# Determine the Java command to use to start the JVM. | |
if [ -n "$JAVA_HOME" ]; then | |
if [ -x "$JAVA_HOME/jre/sh/java" ]; then | |
# IBM's JDK on AIX uses strange locations for the executables | |
JAVACMD="$JAVA_HOME/jre/sh/java" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.text.Editable; | |
import android.text.Spannable; | |
import android.text.SpannableString; | |
import android.text.SpannableStringBuilder; | |
import android.text.Spanned; | |
import android.text.TextUtils; | |
import android.text.TextWatcher; | |
import android.text.style.ForegroundColorSpan; | |
import android.util.SparseBooleanArray; | |
import android.view.View; |