@@ -12,12 +12,12 @@ base {
1212
1313android {
1414 namespace " io.syslogic.demo.colorpicker"
15- buildToolsVersion = build_tools_version
15+ buildToolsVersion = ' 34.0.0 '
1616 compileSdk compile_sdk
1717 defaultConfig {
1818 applicationId " io.syslogic.demo.colorpicker"
19- testBuildType " debug"
2019 testInstrumentationRunner " androidx.test.runner.AndroidJUnitRunner"
20+ testBuildType " debug"
2121 versionCode version_code
2222 versionName version_name
2323 targetSdk target_sdk
@@ -36,7 +36,7 @@ android {
3636 composeOptions {
3737 // See the "Compose to Kotlin Compatibility Map" for compatible versions:
3838 // https://developer.android.com/jetpack/androidx/releases/compose-kotlin
39- kotlinCompilerExtensionVersion kotlin_compiler_extension_version
39+ kotlinCompilerExtensionVersion libs . versions . kotlin . compiler . extension . get()
4040 }
4141
4242 buildFeatures {
@@ -69,20 +69,20 @@ dependencies {
6969 // implementation "io.syslogic:androidx-colorpicker:$version_name"
7070 implementation project(path : ' :library' )
7171
72- implementation " com.google.android. material:material: $m aterial_version "
72+ implementation libs . material. design
7373
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
7777
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
8282
8383 // https://mvnrepository.com/artifact/androidx.compose
8484 // 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)
8686 debugImplementation " androidx.compose.ui:ui-tooling-preview"
8787 implementation " androidx.activity:activity-compose"
8888 implementation " androidx.compose.foundation:foundation"
@@ -91,43 +91,43 @@ dependencies {
9191 implementation " androidx.compose.ui:ui"
9292
9393 // jUnit
94- testImplementation " junit:junit: $j unit_version "
94+ testImplementation libs . junit
9595
9696 // Required for connected tests.
9797 // https://mvnrepository.com/artifact/androidx.test/monitor
98- debugImplementation " androidx.test: monitor: $a ndroidx_test_monitor_version "
98+ debugImplementation libs . androidx. test. monitor
9999
100100 // Required for connected tests (ActivityInvoker).
101101 // https://mvnrepository.com/artifact/androidx.test.ext
102- debugImplementation " androidx.test.ext: junit: $a ndroidx_test_junit_version "
102+ debugImplementation libs . androidx. test. junit
103103
104104 // https://mvnrepository.com/artifact/androidx.test
105105 // 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
109109
110110 // 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
112112
113113 // 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()} "
120120
121121 // The following dependency can be either "implementation" or "androidTestImplementation",
122122 // 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()} "
124124
125125 // Test rules and transitive dependencies:
126- androidTestImplementation " androidx.compose.ui:ui-test-junit4:1.6.3 "
126+ androidTestImplementation libs . androidx. compose. uitest
127127
128128 // Needed for createComposeRule, but not createAndroidComposeRule:
129129 // noinspection GradleDependency
130- debugImplementation( " androidx.compose.ui:ui-test-manifest" )
130+ debugImplementation " androidx.compose.ui:ui-test-manifest"
131131}
132132
133133// disable caching
0 commit comments