Skip to content

Commit

Permalink
Update Kotlin, Gradle and libraries.
Browse files Browse the repository at this point in the history
  • Loading branch information
TadeasKriz committed Aug 16, 2024
1 parent 02b5832 commit a779f0f
Show file tree
Hide file tree
Showing 7 changed files with 35 additions and 28 deletions.
5 changes: 2 additions & 3 deletions android/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ plugins {
kotlin("android")
alias(libs.plugins.googleServices)
alias(libs.plugins.crashlytics)
alias(libs.plugins.jetbrainsCompose)
alias(libs.plugins.composeCompiler)
}
val releaseEnabled = file("./release.jks").exists()

Expand Down Expand Up @@ -63,9 +65,6 @@ android {
abortOnError = false
}

buildFeatures {
compose = true
}
composeOptions {
kotlinCompilerExtensionVersion = libs.versions.compose.compiler.get()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,10 @@ class MainActivity : ComponentActivity(), KoinComponent {
}
}

override fun onNewIntent(intent: Intent?) {
override fun onNewIntent(intent: Intent) {
super.onNewIntent(intent)

intent?.let(::handleNotificationDeeplink)
handleNotificationDeeplink(intent)
}

private fun handleNotificationDeeplink(intent: Intent) {
Expand Down
4 changes: 3 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@ plugins {
alias(libs.plugins.kotlinMultiplatform).apply(false)
alias(libs.plugins.androidLibrary).apply(false)
alias(libs.plugins.sqlDelight).apply(false)
alias(libs.plugins.jetbrains.compose).apply(false)
alias(libs.plugins.jetbrainsCompose).apply(false)
alias(libs.plugins.composeCompiler).apply(false)
alias(libs.plugins.ktlint)
alias(libs.plugins.serialization).apply(false)
alias(libs.plugins.skie).apply(false)
}

subprojects {
Expand Down
40 changes: 23 additions & 17 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,46 +5,48 @@ targetSdk = "34"
compileSdk = "34"

# Dependencies
kotlin = "2.0.0-Beta4"
kotlin = "2.0.10"
android-gradle-plugin = "8.2.2"
coroutines = "1.8.0"
kotlinx-datetime = "0.6.0-RC.2"
ktor = "2.3.9"
coroutines = "1.8.1"
kotlinx-datetime = "0.6.0"
ktor = "2.3.11"

stately = "2.0.6"
java = "17"
kermit = "2.0.3"
kermit = "2.0.4"
sqliter = "1.3.1"

hyperdrive = "0.1.148"

multiplatformSettings = "1.1.1"
sqlDelight = "2.0.1"
firebase-bom = "32.7.4"
firebase-crashlytics-gradle = "2.9.9"
gms-google-services = "4.4.1"
firebase-bom = "33.1.2"
firebase-crashlytics-gradle = "3.0.2"
gms-google-services = "4.4.2"

compose-androidx-ui = "1.6.3"
compose-compiler = "1.5.11-dev-k2.0.0-Beta4-21f5e479a96"
compose-androidx-ui = "1.6.8"
compose-compiler = "1.5.15"
composeNavigation = "2.7.7"
compose-jb = "1.6.1"
compose-jb = "1.6.11"

accompanistNavigationAnimation = "0.34.0"
splashscreen = "1.0.1"
junit = "4.13.2"
junitKtx = "1.1.5"
junitKtx = "1.2.1"
imageLoader = "1.2.2.1"
korio = "4.0.10"

# Sample - Android
androidx-core = "1.12.0"
androidx-lifecycle = "2.7.0"
androidx-activity-compose = "1.8.2"
androidx-core = "1.13.1"
androidx-lifecycle = "2.8.4"
androidx-activity-compose = "1.9.1"
android-desugaring = "2.0.4"
koin = "3.5.3"
uuid = "0.8.3"
ktlint = "11.0.0"
coil = "3.0.0-alpha04"
zoomimage = "1.1.0-alpha06"
skie = "0.9.0-RC.1"

[libraries]
coil-compose = { module = "io.coil-kt.coil3:coil-compose", version.ref = "coil" }
Expand Down Expand Up @@ -108,15 +110,19 @@ koin-android = { module = "io.insert-koin:koin-android", version.ref = "koin" }
koin-core = { module = "io.insert-koin:koin-core", version.ref = "koin" }
koin-test = { module = "io.insert-koin:koin-test", version.ref = "koin" }

zoomimage-composeResources = { module = "io.github.panpf.zoomimage:zoomimage-compose-resources", version.ref = "zoomimage" }

[plugins]
crashlytics = { id = "com.google.firebase.crashlytics", version.ref = "firebase-crashlytics-gradle" }
googleServices = { id = "com.google.gms.google-services", version.ref = "gms-google-services" }
kotlinMultiplatform = { id = "org.jetbrains.kotlin.multiplatform", version.ref = "kotlin" }
jetbrainsCompose = { id = "org.jetbrains.compose", version.ref = "compose-jb" }
composeCompiler = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" }
androidLibrary = { id = "com.android.library", version.ref = "android-gradle-plugin" }
sqlDelight = { id = "app.cash.sqldelight", version.ref = "sqlDelight" }
jetbrains-compose = { id = "org.jetbrains.compose", version.ref = "compose-jb" }
ktlint = { id = "org.jlleitschuh.gradle.ktlint", version.ref = "ktlint" }
serialization = { id = "org.jetbrains.kotlin.plugin.serialization", version.ref = "kotlin" }
skie = { id = "co.touchlab.skie", version.ref = "skie" }

[bundles]
ktor-common = ["ktor-client-core", "ktor-client-logging", "ktor-client-serialization", "ktor-client-contentNegotiation"]
Expand Down Expand Up @@ -145,4 +151,4 @@ androidx-compose = [
sqldelight-common = [
"sqldelight-runtime",
"sqldelight-coroutines"
]
]
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
5 changes: 2 additions & 3 deletions ios/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTarget
plugins {
alias(libs.plugins.kotlinMultiplatform)
alias(libs.plugins.serialization)
alias(libs.plugins.jetbrains.compose)
alias(libs.plugins.jetbrainsCompose)
alias(libs.plugins.composeCompiler)
}

version = "1.0"
Expand All @@ -16,8 +17,6 @@ kotlin {
iosSimulatorArm64()
)

applyDefaultHierarchyTemplate()

sourceSets {
all {
languageSettings.apply {
Expand Down
3 changes: 2 additions & 1 deletion shared-ui/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ plugins {
alias(libs.plugins.kotlinMultiplatform)
alias(libs.plugins.serialization)
alias(libs.plugins.androidLibrary)
alias(libs.plugins.jetbrains.compose)
alias(libs.plugins.jetbrainsCompose)
alias(libs.plugins.composeCompiler)
}

android {
Expand Down

0 comments on commit a779f0f

Please sign in to comment.