Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update kotlin monorepo to v1.9.22 #170

Merged
merged 2 commits into from
Feb 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,25 @@ allprojects {
plugins.withId("org.jetbrains.kotlin.multiplatform") {
configure<KotlinMultiplatformExtension> {
jvmToolchain(11)
compilerOptions {
freeCompilerArgs.add("-Xexpect-actual-classes")
}
}
}
plugins.withId("org.jetbrains.kotlin.jvm") {
configure<KotlinJvmProjectExtension> {
jvmToolchain(11)
compilerOptions {
freeCompilerArgs.add("-Xexpect-actual-classes")
}
}
}
plugins.withId("org.jetbrains.kotlin.android") {
configure<KotlinAndroidProjectExtension> {
jvmToolchain(11)
compilerOptions {
freeCompilerArgs.add("-Xexpect-actual-classes")
}
}
}

Expand Down
5 changes: 3 additions & 2 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
android = "8.2.2"
androidx-activity-compose = "1.8.2"
androidx-appcompat = "1.6.1"
androidx-compose = "1.5.3"
androidx-paging = "3.3.0-alpha02"
kotlin = "1.9.10"
kotlin = "1.9.22"
kotlinx-coroutines = "1.7.3"
kotlinx-serialization-json = "1.6.3"
ktor = "2.3.8"
Expand All @@ -15,6 +14,8 @@ jb-compose-plugin = "1.5.12"
[libraries]
androidx-activity-compose = { module = "androidx.activity:activity-compose", version.ref = "androidx-activity-compose" }
androidx-appcompat = { module = "androidx.appcompat:appcompat", version.ref = "androidx-appcompat" }
# Specify the full coordinate for Renovate to track even though we only use the version.
androidx-compose-compiler = "androidx.compose.compiler:compiler:1.5.10"
androidx-compose-material = { module = "androidx.compose.material:material", version = "1.6.2" }
androidx-compose-ui = { module = "androidx.compose.ui:ui", version = "1.6.2" }
androidx-core-ktx = { module = "androidx.core:core-ktx", version = "1.12.0" }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,6 @@

package app.cash.paging

// Constructor has default argument values.
@Suppress("NO_ACTUAL_CLASS_MEMBER_FOR_EXPECTED_CLASS")
actual typealias CombinedLoadStates = androidx.paging.CombinedLoadStates
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,6 @@

package app.cash.paging

// Constructor has default argument values.
@Suppress("NO_ACTUAL_CLASS_MEMBER_FOR_EXPECTED_CLASS")
actual typealias Pager<Key, Value> = androidx.paging.Pager<Key, Value>
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,6 @@

package app.cash.paging

// Constructor has default argument values.
@Suppress("NO_ACTUAL_CLASS_MEMBER_FOR_EXPECTED_CLASS")
actual typealias PagingConfig = androidx.paging.PagingConfig
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,6 @@

package app.cash.paging

// Companion functions have default argument values.
@Suppress("NO_ACTUAL_CLASS_MEMBER_FOR_EXPECTED_CLASS")
actual typealias PagingData<T> = androidx.paging.PagingData<T>
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
package app.cash.paging

/** @suppress */
// Constructor has default argument values.
@Suppress("NO_ACTUAL_CLASS_MEMBER_FOR_EXPECTED_CLASS")
actual typealias PagingDataDiffer<T> = androidx.paging.PagingDataDiffer<T>

/** @suppress */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@

package app.cash.paging

// Member function has default argument values.
@Suppress("NO_ACTUAL_CLASS_MEMBER_FOR_EXPECTED_CLASS")
actual typealias PagingLogger = androidx.paging.PagingLogger

actual inline fun log(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,7 @@ actual typealias PagingSourceLoadResult<Key, Value> = androidx.paging.PagingSour
// Conflicts with the other actual typealias Error so just prefixed the surrounding class
actual typealias PagingSourceLoadResultError<Key, Value> = androidx.paging.PagingSource.LoadResult.Error<Key, Value>
actual typealias PagingSourceLoadResultInvalid<Key, Value> = androidx.paging.PagingSource.LoadResult.Invalid<Key, Value>

// Constructor has default argument values.
@Suppress("NO_ACTUAL_CLASS_MEMBER_FOR_EXPECTED_CLASS")
actual typealias PagingSourceLoadResultPage<Key, Value> = androidx.paging.PagingSource.LoadResult.Page<Key, Value>
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ package app.cash.paging

@RequiresOptIn
@Retention(AnnotationRetention.BINARY)
@Suppress("EXPECT_ACTUAL_OPT_IN_ANNOTATION")
expect annotation class ExperimentalPagingApi()
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,6 @@

package app.cash.paging

// Constructor has default argument values.
@Suppress("NO_ACTUAL_CLASS_MEMBER_FOR_EXPECTED_CLASS")
actual typealias CombinedLoadStates = androidx.paging.CombinedLoadStates
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,6 @@

package app.cash.paging

// Constructor has default argument values.
@Suppress("NO_ACTUAL_CLASS_MEMBER_FOR_EXPECTED_CLASS")
actual typealias Pager<Key, Value> = androidx.paging.Pager<Key, Value>
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,6 @@

package app.cash.paging

// Constructor has default argument values.
@Suppress("NO_ACTUAL_CLASS_MEMBER_FOR_EXPECTED_CLASS")
actual typealias PagingConfig = androidx.paging.PagingConfig
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,6 @@

package app.cash.paging

// Companion functions have default argument values.
@Suppress("NO_ACTUAL_CLASS_MEMBER_FOR_EXPECTED_CLASS")
actual typealias PagingData<T> = androidx.paging.PagingData<T>
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
package app.cash.paging

/** @suppress */
// Constructor has default argument values.
@Suppress("NO_ACTUAL_CLASS_MEMBER_FOR_EXPECTED_CLASS")
actual typealias PagingDataDiffer<T> = androidx.paging.PagingDataDiffer<T>

/** @suppress */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@

package app.cash.paging

// Member function has default argument values.
@Suppress("NO_ACTUAL_CLASS_MEMBER_FOR_EXPECTED_CLASS")
actual typealias PagingLogger = androidx.paging.PagingLogger

actual inline fun log(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,7 @@ actual typealias PagingSourceLoadResult<Key, Value> = androidx.paging.PagingSour
// Conflicts with the other actual typealias Error so just prefixed the surrounding class
actual typealias PagingSourceLoadResultError<Key, Value> = androidx.paging.PagingSource.LoadResult.Error<Key, Value>
actual typealias PagingSourceLoadResultInvalid<Key, Value> = androidx.paging.PagingSource.LoadResult.Invalid<Key, Value>

// Constructor has default argument values.
@Suppress("NO_ACTUAL_CLASS_MEMBER_FOR_EXPECTED_CLASS")
actual typealias PagingSourceLoadResultPage<Key, Value> = androidx.paging.PagingSource.LoadResult.Page<Key, Value>
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,6 @@

package app.cash.paging.testing

// Member function has default argument values.
@Suppress("NO_ACTUAL_CLASS_MEMBER_FOR_EXPECTED_CLASS")
actual typealias TestPager<Key, Value> = androidx.paging.testing.TestPager<Key, Value>
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,6 @@

package app.cash.paging.testing

// Member function has default argument values.
@Suppress("NO_ACTUAL_CLASS_MEMBER_FOR_EXPECTED_CLASS")
actual typealias TestPager<Key, Value> = androidx.paging.testing.TestPager<Key, Value>
7 changes: 6 additions & 1 deletion renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
"matchUpdateTypes": ["minor", "patch", "pin", "digest"],
"automerge": true,
},
{
"matchPackagePrefixes": [
"androidx.compose.compiler",
"org.jetbrains.kotlin:kotlin",
],
},
],
}

2 changes: 1 addition & 1 deletion samples/repo-search/android-composeui/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ android {
}

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

Expand Down