forked from UstadMobile/door
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
91 lines (68 loc) · 1.66 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
plugins {
id 'org.jetbrains.kotlin.multiplatform'
id 'com.android.library'
id 'maven-publish'
}
group rootProject.group
version rootProject.version
repositories {
mavenCentral()
}
android {
compileSdkVersion rootProject.ext.version_android_compile_sdk
sourceSets.main.manifest.srcFile('src/androidMain/AndroidManifest.xml')
defaultConfig {
minSdkVersion 21
targetSdkVersion rootProject.ext.version_android_target_sdk
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile) {
kotlinOptions {
jvmTarget = JavaVersion.VERSION_17
}
}
buildTypes {
release {
consumerProguardFiles 'proguard-rules.pro'
}
}
namespace 'com.ustadmobile.door.roomannotations'
}
kotlin {
androidTarget {
publishLibraryVariants("release", "debug")
}
jvm {
compilations.all {
kotlinOptions.jvmTarget = JavaVersion.VERSION_17
}
testRuns["test"].executionTask.configure {
useJUnit()
}
}
js(IR) {
browser()
}
sourceSets {
commonMain {
dependencies {
implementation kotlin('stdlib-common')
}
}
commonTest {
dependencies {
implementation kotlin('test-common')
implementation kotlin('test-annotations-common')
}
}
jvmMain {
}
androidMain {
}
jsMain {
}
}
}