forked from touchlab/SQLiter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
105 lines (91 loc) · 2.78 KB
/
build.gradle
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
buildscript {
repositories {
jcenter()
google()
gradlePluginPortal()
maven { url 'https://dl.bintray.com/kotlin/kotlin-eap' }
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$KOTLIN_VERSION"
}
}
apply plugin: 'org.jetbrains.kotlin.multiplatform'
repositories {
mavenCentral()
mavenLocal()
maven { url 'https://dl.bintray.com/kotlin/kotlin-eap' }
maven {
url 'https://oss.sonatype.org/content/repositories/snapshots/'
}
}
group = GROUP
version = VERSION_NAME
kotlin {
targets {
// fromPreset(presets.jvm, 'jvm')
// fromPreset(presets.macosX64, 'nativeCommon')
fromPreset(presets.macosX64, 'macos') {
compilations.each {
it.extraOpts("-linker-options", "-lsqlite3")
}
}
fromPreset(presets.iosX64, 'iosX64') {
compilations.each {
it.extraOpts("-linker-options", "-lsqlite3")
}
}
fromPreset(presets.iosArm64, 'iosArm64') {
compilations.each {
it.extraOpts("-linker-options", "-lsqlite3")
}
}
fromPreset(presets.iosArm32, 'iosArm32') {
compilations.each {
it.extraOpts("-linker-options", "-lsqlite3")
}
}
}
sourceSets {
commonMain {
dependencies {
implementation 'org.jetbrains.kotlin:kotlin-stdlib-common'
implementation "co.touchlab:stately:$STATELY_VERSION"
implementation "co.touchlab:sqliter:$SQLITER_VERSION"
}
}
commonTest {
dependencies {
implementation 'org.jetbrains.kotlin:kotlin-test-common'
implementation 'org.jetbrains.kotlin:kotlin-test-annotations-common'
implementation "co.touchlab:testhelp:$TESTHELP_VERSION"
}
}
/*jvmMain {
dependencies {
implementation 'org.jetbrains.kotlin:kotlin-stdlib'
}
}
jvmTest {
dependencies {
implementation 'org.jetbrains.kotlin:kotlin-test'
implementation 'org.jetbrains.kotlin:kotlin-test-junit'
}
}*/
nativeCommonMain {}
nativeCommonTest {
dependencies {
implementation "co.touchlab:sqliter:$SQLITER_VERSION"
}
}
configure([iosX64Main, iosArm32Main, iosArm64Main, macosMain]) {
dependsOn nativeCommonMain
}
configure([iosX64Test, iosArm32Test, iosArm64Test, macosTest]) {
dependsOn nativeCommonTest
}
}
}
configurations {
compileClasspath
}
apply from: "$rootDir/gradle/gradle-mvn-mpp-push.gradle"