diff --git a/app/build.gradle.kts b/app/build.gradle.kts index dfdcf2c..0ca196d 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -7,7 +7,6 @@ import java.time.format.DateTimeFormatter plugins { alias(libs.plugins.android.application) - alias(libs.plugins.kotlin.android) alias(libs.plugins.compose.compiler) // for room alias(libs.plugins.ksp) @@ -23,7 +22,9 @@ android { ndkVersion = "27.3.13750724" namespace = "io.github.wiiznokes.gitnote" - compileSdk = 36 + + // https://developer.android.com/about/versions + compileSdk = 37 dependenciesInfo { // Disables dependency metadata when building APKs (for IzzyOnDroid/F-Droid) @@ -49,7 +50,7 @@ android { applicationId = "io.github.wiiznokes.gitnote" minSdk = 30 - targetSdk = 36 + versionCode = 16 versionName = "26.03" @@ -116,16 +117,7 @@ android { } } - ksp { - arg("room.schemaLocation", "$projectDir/schemas") - } - kotlin { - compilerOptions { - // set the target JVM bytecode - jvmTarget.set(JvmTarget.JVM_21) - } - } buildFeatures { buildConfig = true @@ -139,9 +131,18 @@ android { } +ksp { + arg("room.schemaLocation", "$projectDir/schemas") +} + kotlin { // set what version of the jdk will be use to compile the code jvmToolchain(21) + + compilerOptions { + // set the target JVM bytecode + jvmTarget.set(JvmTarget.JVM_21) + } } dependencies { @@ -184,6 +185,7 @@ dependencies { // unit test testImplementation(kotlin("test")) + testImplementation(kotlin("test-junit")) // integration test androidTestImplementation(composeBom) diff --git a/build.gradle.kts b/build.gradle.kts index 931ec3d..530b68c 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,7 +1,6 @@ // Top-level build file where you can add configuration options common to all sub-projects/modules. plugins { alias(libs.plugins.android.application) apply false - alias(libs.plugins.kotlin.android) apply false alias(libs.plugins.compose.compiler) apply false alias(libs.plugins.ksp) apply false } \ No newline at end of file diff --git a/gradle/gradle-daemon-jvm.properties b/gradle/gradle-daemon-jvm.properties new file mode 100644 index 0000000..6c1139e --- /dev/null +++ b/gradle/gradle-daemon-jvm.properties @@ -0,0 +1,12 @@ +#This file is generated by updateDaemonJvm +toolchainUrl.FREE_BSD.AARCH64=https\://api.foojay.io/disco/v3.0/ids/ec7520a1e057cd116f9544c42142a16b/redirect +toolchainUrl.FREE_BSD.X86_64=https\://api.foojay.io/disco/v3.0/ids/4c4f879899012ff0a8b2e2117df03b0e/redirect +toolchainUrl.LINUX.AARCH64=https\://api.foojay.io/disco/v3.0/ids/ec7520a1e057cd116f9544c42142a16b/redirect +toolchainUrl.LINUX.X86_64=https\://api.foojay.io/disco/v3.0/ids/4c4f879899012ff0a8b2e2117df03b0e/redirect +toolchainUrl.MAC_OS.AARCH64=https\://api.foojay.io/disco/v3.0/ids/73bcfb608d1fde9fb62e462f834a3299/redirect +toolchainUrl.MAC_OS.X86_64=https\://api.foojay.io/disco/v3.0/ids/846ee0d876d26a26f37aa1ce8de73224/redirect +toolchainUrl.UNIX.AARCH64=https\://api.foojay.io/disco/v3.0/ids/ec7520a1e057cd116f9544c42142a16b/redirect +toolchainUrl.UNIX.X86_64=https\://api.foojay.io/disco/v3.0/ids/4c4f879899012ff0a8b2e2117df03b0e/redirect +toolchainUrl.WINDOWS.AARCH64=https\://api.foojay.io/disco/v3.0/ids/9482ddec596298c84656d31d16652665/redirect +toolchainUrl.WINDOWS.X86_64=https\://api.foojay.io/disco/v3.0/ids/39701d92e1756bb2f141eb67cd4c660e/redirect +toolchainVersion=21 diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 803ab78..11da765 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -1,17 +1,17 @@ [versions] -agp = "8.13.2" -kotlin = "2.3.0" +agp = "9.2.1" +kotlin = "2.3.21" ksp = "2.3.4" -core-ktx = "1.17.0" +core-ktx = "1.18.0" lifecycle-runtime = "2.10.0" -activity-compose = "1.12.2" -datastore-preferences = "1.2.0" -compose-bom = "2026.01.00" +activity-compose = "1.13.0" +datastore-preferences = "1.2.1" +compose-bom = "2026.05.00" room = "2.8.4" sqlite = "3.49.0" -paging = "3.3.6" +paging = "3.5.0" compose-markdown = "0.5.8" # todo: remove this dep and use the standard one reimagined-navigation = "1.5.0" @@ -62,6 +62,5 @@ androidx-test-runner = { group = "androidx.test", name = "runner", version.ref = [plugins] android-application = { id = "com.android.application", version.ref = "agp" } -kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" } compose-compiler = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" } ksp = { id = "com.google.devtools.ksp", version.ref = "ksp" } \ No newline at end of file diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 8cc4a83..bc78ceb 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ #Wed Feb 28 02:22:38 CET 2024 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-9.5.0-bin.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists