Skip to content

Commit d96e768

Browse files
authored
Merge pull request #62 from Q42/kotlin2
Kotlin 2.0!!
2 parents 3bf3335 + 4e49245 commit d96e768

File tree

19 files changed

+41
-42
lines changed

19 files changed

+41
-42
lines changed

.github/workflows/pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- uses: actions/setup-java@v3
1616
with:
1717
distribution: "corretto" # See 'Supported distributions' for available options
18-
java-version: "17"
18+
java-version: "21"
1919
cache: "gradle"
2020
- name: Update version code
2121
uses: chkfung/android-version-actions@v1.2.1

.idea/compiler.xml

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

.idea/gradle.xml

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/kotlinc.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ plugins {
22
id "com.android.application"
33
alias libs.plugins.googleServices
44
alias libs.plugins.firebaseCrashlyticsPlugin
5+
alias libs.plugins.compose.compiler
56
}
67

78
apply from: "$rootDir/build.module.feature-and-app.gradle"

build.config.jvm.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ android {
55
}
66
}
77
compileOptions {
8-
sourceCompatibility JavaVersion.VERSION_17
9-
targetCompatibility JavaVersion.VERSION_17
8+
sourceCompatibility JavaVersion.VERSION_21
9+
targetCompatibility JavaVersion.VERSION_21
1010
}
11-
}
11+
}

build.dep.compose.gradle

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ android {
44
buildFeatures {
55
compose = true
66
}
7-
composeOptions {
8-
kotlinCompilerExtensionVersion = libs.versions.kotlinCompilerComposeExtensionVersion.get()
9-
}
107
}
118

129
dependencies {
@@ -17,4 +14,4 @@ dependencies {
1714
implementation(libs.composeUIToolingPreview)
1815
implementation(libs.composeMaterial3)
1916
implementation(libs.composeLifecycle)
20-
}
17+
}

build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ plugins { // sets class paths only (because of 'apply false')
1717
alias libs.plugins.ksp apply false
1818
alias libs.plugins.googleServices apply false
1919
alias libs.plugins.firebaseCrashlyticsPlugin apply false
20+
alias libs.plugins.compose.compiler apply false
2021
}
2122

2223
allprojects {

build.module.feature-and-app.gradle

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@ android {
2222
buildFeatures {
2323
compose = true
2424
}
25-
composeOptions {
26-
kotlinCompilerExtensionVersion = libs.versions.kotlinCompilerComposeExtensionVersion.get()
27-
}
2825
packaging {
2926
resources {
3027
excludes += "/META-INF/{AL2.0,LGPL2.1}"

core/navigation/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
plugins {
22
id "com.android.library"
3+
alias libs.plugins.compose.compiler
34
}
45
apply from: "$rootDir/build.module.library.gradle"
56
apply from: "$rootDir/build.dep.compose.gradle"

core/ui/build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
plugins {
22
id "com.android.library"
3+
alias libs.plugins.compose.compiler
34
}
45
apply from: "$rootDir/build.module.library.gradle"
56
apply from: "$rootDir/build.dep.compose.gradle"
67

78
android {
89
namespace = "nl.q42.template.core.ui"
9-
}
10+
}

data/user/src/main/kotlin/nl/q42/template/data/user/di/UserDataModule.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import dagger.Provides
66
import dagger.hilt.InstallIn
77
import dagger.hilt.components.SingletonComponent
88
import nl.q42.template.data.user.UserRepositoryImpl
9-
import nl.q42.data.user.remote.model.UserApi
9+
import nl.q42.template.data.user.remote.UserApi
1010
import nl.q42.template.domain.user.repo.UserRepository
1111
import retrofit2.Retrofit
1212
import javax.inject.Singleton
@@ -29,4 +29,4 @@ internal interface UserRepoModule {
2929
@Binds
3030
@Singleton
3131
fun bindUserRepository(impl: UserRepositoryImpl): UserRepository
32-
}
32+
}

data/user/src/main/kotlin/nl/q42/template/data/user/remote/UserApi.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package nl.q42.data.user.remote.model
1+
package nl.q42.template.data.user.remote
22

33
import com.haroldadmin.cnradapter.NetworkResponse
44
import nl.q42.template.actionresult.data.ApiErrorResponse
@@ -13,4 +13,4 @@ internal interface UserApi {
1313
*/
1414
@GET("get")
1515
suspend fun getUsers(@Query("email") dummyEmailForResponse: String): NetworkResponse<UserDTO, ApiErrorResponse>
16-
}
16+
}

data/user/src/main/kotlin/nl/q42/template/data/user/remote/UserRemoteDataSource.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ package nl.q42.template.data.user.remote
22

33
import kotlinx.coroutines.Dispatchers
44
import kotlinx.coroutines.withContext
5-
import nl.q42.data.user.remote.model.UserApi
65
import nl.q42.template.actionresult.data.mapToActionResult
76
import nl.q42.template.actionresult.domain.ActionResult
87
import nl.q42.template.actionresult.domain.map

feature/home/build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
plugins {
22
id "com.android.library"
3+
alias libs.plugins.compose.compiler
34
}
45
apply from: "$rootDir/build.module.feature-and-app.gradle"
56
apply from: "$rootDir/build.dep.navigation.gradle"
@@ -20,4 +21,4 @@ dependencies {
2021
implementation project(':core:ui')
2122
implementation project(':core:actionresult')
2223
implementation project(':core:navigation')
23-
}
24+
}

