@@ -17,24 +17,25 @@ buildscript {
1717 }
1818 }
1919 dependencies {
20- classpath(" com.android.tools.build:gradle:7.0.1 " )
20+ classpath(" com.android.tools.build:gradle:7.0.3 " )
2121 classpath(" com.adarshr:gradle-test-logger-plugin:2.1.1" )
2222 }
2323}
2424
2525val targetSdkVersion by extra(30 )
26- val minSdkVersion by extra(16 )
26+ val minSdkVersion by extra(19 )
2727
2828tasks {
2929 val updateVersions by registering {
3030 dependsOn(
3131 " firebase-app:updateVersion" , " firebase-app:updateDependencyVersion" ,
3232 " firebase-auth:updateVersion" , " firebase-auth:updateDependencyVersion" ,
3333 " firebase-common:updateVersion" , " firebase-common:updateDependencyVersion" ,
34+ " firebase-config:updateVersion" , " firebase-config:updateDependencyVersion" ,
3435 " firebase-database:updateVersion" , " firebase-database:updateDependencyVersion" ,
3536 " firebase-firestore:updateVersion" , " firebase-firestore:updateDependencyVersion" ,
3637 " firebase-functions:updateVersion" , " firebase-functions:updateDependencyVersion" ,
37- " firebase-config :updateVersion" , " firebase-config :updateDependencyVersion"
38+ " firebase-installations :updateVersion" , " firebase-installations :updateDependencyVersion"
3839 )
3940 }
4041}
@@ -154,24 +155,25 @@ subprojects {
154155 }
155156 }
156157
157- if (projectDir.resolve(" src/nativeInterop/cinterop/Cartfile" ).exists()) { // skipping firebase-common module
158- listOf (" bootstrap" , " update" ).forEach {
158+ val carthageTasks = if (projectDir.resolve(" src/nativeInterop/cinterop/Cartfile" ).exists()) { // skipping firebase-common module
159+ listOf (" bootstrap" , " update" ).map {
159160 task<Exec >(" carthage${it.capitalize()} " ) {
160161 group = " carthage"
161162 executable = " carthage"
162163 args(
163164 it,
164165 " --project-directory" , projectDir.resolve(" src/nativeInterop/cinterop" ),
165- " --platform" , " iOS" ,
166- " --cache-builds"
166+ " --platform" , " iOS"
167167 )
168168 }
169169 }
170- }
170+ } else emptyList()
171171
172172 if (Os .isFamily(Os .FAMILY_MAC )) {
173173 withType(org.jetbrains.kotlin.gradle.tasks.CInteropProcess ::class ) {
174- dependsOn(" carthageBootstrap" )
174+ if (carthageTasks.isNotEmpty()) {
175+ dependsOn(" carthageBootstrap" )
176+ }
175177 }
176178 }
177179
@@ -195,12 +197,12 @@ subprojects {
195197 }
196198
197199 dependencies {
198- " commonMainImplementation" (" org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2" )
199- " androidMainImplementation" (" org.jetbrains.kotlinx:kotlinx-coroutines-play-services:1.5.2" )
200- " androidMainImplementation" (platform(" com.google.firebase:firebase-bom:28.4 .1" ))
200+ " commonMainImplementation" (" org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2-native-mt " )
201+ " androidMainImplementation" (" org.jetbrains.kotlinx:kotlinx-coroutines-play-services:1.5.2-native-mt " )
202+ " androidMainImplementation" (platform(" com.google.firebase:firebase-bom:29.0 .1" ))
201203 " commonTestImplementation" (kotlin(" test-common" ))
202204 " commonTestImplementation" (kotlin(" test-annotations-common" ))
203- " commonTestImplementation" (" org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2" )
205+ " commonTestImplementation" (" org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2-native-mt " )
204206 " jsTestImplementation" (kotlin(" test-js" ))
205207 " androidAndroidTestImplementation" (kotlin(" test-junit" ))
206208 " androidAndroidTestImplementation" (" junit:junit:4.13.2" )
0 commit comments