forked from touchlab/DroidconKotlin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
140 lines (134 loc) · 7.12 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
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
buildscript {
ext.buildConfig = [
'compileSdk': 28,
'minSdk' : 24,
'targetSdk' : 27,
'version' : [
'major': 1,
'minor': 2,
'patch': 1,
'build': 0,
],
]
ext.versions = [
'supportLibrary' : '27.1.0',
'kotlin' : '1.3.10',
'kotlinCoroutines' : '1.0.1',
'knarchDb' : '0.7.2-k1.3.0-a1',
'knarchThreads' : '0.3.2-k1.3.0-a2',
'multiplatformSettings': '0.1-k1.3.0-a2',
'timber' : '5.0.0-k1.3.0-a1',
'sqldelight' : '1.0.0-k1.3.0-a2',
'stately' : '0.3.5-k1.3.0-a1',
'sqliter' : '0.1.1-k1.3.0-a6'
]
ext.deps = [
'kotlin' : [
'stdlib': [
'common': "org.jetbrains.kotlin:kotlin-stdlib-common:${versions.kotlin}",
'jdk' : "org.jetbrains.kotlin:kotlin-stdlib:${versions.kotlin}",
],
'test' : [
'common' : "org.jetbrains.kotlin:kotlin-test-common:${versions.kotlin}",
'annotations': "org.jetbrains.kotlin:kotlin-test-annotations-common:${versions.kotlin}",
'junit' : "org.jetbrains.kotlin:kotlin-test-junit:${versions.kotlin}",
'reflect' : "org.jetbrains.kotlin:kotlin-reflect:${versions.kotlin}",
],
'coroutines': [
'common' : "org.jetbrains.kotlinx:kotlinx-coroutines-core-common:${versions.kotlinCoroutines}",
'jdk' : "org.jetbrains.kotlinx:kotlinx-coroutines-core:${versions.kotlinCoroutines}",
'native' : "org.jetbrains.kotlinx:kotlinx-coroutines-core-native:${versions.kotlinCoroutines}",
'android': "org.jetbrains.kotlinx:kotlinx-coroutines-android:${versions.kotlinCoroutines}",
],
],
'ktor' : [
'common' : "io.ktor:ktor-client:${versions.ktor}",
'ios' : "io.ktor:ktor-client-ios:${versions.ktor}",
'android': "io.ktor:ktor-client-android:${versions.ktor}"
],
'knarch' : [
'db' : "co.touchlab.knarch:knarch-common:${versions.knarchDb}",
'dbAndroid' : "co.touchlab.knarch:knarch-android:${versions.knarchDb}",
'dbNative' : "co.touchlab.knarch:knarch:${versions.knarchDb}",
'threads' : "co.touchlab.knarch.threads:threads-common:${versions.knarchThreads}",
'threadsAndroid' : "co.touchlab.knarch.threads:threads-android:${versions.knarchThreads}",
'threadsNative' : "co.touchlab.knarch.threads:knarchThreads:${versions.knarchThreads}",
'threadsLivedata' : "co.touchlab.knarch.threads:livedata-common:${versions.knarchThreads}",
'threadsLivedataAndroid': "co.touchlab.knarch.threads:livedata-androidx:${versions.knarchThreads}",
'threadsLivedataNative' : "co.touchlab.knarch.threads:knarchLivedata:${versions.knarchThreads}",
]
,
'timber' : [
'common' : "com.jakewharton.timber:timber-common:${versions.timber}",
'ios' : "com.jakewharton.timber:timberNative:${versions.timber}",
'android': "com.jakewharton.timber:timber-android:${versions.timber}"
],
'multiplatformSettings': [
'common' : "com.russhwolf:multiplatform-settings-common:${versions.multiplatformSettings}",
'ios' : "com.russhwolf:MultiplatformSettingsIos:${versions.multiplatformSettings}",
'android': "com.russhwolf:multiplatform-settings-android:${versions.multiplatformSettings}",
]
,
'sqldelight' : [
'runtime' : "com.squareup.sqldelight:runtime-common:${versions.sqldelight}",
'runtimeJdk' : "com.squareup.sqldelight:runtime-jdk:${versions.sqldelight}",
'runtimeNative' : "com.squareup.sqldelight:sqldelightruntimeios:${versions.sqldelight}",
'multiplatformdriver' : "com.squareup.sqldelight:sqldelight-multiplatform-driver:${versions.sqldelight}",
'multiplatformdriverNative' : "com.squareup.sqldelight:sqldelightmultiplatformdriverios:${versions.sqldelight}",
'multiplatformdriverAndroid': "com.squareup.sqldelight:sqldelight-multiplatform-android:${versions.sqldelight}",
]
,
'stately' : [
'mpp': "co.touchlab.stately:stately:${versions.stately}"
]
,
'sqliter' : [
'ios': "co.touchlab.sqliter:sqliter:${versions.sqliter}",
]
]
repositories {
jcenter()
google()
mavenCentral()
maven { url "https://kotlin.bintray.com/kotlinx" }
gradlePluginPortal()
maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }
maven { url "https://dl.bintray.com/jetbrains/kotlin-native-dependencies" }
maven { url 'https://dl.bintray.com/touchlabpublic/kotlin' }
maven { url "https://dl.bintray.com/kotlin/kotlin-eap/" }
maven { url 'https://dl.bintray.com/kotlin/kotlin-dev' }
maven { url 'https://maven.fabric.io/public' }
/*if(project.hasProperty('j2objcMavenDeploy')) {
maven {
url project.property('j2objcMavenDeploy')
}
}*/
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.0-beta04'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${versions.kotlin}"
classpath 'com.google.gms:google-services:4.0.1'
classpath "com.squareup.sqldelight:gradle-plugin:${versions.sqldelight}"
classpath 'io.fabric.tools:gradle:1.+'
}
}
allprojects {
repositories {
if (project.hasProperty('j2objcMavenDeploy')) {
maven {
url project.property('j2objcMavenDeploy')
}
}
jcenter()
google()
mavenCentral()
maven { url "https://kotlin.bintray.com/kotlinx" }
maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }
maven { url "https://dl.bintray.com/jetbrains/kotlin-native-dependencies" }
maven { url 'https://dl.bintray.com/touchlabpublic/kotlin' }
maven { url "https://dl.bintray.com/kotlin/kotlin-eap/" }
maven { url 'https://dl.bintray.com/kotlin/kotlin-dev' }
maven { url 'https://maven.fabric.io/public' }
maven { url 'https://dl.bintray.com/kotlin/ktor' }
}
}