@@ -218,75 +218,67 @@ fun loadKeyStore(name: String): Properties? {
218
218
219
219
dependencies {
220
220
221
- implementation(" androidx.appcompat:appcompat:1.7.0" )
222
- implementation(" androidx.core:core-ktx:1.16.0" )
223
- implementation(" androidx.constraintlayout:constraintlayout:2.2.1" )
221
+ // AndroidX
222
+ implementation(libs.appcompat)
223
+ implementation(libs.core.ktx)
224
+ implementation(libs.constraintlayout)
224
225
225
226
// Firebase
226
- implementation(platform(" com.google. firebase:firebase-bom: ${libs.versions.firebaseBom.get()} " ))
227
- implementation(" com.google. firebase:firebase- analytics- ktx" )
228
- implementation(" com.google. firebase:firebase- crashlytics- ktx" )
227
+ implementation(platform(libs. firebase.bom ))
228
+ implementation(libs. firebase. analytics. ktx)
229
+ implementation(libs. firebase. crashlytics. ktx)
229
230
230
231
// Dependency Injection
231
- implementation(" com.google.dagger:hilt-android: ${ libs.versions. hilt.get()} " )
232
- kapt(" com.google.dagger:hilt-compiler: ${ libs.versions. hilt.get()} " )
232
+ implementation(libs.hilt.android )
233
+ kapt(libs.hilt.compiler )
233
234
234
235
// Coroutines
235
- implementation(" androidx .lifecycle:lifecycle- runtime-ktx:2.8.7 " )
236
- implementation(" androidx .lifecycle:lifecycle- viewmodel-ktx:2.8.7 " )
237
- implementation(" androidx .lifecycle:lifecycle-extensions:2.2.0 " )
238
- implementation(" org.jetbrains.kotlinx:kotlinx- coroutines-core:1.7.3 " )
239
- implementation(" org.jetbrains.kotlinx:kotlinx- coroutines-android:1.7.3 " )
236
+ implementation(libs .lifecycle. runtime.ktx )
237
+ implementation(libs .lifecycle. viewmodel.ktx )
238
+ implementation(libs .lifecycle.extensions )
239
+ implementation(libs. coroutines.core )
240
+ implementation(libs. coroutines.android )
240
241
241
242
// Compose Bom
242
- val composeBom = platform(" androidx .compose:compose-bom:2023.06.01 " )
243
+ val composeBom = platform(libs .compose.bom )
243
244
implementation(composeBom)
244
245
androidTestImplementation(composeBom)
245
- implementation(" androidx .compose.foundation:foundation " )
246
- implementation(" androidx .compose.material3:material3 " )
246
+ implementation(libs .compose.foundation)
247
+ implementation(libs .compose.material3)
247
248
// Compose - Android Studio Preview support
248
- implementation(" androidx .compose.ui:ui- tooling- preview" )
249
- debugImplementation(" androidx .compose.ui:ui- tooling" )
250
- implementation(" androidx .activity:activity-compose:1.10.1 " )
249
+ implementation(libs .compose.ui. tooling. preview)
250
+ debugImplementation(libs .compose.ui. tooling)
251
+ implementation(libs .activity.compose )
251
252
252
253
// Other UI Libraries
253
- implementation(" com.google.android.material:material:${libs.versions.material.get()} " )
254
-
255
- // data
256
- implementation(" androidx.datastore:datastore-preferences:1.1.4" )
257
-
258
- // unit test libs
259
- testImplementation(" junit:junit:4.13.2" )
260
-
261
- // instrumented test libs
262
- androidTestImplementation(" androidx.test:core:1.6.1" )
263
- androidTestImplementation(" androidx.test.ext:junit:1.2.1" )
264
- androidTestImplementation(" androidx.test.ext:junit-ktx:1.2.1" )
265
- androidTestImplementation(" androidx.test.espresso:espresso-core:3.6.1" )
266
-
267
- // Hamcrest for view matching
268
- androidTestImplementation(" org.hamcrest:hamcrest-library:2.2" )
269
- androidTestImplementation(" androidx.test:runner:1.6.2" )
270
- androidTestImplementation(" androidx.test:rules:1.6.1" )
271
-
272
- // coroutine testing
273
- testImplementation(" org.jetbrains.kotlinx:kotlinx-coroutines-test:${libs.versions.hilt.get()} " )
274
- androidTestImplementation(" org.jetbrains.kotlinx:kotlinx-coroutines-test:${libs.versions.coroutines.get()} " )
275
-
276
- // google truth for assertions
277
- testImplementation(" com.google.truth:truth:1.1.3" )
278
- androidTestImplementation(" androidx.test.ext:truth:1.6.0" )
279
-
280
- // mockk
281
- testImplementation(" io.mockk:mockk-android:${libs.versions.mockk.get()} " )
282
- testImplementation(" io.mockk:mockk-agent:${libs.versions.mockk.get()} " )
283
- androidTestImplementation(" io.mockk:mockk-android:${libs.versions.mockk.get()} " )
284
- androidTestImplementation(" io.mockk:mockk-agent:${libs.versions.mockk.get()} " )
285
-
286
- // hilt testing - https://developer.android.com/training/dependency-injection/hilt-testing
287
- androidTestImplementation(" com.google.dagger:hilt-android-testing:${libs.versions.hilt.get()} " )
288
- kaptAndroidTest(" com.google.dagger:hilt-android-compiler:${libs.versions.hilt.get()} " )
254
+ implementation(libs.material)
255
+
256
+ // Data
257
+ implementation(libs.datastore.preferences)
258
+
259
+ // Unit Test Libraries
260
+ testImplementation(libs.junit)
261
+ testImplementation(libs.coroutines.test)
262
+ testImplementation(libs.truth)
263
+ testImplementation(libs.mockk.android)
264
+ testImplementation(libs.mockk.agent)
265
+
266
+ // Instrumented Test Libraries
267
+ androidTestImplementation(libs.androidx.test.core)
268
+ androidTestImplementation(libs.androidx.test.ext.junit)
269
+ androidTestImplementation(libs.androidx.test.ext.junit.ktx)
270
+ androidTestImplementation(libs.espresso.core)
271
+ androidTestImplementation(libs.hamcrest)
272
+ androidTestImplementation(libs.androidx.test.runner)
273
+ androidTestImplementation(libs.androidx.test.rules)
274
+ androidTestImplementation(libs.androidx.test.truth)
275
+ androidTestImplementation(libs.mockk.android)
276
+ androidTestImplementation(libs.mockk.agent)
277
+
278
+ // Hilt Testing
279
+ androidTestImplementation(libs.hilt.android.testing)
280
+ kaptAndroidTest(libs.hilt.android.compiler)
289
281
290
282
// Android Serial Controller
291
- implementation(" com.github.superus8r:UsbSerial:6.1.1 " )
283
+ implementation(libs.usb.serial )
292
284
}
0 commit comments