-
-
Notifications
You must be signed in to change notification settings - Fork 38
/
Copy pathbuild.gradle.kts
78 lines (74 loc) · 2.07 KB
/
build.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
plugins {
// alias(libs.plugins.complete.kotlin)
id(libs.plugins.kotlin.multiplatform.get().pluginId)
id(libs.plugins.android.library.get().pluginId)
}
description = "Extends supabase-kt with a Auth Client"
repositories {
mavenCentral()
}
@OptIn(org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi::class)
kotlin {
defaultConfig()
applyDefaultHierarchyTemplate {
common {
settingsGroup()
group("desktop") {
withJvm()
withMacos()
withLinux()
withMingw()
}
group("nonDesktop") {
//withAndroidTarget() android has its own implementation
withIos()
withTvos()
withWatchos()
//withMingw()
withJs()
withWasmJs()
}
}
}
allTargets()
sourceSets {
val commonMain by getting {
dependencies {
addModules(SupabaseModule.SUPABASE)
// implementation(libs.krypto)
implementation(libs.secure.random)
api(libs.okio)
}
}
val desktopMain by getting {
dependencies {
api(libs.ktor.server.core)
api(libs.ktor.server.cio)
}
}
val settingsMain by getting {
dependencies {
api(libs.bundles.multiplatform.settings)
}
}
val commonTest by getting {
dependencies {
implementation(libs.bundles.testing)
implementation(libs.turbine)
implementation(project(":test-common"))
}
}
val androidMain by getting {
dependencies {
api(libs.androidx.startup.runtime)
api(libs.androidx.browser)
}
}
val wasmJsMain by getting {
dependencies {
api(libs.kotlinx.browser)
}
}
}
}
configureLibraryAndroidTarget()