1
1
/*
2
- * Copyright (c) 2020 GitLive Ltd. Use of this source code is governed by the Apache 2.0 license.
2
+ * Copyright (c) 2023 GitLive Ltd. Use of this source code is governed by the Apache 2.0 license.
3
3
*/
4
4
5
- import org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTarget
6
- import org.jetbrains.kotlin.konan.target.KonanTarget
7
-
8
5
version = project.property(" firebase-storage.version" ) as String
9
6
10
7
plugins {
11
8
id(" com.android.library" )
12
- kotlin(" multiplatform" )
13
9
kotlin(" native.cocoapods" )
10
+ kotlin(" multiplatform" )
14
11
}
15
12
16
13
android {
17
14
compileSdk = property(" targetSdkVersion" ) as Int
18
15
defaultConfig {
19
16
minSdk = property(" minSdkVersion" ) as Int
20
17
targetSdk = property(" targetSdkVersion" ) as Int
21
- testInstrumentationRunner = " androidx.test.runner.AndroidJUnitRunner"
22
- multiDexEnabled = true
23
18
}
24
19
sourceSets {
25
20
getByName(" main" ) {
26
21
manifest.srcFile(" src/androidMain/AndroidManifest.xml" )
27
22
}
28
- getByName(" androidTest" ){
29
- java.srcDir(file(" src/androidAndroidTest/kotlin" ))
30
- manifest.srcFile(" src/androidAndroidTest/AndroidManifest.xml" )
31
- }
32
23
}
33
24
testOptions {
34
25
unitTests.apply {
@@ -70,6 +61,13 @@ kotlin {
70
61
71
62
js {
72
63
useCommonJs()
64
+ nodejs {
65
+ testTask {
66
+ useKarma {
67
+ useChromeHeadless()
68
+ }
69
+ }
70
+ }
73
71
browser {
74
72
testTask {
75
73
useKarma {
@@ -82,10 +80,9 @@ kotlin {
82
80
sourceSets {
83
81
all {
84
82
languageSettings.apply {
85
- apiVersion = " 1.6 "
86
- languageVersion = " 1.6 "
83
+ apiVersion = " 1.8 "
84
+ languageVersion = " 1.8 "
87
85
progressiveMode = true
88
- optIn(" kotlinx.coroutines.ExperimentalCoroutinesApi" )
89
86
}
90
87
}
91
88
@@ -106,9 +103,8 @@ kotlin {
106
103
val iosMain by getting
107
104
val iosSimulatorArm64Main by getting
108
105
iosSimulatorArm64Main.dependsOn(iosMain)
109
-
110
106
val iosTest by sourceSets.getting
111
- val iosSimulatorArm64Test by sourceSets. getting
107
+ val iosSimulatorArm64Test by getting
112
108
iosSimulatorArm64Test.dependsOn(iosTest)
113
109
}
114
110
@@ -132,5 +128,5 @@ signing {
132
128
val signingKey: String? by project
133
129
val signingPassword: String? by project
134
130
useInMemoryPgpKeys(signingKey, signingPassword)
135
- sign(publishing.publications)
131
+ // sign(publishing.publications)
136
132
}
0 commit comments