feature/onboarding/build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
plugins {
22
id "com.android.library"
3+
alias libs.plugins.compose.compiler
34
}
45
apply from: "$rootDir/build.module.feature-and-app.gradle"
56
apply from: "$rootDir/build.dep.navigation.gradle"
@@ -20,4 +21,4 @@ dependencies {
2021
implementation project(':core:ui')
2122
implementation project(':core:actionresult')
2223
implementation project(':core:navigation')
23-
}
24+
}

gradle/libs.versions.toml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,29 @@
11
[versions]
2-
androidxCore = "1.12.0"
3-
androidxLifecycle = "2.7.0"
4-
kotlinxCoroutinesTest = "1.7.3"
2+
androidxCore = "1.13.1"
3+
androidxLifecycle = "2.8.4"
4+
kotlinxCoroutinesTest = "1.8.1"
55
junit = "4.13.2"
66
mockkAndroid = "1.13.9"
7-
jvmTarget = "17"
8-
kotlin = "1.9.22"
9-
ksp = "1.9.22-1.0.18"
10-
gradlePlugin = "8.2.1"
11-
googleServices = "4.4.0"
12-
crashlyticsPlugin = "2.9.9"
13-
firebaseBOM = "32.7.0"
7+
jvmTarget = "21"
8+
kotlin = "2.0.0"
9+
ksp = "2.0.0-1.0.21"
10+
gradlePlugin = "8.4.1"
11+
googleServices = "4.4.1"
12+
crashlyticsPlugin = "3.0.1"
13+
firebaseBOM = "33.0.0"
1414
manesVersions = "0.44.0"
1515
littleRobotsCatalogUpdates = "0.8.1"
1616
hilt = "2.50"
17-
retrofit = "2.9.0"
17+
retrofit = "2.10.0"
1818
kotlinx-serialization = "1.6.3"
1919
retrofit2KotlinxSerializationConverter = "1.0.0"
2020
networkResponseAdapter = "5.0.0"
2121
napier = "2.7.1"
22-
composeDestinations = "1.9.60"
22+
composeDestinations = "1.10.2"
2323
okhttp = "4.12.0"
24-
composePlatform = "2023.10.01"
25-
kotlinCompilerComposeExtensionVersion = "1.5.8"
26-
activityCompose = "1.8.2"
27-
hiltNavigationCompose = "1.1.0"
24+
composePlatform = "2024.05.00"
25+
activityCompose = "1.9.0"
26+
hiltNavigationCompose = "1.2.0"
2827
composeLifecycle = "2.7.0"
2928
turbine = "1.0.0"
3029

@@ -71,3 +70,4 @@ hilt = { id = "com.google.dagger.hilt.android", version.ref = "hilt" }
7170
ksp = { id = "com.google.devtools.ksp", version.ref = "ksp" }
7271
googleServices = { id = "com.google.gms.google-services", version.ref = "googleServices" }
7372
firebaseCrashlyticsPlugin = { id = "com.google.firebase.crashlytics", version.ref = "crashlyticsPlugin" }
73+
compose-compiler = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" }
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#Thu Jan 26 10:33:34 CET 2023
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
4-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
4+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
55
zipStoreBase=GRADLE_USER_HOME
66
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)