|
1 | 1 | import org.gradle.api.tasks.testing.logging.TestExceptionFormat |
2 | 2 | import org.gradle.api.tasks.testing.logging.TestLogEvent |
3 | | -import org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask |
4 | | - |
5 | | -repositories { |
6 | | - google() |
7 | | - mavenCentral() |
8 | | -} |
9 | 3 |
|
10 | 4 | plugins { |
11 | | - kotlin("multiplatform") apply false |
12 | | - kotlin("native.cocoapods") apply false |
| 5 | + alias(libs.plugins.android.application) apply false |
| 6 | + alias(libs.plugins.kotlinx.serialization) apply false |
| 7 | + alias(libs.plugins.multiplatform) apply false |
| 8 | + alias(libs.plugins.native.cocoapods) apply false |
| 9 | + alias(libs.plugins.test.logger.plugin) apply false |
| 10 | + alias(libs.plugins.ben.manes.versions) apply false |
13 | 11 | id("base") |
14 | | - id("com.github.ben-manes.versions") version "0.42.0" |
15 | | -} |
16 | | - |
17 | | -buildscript { |
18 | | - repositories { |
19 | | - google() |
20 | | - mavenCentral() |
21 | | - gradlePluginPortal() |
22 | | - maven { |
23 | | - url = uri("https://plugins.gradle.org/m2/") |
24 | | - } |
25 | | - } |
26 | | - dependencies { |
27 | | - classpath("com.android.tools.build:gradle:${project.extra["gradlePluginVersion"]}") |
28 | | - classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${project.extra["kotlinVersion"]}") |
29 | | - classpath("com.adarshr:gradle-test-logger-plugin:3.2.0") |
30 | | - } |
31 | 12 | } |
32 | 13 |
|
33 | 14 | val compileSdkVersion by extra(34) |
@@ -108,31 +89,27 @@ subprojects { |
108 | 89 | } |
109 | 90 |
|
110 | 91 | afterEvaluate { |
111 | | - |
112 | | - val coroutinesVersion: String by project |
113 | | - val firebaseBoMVersion: String by project |
114 | | - |
115 | 92 | dependencies { |
116 | | - "commonMainImplementation"("org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutinesVersion") |
117 | | - "androidMainImplementation"("org.jetbrains.kotlinx:kotlinx-coroutines-play-services:$coroutinesVersion") |
118 | | - "androidMainImplementation"(platform("com.google.firebase:firebase-bom:$firebaseBoMVersion")) |
| 93 | + "commonMainImplementation"(libs.kotlinx.coroutines.core) |
| 94 | + "androidMainImplementation"(libs.kotlinx.coroutines.play.services) |
| 95 | + "androidMainImplementation"(platform(libs.firebase.bom)) |
119 | 96 | "commonTestImplementation"(kotlin("test-common")) |
120 | 97 | "commonTestImplementation"(kotlin("test-annotations-common")) |
121 | 98 | if (this@afterEvaluate.name != "firebase-crashlytics") { |
122 | | - "jvmMainApi"("dev.gitlive:firebase-java-sdk:0.4.3") |
123 | | - "jvmMainApi"("org.jetbrains.kotlinx:kotlinx-coroutines-play-services:$coroutinesVersion") { |
| 99 | + "jvmMainApi"(libs.gitlive.firebase.java.sdk) |
| 100 | + "jvmMainApi"(libs.kotlinx.coroutines.play.services) { |
124 | 101 | exclude("com.google.android.gms") |
125 | 102 | } |
126 | 103 | "jsTestImplementation"(kotlin("test-js")) |
127 | 104 | "jvmTestImplementation"(kotlin("test-junit")) |
128 | | - "jvmTestImplementation"("junit:junit:4.13.2") |
| 105 | + "jvmTestImplementation"(libs.junit) |
129 | 106 | } |
130 | 107 | "androidInstrumentedTestImplementation"(kotlin("test-junit")) |
131 | 108 | "androidUnitTestImplementation"(kotlin("test-junit")) |
132 | | - "androidInstrumentedTestImplementation"("junit:junit:4.13.2") |
133 | | - "androidInstrumentedTestImplementation"("androidx.test:core:1.5.0") |
134 | | - "androidInstrumentedTestImplementation"("androidx.test.ext:junit:1.1.5") |
135 | | - "androidInstrumentedTestImplementation"("androidx.test:runner:1.5.2") |
| 109 | + "androidInstrumentedTestImplementation"(libs.junit) |
| 110 | + "androidInstrumentedTestImplementation"(libs.androidx.test.core) |
| 111 | + "androidInstrumentedTestImplementation"(libs.androidx.test.junit) |
| 112 | + "androidInstrumentedTestImplementation"(libs.androidx.test.runner) |
136 | 113 | } |
137 | 114 | } |
138 | 115 |
|
|
0 commit comments