forked from LouisCAD/Splitties
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
56 lines (50 loc) · 1.34 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
/*
* Copyright 2019-2021 Louis Cognault Ayeva Derman. Use of this source code is governed by the Apache 2.0 license.
*/
plugins {
id("com.android.library")
kotlin("multiplatform")
publish
}
android {
setDefaults()
namespace = "splitties.preferences"
buildTypes.getByName("release").consumerProguardFiles("proguard-rules.pro")
}
kotlin {
androidTarget()
macosX64()
iosArm64(); iosX64()
watchosArm32(); watchosArm64()
configure(targets) { configureMavenPublication() }
common {
dependencies {
api(splitties("experimental"))
api(KotlinX.coroutines.core)
implementation(splitties("mainthread"))
}
"allButAndroid" {
"darwin" {
"macosX64"()
"iosArm64"(); "iosX64"()
"watchosArm32"(); "watchosArm64"()
}
}
"android" {
dependencies {
api(splitties("appctx"))
api(AndroidX.dataStore.preferences)
implementation(KotlinX.coroutines.android)
}
}
"commonTest" {
dependencies {
implementation(project(":test-helpers"))
}
}
}
}
dependencies {
androidTestImplementation(AndroidX.test.runner)
testImplementation(Testing.robolectric)
}