Gradle Improvements (#2311)

This commit is contained in:
Bart Louwers
2024-04-23 15:19:54 +02:00
committed by GitHub
parent 8ad141e213
commit b4dcdb1ba9
13 changed files with 34 additions and 51 deletions

View File

@@ -45,12 +45,10 @@ tasks.withType(DokkaTask.class) {
}
android {
compileSdkVersion androidVersions.compileSdkVersion
buildToolsVersion androidSdkVersions.buildToolsVersion
defaultConfig {
minSdkVersion androidVersions.minSdkVersion
targetSdkVersion androidVersions.targetSdkVersion
compileSdk 34
minSdkVersion 21
targetSdkVersion 33
buildConfigField "String", "GIT_REVISION_SHORT", String.format("\"%s\"", getGitRevision())
buildConfigField "String", "GIT_REVISION", String.format("\"%s\"", getGitRevision(false))
buildConfigField "String", "MAPBOX_SDK_IDENTIFIER", String.format("\"%s\"", "mapbox-maps-android")

View File

@@ -59,7 +59,7 @@ class MarkerTest {
@Test
fun testIcon() {
val bitmap = Bitmap.createBitmap(1, 1, Bitmap.Config.ARGB_4444)
val bitmap = Mockito.mock(Bitmap::class.java)
val icon = IconFactory.recreate("test", bitmap)
val markerOptions = MarkerOptions().position(LatLng()).icon(icon)
val marker = markerOptions.marker