Skip to content

Commit

Permalink
Kotlin 2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kizitonwose committed Jun 22, 2024
1 parent b3cf92e commit 201bd8d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,34 +18,32 @@ object Android {
val minSdkSampleApp = max(minSdkViewLibrary, minSdkComposeLibrary)
const val targetSdk = 34
const val compileSdk = 34

// See compose/kotlin version mapping
// https://developer.android.com/jetpack/androidx/releases/compose-kotlin
const val composeCompiler = "1.5.14"
}

object Plugins {
private const val agpVersion = "8.4.2"
private const val agpVersion = "8.5.0"
const val androidApp = "com.android.application"
const val androidLibrary = "com.android.library"
const val kotlinJvm = "org.jetbrains.kotlin.jvm"
const val kotlinAndroid = "org.jetbrains.kotlin.android"
const val kotlinter = "org.jmailen.kotlinter"
const val mavenPublish = "com.vanniktech.maven.publish"
const val versionCheck = "com.github.ben-manes.versions"
const val composeCompiler = "org.jetbrains.kotlin.plugin.compose"

fun PluginDependenciesSpecScope.applyRootPlugins() {
id(androidApp).version(agpVersion).apply(false)
id(androidLibrary).version(agpVersion).apply(false)
id(kotlinAndroid).version(Kotlin.version).apply(false)
id(composeCompiler).version(Kotlin.version).apply(false)
id(kotlinter).version("4.3.0").apply(false)
id(mavenPublish).version("0.28.0").apply(false)
id(versionCheck).version("0.51.0").apply(true)
}
}

object Kotlin {
internal const val version = "1.9.24"
internal const val version = "2.0.0"
const val stdLib = "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$version"
}

Expand Down
4 changes: 1 addition & 3 deletions compose/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ plugins {
with(com.kizitonwose.calendar.buildsrc.Plugins) {
id(androidLibrary)
id(kotlinAndroid)
id(composeCompiler)
id(mavenPublish)
}
}
Expand All @@ -30,9 +31,6 @@ android {
buildFeatures {
compose = true
}
composeOptions {
kotlinCompilerExtensionVersion = Android.composeCompiler
}
}

dependencies {
Expand Down
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Mon May 27 16:10:41 CEST 2024
#Tue Jun 18 20:39:23 CEST 2024
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
4 changes: 1 addition & 3 deletions sample/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ plugins {
with(com.kizitonwose.calendar.buildsrc.Plugins) {
id(androidApp)
id(kotlinAndroid)
id(composeCompiler)
}
}

Expand Down Expand Up @@ -44,9 +45,6 @@ android {
compileOptions {
isCoreLibraryDesugaringEnabled = true
}
composeOptions {
kotlinCompilerExtensionVersion = Android.composeCompiler
}
}

dependencies {
Expand Down

0 comments on commit 201bd8d

Please sign in to comment.