Skip to content

Commit e8c0648

Browse files
authored
Merge pull request #38 from skydoves/kotlin/2.2.10
Bump Kotlin to 2.2.10, Arrow to 2.1.2, AGP to 8.12.0, and others
2 parents 111063e + afb1507 commit e8c0648

9 files changed

Lines changed: 52 additions & 45 deletions

File tree

.gitignore

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,20 @@
77

88
# Java class files
99
*.class
10-
./.kotlin
10+
11+
# Kotlin
12+
.kotlin
1113

1214
# Generated files
1315
bin/
1416
gen/
1517
out/
1618

1719
# Gradle files
18-
/.idea
1920
.gradle/
2021
build/
22+
.cxx/
23+
2124

2225
# Local configuration file (sdk path, etc)
2326
local.properties
@@ -36,15 +39,13 @@ captures/
3639

3740
# Intellij
3841
*.iml
39-
.idea/workspace.xml
40-
.idea/tasks.xml
41-
.idea/gradle.xml
42-
.idea/dictionaries
43-
.idea/libraries
42+
/.idea/*
43+
!.idea/codeInsightSettings.xml
4444
app/.idea/
4545

46-
# Mac
46+
# DS_Store
4747
*.DS_Store
48+
**/DS_Store
4849

4950
# Keystore files
5051
*.jks
@@ -55,7 +56,5 @@ app/.idea/
5556
# Google Services (e.g. APIs or Firebase)
5657
google-services.json
5758

58-
# Freeline
59-
freeline.py
60-
freeline/
61-
freeline_project_description.json
59+
# Temporary API docs
60+
docs/api

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ This library allows you to model your Retrofit responses with [Kotlin's Result](
2828
[![Maven Central](https://img.shields.io/maven-central/v/com.github.skydoves/retrofit-adapters-result.svg?label=Maven%20Central)](https://search.maven.org/search?q=g:%22com.github.skydoves%22%20AND%20a:%22retrofit-adapters-result%22)
2929
<br>
3030

31-
Add the dependency below to your **module**'s `build.gradle` file:
31+
Add the dependency below to your **module**'s `build.gradle.kts` file:
3232

3333
```gradle
3434
dependencies {
35-
implementation "com.github.skydoves:retrofit-adapters-result:1.0.13"
35+
implementation("com.github.skydoves:retrofit-adapters-result:1.0.13")
3636
}
3737
```
3838

app/build.gradle.kts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
*/
1616
import com.skydoves.retrofit.adapters.Configuration
1717

18-
@Suppress("DSL_SCOPE_VIOLATION")
1918
plugins {
2019
id(libs.plugins.android.application.get().pluginId)
2120
id(libs.plugins.kotlin.android.get().pluginId)

build.gradle.kts

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
2+
13
// Designed and developed by 2022 skydoves (Jaewoong Eum)
24
//
35
// Licensed under the Apache License, Version 2.0 (the "License");
@@ -12,7 +14,6 @@
1214
// See the License for the specific language governing permissions and
1315
// limitations under the License.
1416

15-
@Suppress("DSL_SCOPE_VIOLATION")
1617
plugins {
1718
alias(libs.plugins.android.application) apply false
1819
alias(libs.plugins.android.library) apply false
@@ -57,11 +58,15 @@ subprojects {
5758

5859
if (!name.contains("app")) {
5960
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().all {
60-
kotlinOptions.jvmTarget = libs.versions.jvmTarget.get()
61-
kotlinOptions.freeCompilerArgs += listOf(
62-
"-Xopt-in=kotlinx.coroutines.ExperimentalCoroutinesApi",
63-
"-Xexplicit-api=strict",
64-
)
61+
compilerOptions {
62+
jvmTarget.set(JvmTarget.fromTarget(libs.versions.jvmTarget.get()))
63+
freeCompilerArgs.addAll(
64+
listOf(
65+
"-Xopt-in=kotlinx.coroutines.ExperimentalCoroutinesApi",
66+
"-Xexplicit-api=strict",
67+
)
68+
)
69+
}
6570
}
6671
}
6772

buildSrc/src/main/kotlin/com/skydoves/retrofit/adapters/Configuration.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
package com.skydoves.retrofit.adapters
1818

1919
object Configuration {
20-
const val compileSdk = 34
21-
const val targetSdk = 34
22-
const val minSdk = 19
20+
const val compileSdk = 36
21+
const val targetSdk = 36
22+
const val minSdk = 21
2323
const val minSdkDemo = 21
2424
const val majorVersion = 1
2525
const val minorVersion = 0

gradle/libs.versions.toml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,34 @@
11
[versions]
2-
agp = "8.7.3"
3-
kotlin = "2.1.10"
2+
agp = "8.12.0"
3+
kotlin = "2.2.10"
44
dokka = "2.0.0"
55
jvmTarget = "11"
6-
nexusPlugin = "0.30.0"
7-
binaryCompatibility = "0.17.0"
8-
appcompat = "1.7.0"
6+
nexusPlugin = "0.34.0"
7+
binaryCompatibility = "0.18.1"
8+
appcompat = "1.7.1"
99
material = "1.12.0"
10-
retrofit = "2.11.0"
11-
okhttp = "4.12.0"
12-
coroutines = "1.10.1"
13-
kotlinSerialization = "1.8.0"
14-
arrow = "1.2.0"
15-
paging = "3.3.5"
16-
ksp = "2.1.0-1.0.29"
10+
retrofit = "3.0.0"
11+
okhttp = "5.1.0"
12+
coroutines = "1.10.2"
13+
kotlinSerialization = "1.9.0"
14+
arrow = "2.1.2"
15+
paging = "3.3.6"
16+
ksp = "2.2.10-2.0.2"
1717
moshi = "1.15.2"
1818
glide = "4.16.0"
19-
androidxLifecycle = "2.8.7"
20-
androidxMacroBenchmark = "1.3.3"
19+
androidxLifecycle = "2.9.2"
20+
androidxMacroBenchmark = "1.4.0"
2121
androidxProfileinstaller = "1.4.1"
2222
androidxUiAutomator = "2.3.0"
2323
junit = "4.13.2"
24-
androidxTest = "1.6.2"
25-
androidxJunit = "1.2.1"
24+
androidxTest = "1.7.0"
25+
androidxJunit = "1.3.0"
2626
androidxArchTest = "2.1.0"
2727
mockito = "5.14.2"
2828
mockitoInline = "5.2.0"
2929
mockitoKotlin = "2.2.0"
3030
timber = "5.0.1"
31-
turbine = "1.2.0"
31+
turbine = "1.2.1"
3232
spotless = "6.21.0"
3333

3434
[plugins]

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#Sun Nov 03 16:21:12 KST 2024
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
4-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
4+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
55
networkTimeout=10000
66
validateDistributionUrl=true
77
zipStoreBase=GRADLE_USER_HOME

retrofit-adapters-arrow/src/main/kotlin/com/skydoves/retrofit/adapters/arrow/EitherExtensions.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public suspend inline fun <A, B, C> Either<A, B>.foldSuspend(
5757
* @param onRight Performs on the encapsulated value if this [Either] instance represents [Right].
5858
*/
5959
public suspend inline fun <A, B, C> Either<A, B>.onRightSuspend(
60-
crossinline onRight: suspend suspend (B) -> C,
60+
crossinline onRight: suspend (B) -> C,
6161
): Either<A, B> = apply {
6262
if (this is Right) {
6363
onRight(value)
@@ -74,7 +74,7 @@ public suspend inline fun <A, B, C> Either<A, B>.onRightSuspend(
7474
* @param onLeft Performs on the encapsulated value if this [Either] instance represents [Left].
7575
*/
7676
public suspend inline fun <A, B, C> Either<A, B>.onLeftSuspend(
77-
crossinline onLeft: suspend suspend (A) -> C,
77+
crossinline onLeft: suspend (A) -> C,
7878
): Either<A, B> = apply {
7979
if (this is Left) {
8080
onLeft(value)

retrofit-adapters-result/build.gradle.kts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,11 @@ mavenPublishing {
4141
}
4242

4343
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().all {
44-
kotlinOptions.freeCompilerArgs += listOf("-Xopt-in=kotlin.contracts.ExperimentalContracts")
44+
compilerOptions {
45+
freeCompilerArgs.addAll(
46+
listOf("-Xopt-in=kotlin.contracts.ExperimentalContracts")
47+
)
48+
}
4549
}
4650

4751
dependencies {

0 commit comments

Comments
 (0)