@@ -12,12 +12,12 @@ base {
12
12
13
13
android {
14
14
namespace " io.syslogic.demo.colorpicker"
15
- buildToolsVersion = build_tools_version
15
+ buildToolsVersion = ' 34.0.0 '
16
16
compileSdk compile_sdk
17
17
defaultConfig {
18
18
applicationId " io.syslogic.demo.colorpicker"
19
- testBuildType " debug"
20
19
testInstrumentationRunner " androidx.test.runner.AndroidJUnitRunner"
20
+ testBuildType " debug"
21
21
versionCode version_code
22
22
versionName version_name
23
23
targetSdk target_sdk
@@ -36,7 +36,7 @@ android {
36
36
composeOptions {
37
37
// See the "Compose to Kotlin Compatibility Map" for compatible versions:
38
38
// https://developer.android.com/jetpack/androidx/releases/compose-kotlin
39
- kotlinCompilerExtensionVersion kotlin_compiler_extension_version
39
+ kotlinCompilerExtensionVersion libs . versions . kotlin . compiler . extension . get()
40
40
}
41
41
42
42
buildFeatures {
@@ -69,20 +69,20 @@ dependencies {
69
69
// implementation "io.syslogic:androidx-colorpicker:$version_name"
70
70
implementation project(path : ' :library' )
71
71
72
- implementation " com.google.android. material:material: $m aterial_version "
72
+ implementation libs . material. design
73
73
74
- implementation " androidx.core:core- ktx: $a ndroidx_core_version "
75
- implementation " androidx.appcompat:appcompat: $a ndroidx_appcompat_version "
76
- implementation " androidx.preference:preference- ktx: $a ndroidx_preference_version "
74
+ implementation libs . androidx. core. ktx
75
+ implementation libs . androidx. appcompat
76
+ implementation libs . androidx. preference. ktx
77
77
78
- androidTestImplementation " androidx.navigation:navigation- testing: $a ndroidx_navigation_version "
79
- implementation " androidx.navigation:navigation- runtime- ktx: $a ndroidx_navigation_version "
80
- implementation " androidx.navigation:navigation- fragment- ktx: $a ndroidx_navigation_version "
81
- implementation " androidx.navigation:navigation-ui- ktx: $a ndroidx_navigation_version "
78
+ androidTestImplementation libs . androidx. navigation. testing
79
+ implementation libs . androidx. navigation. runtime. ktx
80
+ implementation libs . androidx. navigation. fragment. ktx
81
+ implementation libs . androidx. navigation. ui . ktx
82
82
83
83
// https://mvnrepository.com/artifact/androidx.compose
84
84
// https://developer.android.com/jetpack/compose/tooling#bom
85
- implementation platform(" androidx.compose:compose- bom: $a ndroidx_compose_bom_version " )
85
+ implementation platform(libs . androidx. compose. bom)
86
86
debugImplementation " androidx.compose.ui:ui-tooling-preview"
87
87
implementation " androidx.activity:activity-compose"
88
88
implementation " androidx.compose.foundation:foundation"
@@ -91,43 +91,43 @@ dependencies {
91
91
implementation " androidx.compose.ui:ui"
92
92
93
93
// jUnit
94
- testImplementation " junit:junit: $j unit_version "
94
+ testImplementation libs . junit
95
95
96
96
// Required for connected tests.
97
97
// https://mvnrepository.com/artifact/androidx.test/monitor
98
- debugImplementation " androidx.test: monitor: $a ndroidx_test_monitor_version "
98
+ debugImplementation libs . androidx. test. monitor
99
99
100
100
// Required for connected tests (ActivityInvoker).
101
101
// https://mvnrepository.com/artifact/androidx.test.ext
102
- debugImplementation " androidx.test.ext: junit: $a ndroidx_test_junit_version "
102
+ debugImplementation libs . androidx. test. junit
103
103
104
104
// https://mvnrepository.com/artifact/androidx.test
105
105
// https://developer.android.com/jetpack/androidx/releases/test
106
- androidTestImplementation " androidx.test: core: $a ndroidx_test_core_version "
107
- androidTestImplementation " androidx.test: runner: $a ndroidx_test_runner_version "
108
- androidTestImplementation " androidx.test: rules: $a ndroidx_test_rules_version "
106
+ androidTestImplementation libs . androidx. test. core
107
+ androidTestImplementation libs . androidx. test. runner
108
+ androidTestImplementation libs . androidx. test. rules
109
109
110
110
// https://mvnrepository.com/artifact/androidx.test.uiautomator/uiautomator
111
- androidTestImplementation " androidx.test.uiautomator:uiautomator: $a ndroidx_test_uiautomator_version "
111
+ androidTestImplementation libs . androidx. test. uiautomator
112
112
113
113
// Espresso
114
- androidTestImplementation " androidx.test. espresso:espresso- core: $a ndroidx_test_espresso_version "
115
- // androidTestImplementation " androidx.test. espresso:espresso-contrib:$androidx_test_espresso_version"
116
- // androidTestImplementation "androidx.test.espresso:espresso-intents:$androidx_test_espresso_version "
117
- // androidTestImplementation "androidx.test.espresso:espresso-accessibility:$androidx_test_espresso_version "
118
- androidTestImplementation " androidx.test.espresso:espresso-web: $a ndroidx_test_espresso_version "
119
- // androidTestImplementation "androidx.test.espresso.idling:idling-concurrent:$androidx_test_espresso_version "
114
+ androidTestImplementation libs . androidx. espresso. core
115
+ androidTestImplementation libs . androidx. espresso. web
116
+ // androidTestImplementation "androidx.test.espresso:espresso-contrib:${libs.versions.androidx.test.espresso.get()} "
117
+ // androidTestImplementation "androidx.test.espresso:espresso-intents:${libs.versions.androidx.test.espresso.get()} "
118
+ // androidTestImplementation "androidx.test.espresso:espresso-accessibility:${libs.versions.androidx.test.espresso.get()} "
119
+ // androidTestImplementation "androidx.test.espresso.idling:idling-concurrent:${libs.versions.androidx.test.espresso.get()} "
120
120
121
121
// The following dependency can be either "implementation" or "androidTestImplementation",
122
122
// depending on whether you want it to appear on your APK's compile classpath or the test APK classpath.
123
- // androidTestImplementation "androidx.test.espresso:espresso-idling-resource:$androidx_test_espresso_version "
123
+ // androidTestImplementation "androidx.test.espresso:espresso-idling-resource:${libs.versions.androidx.test.espresso.get()} "
124
124
125
125
// Test rules and transitive dependencies:
126
- androidTestImplementation " androidx.compose.ui:ui-test-junit4:1.6.3 "
126
+ androidTestImplementation libs . androidx. compose. uitest
127
127
128
128
// Needed for createComposeRule, but not createAndroidComposeRule:
129
129
// noinspection GradleDependency
130
- debugImplementation( " androidx.compose.ui:ui-test-manifest" )
130
+ debugImplementation " androidx.compose.ui:ui-test-manifest"
131
131
}
132
132
133
133
// disable caching
0 commit comments