Skip to content

Commit 325a86a

Browse files
committed
Update README.md
1 parent cd618f3 commit 325a86a

File tree

9 files changed

+40
-43
lines changed

9 files changed

+40
-43
lines changed

Functions/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ kotlin {
1313
defaultConfig()
1414
allTargets()
1515
sourceSets {
16-
val commonMain by getting {
16+
commonMain {
1717
dependencies {
1818
addModules(SupabaseModule.AUTH, SupabaseModule.SUPABASE)
1919
}
2020
}
21-
val commonTest by getting {
21+
commonTest {
2222
dependencies {
2323
implementation(project(":test-common"))
2424
implementation(libs.bundles.testing)

Postgrest/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ kotlin {
1414
defaultConfig()
1515
allTargets()
1616
sourceSets {
17-
val commonMain by getting {
17+
commonMain {
1818
dependencies {
1919
addModules(SupabaseModule.AUTH)
2020
api(libs.kotlin.reflect)
2121
}
2222
}
23-
val commonTest by getting {
23+
commonTest {
2424
dependencies {
2525
implementation(libs.bundles.testing)
2626
implementation(project(":test-common"))

README.md

Lines changed: 23 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ For information about supported Kotlin targets, see the corresponding module REA
1010

1111
[![](https://img.shields.io/github/release/supabase-community/supabase-kt?label=stable)](https://github.com/supabase-community/supabase-kt/releases)
1212
[![](https://badgen.net/github/release/supabase-community/supabase-kt?label=prerelease)](https://central.sonatype.com/search?q=io.github.jan.supabase&smo=true)
13-
[![Kotlin](https://img.shields.io/badge/kotlin-2.1.10-blue.svg?logo=kotlin)](http://kotlinlang.org)
14-
[![Ktor](https://img.shields.io/badge/ktor-3.1.1-blue)](https://ktor.io/)
13+
[![Kotlin](https://img.shields.io/badge/kotlin-2.2.0-blue.svg?logo=kotlin)](http://kotlinlang.org)
14+
[![Ktor](https://img.shields.io/badge/ktor-3.2.0-blue)](https://ktor.io/)
1515
[![slack](https://img.shields.io/badge/slack-%23supabase--kt-purple.svg?logo=slack)](https://kotlinlang.slack.com/archives/C06QXPC7064)
1616

1717
[![ko-fi](https://www.ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/jantennert)
@@ -74,27 +74,29 @@ implementation("io.ktor:ktor-client-[engine]:VERSION")
7474
For targets: `jvm`, `android`, `js`, `ios`
7575

7676
```kotlin
77-
val commonMain by getting {
78-
dependencies {
79-
//supabase modules
77+
sourceSets {
78+
commonMain {
79+
dependencies {
80+
//Supabase modules
81+
}
8082
}
81-
}
82-
val jvmMain by getting {
83-
dependencies {
84-
implementation("io.ktor:ktor-client-cio:KTOR_VERSION")
83+
jvmMain {
84+
dependencies {
85+
implementation("io.ktor:ktor-client-cio:KTOR_VERSION")
86+
}
8587
}
86-
}
87-
val androidMain by getting {
88-
dependsOn(jvmMain)
89-
}
90-
val jsMain by getting {
91-
dependencies {
92-
implementation("io.ktor:ktor-client-js:KTOR_VERSION")
88+
androidMain {
89+
dependsOn(jvmMain.get())
9390
}
94-
}
95-
val iosMain by getting {
96-
dependencies {
97-
implementation("io.ktor:ktor-client-darwin:KTOR_VERSION")
91+
jsMain {
92+
dependencies {
93+
implementation("io.ktor:ktor-client-js:KTOR_VERSION")
94+
}
95+
}
96+
iosMain {
97+
dependencies {
98+
implementation("io.ktor:ktor-client-darwin:KTOR_VERSION")
99+
}
98100
}
99101
}
100102
```
@@ -103,7 +105,7 @@ val iosMain by getting {
103105
**Note:** It is recommended to use the same Ktor version as supabase-kt:
104106

105107
__For 3.0.0 and above:__
106-
[![Ktor](https://img.shields.io/badge/ktor-3.1.1-blue)](https://ktor.io/)
108+
[![Ktor](https://img.shields.io/badge/ktor-3.2.0-blue)](https://ktor.io/)
107109

108110
__For versions below 3.0.0:__
109111
[![Ktor](https://img.shields.io/badge/ktor-2.3.12-blue)](https://ktor.io/)

Realtime/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ kotlin {
1414
defaultConfig()
1515
allTargets()
1616
sourceSets {
17-
val commonMain by getting {
17+
commonMain {
1818
dependencies {
1919
addModules(SupabaseModule.AUTH)
2020
api(project(":postgrest-kt"))
2121
api(libs.ktor.client.websockets)
2222
}
2323
}
24-
val commonTest by getting {
24+
commonTest {
2525
dependencies {
2626
implementation(project(":test-common"))
2727
implementation(libs.bundles.testing)

Storage/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ kotlin {
2020
}
2121
allTargets()
2222
sourceSets {
23-
val commonMain by getting {
23+
commonMain {
2424
dependencies {
2525
addModules(SupabaseModule.AUTH)
2626
}
2727
}
28-
val commonTest by getting {
28+
commonTest {
2929
dependencies {
3030
implementation(project(":test-common"))
3131
implementation(libs.bundles.testing)

Supabase/build.gradle.kts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ kotlin {
3737
defaultConfig()
3838
allTargets()
3939
sourceSets {
40-
val commonMain by getting {
40+
commonMain {
4141
kotlin.srcDir(
4242
// convert the task to a file-provider
4343
buildConfigGenerator.map { it.destinationDir }
@@ -50,12 +50,12 @@ kotlin {
5050
api(libs.kotlinx.atomicfu)
5151
}
5252
}
53-
val commonTest by getting {
53+
commonTest {
5454
dependencies {
5555
implementation(libs.bundles.testing)
5656
}
5757
}
58-
val androidMain by getting {
58+
androidMain {
5959
dependencies {
6060
api(libs.android.lifecycle.process)
6161
}

serializers/Jackson/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ kotlin {
1515
configuredAndroidTarget()
1616
configuredJvmTarget()
1717
sourceSets {
18-
val commonMain by getting {
18+
commonMain {
1919
dependencies {
2020
addModules(SupabaseModule.SUPABASE)
2121
api(libs.bundles.jackson)
2222
}
2323
}
24-
val commonTest by getting {
24+
commonTest {
2525
dependencies {
2626
implementation(libs.bundles.testing)
2727
implementation(project(":test-common"))

serializers/Moshi/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ kotlin {
1515
configuredAndroidTarget()
1616
configuredJvmTarget()
1717
sourceSets {
18-
val commonMain by getting {
18+
commonMain {
1919
dependencies {
2020
addModules(SupabaseModule.SUPABASE)
2121
implementation(libs.kotlin.reflect)
2222
implementation(libs.bundles.moshi)
2323
}
2424
}
25-
val commonTest by getting {
25+
commonTest {
2626
dependencies {
2727
implementation(libs.bundles.testing)
2828
implementation(project(":test-common"))

test-common/build.gradle.kts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,17 @@ kotlin {
1414
defaultConfig()
1515
allTargets()
1616
sourceSets {
17-
val commonMain by getting {
17+
commonMain {
1818
dependencies {
1919
addModules(SupabaseModule.SUPABASE)
2020
implementation(libs.bundles.testing)
2121
}
2222
}
23-
val commonTest by getting {
23+
commonTest {
2424
dependencies {
2525
implementation(libs.bundles.testing)
2626
}
2727
}
28-
val jvmMain by getting
29-
val androidMain by getting
30-
val jsMain by getting
31-
val iosMain by getting
32-
val iosSimulatorArm64Main by getting
3328
}
3429
}
3530

0 commit comments

Comments
 (0)