Skip to content

Commit 6b094fe

Browse files
authored
chore: kickoff release
2 parents bb69fc1 + a137f8a commit 6b094fe

File tree

183 files changed

+5656
-162
lines changed

Some content is hidden

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

183 files changed

+5656
-162
lines changed
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Scheme
3+
LastUpgradeVersion = "1430"
4+
version = "1.7">
5+
<BuildAction
6+
parallelizeBuildables = "YES"
7+
buildImplicitDependencies = "YES">
8+
<BuildActionEntries>
9+
<BuildActionEntry
10+
buildForTesting = "YES"
11+
buildForRunning = "YES"
12+
buildForProfiling = "YES"
13+
buildForArchiving = "YES"
14+
buildForAnalyzing = "YES">
15+
<BuildableReference
16+
BuildableIdentifier = "primary"
17+
BlueprintIdentifier = "AWSCloudWatchLoggingPlugin"
18+
BuildableName = "AWSCloudWatchLoggingPlugin"
19+
BlueprintName = "AWSCloudWatchLoggingPlugin"
20+
ReferencedContainer = "container:">
21+
</BuildableReference>
22+
</BuildActionEntry>
23+
</BuildActionEntries>
24+
</BuildAction>
25+
<TestAction
26+
buildConfiguration = "Debug"
27+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
28+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29+
shouldUseLaunchSchemeArgsEnv = "YES"
30+
shouldAutocreateTestPlan = "YES">
31+
</TestAction>
32+
<LaunchAction
33+
buildConfiguration = "Debug"
34+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
35+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
36+
launchStyle = "0"
37+
useCustomWorkingDirectory = "NO"
38+
ignoresPersistentStateOnLaunch = "NO"
39+
debugDocumentVersioning = "YES"
40+
debugServiceExtension = "internal"
41+
allowLocationSimulation = "YES">
42+
</LaunchAction>
43+
<ProfileAction
44+
buildConfiguration = "Release"
45+
shouldUseLaunchSchemeArgsEnv = "YES"
46+
savedToolIdentifier = ""
47+
useCustomWorkingDirectory = "NO"
48+
debugDocumentVersioning = "YES">
49+
<MacroExpansion>
50+
<BuildableReference
51+
BuildableIdentifier = "primary"
52+
BlueprintIdentifier = "AWSCloudWatchLoggingPlugin"
53+
BuildableName = "AWSCloudWatchLoggingPlugin"
54+
BlueprintName = "AWSCloudWatchLoggingPlugin"
55+
ReferencedContainer = "container:">
56+
</BuildableReference>
57+
</MacroExpansion>
58+
</ProfileAction>
59+
<AnalyzeAction
60+
buildConfiguration = "Debug">
61+
</AnalyzeAction>
62+
<ArchiveAction
63+
buildConfiguration = "Release"
64+
revealArchiveInOrganizer = "YES">
65+
</ArchiveAction>
66+
</Scheme>

.swiftpm/xcode/xcshareddata/xcschemes/Amplify-Package.xcscheme

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,34 @@
398398
ReferencedContainer = "container:">
399399
</BuildableReference>
400400
</BuildActionEntry>
401+
<BuildActionEntry
402+
buildForTesting = "YES"
403+
buildForRunning = "YES"
404+
buildForProfiling = "YES"
405+
buildForArchiving = "YES"
406+
buildForAnalyzing = "YES">
407+
<BuildableReference
408+
BuildableIdentifier = "primary"
409+
BlueprintIdentifier = "Amplify_AWSCloudWatchLoggingPluginTests"
410+
BuildableName = "Amplify_AWSCloudWatchLoggingPluginTests"
411+
BlueprintName = "Amplify_AWSCloudWatchLoggingPluginTests"
412+
ReferencedContainer = "container:">
413+
</BuildableReference>
414+
</BuildActionEntry>
415+
<BuildActionEntry
416+
buildForTesting = "YES"
417+
buildForRunning = "YES"
418+
buildForProfiling = "YES"
419+
buildForArchiving = "YES"
420+
buildForAnalyzing = "YES">
421+
<BuildableReference
422+
BuildableIdentifier = "primary"
423+
BlueprintIdentifier = "AWSCloudWatchLoggingPlugin"
424+
BuildableName = "AWSCloudWatchLoggingPlugin"
425+
BlueprintName = "AWSCloudWatchLoggingPlugin"
426+
ReferencedContainer = "container:">
427+
</BuildableReference>
428+
</BuildActionEntry>
401429
</BuildActionEntries>
402430
</BuildAction>
403431
<TestAction
@@ -485,6 +513,13 @@
485513
BlueprintName = "CoreMLPredictionsPlugin"
486514
ReferencedContainer = "container:">
487515
</BuildableReference>
516+
<BuildableReference
517+
BuildableIdentifier = "primary"
518+
BlueprintIdentifier = "AWSCloudWatchLoggingPlugin"
519+
BuildableName = "AWSCloudWatchLoggingPlugin"
520+
BlueprintName = "AWSCloudWatchLoggingPlugin"
521+
ReferencedContainer = "container:">
522+
</BuildableReference>
488523
</CodeCoverageTargets>
489524
<Testables>
490525
<TestableReference
@@ -660,6 +695,16 @@
660695
</Test>
661696
</SkippedTests>
662697
</TestableReference>
698+
<TestableReference
699+
skipped = "NO">
700+
<BuildableReference
701+
BuildableIdentifier = "primary"
702+
BlueprintIdentifier = "AWSCloudWatchLoggingPluginTests"
703+
BuildableName = "AWSCloudWatchLoggingPluginTests"
704+
BlueprintName = "AWSCloudWatchLoggingPluginTests"
705+
ReferencedContainer = "container:">
706+
</BuildableReference>
707+
</TestableReference>
663708
</Testables>
664709
</TestAction>
665710
<LaunchAction

