diff --git a/.idea/gradle.xml b/.idea/gradle.xml
index ef57ce6..9d5ff18 100644
--- a/.idea/gradle.xml
+++ b/.idea/gradle.xml
@@ -7,6 +7,7 @@
+
-
+
diff --git a/README.md b/README.md
index b3516f2..df6b47b 100644
--- a/README.md
+++ b/README.md
@@ -81,7 +81,7 @@ Step 2. Add the dependency
```kotlin
dependencies {
- implementation("com.github.jump-sdk:jetpack_compose_country_code_picker_emoji:2.0.7")
+ implementation("com.github.jump-sdk:jetpack_compose_country_code_picker_emoji:2.0.8")
}
```
diff --git a/ccp/build.gradle.kts b/ccp/build.gradle.kts
index 2a5010a..5235ec2 100644
--- a/ccp/build.gradle.kts
+++ b/ccp/build.gradle.kts
@@ -62,10 +62,11 @@ dependencies {
implementation(libs.compose.tooling.preview)
detektPlugins("ru.kode:detekt-rules-compose:1.3.0")
- detektPlugins("io.nlopez.compose.rules:detekt:0.1.12")
+ detektPlugins("io.nlopez.compose.rules:detekt:0.1.13")
detektPlugins("io.gitlab.arturbosch.detekt:detekt-rules-libraries:${libs.versions.detekt.get()}")
detektPlugins("io.gitlab.arturbosch.detekt:detekt-formatting:${libs.versions.detekt.get()}")
detektPlugins("com.braisgabin.detekt:kotlin-compiler-wrapper:0.0.4")
+ detektPlugins("com.github.hbmartin:hbmartin-detekt-rules:0.0.9")
}
detekt {
diff --git a/ccp/src/main/java/com/togitech/ccp/transformation/PhoneNumberTransformation.kt b/ccp/src/main/java/com/togitech/ccp/transformation/PhoneNumberTransformation.kt
index 3c746a0..01e82a4 100644
--- a/ccp/src/main/java/com/togitech/ccp/transformation/PhoneNumberTransformation.kt
+++ b/ccp/src/main/java/com/togitech/ccp/transformation/PhoneNumberTransformation.kt
@@ -38,6 +38,7 @@ class PhoneNumberTransformation(countryCode: String) : VisualTransformation {
)
}
+ @Suppress("AvoidMutableCollections", "AvoidVarsExceptWithDelegate")
private fun reformat(s: CharSequence, cursor: Int): Transformation {
phoneNumberFormatter.clear()
diff --git a/detekt.yml b/detekt.yml
index 5177e86..6171e82 100644
--- a/detekt.yml
+++ b/detekt.yml
@@ -654,8 +654,6 @@ style:
OptionalUnit:
active: true
excludes: ['**/build/**']
- OptionalWhenBraces:
- active: true
PreferToOverPairSyntax:
active: true
ProtectedMemberInFinalClass:
diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml
index 1c67ad9..b7091c9 100644
--- a/gradle/libs.versions.toml
+++ b/gradle/libs.versions.toml
@@ -10,7 +10,7 @@ compileSdk = "34"
# Dependencies
android-gradle-plugin = "8.1.0"
gradle-versions = "0.47.0"
-detekt = "1.23.0"
+detekt = "1.23.1"
accompanist = "0.31.5-beta"
androidx-activity-compose = "1.7.2"
diff --git a/settings.gradle.kts b/settings.gradle.kts
index 8967d66..1707f82 100644
--- a/settings.gradle.kts
+++ b/settings.gradle.kts
@@ -10,6 +10,7 @@ dependencyResolutionManagement {
repositories {
google()
mavenCentral()
+ maven("https://jitpack.io")
}
}
rootProject.name = "CountryCodePicker"