Skip to content

Commit da24272

Browse files
authored
Update Fruitties to Kotlin 2.0.10 (#28)
* Kotlin 2.0.10 * Add `.kotlin` to `.gitignore` * Room 2.7.0-alpha06 * https://developer.android.com/jetpack/androidx/releases/room#2.7.0-alpha06 * https://developer.android.com/kotlin/multiplatform/room#defining-database * Gradle wrapper 8.10 * ./gradlew wrapper --gradle-version latest * Various library version bumps * Android Gradle plugin 8.5.2 * SQLite to 2.5.0-alpha06
1 parent 32f4a85 commit da24272

File tree

12 files changed

+260
-164
lines changed

12 files changed

+260
-164
lines changed

Fruitties/.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ captures
77
.externalNativeBuild
88
.cxx
99
local.properties
10-
xcuserdata
10+
xcuserdata
11+
.kotlin

Fruitties/androidApp/build.gradle.kts

+1-3
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
plugins {
1717
alias(libs.plugins.androidApplication)
1818
alias(libs.plugins.kotlinAndroid)
19+
alias(libs.plugins.compose.compiler)
1920
}
2021

2122
android {
@@ -31,9 +32,6 @@ android {
3132
buildFeatures {
3233
compose = true
3334
}
34-
composeOptions {
35-
kotlinCompilerExtensionVersion = libs.versions.compose.compiler.get()
36-
}
3735
packaging {
3836
resources {
3937
excludes += "/META-INF/{AL2.0,LGPL2.1}"

Fruitties/build.gradle.kts

+7-6
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,20 @@
1515
*/
1616
plugins {
1717
//trick: for the same plugin versions in all sub-modules
18-
alias(libs.plugins.androidApplication).apply(false)
19-
alias(libs.plugins.androidLibrary).apply(false)
20-
alias(libs.plugins.kotlinAndroid).apply(false)
21-
alias(libs.plugins.kotlinMultiplatform).apply(false)
22-
alias(libs.plugins.spotless).apply(false)
18+
alias(libs.plugins.androidApplication) apply false
19+
alias(libs.plugins.androidLibrary) apply false
20+
alias(libs.plugins.kotlinAndroid) apply false
21+
alias(libs.plugins.kotlinMultiplatform) apply false
22+
alias(libs.plugins.compose.compiler) apply false
23+
alias(libs.plugins.spotless) apply false
2324
}
2425

2526
subprojects {
2627
apply(plugin = "com.diffplug.spotless")
2728
configure<com.diffplug.gradle.spotless.SpotlessExtension> {
2829
kotlin {
2930
target("**/*.kt")
30-
targetExclude("$buildDir/**/*.kt")
31+
targetExclude("${layout.buildDirectory}/**/*.kt")
3132

3233
ktlint()
3334
//licenseHeaderFile(rootProject.file("spotless/copyright.kt"))

Fruitties/gradle/libs.versions.toml

+28-17
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,35 @@
1+
# Copyright 2024 The Android Open Source Project
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# https://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
115
[versions]
2-
agp = "8.2.0"
3-
androidx-activityCompose = "1.8.2"
4-
androidx-paging = "3.3.0-rc01"
5-
androidx-room = "2.7.0-alpha01"
6-
androidx-viewmodelCompose = "2.7.0"
16+
agp = "8.5.2"
17+
androidx-activityCompose = "1.9.1"
18+
androidx-paging = "3.3.2"
19+
androidx-room = "2.7.0-alpha06"
20+
androidx-viewmodelCompose = "2.8.4"
721
atomicfu = "0.23.1"
8-
compose = "1.6.5"
9-
compose-compiler = "1.5.11"
22+
compose = "1.6.8"
1023
compose-material3 = "1.2.1"
11-
compose-plugin = "1.6.0"
1224
dataStoreVersion = "1.1.1"
13-
kotlin = "1.9.23"
25+
kotlin = "2.0.10"
1426
kotlinx-coroutines = "1.8.0"
1527
kotlinxDatetime = "0.6.0-RC.2"
16-
ksp = "1.9.23-1.0.19"
28+
ksp = "2.0.10-1.0.24"
1729
ktorVersion = "2.3.8"
18-
material3Android = "1.2.1"
19-
pagingComposeAndroid = "3.3.0-beta01"
20-
roomKtx = "2.6.1"
21-
skie = "0.6.2"
22-
sqlite = "2.5.0-SNAPSHOT"
30+
pagingComposeAndroid = "3.3.2"
31+
skie = "0.8.4"
32+
sqlite = "2.5.0-alpha06"
2333
spotless = "6.19.0"
2434

2535
[libraries]
@@ -29,9 +39,8 @@ androidx-datastore-preferences-core = { group = "androidx.datastore", name = "da
2939
androidx-paging-common = { module = "androidx.paging:paging-common", version.ref = "androidx-paging" }
3040
androidx-paging-compose-android = { group = "androidx.paging", name = "paging-compose-android", version.ref = "pagingComposeAndroid" }
3141
androidx-room-compiler = { group = "androidx.room", name = "room-compiler", version.ref = "androidx-room" }
32-
androidx-room-ktx = { group = "androidx.room", name = "room-ktx", version.ref = "androidx-room" }
33-
androidx-room-paging = { group = "androidx.room", name = "room-paging", version.ref = "androidx-room" }
3442
androidx-room-runtime = { group = "androidx.room", name = "room-runtime", version.ref = "androidx-room" }
43+
androidx-room-paging = { group = "androidx.room", name = "room-paging", version.ref = "androidx-room" }
3544
androidx-viewmodel-compose = { module = "androidx.lifecycle:lifecycle-viewmodel-compose", version.ref = "androidx-viewmodelCompose" }
3645
compose-foundation = { module = "androidx.compose.foundation:foundation", version.ref = "compose" }
3746
compose-material3 = { module = "androidx.compose.material3:material3", version.ref = "compose-material3" }
@@ -61,6 +70,8 @@ kotlinAndroid = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
6170
kotlinMultiplatform = { id = "org.jetbrains.kotlin.multiplatform", version.ref = "kotlin" }
6271
kotlinCocoapods = { id = "org.jetbrains.kotlin.native.cocoapods", version.ref = "kotlin" }
6372
kotlinxSerialization = { id = "org.jetbrains.kotlin.plugin.serialization", version.ref = "kotlin" }
73+
org-jetbrains-kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
74+
compose-compiler = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" }
6475
skie = { id = "co.touchlab.skie", version.ref = "skie" }
6576
ksp = { id = "com.google.devtools.ksp", version.ref = "ksp" }
6677
room = { id = "androidx.room", version.ref = "androidx-room" }
-15.3 KB
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
#Wed Apr 10 15:24:21 PDT 2024
21
distributionBase=GRADLE_USER_HOME
32
distributionPath=wrapper/dists
4-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10-bin.zip
4+
networkTimeout=10000
5+
validateDistributionUrl=true
56
zipStoreBase=GRADLE_USER_HOME
67
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)