|
1 | | -@file:Suppress("ClassName") |
2 | | - |
3 | | -object libs { |
4 | | - object versions { |
5 | | - const val kotlin = "2.3.0" |
6 | | - const val junitJupiter = "5.14.0" |
7 | | - const val junitVintage = "5.14.0" |
8 | | - const val junitPlatform = "1.14.0" |
9 | | - |
10 | | - const val compose = "1.10.0" |
11 | | - const val androidXMultidex = "2.0.1" |
12 | | - const val androidXTestAnnotation = "1.0.1" |
13 | | - const val androidXTestCore = "1.6.1" |
14 | | - const val androidXTestMonitor = "1.7.2" |
15 | | - const val androidXTestRunner = "1.6.2" |
16 | | - |
17 | | - const val activityCompose = "1.10.1" |
18 | | - const val apiGuardian = "1.1.2" |
19 | | - const val coroutines = "1.10.2" |
20 | | - const val dokka = "2.0.0" |
21 | | - const val espresso = "3.6.1" |
22 | | - const val junit4 = "4.13.2" |
23 | | - const val konfToml = "1.1.2" |
24 | | - const val kotlinxBinaryCompatibilityValidator = "0.17.0" |
25 | | - const val nexusPublish = "2.0.0" |
26 | | - const val korte = "2.4.12" |
27 | | - const val mockitoCore = "5.16.0" |
28 | | - const val mockitoKotlin = "5.4.0" |
29 | | - const val robolectric = "4.14.1" |
30 | | - const val shadow = "8.1.1" |
31 | | - const val truth = "1.4.4" |
32 | | - } |
33 | | - |
34 | | - object plugins { |
35 | | - fun android(version: SupportedAgp) = "com.android.tools.build:gradle:${version.version}" |
36 | | - const val composeCompiler = "org.jetbrains.kotlin.plugin.compose:org.jetbrains.kotlin.plugin.compose.gradle.plugin:${versions.kotlin}" |
37 | | - const val kotlin = "org.jetbrains.kotlin:kotlin-gradle-plugin:${libs.versions.kotlin}" |
38 | | - const val shadow = "com.github.johnrengelman:shadow:${libs.versions.shadow}" |
39 | | - const val dokka = "org.jetbrains.dokka:dokka-gradle-plugin:${libs.versions.dokka}" |
40 | | - } |
41 | | - |
42 | | - // Libraries |
43 | | - val androidTools = run { |
44 | | - // The version of this library is linked to AGP |
45 | | - // (essentially: "AGP + 23.0.0") |
46 | | - val agpVersionParts = SupportedAgp.oldest.version.split('.') |
47 | | - val toolsVersion = "${23 + agpVersionParts.first().toInt()}." + agpVersionParts.drop(1).joinToString(".") |
48 | | - "com.android.tools:common:$toolsVersion" |
49 | | - } |
50 | | - |
51 | | - const val kotlinStdLib = "org.jetbrains.kotlin:kotlin-stdlib-jdk8:${versions.kotlin}" |
52 | | - const val kotlinCoroutinesCore = "org.jetbrains.kotlinx:kotlinx-coroutines-core:${versions.coroutines}" |
53 | | - |
54 | | - const val junitJupiterApi = "org.junit.jupiter:junit-jupiter-api:${versions.junitJupiter}" |
55 | | - const val junitJupiterParams = "org.junit.jupiter:junit-jupiter-params:${versions.junitJupiter}" |
56 | | - const val junitJupiterEngine = "org.junit.jupiter:junit-jupiter-engine:${versions.junitJupiter}" |
57 | | - const val junitVintageEngine = "org.junit.vintage:junit-vintage-engine:${versions.junitVintage}" |
58 | | - const val junitPlatformCommons = "org.junit.platform:junit-platform-commons:${versions.junitPlatform}" |
59 | | - const val junitPlatformLauncher = "org.junit.platform:junit-platform-launcher:${versions.junitPlatform}" |
60 | | - const val junitPlatformRunner = "org.junit.platform:junit-platform-runner:${versions.junitPlatform}" |
61 | | - const val apiguardianApi = "org.apiguardian:apiguardian-api:${versions.apiGuardian}" |
62 | | - |
63 | | - const val composeUi = "androidx.compose.ui:ui:${versions.compose}" |
64 | | - const val composeUiTooling = "androidx.compose.ui:ui-tooling:${versions.compose}" |
65 | | - const val composeFoundation = "androidx.compose.foundation:foundation:${versions.compose}" |
66 | | - const val composeMaterial = "androidx.compose.material:material:${versions.compose}" |
67 | | - const val composeActivity = "androidx.activity:activity-compose:${versions.activityCompose}" |
68 | | - |
69 | | - // Testing |
70 | | - const val junit4 = "junit:junit:${versions.junit4}" |
71 | | - const val korte = "com.soywiz.korlibs.korte:korte:${versions.korte}" |
72 | | - const val konfToml = "com.uchuhimo:konf-toml:${versions.konfToml}" |
73 | | - const val mockitoCore = "org.mockito:mockito-core:${versions.mockitoCore}" |
74 | | - const val mockitoKotlin = "org.mockito.kotlin:mockito-kotlin:${versions.mockitoKotlin}" |
75 | | - const val truth = "com.google.truth:truth:${versions.truth}" |
76 | | - const val truthJava8Extensions = "com.google.truth.extensions:truth-java8-extension:${versions.truth}" |
77 | | - const val robolectric = "org.robolectric:robolectric:${versions.robolectric}" |
78 | | - |
79 | | - const val androidXMultidex = "androidx.multidex:multidex:${versions.androidXMultidex}" |
80 | | - const val androidXTestAnnotation = "androidx.test:annotation:${versions.androidXTestAnnotation}" |
81 | | - const val androidXTestCore = "androidx.test:core:${versions.androidXTestCore}" |
82 | | - const val androidXTestMonitor = "androidx.test:monitor:${versions.androidXTestMonitor}" |
83 | | - const val androidXTestRunner = "androidx.test:runner:${versions.androidXTestRunner}" |
84 | | - const val espressoCore = "androidx.test.espresso:espresso-core:${versions.espresso}" |
85 | | - |
86 | | - const val composeUiTest = "androidx.compose.ui:ui-test:${versions.compose}" |
87 | | - const val composeUiTestJUnit4 = "androidx.compose.ui:ui-test-junit4:${versions.compose}" |
88 | | - const val composeUiTestManifest = "androidx.compose.ui:ui-test-manifest:${versions.compose}" |
89 | | - |
90 | | - // Documentation |
91 | | - // For the latest version refer to GitHub repo neboskreb/instant-task-executor-extension |
92 | | - const val instantTaskExecutorExtension = "io.github.neboskreb:instant-task-executor-extension:1.0.0" |
93 | | -} |
| 1 | +//@file:Suppress("ClassName") |
| 2 | +// |
| 3 | +//object libs2 { |
| 4 | +// object versions { |
| 5 | +// const val kotlin = "2.3.0" |
| 6 | +// const val junitJupiter = "5.14.0" |
| 7 | +// const val junitVintage = "5.14.0" |
| 8 | +// const val junitPlatform = "1.14.0" |
| 9 | +// |
| 10 | +// const val compose = "1.10.0" |
| 11 | +// const val androidXMultidex = "2.0.1" |
| 12 | +// const val androidXTestAnnotation = "1.0.1" |
| 13 | +// const val androidXTestCore = "1.6.1" |
| 14 | +// const val androidXTestMonitor = "1.7.2" |
| 15 | +// const val androidXTestRunner = "1.6.2" |
| 16 | +// |
| 17 | +// const val activityCompose = "1.10.1" |
| 18 | +// const val apiGuardian = "1.1.2" |
| 19 | +// const val coroutines = "1.10.2" |
| 20 | +// const val dokka = "2.0.0" |
| 21 | +// const val espresso = "3.6.1" |
| 22 | +// const val junit4 = "4.13.2" |
| 23 | +// const val konfToml = "1.1.2" |
| 24 | +// const val kotlinxBinaryCompatibilityValidator = "0.17.0" |
| 25 | +// const val nexusPublish = "2.0.0" |
| 26 | +// const val korte = "2.4.12" |
| 27 | +// const val mockitoCore = "5.16.0" |
| 28 | +// const val mockitoKotlin = "5.4.0" |
| 29 | +// const val robolectric = "4.14.1" |
| 30 | +// const val shadow = "8.1.1" |
| 31 | +// const val truth = "1.4.4" |
| 32 | +// } |
| 33 | +// |
| 34 | +// object plugins { |
| 35 | +// fun android(extensions.version: SupportedAgp) = "com.android.tools.build:gradle:${extensions.version.extensions.version}" |
| 36 | +// const val composeCompiler = "org.jetbrains.kotlin.plugin.compose:org.jetbrains.kotlin.plugin.compose.gradle.plugin:${versions.kotlin}" |
| 37 | +// const val kotlin = "org.jetbrains.kotlin:kotlin-gradle-plugin:${extensions.libs.versions.kotlin}" |
| 38 | +// const val shadow = "com.github.johnrengelman:shadow:${extensions.libs.versions.shadow}" |
| 39 | +// const val dokka = "org.jetbrains.dokka:dokka-gradle-plugin:${extensions.libs.versions.dokka}" |
| 40 | +// } |
| 41 | +// |
| 42 | +// // Libraries |
| 43 | +// val androidTools = run { |
| 44 | +// // The extensions.version of this extensions.library is linked to AGP |
| 45 | +// // (essentially: "AGP + 23.0.0") |
| 46 | +// val agpVersionParts = SupportedAgp.oldest.extensions.version.split('.') |
| 47 | +// val toolsVersion = "${23 + agpVersionParts.first().toInt()}." + agpVersionParts.drop(1).joinToString(".") |
| 48 | +// "com.android.tools:common:$toolsVersion" |
| 49 | +// } |
| 50 | +// |
| 51 | +// const val kotlinStdLib = "org.jetbrains.kotlin:kotlin-stdlib-jdk8:${versions.kotlin}" |
| 52 | +// const val kotlinCoroutinesCore = "org.jetbrains.kotlinx:kotlinx-coroutines-core:${versions.coroutines}" |
| 53 | +// |
| 54 | +// const val junitJupiterApi = "org.junit.jupiter:junit-jupiter-api:${versions.junitJupiter}" |
| 55 | +// const val junitJupiterParams = "org.junit.jupiter:junit-jupiter-params:${versions.junitJupiter}" |
| 56 | +// const val junitJupiterEngine = "org.junit.jupiter:junit-jupiter-engine:${versions.junitJupiter}" |
| 57 | +// const val junitVintageEngine = "org.junit.vintage:junit-vintage-engine:${versions.junitVintage}" |
| 58 | +// const val junitPlatformCommons = "org.junit.platform:junit-platform-commons:${versions.junitPlatform}" |
| 59 | +// const val junitPlatformLauncher = "org.junit.platform:junit-platform-launcher:${versions.junitPlatform}" |
| 60 | +// const val junitPlatformRunner = "org.junit.platform:junit-platform-runner:${versions.junitPlatform}" |
| 61 | +// const val apiguardianApi = "org.apiguardian:apiguardian-api:${versions.apiGuardian}" |
| 62 | +// |
| 63 | +// const val composeUi = "androidx.compose.ui:ui:${versions.compose}" |
| 64 | +// const val composeUiTooling = "androidx.compose.ui:ui-tooling:${versions.compose}" |
| 65 | +// const val composeFoundation = "androidx.compose.foundation:foundation:${versions.compose}" |
| 66 | +// const val composeMaterial = "androidx.compose.material:material:${versions.compose}" |
| 67 | +// const val composeActivity = "androidx.activity:activity-compose:${versions.activityCompose}" |
| 68 | +// |
| 69 | +// // Testing |
| 70 | +// const val junit4 = "junit:junit:${versions.junit4}" |
| 71 | +// const val korte = "com.soywiz.korlibs.korte:korte:${versions.korte}" |
| 72 | +// const val konfToml = "com.uchuhimo:konf-toml:${versions.konfToml}" |
| 73 | +// const val mockitoCore = "org.mockito:mockito-core:${versions.mockitoCore}" |
| 74 | +// const val mockitoKotlin = "org.mockito.kotlin:mockito-kotlin:${versions.mockitoKotlin}" |
| 75 | +// const val truth = "com.google.truth:truth:${versions.truth}" |
| 76 | +// const val truthJava8Extensions = "com.google.truth.extensions:truth-java8-extension:${versions.truth}" |
| 77 | +// const val robolectric = "org.robolectric:robolectric:${versions.robolectric}" |
| 78 | +// |
| 79 | +// const val androidXMultidex = "androidx.multidex:multidex:${versions.androidXMultidex}" |
| 80 | +// const val androidXTestAnnotation = "androidx.test:annotation:${versions.androidXTestAnnotation}" |
| 81 | +// const val androidXTestCore = "androidx.test:core:${versions.androidXTestCore}" |
| 82 | +// const val androidXTestMonitor = "androidx.test:monitor:${versions.androidXTestMonitor}" |
| 83 | +// const val androidXTestRunner = "androidx.test:runner:${versions.androidXTestRunner}" |
| 84 | +// const val espressoCore = "androidx.test.espresso:espresso-core:${versions.espresso}" |
| 85 | +// |
| 86 | +// const val composeUiTest = "androidx.compose.ui:ui-test:${versions.compose}" |
| 87 | +// const val composeUiTestJUnit4 = "androidx.compose.ui:ui-test-junit4:${versions.compose}" |
| 88 | +// const val composeUiTestManifest = "androidx.compose.ui:ui-test-manifest:${versions.compose}" |
| 89 | +// |
| 90 | +// // Documentation |
| 91 | +// // For the latest extensions.version refer to GitHub repo neboskreb/instant-task-executor-extension |
| 92 | +// const val instantTaskExecutorExtension = "io.github.neboskreb:instant-task-executor-extension:1.0.0" |
| 93 | +//} |
0 commit comments