Skip to content

Commit

Permalink
Migrate to Kotlin 2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Goooler committed Jul 30, 2024
1 parent c52e71c commit 5c64eee
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .idea/kotlinc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 1 addition & 7 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ plugins {
kotlin("kapt")
id("org.jetbrains.kotlin.android")
kotlin("plugin.serialization")
alias(libs.plugins.kotlin.compose)
}
apply(plugin = "dagger.hilt.android.plugin")

Expand Down Expand Up @@ -161,10 +162,6 @@ android {
}
}

buildFeatures {
compose = true
}

lint {
disable.addAll(listOf("MissingTranslation", "ExtraTranslation", "MissingQuantity"))
}
Expand All @@ -179,9 +176,6 @@ android {
kotlinOptions {
freeCompilerArgs = freeCompilerArgs + "-opt-in=kotlin.RequiresOptIn"
}
composeOptions {
kotlinCompilerExtensionVersion = libs.versions.androidxComposeCompiler.get()
}
packaging {
resources {
excludes += "/META-INF/{AL2.0,LGPL2.1}"
Expand Down
1 change: 1 addition & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ buildscript {
plugins {
alias(libs.plugins.android.application) apply false
alias(libs.plugins.hilt) apply false
alias(libs.plugins.kotlin.compose) apply false
alias(libs.plugins.kotlin.gradlePlugin) apply false
alias(libs.plugins.kotlin.serialization) apply false
alias(libs.plugins.kotlin.ksp) apply false
Expand Down
7 changes: 1 addition & 6 deletions color/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
plugins {
id("com.android.library")
id("org.jetbrains.kotlin.android")
alias(libs.plugins.kotlin.compose)
}

java {
Expand All @@ -16,16 +17,10 @@ android {
minSdk = 21
}
namespace = "com.junkfood.seal.color"
composeOptions {
kotlinCompilerExtensionVersion = libs.versions.androidxComposeCompiler.get()
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
sourceCompatibility = JavaVersion.VERSION_1_8
}
buildFeatures {
compose = true
}
buildTypes {
all {
proguardFiles(
Expand Down
7 changes: 3 additions & 4 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
accompanist = "0.34.0"
androidGradlePlugin = "8.5.1"
androidxComposeBom = "2024.04.00-alpha01"
androidxComposeCompiler = "1.5.11"
androidxCore = "1.12.0"
androidMaterial = "1.11.0"
androidxAppCompat = "1.7.0-alpha03"
Expand All @@ -27,14 +26,13 @@ hilt = "2.45"
hiltExt = "1.0.0"

junit4 = "4.13.2"
kotlin = "1.9.23"
kotlin = "2.0.0"
kotlinxCoroutines = "1.7.1"
kotlinxDatetime = "0.4.0"
kotlinxSerializationJson = "1.6.2"
okhttp = "5.0.0-alpha.10"

room = "2.6.0"
ksp = "1.9.23-1.0.19"

youtubedlAndroid = "23b26d55f8"

Expand Down Expand Up @@ -124,9 +122,10 @@ android-library = { id = "com.android.library", version.ref = "androidGradlePlug
android-test = { id = "com.android.test", version.ref = "androidGradlePlugin" }
hilt = { id = "com.google.dagger.hilt.android", version.ref = "hilt" }
kotlin-jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
kotlin-compose = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" }
kotlin-serialization = { id = "org.jetbrains.kotlin.plugin.serialization", version.ref = "kotlin" }
kotlin-gradlePlugin = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
kotlin-ksp = { id = "com.google.devtools.ksp", version.ref = "ksp" }
kotlin-ksp = "com.google.devtools.ksp:2.0.0-1.0.24"

[bundles]
accompanist = [
Expand Down

0 comments on commit 5c64eee

Please sign in to comment.