Skip to content

Support pluggable app metadata providers #35

Description

@HituziANDO

Problem

Update checking is fixed to the iTunes Search API. Enterprise, internal, regional, or self-hosted update feeds cannot reuse the framework's version policy and presentation behavior.

Scope

  • Promote AppMetadataProvider to a documented extension point.
  • Define a small metadata value containing version, release notes, and optional store URL.
  • Keep the App Store implementation as the default provider.
  • Allow applications to inject a custom asynchronous provider.
  • Preserve typed error and cancellation behavior.

Dependencies

Acceptance criteria

  • A custom provider can drive update checking without modifying framework sources.
  • The update service has no dependency on App Store response DTOs.
  • Default App Store behavior remains unchanged.
  • Provider failures are surfaced through the structured result API.

Tests

  • Add a fake provider, default-provider integration fixtures, cancellation coverage, and malformed metadata coverage.

Relevant files

  • Framework/Sources/ITunesSearchAPI.swift
  • Framework/Sources/SUK.swift
  • Framework/Sources/SwiftyUpdateKitConfig.swift
  • README.md

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions