Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
papjul committed May 21, 2024
1 parent 5c926e9 commit 9f2b5d0
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 25 deletions.
7 changes: 0 additions & 7 deletions .github/renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,6 @@
"dagger.hilt.android.plugin"
],
"packageRules": [
{
"groupName": "Kotlin",
"matchPackagePrefixes": [
"androidx.compose.compiler",
"org.jetbrains.kotlin"
]
},
{
"matchPackagePrefixes": ["org.shredzone.commons"],
"allowedVersions": "<3.0"
Expand Down
16 changes: 5 additions & 11 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ plugins {
id("com.android.application")
id("com.mikepenz.aboutlibraries.plugin")
kotlin("android")
alias(libs.plugins.kotlinCompose)
kotlin("kapt")
id("com.google.dagger.hilt.android")
kotlin("plugin.serialization")
Expand Down Expand Up @@ -132,10 +133,6 @@ android {
disable.addAll(listOf("MissingTranslation", "ExtraTranslation"))
}

composeOptions {
kotlinCompilerExtensionVersion = libs.versions.compose.compiler.get()
}

testOptions {
unitTests {
isIncludeAndroidResources = true
Expand Down Expand Up @@ -254,14 +251,11 @@ tasks {
dependsOn(localesConfigTask)
}

// See https://kotlinlang.org/docs/reference/experimental.html#experimental-status-of-experimental-api(-markers)
withType<KotlinCompile> {
kotlinOptions.freeCompilerArgs += listOf(
"-opt-in=androidx.compose.material3.ExperimentalMaterial3Api",
"-opt-in=androidx.compose.foundation.layout.ExperimentalLayoutApi",
"-opt-in=kotlinx.serialization.ExperimentalSerializationApi",
"-opt-in=com.google.accompanist.permissions.ExperimentalPermissionsApi"
)
compilerOptions.freeCompilerArgs.add("-opt-in=androidx.compose.material3.ExperimentalMaterial3Api")
compilerOptions.freeCompilerArgs.add("-opt-in=androidx.compose.foundation.layout.ExperimentalLayoutApi")
compilerOptions.freeCompilerArgs.add("-opt-in=kotlinx.serialization.ExperimentalSerializationApi")
compilerOptions.freeCompilerArgs.add("-opt-in=com.google.accompanist.permissions.ExperimentalPermissionsApi")
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class SearchViewModel @Inject constructor(
} ?: run {
result?.first?.let {
_listResource.value = Pair(it, LoadableLocationStatus.SUCCESS)
} ?: {
} ?: run {
_listResource.value = Pair(emptyList(), LoadableLocationStatus.ERROR)
}
}
Expand Down
9 changes: 3 additions & 6 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,22 @@ aboutlib_version = "11.1.4"
accompanist = "0.34.0"
activity = "1.9.0"
adaptiveiconview = "v0.0.3"
agp = "8.4.0"
agp = "8.4.1"
appcompat = "1.6.1"
cardview = "1.0.0"
compose = "1.6.7"
compose-compiler = "1.5.14"
compose-lint-checks = "1.3.1"
compose-material3 = "1.2.1"
core-ktx = "1.13.1"
dagger = "2.51.1"
datastore = "1.1.1"
expandabletextcompose = "2.0.1"
gms-location = "21.2.0"
hilt = "1.2.0"
javapoet = "1.13.0"
jjwt = "0.12.5"
junit = "5.10.2"
kotest-assertions = "5.9.0"
kotlin = "1.9.24"
kotlin = "2.0.0"
kotlinx-coroutines = "1.8.1"
kotlinx-serialization-json = "1.6.3"
kotlinx-serialization-xml = "3980721899b8a990d9e5df170459e17b81fbc34d"
Expand Down Expand Up @@ -57,7 +55,6 @@ android-gradle = { group = "com.android.tools.build", name = "gradle", version.r
appcompat = { group = "androidx.appcompat", name = "appcompat", version.ref = "appcompat" }
cardview = { group = "androidx.cardview", name = "cardview", version.ref = "cardview" }
compose-animation = { group = "androidx.compose.animation", name = "animation", version.ref = "compose" }
compose-compiler = { group = "androidx.compose.compiler", name = "compiler", version.ref = "compose-compiler" }
compose-foundation = { group = "androidx.compose.foundation", name = "foundation", version.ref = "compose" }
compose-lint-checks = { group = "com.slack.lint.compose", name = "compose-lint-checks", version.ref = "compose-lint-checks" }
compose-material-ripple = { group = "androidx.compose.material", name = "material-ripple", version.ref = "compose" }
Expand All @@ -71,7 +68,6 @@ dagger-hilt-core = { group = "com.google.dagger", name = "hilt-android", version
dagger-hilt-gradle = { group = "com.google.dagger", name = "hilt-android-gradle-plugin", version.ref = "dagger" }
datastore = { group = "androidx.datastore", name = "datastore-preferences", version.ref = "datastore" }
expandabletextcompose = { group = "com.github.giangpham96.expandable-text", name = "expandable_text_compose", version.ref = "expandabletextcompose" }
gms-location = { group = "com.google.android.gms", name = "play-services-location", version.ref = "gms-location" }
hilt-compiler = { group = "androidx.hilt", name = "hilt-compiler", version.ref = "hilt" }
hilt-work = { group = "androidx.hilt", name = "hilt-work", version.ref = "hilt" }
javapoet = { group = "com.squareup", name = "javapoet", version.ref = "javapoet" }
Expand Down Expand Up @@ -123,6 +119,7 @@ work-runtime = { group = "androidx.work", name = "work-runtime", version.ref = "

[plugins]
kotlinAndroid = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
kotlinCompose = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" }
kotlinKapt = { id = "org.jetbrains.kotlin.kapt", version.ref = "kotlin" }
kotlinSerialization = { id = "org.jetbrains.kotlin.plugin.serialization", version.ref = "kotlin" }

Expand Down

0 comments on commit 9f2b5d0

Please sign in to comment.