@@ -10,8 +10,8 @@ For information about supported Kotlin targets, see the corresponding module REA
10
10
11
11
[ ![ ] ( https://img.shields.io/github/release/supabase-community/supabase-kt?label=stable )] ( https://github.com/supabase-community/supabase-kt/releases )
12
12
[ ![ ] ( 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/ )
15
15
[ ![ slack] ( https://img.shields.io/badge/slack-%23supabase--kt-purple.svg?logo=slack )] ( https://kotlinlang.slack.com/archives/C06QXPC7064 )
16
16
17
17
[ ![ 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")
74
74
For targets: ` jvm ` , ` android ` , ` js ` , ` ios `
75
75
76
76
``` kotlin
77
- val commonMain by getting {
78
- dependencies {
79
- // supabase modules
77
+ sourceSets {
78
+ commonMain {
79
+ dependencies {
80
+ // Supabase modules
81
+ }
80
82
}
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
+ }
85
87
}
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())
93
90
}
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
+ }
98
100
}
99
101
}
100
102
```
@@ -103,7 +105,7 @@ val iosMain by getting {
103
105
** Note:** It is recommended to use the same Ktor version as supabase-kt:
104
106
105
107
__ 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/ )
107
109
108
110
__ For versions below 3.0.0:__
109
111
[ ![ Ktor] ( https://img.shields.io/badge/ktor-2.3.12-blue )] ( https://ktor.io/ )
0 commit comments