Skip to content

Commit

Permalink
chore: update dependencies before code freeze (#2934)
Browse files Browse the repository at this point in the history
  • Loading branch information
yamilmedina committed Apr 24, 2024
1 parent 6bf7e6d commit 17ab3ae
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 102 deletions.
9 changes: 4 additions & 5 deletions .githooks/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,9 @@

set -e
############
## This Git Hook it's optional and can help you to auto-format your work on commit
## It will run "spotlessApply" and then add to the prev. staged commit the files modified
## This Git Hook it's optional and can help you to check code style, before you do your commits.
## It will run "detektAll"
############
echo "> Running spotless check and apply"
./gradlew spotlessApply
git add `git diff --name-only --cached`
echo "> Running detekt checks"
./gradlew detektAll
exit 0
1 change: 0 additions & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ plugins {
id(ScriptPlugins.quality)
id(ScriptPlugins.compilation)
id(ScriptPlugins.testing)
id(ScriptPlugins.spotless)
id(libs.plugins.wire.kover.get().pluginId)
}

Expand Down
28 changes: 3 additions & 25 deletions benchmark/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -16,41 +16,19 @@
* along with this program. If not, see http:https://www.gnu.org/licenses/.
*/
plugins {
id("com.android.library")
id("org.jetbrains.kotlin.android")
id(libs.plugins.wire.android.library.get().pluginId)
}

android {
namespace = "com.wire.benchmark"
compileSdk = 34

defaultConfig {
minSdk = 26

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles("consumer-rules.pro")
missingDimensionStrategy("contentType", "beta")
}

buildTypes {
release {
isMinifyEnabled = false
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
}
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
kotlinOptions {
jvmTarget = JavaVersion.VERSION_17.toString()
}
defaultConfig.missingDimensionStrategy("contentType", "beta")
}

dependencies {
implementation(libs.androidx.core)
implementation(libs.androidx.appcompat)
implementation(libs.material)

testImplementation(libs.junit4)
androidTestImplementation(libs.androidx.test.extJunit)
androidTestImplementation(libs.androidx.espresso.core)
Expand Down
1 change: 0 additions & 1 deletion buildSrc/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ dependencies {
implementation(libs.kotlin.gradlePlugin)
implementation("io.gitlab.arturbosch.detekt:detekt-gradle-plugin:${klibs.versions.detekt.get()}")
implementation("org.jetbrains.kotlinx:kover-gradle-plugin:${libs.versions.kover.get()}")
implementation(libs.spotless.gradlePlugin)
implementation(libs.android.junit5)

testImplementation("junit:junit:${libs.versions.junit4.get()}")
Expand Down
1 change: 0 additions & 1 deletion buildSrc/src/main/kotlin/Dependencies.kt
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,4 @@ object ScriptPlugins {
const val quality = "scripts.quality"
const val compilation = "scripts.compilation"
const val testing = "scripts.testing"
const val spotless = "scripts.spotless"
}
43 changes: 0 additions & 43 deletions buildSrc/src/main/kotlin/scripts/spotless.gradle.kts

This file was deleted.

17 changes: 0 additions & 17 deletions buildSrc/src/main/kotlin/spotless/class.license

This file was deleted.

14 changes: 6 additions & 8 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ androidJunit5 = "1.10.0.0"
gradle = "8.5"

# Kotlin
grgitCore = "5.2.0"
grgitCore = "5.2.2"
kotlin = "1.9.23"

# KotlinX
Expand All @@ -23,7 +23,6 @@ firebaseBOM = "32.8.1"
fragment = "1.5.6"
resaca = "2.4.6"
bundlizer = "0.8.0"
spotless = "6.1.2"
squareup-javapoet = "1.13.0"
visibilityModifiers = "1.1.0"
kover = "0.7.6"
Expand Down Expand Up @@ -74,8 +73,8 @@ openIdAppAuth = "0.11.1"

# Other Tools
aboutLibraries = "11.1.3"
leakCanary = "2.7"
ksp = "1.9.23-1.0.19"
leakCanary = "2.14"
ksp = "1.9.23-1.0.20"

# Benchmark
benchmark-macro-junit4 = "1.2.4"
Expand All @@ -94,9 +93,9 @@ junit4 = "4.13.2"
junit5 = "5.10.2"
kluent = "1.73"
mockk = "1.13.10"
okio = "3.7.0"
turbine = "1.0.0"
robolectric = "4.11.1"
okio = "3.9.0"
turbine = "1.1.0"
robolectric = "4.12.1"

[plugins]
# 3rd Party plugins
Expand Down Expand Up @@ -126,7 +125,6 @@ hilt-gradlePlugin = { module = "com.google.dagger:hilt-android-gradle-plugin", v
googleGms-gradlePlugin = { module = "com.google.gms:google-services", version.ref = "google-gms" }
googleGms-location = { module = "com.google.android.gms:play-services-location", version.ref = "gms-location" }
aboutLibraries-gradlePlugin = { module = "com.mikepenz.aboutlibraries.plugin:aboutlibraries-plugin", version.ref = "aboutLibraries" }
spotless-gradlePlugin = { module = "com.diffplug.spotless:spotless-plugin-gradle", version.ref = "spotless" }
kover-gradlePlugin = { module = "org.jetbrains.kotlinx:kover-gradle-plugin", version.ref = "kover" }

ktx-serialization = { module = "org.jetbrains.kotlinx:kotlinx-serialization-json", version.ref = "ktx-serialization" }
Expand Down
2 changes: 1 addition & 1 deletion kalium
Submodule kalium updated 405 files

0 comments on commit 17ab3ae

Please sign in to comment.