forked from touchlab/DroidconKotlin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
130 lines (123 loc) · 6.31 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
buildscript {
ext.buildConfig = [
'compileSdk': 28,
'minSdk' : 24,
'targetSdk' : 27,
'version' : [
'major': 1,
'minor': 2,
'patch': 1,
'build': 0,
],
]
ext.versions = [
'supportLibrary' : '28.0.0',
'kotlin' : '1.3.41',
'kotlinCoroutines' : '1.3.0-RC',
'multiplatformSettings': '0.3.2',
'sqldelight' : '1.1.4',
'stately' : '0.9.2',
'sqliter' : '0.6.3',
'ktor' : '1.2.3',
'serialization' : '0.11.1',
'xcode' : '0.1.5',
'testhelp' : '0.2.3',
'firebase' : '17.0.1',
'firestoreAndroid' : '20.2.0',
'firestoreKmp' : '0.2.2',
'fabric' : '1.29.0',
'crashlytics' : '2.10.1'
]
ext.deps = [
'kotlin' : [
'stdlib' : [
'common': "org.jetbrains.kotlin:kotlin-stdlib-common:${versions.kotlin}",
'jdk' : "org.jetbrains.kotlin:kotlin-stdlib-jdk7:${versions.kotlin}",
],
'test' : [
'common' : "org.jetbrains.kotlin:kotlin-test-common:${versions.kotlin}",
'annotations': "org.jetbrains.kotlin:kotlin-test-annotations-common:${versions.kotlin}",
'jvm' : "org.jetbrains.kotlin:kotlin-test:${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}",
],
],
'multiplatformSettings': "com.russhwolf:multiplatform-settings:${versions.multiplatformSettings}"
,
'sqldelight' : [
'runtime' : "com.squareup.sqldelight:runtime:${versions.sqldelight}",
'runtimeJdk' : "com.squareup.sqldelight:runtime-jvm:${versions.sqldelight}",
'driverIos' : "com.squareup.sqldelight:ios-driver:${versions.sqldelight}",
'driverAndroid': "com.squareup.sqldelight:android-driver:${versions.sqldelight}",
'driverSqlite' : "com.squareup.sqldelight:sqlite-driver:${versions.sqldelight}",
]
,
'stately' : [
'mpp' : "co.touchlab:stately:${versions.stately}",
'collections': "co.touchlab:stately-collections:${versions.stately}"
]
,
'sqliter' : [
'ios': "co.touchlab:sqliter:${versions.sqliter}",
]
,
'ktor' : [
'commonCore' : "io.ktor:ktor-client-core:${versions.ktor}",
'commonJson' : "io.ktor:ktor-client-json:${versions.ktor}",
'jvmCore' : "io.ktor:ktor-client-core-jvm:${versions.ktor}",
'androidCore': "io.ktor:ktor-client-okhttp:${versions.ktor}",
'jvmJson' : "io.ktor:ktor-client-json-jvm:${versions.ktor}",
'ios' : "io.ktor:ktor-client-ios:${versions.ktor}",
'iosCore' : "io.ktor:ktor-client-core-native:${versions.ktor}",
'iosJson' : "io.ktor:ktor-client-json-native:${versions.ktor}"
]
,
'serialization' : [
'commonRuntime': "org.jetbrains.kotlinx:kotlinx-serialization-runtime-common:${versions.serialization}",
'jvmRuntime' : "org.jetbrains.kotlinx:kotlinx-serialization-runtime:${versions.serialization}",
'iosRuntime' : "org.jetbrains.kotlinx:kotlinx-serialization-runtime-native:${versions.serialization}",
]
,
'firebase' : [
'androidCore' : "com.google.firebase:firebase-core:${versions.firebase}",
'androidMessaging': "com.google.firebase:firebase-messaging:19.0.1",
'firestoreAndroid': "com.google.firebase:firebase-firestore:${versions.firestoreAndroid}",
'firestoreKmp' : "co.touchlab:firestore:${versions.firestoreKmp}",
],
'testhelp' : "co.touchlab:testhelp:${versions.testhelp}",
'crashlytics' : "com.crashlytics.sdk.android:crashlytics:${versions.crashlytics}"
]
repositories {
jcenter()
google()
mavenCentral()
gradlePluginPortal()
maven { url "https://kotlin.bintray.com/kotlinx" }
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
classpath 'com.android.tools.build:gradle:3.4.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${versions.kotlin}"
classpath "org.jetbrains.kotlin:kotlin-serialization:${versions.kotlin}"
classpath 'com.google.gms:google-services:4.3.0'
classpath "com.squareup.sqldelight:gradle-plugin:${versions.sqldelight}"
classpath "co.touchlab:kotlinxcodesync:${versions.xcode}"
classpath "io.fabric.tools:gradle:${versions.fabric}"
classpath "androidx.navigation:navigation-safe-args-gradle-plugin:2.1.0-alpha06"
}
}
allprojects {
repositories {
jcenter()
google()
mavenCentral()
maven { url "https://kotlin.bintray.com/kotlinx" }
maven { url "https://dl.bintray.com/russhwolf/multiplatform-settings" }
}
}