Skip to content

Conversation

@dewantawsif
Copy link
Contributor

No description provided.

@dewantawsif dewantawsif changed the title Add an initializer parameter to pass a custom device id Add an initializer parameter to LCP to pass a custom device id Oct 24, 2025
@mickael-menu mickael-menu requested a review from Copilot October 27, 2025 13:52
Copy link

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

This PR adds support for custom device identifiers in the LCP service. The device ID can now be optionally provided during initialization, giving applications control over device identification while maintaining backward compatibility with auto-generated UUIDs.

Key Changes:

  • Added optional deviceId parameter to LCPService initializer
  • Refactored DeviceService to accept custom device IDs while preserving fallback behavior
  • Updated documentation with usage guidelines for custom device identifiers

Reviewed Changes

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

File Description
Sources/LCP/Services/DeviceService.swift Converted id from computed property to stored property with initialization logic supporting custom, saved, or generated IDs
Sources/LCP/LCPService.swift Added deviceId parameter to initializer and passed it through to DeviceService
CHANGELOG.md Documented the new feature with contribution credit and usage recommendations

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

Copy link
Member

@mickael-menu mickael-menu left a comment

Choose a reason for hiding this comment

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

Thank you, looking good 🙏

@mickael-menu mickael-menu merged commit 1e6e895 into readium:develop Oct 27, 2025
5 checks passed
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