Skip to content

Commit

Permalink
rename package name to InternalAmplifyNetwork
Browse files Browse the repository at this point in the history
  • Loading branch information
5d committed May 17, 2024
1 parent 633a8f0 commit a2cf85a
Show file tree
Hide file tree
Showing 14 changed files with 26 additions and 25 deletions.
19 changes: 10 additions & 9 deletions .swiftpm/xcode/xcshareddata/xcschemes/Amplify-Package.xcscheme
Original file line number Diff line number Diff line change
Expand Up @@ -751,6 +751,16 @@
ReferencedContainer = "container:">
</BuildableReference>
</TestableReference>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "InternalAmplifyNetworkUnitTests"
BuildableName = "InternalAmplifyNetworkUnitTests"
BlueprintName = "InternalAmplifyNetworkUnitTests"
ReferencedContainer = "container:">
</BuildableReference>
</TestableReference>
</Testables>
</TestAction>
<LaunchAction
Expand All @@ -777,15 +787,6 @@
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "Amplify"
BuildableName = "Amplify"
BlueprintName = "Amplify"
ReferencedContainer = "container:">
</BuildableReference>
</MacroExpansion>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import Foundation
import Combine
import Amplify
@_spi(WebSocket) @_spi(RetryWithJitter) import AmplifyNetwork
@_spi(WebSocket) @_spi(RetryWithJitter) import InternalAmplifyNetwork

protocol AppSyncRealTimeClientProtocol {
func connect() async throws
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import Foundation
import Combine
import Amplify
@_spi(RetryWithJitter) import AmplifyNetwork
@_spi(RetryWithJitter) import InternalAmplifyNetwork

/**
AppSyncRealTimeSubscription reprensents one realtime subscription to AppSync realtime server.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import Foundation
import Combine
@_spi(WebSocket) import AmplifyNetwork
@_spi(WebSocket) import InternalAmplifyNetwork

protocol AppSyncWebSocketClientProtocol: AnyObject {
var isConnected: Bool { get async }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import Foundation
import Amplify
@_spi(WebSocket) import AmplifyNetwork
@_spi(WebSocket) import InternalAmplifyNetwork

class APIKeyAuthInterceptor {
private let apiKey: String
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import Foundation
import Amplify
@_spi(WebSocket) import AmplifyNetwork
@_spi(WebSocket) import InternalAmplifyNetwork

/// General purpose authenticatication subscriptions interceptor for providers whose only
/// requirement is to provide an authentication token via the "Authorization" header
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import Amplify
import AWSClientRuntime
import ClientRuntime
import AWSPluginsCore
@_spi(WebSocket) import AmplifyNetwork
@_spi(WebSocket) import InternalAmplifyNetwork

class IAMAuthInterceptor {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import Foundation
import Amplify
import Combine
import AWSPluginsCore
@_spi(WebSocket) import AmplifyNetwork
@_spi(WebSocket) import InternalAmplifyNetwork


protocol AppSyncRealTimeClientFactoryProtocol {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import Combine
@testable import Amplify
@testable import AWSAPIPlugin
@testable import AWSPluginsCore
@_spi(WebSocket) import AmplifyNetwork
@_spi(WebSocket) import InternalAmplifyNetwork

class AppSyncRealTimeClientTests: XCTestCase {
let subscriptionRequest = """
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import XCTest
import Combine
import Amplify
@testable import AWSAPIPlugin
@_spi(WebSocket) import AmplifyNetwork
@_spi(WebSocket) import InternalAmplifyNetwork

class AppSyncRealTimeClientTests: XCTestCase {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import Amplify
import Combine
@testable import AWSAPIPlugin
@testable import AWSPluginsCore
@_spi(WebSocket) import AmplifyNetwork
@_spi(WebSocket) import InternalAmplifyNetwork

struct MockSubscriptionConnectionFactory: AppSyncRealTimeClientFactoryProtocol {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import XCTest
@testable import AWSPluginsCore
@testable @_spi(RetryWithJitter) import AmplifyNetwork
@testable @_spi(RetryWithJitter) import InternalAmplifyNetwork

class RetryWithJitterTests: XCTestCase {
struct TestError: Error {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import XCTest
import Combine
@testable import AWSPluginsCore
@testable @_spi(WebSocket) @_spi(NetworkReachability) import AmplifyNetwork
@testable @_spi(WebSocket) @_spi(NetworkReachability) import InternalAmplifyNetwork

fileprivate let timeout: TimeInterval = 5

Expand Down
8 changes: 4 additions & 4 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ let apiTargets: [Target] = [
dependencies: [
.target(name: "Amplify"),
.target(name: "AWSPluginsCore"),
.target(name: "AmplifyNetwork")
.target(name: "InternalAmplifyNetwork")
],
path: "AmplifyPlugins/API/Sources/AWSAPIPlugin",
exclude: [
Expand Down Expand Up @@ -318,17 +318,17 @@ let internalPinpointTargets: [Target] = [

let internalNetworkingTargets: [Target] = [
.target(
name: "AmplifyNetwork",
name: "InternalAmplifyNetwork",
dependencies: [
.target(name: "Amplify")
],
path: "AmplifyPlugins/Internal/Sources/Network"
),
.testTarget(
name: "AmplifyNetworkUnitTests",
name: "InternalAmplifyNetworkUnitTests",
dependencies: [
"AmplifyTestCommon",
"AmplifyNetwork"
"InternalAmplifyNetwork"
],
path: "AmplifyPlugins/Internal/Tests/NetworkTests"
)
Expand Down

0 comments on commit a2cf85a

Please sign in to comment.