11/*
2- * Copyright 2023-2024 Google LLC
2+ * Copyright 2023-2025 Google LLC
33 *
44 * Licensed under the Apache License, Version 2.0 (the "License");
55 * you may not use this file except in compliance with the License.
@@ -41,16 +41,7 @@ object Dependencies {
4141 const val fhirCoreUtilsModule = " ca.uhn.hapi.fhir:org.hl7.fhir.utilities"
4242 const val fhirCoreConvertorsModule = " ca.uhn.hapi.fhir:org.hl7.fhir.convertors"
4343
44- const val guavaCachingModule = " ca.uhn.hapi.fhir:hapi-fhir-caching-guava"
45-
46- const val structuresR4 = " $structuresR4Module :${Versions .hapiFhir} "
47-
4844 const val validation = " $validationModule :${Versions .hapiFhir} "
49- const val validationR4 = " $validationR4Module :${Versions .hapiFhir} "
50-
51- const val fhirCoreConvertors = " $fhirCoreConvertorsModule :${Versions .hapiFhirCore} "
52-
53- const val guavaCaching = " $guavaCachingModule :${Versions .hapiFhir} "
5445 }
5546
5647 object Jackson {
@@ -70,102 +61,23 @@ object Dependencies {
7061 const val jsr310Base = " $datatypeGroup :jackson-datatype-jsr310:${Versions .jackson} "
7162 }
7263
73- object Retrofit {
74- const val coreRetrofit = " com.squareup.retrofit2:retrofit:${Versions .retrofit} "
75- const val gsonConverter = " com.squareup.retrofit2:converter-gson:${Versions .retrofit} "
76- }
77-
78- object Mlkit {
79- const val barcodeScanning =
80- " com.google.mlkit:barcode-scanning:${Versions .Mlkit .barcodeScanning} "
81- const val objectDetection =
82- " com.google.mlkit:object-detection:${Versions .Mlkit .objectDetection} "
83- const val objectDetectionCustom =
84- " com.google.mlkit:object-detection-custom:${Versions .Mlkit .objectDetectionCustom} "
85- }
86-
87- const val playServicesLocation =
88- " com.google.android.gms:play-services-location:${Versions .playServicesLocation} "
89-
90- const val apacheCommonsCompress =
91- " org.apache.commons:commons-compress:${Versions .apacheCommonsCompress} "
92-
93- const val desugarJdkLibs = " com.android.tools:desugar_jdk_libs:${Versions .desugarJdkLibs} "
94- const val fhirUcum = " org.fhir:ucum:${Versions .fhirUcum} "
95-
9664 const val guavaModule = " com.google.guava:guava"
97- const val guava = " $guavaModule :${Versions .guava} "
98-
99- const val httpInterceptor = " com.squareup.okhttp3:logging-interceptor:${Versions .http} "
100- const val http = " com.squareup.okhttp3:okhttp:${Versions .http} "
101- const val mockWebServer = " com.squareup.okhttp3:mockwebserver:${Versions .http} "
102-
103- const val jsonToolsPatch = " com.github.java-json-tools:json-patch:${Versions .jsonToolsPatch} "
104- const val sqlcipher = " net.zetetic:android-database-sqlcipher:${Versions .sqlcipher} "
105- const val timber = " com.jakewharton.timber:timber:${Versions .timber} "
106- const val woodstox = " com.fasterxml.woodstox:woodstox-core:${Versions .woodstox} "
107- const val xerces = " xerces:xercesImpl:${Versions .xerces} "
108-
109- const val zxing = " com.google.zxing:core:${Versions .zxing} "
110- const val nimbus = " com.nimbusds:nimbus-jose-jwt:${Versions .nimbus} "
111-
112- const val androidBenchmarkRunner = " androidx.benchmark.junit4.AndroidBenchmarkRunner"
113- const val androidJunitRunner = " androidx.test.runner.AndroidJUnitRunner"
114-
115- // Makes Json assertions where the order of elements, tabs/whitespaces are not important.
116- const val jsonAssert = " org.skyscreamer:jsonassert:${Versions .jsonAssert} "
117- const val mockitoKotlin = " org.mockito.kotlin:mockito-kotlin:${Versions .mockitoKotlin} "
118- const val mockitoInline = " org.mockito:mockito-inline:${Versions .mockitoInline} "
119- const val robolectric = " org.robolectric:robolectric:${Versions .robolectric} "
120-
121- // Makes XML assertions where the order of elements, tabs/whitespaces are not important.
122- const val xmlUnit = " org.xmlunit:xmlunit-core:${Versions .xmlUnit} "
12365
12466 object Versions {
125- const val apacheCommonsCompress = " 1.21"
126- const val desugarJdkLibs = " 2.0.3"
127- const val caffeine = " 2.9.1"
128- const val fhirUcum = " 1.0.3"
12967 const val guava = " 32.1.3-android"
13068
13169 const val hapiFhir = " 6.8.0"
13270 const val hapiFhirCore = " 6.0.22"
13371
134- const val http = " 4.11.0"
135-
13672 // Maximum Jackson libraries (excluding core) version that supports Android API Level 24:
13773 // https://github.com/FasterXML/jackson-databind/issues/3658
13874 const val jackson = " 2.13.5"
13975
14076 // Maximum Jackson Core library version that supports Android API Level 24:
14177 const val jacksonCore = " 2.15.2"
14278
143- const val jsonToolsPatch = " 1.13"
144- const val jsonAssert = " 1.5.1"
145- const val retrofit = " 2.9.0"
146- const val gsonConverter = " 2.1.0"
147- const val sqlcipher = " 4.5.4"
148- const val timber = " 5.0.1"
149- const val woodstox = " 6.5.1"
150- const val xerces = " 2.12.2"
151- const val xmlUnit = " 2.9.1"
152-
153- const val zxing = " 3.4.1"
154- const val nimbus = " 9.31"
155-
15679 // Test dependencies
15780 const val jacoco = " 0.8.10"
158- const val mockitoKotlin = " 3.2.0"
159- const val mockitoInline = " 4.0.0"
160- const val robolectric = " 4.10.3"
161-
162- object Mlkit {
163- const val barcodeScanning = " 16.1.1"
164- const val objectDetection = " 16.2.3"
165- const val objectDetectionCustom = " 16.3.1"
166- }
167-
168- const val playServicesLocation = " 21.0.1"
16981 }
17082
17183 fun Configuration.removeIncompatibleDependencies () {
0 commit comments