-
Notifications
You must be signed in to change notification settings - Fork 107
/
build.gradle
122 lines (119 loc) · 6.9 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.KSP_VERSION = '1.9.23-1.0.20'
ext.versions = [
'androidXTestCore' : '1.4.0',
'androidXTestRules' : '1.4.0',
'assertJ' : '3.16.1',
'compose' : '1.6.7',
'composeCompiler' : '1.5.13',
'composeActivity' : '1.9.0',
'composeConstraintLayout': '1.0.1',
'composeNavigation' : '2.5.1',
'detekt' : '1.7.4',
'espresso' : '3.2.0',
'gradle' : '8.1.1',
'junit' : '4.13.2',
'junitImplementation' : '1.1.2',
'kotlin' : '1.9.23',
'kotlinCompilerVersion' : '1.9.23',
'kotlinCompileTesting' : '0.4.1',
'kotlinPoet' : '1.12.0',
'kotlinXMetadata' : '0.6.0',
'ksp' : "$KSP_VERSION",
'ktx' : '1.1.0',
'lifecycle' : '2.2.0',
'paparazzi' : '1.2.0',
'picasso' : '2.8',
'appcompat' : '1.4.0',
'testRunner' : '1.4.0',
'testParameterInjector' : '1.8',
'googleTruth' : '1.1.3',
'material' : '1.4.0',
'mavenPublish' : '0.22.0',
'mdcComposeThemeAdapter' : '1.0.2',
'strikt' : '0.33.0',
'xprocessing' : '2.6.1',
'corektx' : '1.7.0',
'shot' : '6.0.0'
]
ext.deps = [
'compose' : [
'activityCompose' : "androidx.activity:activity-compose:${versions.composeActivity}",
'composeComplier' : "androidx.compose:compose-compiler:${versions.composeCompiler}",
'composeNavigation' : "androidx.navigation:navigation-compose:${versions.composeNavigation}",
'composeRuntime' : "androidx.compose.runtime:runtime:${versions.compose}",
'constraintLayout' : "androidx.constraintlayout:constraintlayout-compose:${versions.composeConstraintLayout}",
'core' : "androidx.compose.ui:ui:${versions.compose}",
'foundation' : "androidx.compose.foundation:foundation:${versions.compose}",
'tooling' : "androidx.compose.ui:ui-tooling:${versions.compose}",
'toolingPreview' : "androidx.compose.ui:ui-tooling-preview:${versions.compose}",
'layout' : "androidx.compose.foundation:foundation-layout:${versions.compose}",
'material' : "androidx.compose.material:material:${versions.compose}",
'savedInstanceState': "androidx.compose.runtime:runtime-saveable:${versions.compose}",
'uiTest' : "androidx.compose.ui:ui-test-junit4:${versions.compose}",
'uiLiveData' : "androidx.compose.runtime:runtime-livedata:${versions.compose}"
],
'kotlinCompileTesting' : "dev.zacsweers.kctfork:core:${versions.kotlinCompileTesting}",
'kotlinCompileTestingKsp': "dev.zacsweers.kctfork:ksp:${versions.kotlinCompileTesting}",
'kotlinPoet' : "com.squareup:kotlinpoet:${versions.kotlinPoet}",
'kotlinJavaPoetInterop' : "com.squareup:kotlinpoet-javapoet:${versions.kotlinPoet}",
'kotlinXMetadata' : "org.jetbrains.kotlinx:kotlinx-metadata-jvm:${versions.kotlinXMetadata}",
'ksp' : "com.google.devtools.ksp:symbol-processing-api:${versions.ksp}",
'imageLoading' : [
'picasso': "com.squareup.picasso:picasso:${versions.picasso}"
],
'support' : [
'appCompat' : "androidx.appcompat:appcompat:${versions.appcompat}",
'ktx' : "androidx.core:core-ktx:${versions.corektx}",
'lifecycleExtensions': "androidx.lifecycle:lifecycle-extensions:${versions.lifecycle}"
],
'test' : [
'androidXTestCore' : "androidx.test:core:${versions.androidXTestCore}",
'androidXTestRules' : "androidx.test:rules:${versions.androidXTestRules}",
'assertJ' : "org.assertj:assertj-core:${versions.assertJ}",
'googleTruth' : "com.google.truth:truth:${versions.googleTruth}",
'junit' : "junit:junit:${versions.junit}",
'junitImplementation' : "androidx.test.ext:junit:${versions.junitImplementation}",
'androidxTestRunner' : "androidx.test:runner:${versions.testRunner}",
'strikt' : "io.strikt:strikt-core:${versions.strikt}",
'shotAndroid' : "com.karumi:shot-android:${versions.shot}",
'testParameterInjector': "com.google.testparameterinjector:test-parameter-injector:${versions.testParameterInjector}",
'paparazzi' : "app.cash.paparazzi:paparazzi:${versions.paparazzi}"
],
'material' : [
'material' : "com.google.android.material:material:${versions.material}",
'mdcComposeThemeAdapter': "com.google.android.material:compose-theme-adapter:${versions.mdcComposeThemeAdapter}"
],
'xprocessing' : "androidx.room:room-compiler-processing:${versions.xprocessing}",
'xprocessingTesting' : "androidx.room:room-compiler-processing-testing:${versions.xprocessing}",
]
ext.MAVEN_PUBLISH_VERSION = versions.mavenPublish
repositories {
google()
mavenCentral()
gradlePluginPortal()
jcenter()
}
dependencies {
classpath "com.android.tools.build:gradle:${versions.gradle}"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${versions.kotlin}"
classpath "com.karumi:shot:${versions.shot}"
classpath "com.vanniktech:gradle-maven-publish-plugin:${versions.mavenPublish}"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
plugins {
id "io.gitlab.arturbosch.detekt" version "1.7.4"
id "com.google.devtools.ksp" version "$KSP_VERSION"
id "com.vanniktech.maven.publish" version "$MAVEN_PUBLISH_VERSION"
}
allprojects {
apply from: "$rootDir/detekt/detekt.gradle"
repositories {
google()
mavenCentral()
jcenter()
}
}