Skip to content

Add SwiftPM support and regression coverage for 1.1.0 - #19

Merged
100mango merged 3 commits into
masterfrom
swiftpm-support
Oct 24, 2026
Merged

100mango merged 3 commits into
masterfrom
swiftpm-support

Conversation

@100mango

@100mango 100mango commented Oct 24, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Add Swift Package Manager support, preserving Swift 5 language mode, iOS 8.0/macOS 10.9 declarations, CocoaPods/Carthage integration, public API, license, and Xcode project.
  • Expand the existing XCTest suite from 2 original tests to 20 regression tests. New coverage includes protocol-specific removal, unknown removal, registration during a notification snapshot, recursive notification, synchronous caller-queue delivery, mixed live/released observers, concurrent register/notify/unregister cycles, and WeakObjectSet copy/bulk operations.
  • Add a separate consumer package check with three public-API tests, exercising product import, delivery/removal, and weak observer lifetime in Debug and Release.
  • Set release metadata and version-based SwiftPM installation instructions to 1.1.0, the first SwiftPM-enabled release. No CocoaPods registry submission is included.
  • Extend read-only macOS CI to PRs, master pushes, and published releases. Release CI resolves the exact public tag and checks its revision before running external-consumer tests. No signing, credentials, security settings, or deployment scripts are added.

Validation

  • Linux Swift 6.4.1: all 20 library tests passed in Debug and Release.
  • Separate local consumer: resolve/build passed; all 3 tests passed in Debug and Release.
  • All production library sources, Package.swift deployment declarations, license, and Xcode project remain unchanged by the release-preparation commit.
  • Final PR head 907d97a passed macOS CI run 40100980619: 20 library tests and 3 external-consumer tests in both Debug and Release with Apple Swift 6.1.2.
  • The verified merge commit 40f682f also passed all master-branch checks: https://github.com/100mango/SwiftNotificationCenter/actions/runs/40101249682.

Concurrency test design

The mixed-concurrency regression uses four callers performing 25 register/notify/unregister cycles each (100 cycles total), retaining recursive and synchronous-delivery assertions. A 100-blocking-caller prototype exhausted the Linux libdispatch worker pool. An independent program with no library code reproduced the same timeout using only an asynchronous barrier followed by a synchronous read; the bounded equivalent succeeded. Production code was not changed to mask this executor limit.

Verification limits

  • Historical minimum-OS runtime and iOS Simulator/device execution are not covered.
  • The manifest uses PackageDescription 5.0 and Swift 5 language mode; an actual Swift 5.0 compiler was not available.
  • Current Xcode toolchains may impose newer deployment floors than the historical declarations.

Merged after final-head checks passed. Version 1.1.0 is published at https://github.com/100mango/SwiftNotificationCenter/releases/tag/1.1.0 and its tag points exactly to merge commit 40f682f. Exact-version remote resolve/build and all 3 consumer tests passed in Debug and Release on Linux and macOS. Post-release verification passed: https://github.com/100mango/SwiftNotificationCenter/actions/runs/40101582318.

@100mango 100mango changed the title Add Swift Package Manager support Add SwiftPM support and regression coverage for 1.1.0 Oct 24, 2026
@100mango
100mango marked this pull request as ready for review October 24, 2026 14:09
@100mango
100mango merged commit 40f682f into master Oct 24, 2026
1 check 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.

1 participant