Skip to content

Commit

Permalink
updating imports to be explicitly public for swift6 modes in Xcode 16
Browse files Browse the repository at this point in the history
  • Loading branch information
heckj committed Jul 23, 2024
1 parent 875bdb0 commit bdf1af4
Show file tree
Hide file tree
Showing 17 changed files with 23 additions and 23 deletions.
2 changes: 1 addition & 1 deletion Sources/AutomergeRepo/DocHandle.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import class Automerge.Document
public import class Automerge.Document

/// A type that represents an Automerge Document with its identifier.
public struct DocHandle: Sendable {
Expand Down
4 changes: 2 additions & 2 deletions Sources/AutomergeRepo/DocumentId.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Base58Swift
import struct Foundation.Data
import struct Foundation.UUID
public import struct Foundation.Data
public import struct Foundation.UUID

/// A unique identifier for an Automerge document.
public struct DocumentId: Sendable, Hashable, Comparable, Identifiable {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Network
public import Network

/// A type that represents a peer available on the Peer to Peer (Bonjour) network.
public struct AvailablePeer: Identifiable, Sendable {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Foundation
public import Foundation

/// A type that represents a snapshot of the current state of a peer-to-peer network connection.
public struct PeerConnectionInfo: Sendable, Identifiable, CustomStringConvertible {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import AsyncAlgorithms
import Combine
@preconcurrency public import Combine
import Foundation
import Network
public import Network
import OSLog

/// An Automerge-repo network provider that connects to other instances over a peer to peer network.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Automerge
public import Automerge
import Foundation
#if os(iOS) || os(visionOS)
import UIKit // for UIDevice.name access
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import Automerge
@preconcurrency import Combine
public import Combine
public import Foundation
import Network
import OSLog

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Automerge
public import Automerge

/// The configuration options for a WebSocket network provider.
public struct WebSocketProviderConfiguration: Sendable {
Expand Down
6 changes: 3 additions & 3 deletions Sources/AutomergeRepo/Repo.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Automerge
public import Automerge
import AutomergeUtilities
import Combine
import Foundation
@preconcurrency import Combine
public import Foundation
import OSLog

/// A repository for Automerge documents that coordinates storage and synchronization.
Expand Down
3 changes: 1 addition & 2 deletions Sources/AutomergeRepo/RepoTypes.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import struct Foundation.Data
import struct Foundation.UUID
public import struct Foundation.Data

/// A type that represents a peer.
///
Expand Down
2 changes: 1 addition & 1 deletion Sources/AutomergeRepo/Storage/StorageProvider.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import struct Foundation.Data
public import struct Foundation.Data

// loose adaptation from automerge-repo storage interface
// https://github.com/automerge/automerge-repo/blob/main/packages/automerge-repo/src/storage/StorageAdapter.ts
Expand Down
2 changes: 1 addition & 1 deletion Sources/AutomergeRepo/Sync/CBORCoder.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Foundation
import PotentCBOR
public import PotentCBOR

/// A type that provides concurrency-safe access to a CBOR encoder and decoder.
public actor CBORCoder {
Expand Down
2 changes: 1 addition & 1 deletion Sources/AutomergeRepo/Sync/SyncV1Msg+encode+decode.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Foundation // Data
public import Foundation // Data
import OSLog
import PotentCBOR

Expand Down
2 changes: 1 addition & 1 deletion Sources/AutomergeRepo/Sync/SyncV1Msg+messages.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Foundation
public import Foundation

public extension SyncV1Msg {
// - join -
Expand Down
2 changes: 1 addition & 1 deletion Sources/AutomergeRepo/Sync/SyncV1Msg.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// Created by Joseph Heck on 1/24/24.
//

import Foundation
public import Foundation
import PotentCBOR

// Automerge Repo WebSocket sync details:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import struct Foundation.Data
public import struct Foundation.Data

public extension Data {
/// Returns the data as a hex-encoded string.
Expand Down
4 changes: 2 additions & 2 deletions Sources/AutomergeRepo/extensions/UUID+bs58String.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Base58Swift
import struct Foundation.Data
import struct Foundation.UUID
public import struct Foundation.Data
public import struct Foundation.UUID

public extension UUID {
/// The contents of the UUID as data.
Expand Down

0 comments on commit bdf1af4

Please # to comment.