-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.old
204 lines (181 loc) · 6.67 KB
/
build.gradle.old
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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
buildscript {
ext {
kotlin_version = "1.3.70"
auth_version = "30.1.0"
coroutines_version = "1.3.4"
klock_version = "1.10.0"
krypto_version = "1.10.0"
lifecycle_version = "2.2.0"
androidx_fragment_version = "1.2.2"
androidx_appcompat_version = "1.1.0"
multidex_version = "2.0.1"
tornadofx_version = "1.7.19"
gson_version = "2.8.5"
kotlin_react_version = "16.13.0-pre.93-kotlin-1.3.70"
kotlin_react_dom_version = kotlin_react_version
kotlin_react_router_dom_version = "4.3.1-pre.89-kotlin-1.3.60"
kotlin_styled_version = "1.0.0-pre.93-kotlin-1.3.70"
android_tools_version = "3.6.0"// "3.3.2"
}
repositories {
google()
jcenter()
}
dependencies {
classpath "com.android.tools.build:gradle:$android_tools_version"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.jetbrains.kotlin:kotlin-serialization:$kotlin_version"
}
}
plugins {
id 'kotlin-multiplatform' version '1.3.70'
}
group 'tz.co.asoft'
version '7.2.0'
apply plugin: 'com.android.library'
apply plugin: 'maven-publish'
android {
compileSdkVersion 28
defaultConfig {
minSdkVersion 17
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
sourceSets {
main {
manifest.srcFile "src/androidMain/AndroidManifest.xml"
res.srcDirs = ["src/androidMain/resources"]
}
}
lintOptions {
abortOnError false
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
}
repositories {
google()
jcenter()
mavenCentral()
maven { url 'https://dl.bintray.com/kotlin/kotlin-eap' }
maven { url "https://kotlin.bintray.com/kotlinx" }
maven { url 'https://dl.bintray.com/kotlin/kotlin-js-wrappers' }
maven { url 'https://dl.bintray.com/kotlinx/kotlinx' }
maven { url "https://kotlin.bintray.com/kotlinx" }
maven { url = uri("https://dl.bintray.com/korlibs/korlibs/") }
maven { url "https://jitpack.io" }
}
kotlin {
js() {
compilations.all {
tasks[compileKotlinTaskName].kotlinOptions {
kotlinOptions.metaInfo = true
kotlinOptions.sourceMap = true
kotlinOptions.moduleKind = 'commonjs'
}
}
}
android() {
compilations.all {
tasks[compileKotlinTaskName].kotlinOptions {
jvmTarget = "1.8"
}
}
publishLibraryVariants("release")
}
jvm() {
compilations.all {
tasks[compileKotlinTaskName].kotlinOptions {
jvmTarget = "1.8"
}
}
}
sourceSets {
commonMain {
dependencies {
implementation kotlin('stdlib-common')
api "org.jetbrains.kotlinx:kotlinx-coroutines-core-common:$coroutines_version"
api("com.github.andylamax.asoft-auth:asoft-auth-metadata:$auth_version") {
exclude group: "com.soywiz.korlibs.klock"
exclude group: "com.soywiz.korlibs.krypto"
}
}
}
jvmMain {
dependencies {
implementation kotlin("stdlib")
api "org.jetbrains.kotlinx:kotlinx-coroutines-javafx:$coroutines_version"
api "com.github.andylamax.asoft-auth:asoft-auth-jvm:$auth_version"
api "no.tornado:tornadofx:$tornadofx_version"
}
}
androidMain {
dependencies {
implementation kotlin("stdlib")
api "org.jetbrains.kotlinx:kotlinx-coroutines-android:$coroutines_version"
api "com.google.code.gson:gson:$gson_version"
api "com.github.andylamax.asoft-auth:asoft-auth-android:$auth_version"
api "androidx.lifecycle:lifecycle-extensions:$lifecycle_version"
api "androidx.fragment:fragment:$androidx_fragment_version"
api "androidx.appcompat:appcompat:$androidx_appcompat_version"
api "androidx.multidex:multidex:$multidex_version"
}
}
jvmMain {
dependencies {
implementation kotlin("stdlib")
api "org.jetbrains.kotlinx:kotlinx-coroutines-javafx:$coroutines_version"
api "com.github.andylamax.asoft-auth:asoft-auth-jvm:$auth_version"
api "no.tornado:tornadofx:$tornadofx_version"
}
}
jsMain {
dependencies {
implementation kotlin('stdlib-js')
api "org.jetbrains.kotlinx:kotlinx-coroutines-core-js:$coroutines_version"
api "com.github.andylamax.asoft-auth:asoft-auth-js:$auth_version"
api "org.jetbrains:kotlin-react:$kotlin_react_version"
api "org.jetbrains:kotlin-react-dom:$kotlin_react_dom_version"
api "org.jetbrains:kotlin-styled:$kotlin_styled_version"
api "org.jetbrains:kotlin-react-router-dom:$kotlin_react_router_dom_version"
// api(npm("core-js", "3.0.0"))
// api(npm("react", "16.9.0"))
// api(npm("react-dom", "16.9.0"))
// api(npm("styled-components", "4.3.2"))
// api(npm("inline-style-prefixer", "5.1.0"))
// api(npm("react-router-dom", "5.0.1"))
// api(npm("text-encoding", "0.7.0"))
//
// api(npm('react-responsive-carousel', '3.1.47'))
// api(npm('react-event-timeline', '1.5.4'))
//
// api(npm("echarts", "4.2.1"))
// api(npm("echarts-for-react", "2.0.14"))
//
// api(npm("react-tabs", "3.0.0"))
// api(npm("react-table", "6.9.2"))
// api(npm("react-draft-wysiwyg", "1.13.2"))
// api(npm("draft-js", "0.10.5"))
// api(npm("draft-js-export-html", "1.4.1"))
// api(npm("react-icons", "3.5.0"))
//
// api(npm("@react-google-maps/api", "1.3.0"))
//
// api(npm("file-loader", "*"))
// api(npm("style-loader", "*"))
// api(npm("css-loader", "*"))
// api(npm("less", "*"))
// api(npm("less-loader", "*"))
// api(npm("babel-loader", "8"))
//
// //
// api(npm("@babel/core", "*"))
// api(npm("@babel/preset-env", "*"))
// api(npm("@babel/preset-react", "*"))
}
}
}
}