Amplify/Amplify.swift

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,4 +110,12 @@ public class Amplify {
110110
}
111111
}
112112

113-
extension Amplify: DefaultLogger { }
113+
extension Amplify: DefaultLogger {
114+
public static var log: Logger {
115+
Amplify.Logging.logger(forCategory: String(describing: self))
116+
}
117+
118+
public var log: Logger {
119+
Self.log
120+
}
121+
}

Amplify/Categories/API/APICategory.swift

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,3 +96,12 @@ final public class APICategory: Category {
9696
plugins.removeValue(forKey: key)
9797
}
9898
}
99+
100+
extension APICategory: DefaultLogger {
101+
public static var log: Logger {
102+
Amplify.Logging.logger(forCategory: CategoryType.api.displayName, forNamespace: String(describing: self))
103+
}
104+
public var log: Logger {
105+
Self.log
106+
}
107+
}

Amplify/Categories/API/Operation/RetryableGraphQLOperation.swift

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,15 @@ public protocol RetryableGraphQLOperationBehavior: Operation, DefaultLogger {
5656
func shouldRetry(error: APIError?) -> Bool
5757
}
5858

59+
extension RetryableGraphQLOperationBehavior {
60+
public static var log: Logger {
61+
Amplify.Logging.logger(forCategory: CategoryType.api.displayName, forNamespace: String(describing: self))
62+
}
63+
public var log: Logger {
64+
Self.log
65+
}
66+
}
67+
5968
// MARK: RetryableGraphQLOperationBehavior + default implementation
6069
extension RetryableGraphQLOperationBehavior {
6170
public func start(request: GraphQLRequest<Payload>) {

Amplify/Categories/Analytics/AnalyticsCategory.swift

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,3 +96,12 @@ final public class AnalyticsCategory: Category {
9696
}
9797

9898
}
99+
100+
extension AnalyticsCategory: DefaultLogger {
101+
public static var log: Logger {
102+
Amplify.Logging.logger(forCategory: CategoryType.analytics.displayName, forNamespace: String(describing: self))
103+
}
104+
public var log: Logger {
105+
Self.log
106+
}
107+
}

Amplify/Categories/Auth/AuthCategory.swift

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,3 +90,12 @@ final public class AuthCategory: Category {
9090
plugins.removeValue(forKey: key)
9191
}
9292
}
93+
94+
extension AuthCategory: DefaultLogger {
95+
public static var log: Logger {
96+
Amplify.Logging.logger(forCategory: CategoryType.auth.displayName, forNamespace: String(describing: self))
97+
}
98+
public var log: Logger {
99+
Self.log
100+
}
101+
}

Amplify/Categories/DataStore/DataStoreCategory.swift

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,3 +94,12 @@ final public class DataStoreCategory: Category {
9494
}
9595

9696
}
97+
98+
extension DataStoreCategory: DefaultLogger {
99+
public static var log: Logger {
100+
Amplify.Logging.logger(forCategory: CategoryType.dataStore.displayName, forNamespace: String(describing: self))
101+
}
102+
public var log: Logger {
103+
Self.log
104+
}
105+
}

Amplify/Categories/Geo/GeoCategory.swift

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,3 +96,12 @@ final public class GeoCategory: Category {
9696
}
9797

9898
}
99+
100+
extension GeoCategory: DefaultLogger {
101+
public static var log: Logger {
102+
Amplify.Logging.logger(forCategory: CategoryType.geo.displayName, forNamespace: String(describing: self))
103+
}
104+
public var log: Logger {
105+
Self.log
106+
}
107+
}

Amplify/Categories/Hub/HubCategory.swift

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,3 +118,12 @@ final public class HubCategory: Category {
118118
}
119119

120120
}
121+
122+
extension HubCategory: DefaultLogger {
123+
public static var log: Logger {
124+
Amplify.Logging.logger(forCategory: CategoryType.hub.displayName, forNamespace: String(describing: self))
125+
}
126+
public var log: Logger {
127+
Self.log
128+
}
129+
}

0 commit comments

Comments
 (0)