Split out Android examples to separate documentation site (#2978)

This commit is contained in:
Bart Louwers
2024-11-13 18:19:42 +01:00
committed by GitHub
parent 0bac36d8f6
commit b4b779dd29
41 changed files with 2923 additions and 1085 deletions

View File

@@ -362,6 +362,21 @@ class AttributionParseTest {
)
}
@Test
@Throws(Exception::class)
fun testOutputNoAttribution() {
val attributionParser = AttributionParser.Options(RuntimeEnvironment.application)
.withAttributionData("")
.withCopyrightSign(false)
.withImproveMap(false)
.build()
Assert.assertEquals(
"Attribution string should match",
"",
attributionParser.createAttributionString()
)
}
companion object {
private const val STREETS_ATTRIBUTION =
"<a href=\"https://www.mapbox.com/about/maps/\" target=\"_blank\">&copy; MapLibre</a> <a href=\"http://www.openstreetmap.org/about/\" target=\"_blank\">&copy; OpenStreetMap</a> \n"