fix: hide private crypto module from BuzzPushKit consumers

Signed-off-by: Tom Brow <tomb@block.xyz>
This commit is contained in:
Tom Brow
2026-10-12 12:30:55 -07:00
parent 66a5971bcb
commit 693fc6bd8a
2 changed files with 8 additions and 1 deletions

View File

@@ -140,6 +140,12 @@ jobs:
run: swift build -c release --package-path mobile/ios/BuzzPushKit
- name: Test
run: swift test --package-path mobile/ios/BuzzPushKit
- name: Verify app and extension can import BuzzPushKit without private C modules
run: |
consumer=$(mktemp -d)
trap 'rm -rf "$consumer"' EXIT
printf 'import BuzzPushKit\n' > "$consumer/main.swift"
swiftc -typecheck -I "$(swift build --package-path mobile/ios/BuzzPushKit --show-bin-path)" "$consumer/main.swift"
- name: Test native pagination geometry
run: /bin/bash scripts/test-mobile-pagination.sh
- name: Trust pinned Swift source-copy plugin

View File

@@ -1,6 +1,7 @@
import CryptoKit
import Foundation
import P256K
// Keep the private crypto implementation out of app/extension module imports.
@_implementationOnly import P256K
public enum NostrHTTPAuthError: Error, Equatable {
case invalidHex