Skip to content

Commit 28dcbba

Browse files
committed
Merge branch 'project-updates'
2 parents bfd7643 + 711f64c commit 28dcbba

File tree

10 files changed

+38
-29
lines changed

10 files changed

+38
-29
lines changed

CHANGELOG.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,16 @@
66

77
### Changes
88

9-
* Fix `SimpleRoomStatesRepository#callFactory` property name.
9+
* Use publish:0.35.0.
10+
* Switch from discontinued "Sonatype OSSRH" to "Central Portal".
11+
* Provide good defaults via `SimpleRoomStatesRepository` constructor and `RoomStatesApi#provideRoomStatesService`.
12+
* Use kotlin:2.2.21.
13+
* Use kotlinx-serialization-json:1.9.0.
14+
* Use kotlinx-coroutines:1.10.2.
15+
* Use okhttp:5.3.2.
16+
* Use retrofit-adapters-result:1.1.0.
17+
* Use retrofit:3.0.0.
18+
* **Breaking change:** Fix `SimpleRoomStatesRepository#callFactory` property name.
1019

1120

1221
## [v.1.0.1](https://github.com/EventFahrplan/roomstates/releases/tag/v.1.0.1)

build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@ plugins {
22
alias(libs.plugins.mavenPublish) apply false
33
alias(libs.plugins.versions)
44
}
5+
6+
apply from: "gradle/gradle-versions.gradle"

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ org.gradle.caching=true
77
org.gradle.configuration-cache=true
88
kotlin.code.style=official
99
# Maven Central
10-
SONATYPE_HOST=DEFAULT
10+
SONATYPE_HOST=CENTRAL_PORTAL
1111
RELEASE_SIGNING_ENABLED=true
1212
# Dummy properties so that anyone can compile the library
1313
mavenCentralUsername=""

gradle/libs.versions.toml

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
[versions]
2-
kotlin = "2.1.10"
3-
kotlinxSerializationJson = "1.8.0"
4-
kotlinxCoroutines = "1.10.1"
5-
junitJupiterParams = "5.11.4"
6-
mavenPublish = "0.30.0"
7-
mockitoKotlin = "5.4.0"
8-
okhttp = "4.12.0"
9-
retrofit = "2.11.0"
10-
retrofitAdaptersResult = "1.0.13"
11-
retrofitConverterKotlinxSerialization = "2.11.0"
12-
truth = "1.4.4"
13-
turbine = "1.2.0"
14-
versions = "0.52.0"
2+
kotlin = "2.2.21"
3+
kotlinxSerializationJson = "1.9.0"
4+
kotlinxCoroutines = "1.10.2"
5+
junitJupiterParams = "6.0.1"
6+
mavenPublish = "0.35.0"
7+
mockitoKotlin = "6.1.0"
8+
okhttp = "5.3.2"
9+
retrofit = "3.0.0"
10+
retrofitAdaptersResult = "1.1.0"
11+
truth = "1.4.5"
12+
turbine = "1.2.1"
13+
versions = "0.53.0"
1514

1615
[libraries]
1716
kotlinGradlePlugin = { module = "org.jetbrains.kotlin:kotlin-gradle-plugin", version.ref = "kotlin" }
@@ -20,7 +19,7 @@ kotlinxCoroutines = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-core",
2019

2120
retrofit = { module = "com.squareup.retrofit2:retrofit", version.ref = "retrofit" }
2221
retrofitAdaptersResult = { module = "com.github.skydoves:retrofit-adapters-result", version.ref = "retrofitAdaptersResult" }
23-
retrofitConverterKotlinxSerialization = { module = "com.squareup.retrofit2:converter-kotlinx-serialization", version.ref = "retrofitConverterKotlinxSerialization" }
22+
retrofitConverterKotlinxSerialization = { module = "com.squareup.retrofit2:converter-kotlinx-serialization", version.ref = "retrofit" }
2423

2524
okhttp = { module = "com.squareup.okhttp3:okhttp", version.ref = "okhttp" }
2625
okhttpMockwebserver = { module = "com.squareup.okhttp3:mockwebserver", version.ref = "okhttp" }

gradle/wrapper/gradle-wrapper.jar

2 KB
Binary file not shown.

gradle/wrapper/gradle-wrapper.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionSha256Sum=296742a352f0b20ec14b143fb684965ad66086c7810b7b255dee216670716175
4-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.12.1-all.zip
3+
distributionSha256Sum=f86344275d1b194688dd330abf9f6f2344cd02872ffee035f2d1ea2fd60cf7f3
4+
distributionUrl=https\://services.gradle.org/distributions/gradle-9.2.1-all.zip
55
networkTimeout=10000
66
validateDistributionUrl=true
77
zipStoreBase=GRADLE_USER_HOME

gradlew

Lines changed: 3 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gradlew.bat

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
package info.metadude.kotlin.library.roomstates.base
22

33
import okhttp3.Call
4+
import okhttp3.OkHttpClient
45

56
interface RoomStatesApi {
67

78
fun provideRoomStatesService(
89
baseUrl: String,
9-
callFactory: Call.Factory,
10+
callFactory: Call.Factory = OkHttpClient.Builder().build(),
1011
): RoomStatesService
1112

1213
}

room-states-repositories/src/main/kotlin/info/metadude/kotlin/library/roomstates/repositories/simple/SimpleRoomStatesRepository.kt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
11
package info.metadude.kotlin.library.roomstates.repositories.simple
22

3+
import info.metadude.kotlin.library.roomstates.base.Api
34
import info.metadude.kotlin.library.roomstates.base.RoomStatesApi
45
import info.metadude.kotlin.library.roomstates.base.models.Room
56
import info.metadude.kotlin.library.roomstates.repositories.RoomStatesRepository
67
import kotlinx.coroutines.flow.Flow
78
import kotlinx.coroutines.flow.flow
89
import okhttp3.Call
10+
import okhttp3.OkHttpClient
911

1012
class SimpleRoomStatesRepository(
1113
private val url: String,
1214
private val path: String,
13-
private val callFactory: Call.Factory,
14-
private val api: RoomStatesApi,
15+
private val callFactory: Call.Factory = OkHttpClient.Builder().build(),
16+
private val api: RoomStatesApi = Api,
1517
) : RoomStatesRepository {
1618

1719
override suspend fun getRooms(): Flow<Result<List<Room>>> {

0 commit comments

Comments
 (0)