Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[versions]
agp = "9.0.0"
agp = "9.0.1"
android-desugar = "2.1.5"
androidx-annotation = "1.9.1"
androidx-core = "1.17.0"
androidx-test-rules = "1.7.0"
androidx-test-runner = "1.7.0"
dokka = "2.1.0"
ezvcard = "0.12.1"
ezvcard = "0.12.2"
guava = "33.5.0-android"
# noinspection NewerVersionAvailable
ical4j = "3.2.19" # final version; update to 4.x will require much work
Expand Down
6 changes: 1 addition & 5 deletions lib/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,7 @@ dependencies {
// ical4j/ez-vcard
api(libs.ical4j)
implementation(libs.slf4j.jdk) // ical4j uses slf4j, this module uses java.util.Logger
api(libs.ezvcard) { // requires Java 8
// hCard functionality not needed
exclude(group = "org.jsoup")
exclude(group = "org.freemarker")
}
api(libs.ezvcard)

// synctools.test package also provide test rules
implementation(libs.androidx.test.rules)
Expand Down
6 changes: 2 additions & 4 deletions lib/src/test/kotlin/at/bitfire/vcard4android/EzVCardTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import ezvcard.property.Address
import org.junit.Assert.assertArrayEquals
import org.junit.Assert.assertEquals
import org.junit.Assert.assertNotNull
import org.junit.Assert.assertNull
import org.junit.Assert.assertTrue
import org.junit.Test

Expand Down Expand Up @@ -46,9 +45,8 @@ class EzVCardTest {
"PHOTO;VALUE=uri:data:image/png;base64,dGVzdA==\r\n" +
"END:VCARD").first()
val photo = vCard.photos.first()
// Somehow unexpected: returns a data URI and doesn't decode it
assertEquals("data:image/png;base64,dGVzdA==", photo.url)
assertNull(photo.data)
// decodes binary data
assertArrayEquals("test".toByteArray(), vCard.photos.first().data)
}

@Test
Expand Down