4e00037a89
apple / swift (push) Successful in 1m4s
android / android (push) Successful in 4m33s
ci / rust (push) Successful in 5m4s
ci / web (push) Successful in 51s
ci / docs-site (push) Successful in 59s
deb / build-publish (push) Successful in 3m12s
decky / build-publish (push) Successful in 12s
docker / build-push (--build-arg FEDORA_VERSION=44, ci, ci/fedora-rpm.Dockerfile, punktfunk-fedora44-rpm) (push) Successful in 4s
release / apple (push) Successful in 8m30s
docker / build-push (., web/Dockerfile, punktfunk-web) (push) Successful in 19s
docker / build-push (ci, ci/fedora-rpm.Dockerfile, punktfunk-fedora-rpm) (push) Successful in 4s
ci / bench (push) Successful in 4m45s
docker / build-push (docs-site, docs-site/Dockerfile, punktfunk-docs) (push) Successful in 3s
docker / build-push (ci, ci/rust-ci.Dockerfile, punktfunk-rust-ci) (push) Successful in 2m48s
apple / screenshots (push) Successful in 5m43s
rpm / build-publish (bazzite, punktfunk-fedora-rpm) (push) Successful in 9m24s
docker / deploy-docs (push) Successful in 19s
rpm / build-publish (fedora-44, punktfunk-fedora44-rpm) (push) Successful in 8m46s
Stream reliability - Default to the stage-2 presenter (VTDecompressionSession + CAMetalLayer): it detects and recovers a wedged decoder, where stage-1's AVSampleBufferDisplayLayer freezes hard on a lost HEVC reference frame with no app-side recovery (confirmed Apple limitation). Stage 1 is now a DEBUG-only presenter toggle, plus the automatic no-Metal fallback. - Stage-2 pixel-perfect: render the drawable at the decoded size (shader stays 1:1 = identity) and let the layer's contentsGravity scale via the system compositor — the same path stage-1's videoGravity used — instead of scaling in-shader. - Loss recovery in both pumps is now a persistent awaitingIDR want, retried until an IDR actually lands, so a keyframe request swallowed by the throttle can't strand a frozen frame; 100 ms keyframe throttle to match the Android path. - Fix "Publishing changes from within view updates": defer the HostStore writes out of the .onChange(of: model.phase) callback. - Move AVAudioSession setActive/setCategory off the main thread (async on a shared serial queue) to stop the UI-stall warning. Controllers - Rumble: capped-exponential backoff when the gamecontrollerd.haptics XPC breaks (-4811) so a transient server interruption self-heals instead of cascading; playsHapticsOnly so a controller engine doesn't join the always-active streaming audio session. - Host cards: iPad pointer "magnet" hover effect; iPhone press scale + light haptic. UI / design - Ship Geist (SIL OFL 1.1) as the app font (bundled OTFs + registration), with the license surfaced in Acknowledgements. - Restructure iOS/iPadOS Settings into a category NavigationSplitView; resolution wheel with custom-resolution entry; 10-bit HDR toggle in Display. - Industrial host-card redesign (left-aligned, bold, brand monogram tiles). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
62 lines
3.1 KiB
Swift
62 lines
3.1 KiB
Swift
import Foundation
|
|
|
|
/// Open-source license / attribution text bundled with PunktfunkKit (see `Resources/`).
|
|
///
|
|
/// Exposed from the kit so the app shell can show an Acknowledgements screen. The text files are
|
|
/// bundled as SwiftPM resources and read via `Bundle.module`, which works both for `swift build`
|
|
/// and for the Xcode app (it links the PunktfunkKit product, so the resource bundle rides along).
|
|
public enum Licenses {
|
|
private static func resource(_ name: String) -> String {
|
|
guard let url = Bundle.module.url(forResource: name, withExtension: "txt"),
|
|
let text = try? String(contentsOf: url, encoding: .utf8)
|
|
else { return "" }
|
|
return text
|
|
}
|
|
|
|
/// punktfunk's own license — MIT OR Apache-2.0, at your option.
|
|
public static var appLicense: String {
|
|
let mit = resource("LICENSE-MIT")
|
|
let apache = resource("LICENSE-APACHE")
|
|
if mit.isEmpty && apache.isEmpty {
|
|
return "punktfunk is licensed under MIT OR Apache-2.0, at your option."
|
|
}
|
|
return "punktfunk is licensed under MIT OR Apache-2.0, at your option.\n\n"
|
|
+ "================================ MIT ================================\n\n"
|
|
+ mit
|
|
+ "\n\n============================== Apache-2.0 ==============================\n\n"
|
|
+ apache
|
|
}
|
|
|
|
/// The bundled brand typeface (Geist Sans + Geist Mono) — SIL Open Font License 1.1. The
|
|
/// license file ships alongside the OTFs in `Resources/Fonts/`, satisfying the OFL's
|
|
/// distribution requirement; this surfaces it in the Acknowledgements screen too.
|
|
public static var fontLicense: String {
|
|
guard let url = Bundle.module.url(
|
|
forResource: "Geist-OFL", withExtension: "txt", subdirectory: "Fonts"),
|
|
let text = try? String(contentsOf: url, encoding: .utf8)
|
|
else { return "" }
|
|
return text
|
|
}
|
|
|
|
/// Third-party software notices for the linked Rust crates (generated by
|
|
/// `scripts/gen-third-party-notices.sh`).
|
|
public static var thirdPartyNotices: String {
|
|
let text = resource("THIRD-PARTY-NOTICES")
|
|
return text.isEmpty ? "Third-party notices unavailable." : text
|
|
}
|
|
|
|
/// `thirdPartyNotices` pre-split into render-sized line chunks. The full notices are ~885 KB /
|
|
/// 16k lines; a single SwiftUI `Text` that large overshoots CoreText/CoreAnimation's max
|
|
/// renderable height — it lays out for ages and draws blank past the limit — so the
|
|
/// Acknowledgements screen renders these chunks in a `LazyVStack` (only on-screen chunks lay
|
|
/// out, and no chunk is tall enough to clip). Split at line boundaries and joined with "\n";
|
|
/// the inter-chunk break is the `LazyVStack` row boundary, so no text is lost. Computed once.
|
|
public static let thirdPartyNoticesChunks: [String] = {
|
|
let lines = thirdPartyNotices.split(separator: "\n", omittingEmptySubsequences: false)
|
|
let chunkSize = 200
|
|
return stride(from: 0, to: lines.count, by: chunkSize).map { start in
|
|
lines[start..<min(start + chunkSize, lines.count)].joined(separator: "\n")
|
|
}
|
|
}()
|
|
}
|