mirror of
https://github.com/block/buzz.git
synced 2026-10-28 04:51:40 +00:00
fix: hide private crypto module from BuzzPushKit consumers
Signed-off-by: Tom Brow <tomb@block.xyz>
This commit is contained in:
6
.github/workflows/_ci-clients.yml
vendored
6
.github/workflows/_ci-clients.yml
vendored
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user