Skip to content

Commit 1d2b19f

Browse files
authored
Adopt InternalImportsByDefault (#248)
1 parent b9698b0 commit 1d2b19f

File tree

94 files changed

+193
-190
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

94 files changed

+193
-190
lines changed

Package.swift

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,17 @@
1919
import Foundation
2020
import PackageDescription
2121

22-
let librarySettings: [SwiftSetting] = []
22+
let featureSettings: [SwiftSetting] = [.enableUpcomingFeature("InternalImportsByDefault")]
23+
24+
let librarySettings: [SwiftSetting] = featureSettings
2325

2426
let executableSettings: [SwiftSetting] =
2527
librarySettings +
2628
[.unsafeFlags(["-cross-module-optimization"], .when(configuration: .release))]
2729

28-
let benchmarkSettings: [SwiftSetting] = [.unsafeFlags(["-cross-module-optimization"], .when(configuration: .release))]
30+
let benchmarkSettings: [SwiftSetting] = featureSettings + [.unsafeFlags(
31+
["-cross-module-optimization"],
32+
.when(configuration: .release))]
2933

3034
let enableFlags = "SWIFT_HOMOMORPHIC_ENCRYPTION_MODULAR_ARITHMETIC_EXTRA_SWIFT_FLAGS"
3135
func shouldEnableFlags() -> Bool {

Sources/ApplicationProtobuf/ConversionError.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
import Foundation
16-
import SwiftProtobuf
15+
public import Foundation
16+
public import SwiftProtobuf
1717

1818
/// Error type when converting between protobuf and native objects.
1919
public enum ConversionError: Error {

Sources/ApplicationProtobuf/PirConversion.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
import _CryptoExtras
15+
public import _CryptoExtras
1616
import Crypto
1717
import Foundation
18-
import HomomorphicEncryption
19-
import PrivateInformationRetrieval
18+
public import HomomorphicEncryption
19+
public import PrivateInformationRetrieval
2020
import SwiftProtobuf
2121

2222
extension Apple_SwiftHomomorphicEncryption_Pir_V1_EncryptedIndices {

Sources/ApplicationProtobuf/PirConversionApi.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
import HomomorphicEncryption
15+
public import HomomorphicEncryption
1616
import HomomorphicEncryptionProtobuf
17-
import PrivateInformationRetrieval
17+
public import PrivateInformationRetrieval
1818

1919
extension Apple_SwiftHomomorphicEncryption_Api_Pir_V1_PIRResponse {
2020
/// Converts the protobuf object to a native type.

Sources/ApplicationProtobuf/PnnsConversion.swift

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,8 @@
1313
// limitations under the License.
1414

1515
import Foundation
16-
17-
import HomomorphicEncryption
18-
import PrivateNearestNeighborSearch
16+
public import HomomorphicEncryption
17+
public import PrivateNearestNeighborSearch
1918

2019
extension Apple_SwiftHomomorphicEncryption_Pnns_V1_DistanceMetric {
2120
/// Converts the protobuf object to a native type.

Sources/ApplicationProtobuf/PnnsConversionApi.swift

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,9 @@
1313
// limitations under the License.
1414

1515
import Foundation
16-
17-
import HomomorphicEncryption
16+
public import HomomorphicEncryption
1817
import HomomorphicEncryptionProtobuf
19-
import PrivateNearestNeighborSearch
18+
public import PrivateNearestNeighborSearch
2019

2120
extension Apple_SwiftHomomorphicEncryption_Api_Pnns_V1_PNNSShardResponse {
2221
/// Converts the protobuf object to a native type.

Sources/ApplicationProtobuf/generated/apple_swift_homomorphic_encryption_api_pir_v1_pir.pb.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@
2222
// See the License for the specific language governing permissions and
2323
// limitations under the License.
2424

25-
import Foundation
26-
import SwiftProtobuf
25+
public import Foundation
26+
public import SwiftProtobuf
2727

28-
import HomomorphicEncryptionProtobuf
28+
public import HomomorphicEncryptionProtobuf
2929

3030
// If the compiler emits an error on this type, it is because this file
3131
// was generated by a version of the `protoc` Swift plug-in that is

Sources/ApplicationProtobuf/generated/apple_swift_homomorphic_encryption_api_pnns_v1_pnns.pb.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@
2222
// See the License for the specific language governing permissions and
2323
// limitations under the License.
2424

25-
import Foundation
26-
import SwiftProtobuf
25+
public import Foundation
26+
public import SwiftProtobuf
2727

28-
import HomomorphicEncryptionProtobuf
28+
public import HomomorphicEncryptionProtobuf
2929

3030
// If the compiler emits an error on this type, it is because this file
3131
// was generated by a version of the `protoc` Swift plug-in that is

Sources/ApplicationProtobuf/generated/apple_swift_homomorphic_encryption_api_shared_v1_api_shared.pb.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@
2222
// See the License for the specific language governing permissions and
2323
// limitations under the License.
2424

25-
import Foundation
26-
import SwiftProtobuf
25+
public import Foundation
26+
public import SwiftProtobuf
2727

28-
import HomomorphicEncryptionProtobuf
28+
public import HomomorphicEncryptionProtobuf
2929

3030
// If the compiler emits an error on this type, it is because this file
3131
// was generated by a version of the `protoc` Swift plug-in that is

Sources/ApplicationProtobuf/generated/apple_swift_homomorphic_encryption_api_v1_api.pb.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
// See the License for the specific language governing permissions and
2323
// limitations under the License.
2424

25-
import Foundation
26-
import SwiftProtobuf
25+
public import Foundation
26+
public import SwiftProtobuf
2727

2828
// If the compiler emits an error on this type, it is because this file
2929
// was generated by a version of the `protoc` Swift plug-in that is

0 commit comments

Comments
 (0)