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
46 changes: 46 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: CI

on:
pull_request:
push:
branches: [master]

concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
docc:
name: DocC catalog
runs-on: macos-15
timeout-minutes: 30
steps:
- uses: actions/checkout@v4

- name: Select Xcode
run: |
if [ ! -d /Applications/Xcode_16.4.app ]; then
echo "Xcode 16.4 not found. Installed Xcode versions:"
ls /Applications | grep Xcode || true
exit 1
fi
sudo xcode-select -s /Applications/Xcode_16.4.app/Contents/Developer

- name: Verify Swift version
run: swift --version

- name: Build DocC catalog
run: |
swift package --allow-writing-to-directory ./docc-output \
generate-documentation --target ReliaBLE --warnings-as-errors \
--output-path ./docc-output

- name: Archive DocC output
run: ditto -c -k --sequesterRsrc --keepParent docc-output ReliaBLE-docs.zip

- name: Upload DocC archive
uses: actions/upload-artifact@v4
with:
name: ReliaBLE-docs
path: ReliaBLE-docs.zip
if-no-files-found: error
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ Packages/
.swiftpm

.build/
docc-output/
DerivedData/

# CocoaPods
Expand Down
8 changes: 4 additions & 4 deletions Sources/ReliaBLE/Models/Peripheral.swift
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ public class Peripheral: Identifiable, Hashable {
/// The timestamp when the peripheral was last seen
public internal(set) var lastSeen: Date?

/// Create a peripheral with a unique identifier and optional CoreBluetooth peripheral data. The integrating app
/// should use this initializer to create a `Peripheral` instance when it has a unique identifier for a peripheral
/// but has not yet discovered the peripheral with CoreBluetooth. The ``PeripheralManager`` will update the instance
/// with CoreBluetooth data when the peripheral is discovered.
/// Creates a peripheral with a unique identifier and optional CoreBluetooth discovery data.
///
/// Prefer observing ``ReliaBLEManager/discoveredPeripherals`` for devices discovered during scanning.
/// ReliaBLE updates only the ``Peripheral`` instances it manages internally and emits through that publisher.
/// - Parameters:
/// - id: Unique identifier for the peripheral as set by the integrating app.
/// - peripheral: Reference to the CoreBluetooth `CBPeripheral` object
Expand Down
Loading