Skip to content

Remove jCard support and simplify vCard writing#265

Merged
rfc2822 merged 2 commits intomainfrom
contactreader-remove-jcard
Mar 27, 2026
Merged

Remove jCard support and simplify vCard writing#265
rfc2822 merged 2 commits intomainfrom
contactreader-remove-jcard

Conversation

@rfc2822
Copy link
Copy Markdown
Member

@rfc2822 rfc2822 commented Mar 27, 2026

jCard is to be removed because it's not used and dead code that shouldn't be necessary to maintain (bitfireAT/davx5-ose#2079).

This pull request removes jCard support and simplifies the vCard writing process by:

  • Removing writeJCard and testWriteJCard methods
  • Removing jCard-related parameters and imports
  • Simplifying writeCard to writeVCard with a single implementation
  • Updating tests to use writeVCard instead of writeCard

- Remove `writeJCard` and `testWriteJCard` methods
- Remove jCard-related parameters and imports
- Simplify `writeCard` to `writeVCard` with single implementation
- Update tests to use `writeVCard` instead of `writeCard`
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Removes unused jCard support and consolidates vCard writing to a single vCard-only implementation.

Changes:

  • Removed jCard-specific reader/writer support and related custom-scribe helpers.
  • Renamed/simplified ContactWriter.writeCard(...) to writeVCard(...) (vCard-only).
  • Updated vCard writing tests to use writeVCard.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
lib/src/test/kotlin/at/bitfire/vcard4android/ContactWriterTest.kt Removes jCard test and updates tests to call writeVCard.
lib/src/main/kotlin/at/bitfire/vcard4android/property/CustomScribes.kt Removes jCard-specific registerCustomScribes extensions and imports.
lib/src/main/kotlin/at/bitfire/vcard4android/ContactWriter.kt Removes jCard writing path; keeps one vCard writer implementation via writeVCard.
lib/src/main/kotlin/at/bitfire/vcard4android/Contact.kt Removes jCard parsing/writing APIs and simplifies fromReader signature.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

- Remove unused `downloader` parameter from `Contact.fromReader` method
- Update test cases to reflect the change
@rfc2822 rfc2822 requested a review from Copilot March 27, 2026 13:05
@rfc2822 rfc2822 marked this pull request as ready for review March 27, 2026 13:05
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@rfc2822 rfc2822 merged commit 34d4db8 into main Mar 27, 2026
10 checks passed
@rfc2822 rfc2822 deleted the contactreader-remove-jcard branch March 27, 2026 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants