Skip to content

Commit 4d426ca

Browse files
authored
Various version updates (#318)
1 parent 4449c6f commit 4d426ca

File tree

12 files changed

+78
-90
lines changed

12 files changed

+78
-90
lines changed

.github/workflows/KaMPKit-Android.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,15 @@ jobs:
1717
runs-on: ubuntu-latest
1818

1919
steps:
20-
- uses: actions/checkout@v3
21-
22-
- uses: actions/setup-java@v3
20+
- uses: actions/checkout@v4
21+
- uses: actions/setup-java@v4
2322
with:
2423
distribution: corretto
2524
java-version: 17
2625

26+
- name: Setup Gradle
27+
uses: gradle/actions/setup-gradle@v4
28+
2729
- name: Build
2830
run: ./gradlew build
2931

.github/workflows/KaMPKit-iOS.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,15 @@ jobs:
1717
runs-on: macos-latest
1818

1919
steps:
20-
- uses: actions/checkout@v3
21-
22-
- uses: actions/setup-java@v3
20+
- uses: actions/checkout@v4
21+
- uses: actions/setup-java@v4
2322
with:
2423
distribution: corretto
2524
java-version: 17
2625

26+
- name: Setup Gradle
27+
uses: gradle/actions/setup-gradle@v4
28+
2729
- name: Run tests
2830
run: ./gradlew :shared:iosX64Test
2931

app/build.gradle.kts

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ android {
1313
targetSdk = libs.versions.targetSdk.get().toInt()
1414
versionCode = 1
1515
versionName = "1.0"
16-
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
1716
}
1817

1918
buildTypes {
@@ -27,11 +26,6 @@ android {
2726
}
2827
compileOptions {
2928
isCoreLibraryDesugaringEnabled = true
30-
sourceCompatibility = JavaVersion.VERSION_1_8
31-
targetCompatibility = JavaVersion.VERSION_1_8
32-
}
33-
kotlinOptions {
34-
jvmTarget = "1.8"
3529
}
3630
lint {
3731
warningsAsErrors = false
@@ -44,12 +38,15 @@ android {
4438
}
4539
}
4640

41+
kotlin {
42+
jvmToolchain(11)
43+
}
44+
4745
dependencies {
48-
implementation(project(":shared"))
46+
implementation(projects.shared)
4947
implementation(libs.bundles.app.ui)
5048
implementation(libs.multiplatformSettings.common)
5149
implementation(libs.kotlinx.dateTime)
5250
coreLibraryDesugaring(libs.android.desugaring)
5351
implementation(libs.koin.android)
54-
testImplementation(libs.junit)
5552
}

build.gradle.kts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,9 @@ subprojects {
1414
apply(plugin = rootProject.libs.plugins.ktlint.get().pluginId)
1515

1616
configure<org.jlleitschuh.gradle.ktlint.KtlintExtension> {
17-
version.set("1.1.1")
18-
enableExperimentalRules.set(true)
1917
verbose.set(true)
2018
filter {
2119
exclude { it.file.path.contains("build/") }
2220
}
2321
}
24-
25-
afterEvaluate {
26-
tasks.named("check").configure {
27-
dependsOn(tasks.getByName("ktlintCheck"))
28-
}
29-
}
30-
}
31-
32-
tasks.register<Delete>("clean") {
33-
delete(rootProject.layout.buildDirectory)
3422
}

gradle/libs.versions.toml

Lines changed: 20 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,30 @@
11
[versions]
22
## SDK Versions
33
minSdk = "21"
4-
targetSdk = "34"
5-
compileSdk = "34"
4+
targetSdk = "35"
5+
compileSdk = "35"
66

77
# Dependencies
8-
kotlin = "2.0.0"
9-
10-
android-gradle-plugin = "8.2.0"
11-
ktlint-gradle = "12.1.0"
12-
13-
compose = "1.6.7"
14-
15-
android-desugaring = "2.0.4"
16-
androidx-core = "1.13.1"
17-
androidx-test-junit = "1.1.5"
18-
androidx-activity-compose = "1.9.0"
19-
# TODO: Update to 2.8.+ when updating to Compose 1.7.+
20-
androidx-lifecycle = "2.7.0"
21-
8+
kotlin = "2.0.21"
9+
android-gradle-plugin = "8.5.2"
10+
ktlint-gradle = "12.1.1"
11+
compose = "1.7.5"
12+
android-desugaring = "2.1.3"
13+
androidx-core = "1.15.0"
14+
androidx-test-junit = "1.2.1"
15+
androidx-activity-compose = "1.9.3"
16+
androidx-lifecycle = "2.8.7"
2217
junit = "4.13.2"
23-
24-
coroutines = "1.8.1"
25-
kotlinx-datetime = "0.6.0"
26-
ktor = "2.3.11"
27-
28-
robolectric = "4.10.3"
29-
30-
kermit = "2.0.3"
31-
skie = "0.8.0"
32-
18+
coroutines = "1.9.0"
19+
kotlinx-datetime = "0.6.1"
20+
ktor = "3.0.1"
21+
robolectric = "4.13"
22+
kermit = "2.0.4"
23+
skie = "0.9.3"
3324
koin = "3.5.3"
34-
multiplatformSettings = "1.1.1"
35-
turbine = "1.0.0"
36-
sqlDelight = "2.0.1"
25+
multiplatformSettings = "1.2.0"
26+
turbine = "1.2.0"
27+
sqlDelight = "2.0.2"
3728

3829
[libraries]
3930
android-desugaring = { module = "com.android.tools:desugar_jdk_libs", version.ref = "android-desugaring" }
@@ -52,8 +43,6 @@ compose-activity = { module = "androidx.activity:activity-compose", version.ref
5243
coroutines-core = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-core", version.ref = "coroutines" }
5344
coroutines-test = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-test", version.ref = "coroutines" }
5445

55-
junit = { module = "junit:junit", version.ref = "junit" }
56-
5746
koin-android = { module = "io.insert-koin:koin-android", version.ref = "koin" }
5847
koin-core = { module = "io.insert-koin:koin-core", version.ref = "koin" }
5948
koin-test = { module = "io.insert-koin:koin-test", version.ref = "koin" }

gradle/wrapper/gradle-wrapper.jar

-19.5 KB
Binary file not shown.

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

gradlew

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ done
8383
# This is normally unused
8484
# shellcheck disable=SC2034
8585
APP_BASE_NAME=${0##*/}
86-
APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
86+
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
87+
APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit
8788

8889
# Use the maximum available, or set MAX_FD != -1 to use that value.
8990
MAX_FD=maximum
@@ -144,15 +145,15 @@ if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
144145
case $MAX_FD in #(
145146
max*)
146147
# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
147-
# shellcheck disable=SC3045
148+
# shellcheck disable=SC2039,SC3045
148149
MAX_FD=$( ulimit -H -n ) ||
149150
warn "Could not query maximum file descriptor limit"
150151
esac
151152
case $MAX_FD in #(
152153
'' | soft) :;; #(
153154
*)
154155
# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
155-
# shellcheck disable=SC3045
156+
# shellcheck disable=SC2039,SC3045
156157
ulimit -n "$MAX_FD" ||
157158
warn "Could not set maximum file descriptor limit to $MAX_FD"
158159
esac
@@ -201,11 +202,11 @@ fi
201202
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
202203
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
203204

204-
# Collect all arguments for the java command;
205-
# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
206-
# shell script including quotes and variable substitutions, so put them in
207-
# double quotes to make sure that they get re-expanded; and
208-
# * put everything else in single quotes, so that it's not re-expanded.
205+
# Collect all arguments for the java command:
206+
# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
207+
# and any embedded shellness will be escaped.
208+
# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
209+
# treated as '${Hostname}' itself on the command line.
209210

210211
set -- \
211212
"-Dorg.gradle.appname=$APP_BASE_NAME" \

gradlew.bat

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@ set JAVA_EXE=java.exe
4343
%JAVA_EXE% -version >NUL 2>&1
4444
if %ERRORLEVEL% equ 0 goto execute
4545

46-
echo.
47-
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
48-
echo.
49-
echo Please set the JAVA_HOME variable in your environment to match the
50-
echo location of your Java installation.
46+
echo. 1>&2
47+
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2
48+
echo. 1>&2
49+
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
50+
echo location of your Java installation. 1>&2
5151

5252
goto fail
5353

@@ -57,11 +57,11 @@ set JAVA_EXE=%JAVA_HOME%/bin/java.exe
5757

5858
if exist "%JAVA_EXE%" goto execute
5959

60-
echo.
61-
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
62-
echo.
63-
echo Please set the JAVA_HOME variable in your environment to match the
64-
echo location of your Java installation.
60+
echo. 1>&2
61+
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2
62+
echo. 1>&2
63+
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
64+
echo location of your Java installation. 1>&2
6565

6666
goto fail
6767

settings.gradle.kts

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,36 @@
1+
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
2+
13
pluginManagement {
24
repositories {
3-
gradlePluginPortal()
4-
google()
5+
google {
6+
content {
7+
includeGroupByRegex("com\\.android.*")
8+
includeGroupByRegex("com\\.google.*")
9+
includeGroupByRegex("androidx.*")
10+
}
11+
}
512
mavenCentral()
13+
gradlePluginPortal()
614
}
715
}
816

917
dependencyResolutionManagement {
1018
@Suppress("UnstableApiUsage")
1119
repositories {
12-
google()
20+
google {
21+
content {
22+
includeGroupByRegex("com\\.android.*")
23+
includeGroupByRegex("com\\.google.*")
24+
includeGroupByRegex("androidx.*")
25+
}
26+
}
1327
mavenCentral()
1428
}
1529
}
1630

31+
plugins {
32+
id("org.gradle.toolchains.foojay-resolver-convention") version("0.8.0")
33+
}
34+
1735
include(":app", ":shared")
1836
rootProject.name = "KaMPKit"

0 commit comments

Comments
 (0)