-
Notifications
You must be signed in to change notification settings - Fork 268
/
build.gradle
49 lines (43 loc) · 1.37 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
import dependencies.Dep
apply plugin: 'com.android.library'
apply plugin: 'kotlin-multiplatform'
apply from: rootProject.file('gradle/android.gradle')
kotlin {
targets {
fromPreset(presets.android, 'android')
final def iOSTarget = System.getenv('SDK_NAME')?.startsWith("iphoneos") \
? presets.iosArm64 : presets.iosX64
fromPreset(iOSTarget, 'iOS') {
compilations.main.outputKinds('FRAMEWORK')
}
}
sourceSets {
commonMain.dependencies {
api Dep.Kotlin.stdlibCommon
api project(":model")
}
androidMain {
dependsOn commonMain
dependencies {
api Dep.Kotlin.stdlibJvm
api Dep.Kotlin.coroutines
}
}
commonTest.dependencies {
implementation Dep.Test.KotlinMultiPlatform.commonModuleTest
implementation Dep.Test.KotlinMultiPlatform.commonModuleTestAnnotations
implementation Dep.MockK.common
}
androidTest {
dependsOn commonMain
dependencies {
implementation Dep.Test.KotlinMultiPlatform.jvmModuleTest
implementation Dep.Test.KotlinMultiPlatform.jvmModuleTestJunit
implementation Dep.MockK.jvm
}
}
}
}
configurations {
compileClasspath
}