@@ -18,19 +18,6 @@ android {
18
18
versionName " 1.0"
19
19
testInstrumentationRunner " androidx.test.runner.AndroidJUnitRunner"
20
20
}
21
-
22
- buildTypes {
23
- release {
24
- minifyEnabled false
25
- proguardFiles getDefaultProguardFile(' proguard-android.txt' ), ' proguard-rules.pro'
26
- }
27
-
28
- // This is for MultiplatformSettings
29
- debug {
30
- // MPP libraries don't currently get this resolution automatically
31
- matchingFallbacks = [' release' ]
32
- }
33
- }
34
21
}
35
22
36
23
@@ -46,17 +33,13 @@ kotlin {
46
33
}
47
34
}
48
35
49
- fromPreset(presets. android, ' android' )
50
-
51
36
macosX64(" macOS" )
37
+ android()
38
+ jvm()
52
39
}
53
40
54
41
js {
55
- compileKotlinJs {
56
- kotlinOptions. metaInfo = true
57
- kotlinOptions. sourceMap = true
58
- kotlinOptions. moduleKind = " commonjs"
59
- kotlinOptions. main = " call"
42
+ browser {
60
43
}
61
44
}
62
45
@@ -70,115 +53,53 @@ kotlin {
70
53
71
54
sourceSets {
72
55
commonMain. dependencies {
73
- // Kotlin
74
- implementation " org.jetbrains.kotlin:kotlin-stdlib-common:${ Versions.kotlin} "
75
-
76
56
// Coroutines
77
- implementation " org.jetbrains.kotlinx:kotlinx-coroutines-core-common:${ Versions.kotlinCoroutines} "
57
+ implementation(" org.jetbrains.kotlinx:kotlinx-coroutines-core:${ Versions.kotlinCoroutines} " ) {
58
+ force = true
59
+ }
78
60
79
61
// Ktor
80
- implementation " io.ktor:ktor-client-core:${ Versions.ktor} "
81
- implementation " io.ktor:ktor-client-json:${ Versions.ktor} "
82
- implementation " io.ktor:ktor-client-logging:${ Versions.ktor} "
83
- implementation " io.ktor:ktor-client-serialization:${ Versions.ktor} "
62
+ implementation( " io.ktor:ktor-client-core:${ Versions.ktor} " )
63
+ implementation( " io.ktor:ktor-client-json:${ Versions.ktor} " )
64
+ implementation( " io.ktor:ktor-client-logging:${ Versions.ktor} " )
65
+ implementation( " io.ktor:ktor-client-serialization:${ Versions.ktor} " )
84
66
85
67
// Serialize
86
- implementation " org.jetbrains.kotlinx:kotlinx-serialization-runtime-common :${ Versions.kotlinxSerialization} "
68
+ implementation( " org.jetbrains.kotlinx:kotlinx-serialization-core :${ Versions.kotlinxSerialization} " )
87
69
88
70
// SQL Delight
89
- implementation " com.squareup.sqldelight:runtime:${ Versions.sqlDelight} "
90
- implementation " com.squareup.sqldelight:coroutines-extensions:${ Versions.sqlDelight} "
71
+ implementation(" com.squareup.sqldelight:runtime:${ Versions.sqlDelight} " )
72
+ implementation(" com.squareup.sqldelight:coroutines-extensions:${ Versions.sqlDelight} " )
73
+
74
+ // koin
75
+ api(" org.koin:koin-core:${ Versions.koin} " )
91
76
}
92
77
93
78
androidMain. dependencies {
94
- // Kotlin
95
- implementation " org.jetbrains.kotlin:kotlin-stdlib:${ Versions.kotlin} "
96
-
97
- // Coroutines
98
- implementation " org.jetbrains.kotlinx:kotlinx-coroutines-android:${ Versions.kotlinCoroutines} "
99
- implementation " org.jetbrains.kotlinx:kotlinx-coroutines-core:${ Versions.kotlinCoroutines} "
100
-
101
- // Ktor
102
- implementation " io.ktor:ktor-client-android:${ Versions.ktor} "
103
- implementation " io.ktor:ktor-client-core-jvm:${ Versions.ktor} "
104
- implementation " io.ktor:ktor-client-json-jvm:${ Versions.ktor} "
105
- implementation " io.ktor:ktor-client-logging-jvm:${ Versions.ktor} "
106
- implementation " io.ktor:ktor-client-serialization-jvm:${ Versions.ktor} "
107
-
108
- // Serialize
109
- implementation " org.jetbrains.kotlinx:kotlinx-serialization-runtime:${ Versions.kotlinxSerialization} "
110
-
111
- // SQL Delight
112
- implementation " com.squareup.sqldelight:android-driver:${ Versions.sqlDelight} "
113
- implementation " com.squareup.sqldelight:coroutines-extensions-jvm:${ Versions.sqlDelight} "
79
+ implementation(" io.ktor:ktor-client-android:${ Versions.ktor} " )
80
+ implementation(" com.squareup.sqldelight:android-driver:${ Versions.sqlDelight} " )
114
81
}
115
82
116
83
iOSMain. dependencies {
117
- // Coroutines
118
- implementation " org.jetbrains.kotlinx:kotlinx-coroutines-core-native:${ Versions.kotlinCoroutines} "
119
-
120
- // Ktor
121
- implementation " io.ktor:ktor-client-ios:${ Versions.ktor} "
122
- implementation " io.ktor:ktor-client-core-native:${ Versions.ktor} "
123
- implementation " io.ktor:ktor-client-json-native:${ Versions.ktor} "
124
- implementation " io.ktor:ktor-client-logging-native:${ Versions.ktor} "
125
- implementation " io.ktor:ktor-client-serialization-native:${ Versions.ktor} "
126
-
127
- // Serialize
128
- implementation " org.jetbrains.kotlinx:kotlinx-serialization-runtime-native:${ Versions.kotlinxSerialization} "
129
-
130
- // SQL Delight
84
+ implementation(" io.ktor:ktor-client-ios:${ Versions.ktor} " )
131
85
implementation(" com.squareup.sqldelight:native-driver:${ Versions.sqlDelight} " )
132
86
}
133
87
134
88
macOSMain. dependencies {
135
- // Coroutines
136
- implementation " org.jetbrains.kotlinx:kotlinx-coroutines-core-macosx64:${ Versions.kotlinCoroutines} "
137
-
138
-
139
- // Ktor
140
- implementation " io.ktor:ktor-client-curl:${ Versions.ktor} "
141
- implementation " io.ktor:ktor-client-core-macosx64:${ Versions.ktor} "
142
- implementation " io.ktor:ktor-client-json-macosx64:${ Versions.ktor} "
143
- implementation " io.ktor:ktor-client-logging-macosx64:${ Versions.ktor} "
144
- implementation " io.ktor:ktor-client-serialization-macosx64:${ Versions.ktor} "
145
-
146
- // Serialize
147
- implementation " org.jetbrains.kotlinx:kotlinx-serialization-runtime-macosx64:${ Versions.kotlinxSerialization} "
148
-
149
- // SQL Delight
150
- implementation " com.squareup.sqldelight:native-driver-macosx64:${ Versions.sqlDelight} "
151
- implementation " com.squareup.sqldelight:runtime-macosx64:${ Versions.sqlDelight} "
89
+ implementation(" io.ktor:ktor-client-ios:${ Versions.ktor} " )
90
+ implementation(" com.squareup.sqldelight:native-driver-macosx64:${ Versions.sqlDelight} " )
152
91
}
153
92
154
93
155
94
jvmMain. dependencies {
156
- // Kotlin
157
- implementation " org.jetbrains.kotlin:kotlin-stdlib:${ Versions.kotlin} "
158
-
159
- // Coroutines
160
- implementation " org.jetbrains.kotlinx:kotlinx-coroutines-core:${ Versions.kotlinCoroutines} "
161
-
162
- // Ktor
163
- implementation " io.ktor:ktor-client-core-jvm:${ Versions.ktor} "
164
- implementation " io.ktor:ktor-client-json-jvm:${ Versions.ktor} "
165
- implementation " io.ktor:ktor-client-serialization-jvm:${ Versions.ktor} "
166
- implementation Ktor . slf4j
167
-
168
- // Serialize
169
- implementation " org.jetbrains.kotlinx:kotlinx-serialization-runtime:${ Versions.kotlinxSerialization} "
170
-
171
- // SQL Delight
172
- implementation " com.squareup.sqldelight:sqlite-driver:${ Versions.sqlDelight} "
95
+ implementation(" io.ktor:ktor-client-apache:${ Versions.ktor} " )
96
+ // implementation(Ktor.slf4j)
97
+ // implementation("org.xerial:sqlite-jdbc:${Versions.sqliteJdbcDriver}")
98
+ implementation(" com.squareup.sqldelight:sqlite-driver:${ Versions.sqlDelight} " )
173
99
}
174
100
175
101
jsMain. dependencies {
176
- api Kotlin . stdlibJs
177
- api Kotlin . serializationRuntimeJs
178
- api Ktor . clientJs
179
- api Ktor . clientJsonJs
180
- api Ktor . clientLoggingJs
181
- api Ktor . clientSerializationJs
102
+ implementation(" io.ktor:ktor-client-js:${ Versions.ktor} " )
182
103
}
183
104
184
105
}
0 commit comments