Skip to content

Commit cdcda78

Browse files
authored
chore: kickoff release
2 parents c249f36 + 6982829 commit cdcda78

File tree

2,852 files changed

+59444
-43107
lines changed

Some content is hidden

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

2,852 files changed

+59444
-43107
lines changed

.github/workflows/integ_test_api.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,16 @@ jobs:
1919
secrets: inherit
2020

2121
graphql-user-pool-test:
22-
if: ${{ false }}
2322
name: GraphQL | User Pool Tests
2423
uses: ./.github/workflows/integ_test_api_graphql_user_pool.yml
2524
secrets: inherit
2625

2726
graphql-auth-directive-test:
28-
if: ${{ false }}
2927
name: GraphQL | Auth Directive Tests
3028
uses: ./.github/workflows/integ_test_api_graphql_auth_directive.yml
3129
secrets: inherit
3230

3331
graphql-iam-test:
34-
if: ${{ false }}
3532
name: GraphQL | IAM Tests
3633
uses: ./.github/workflows/integ_test_api_graphql_iam.yml
3734
secrets: inherit
@@ -48,7 +45,6 @@ jobs:
4845
secrets: inherit
4946

5047
rest-user-pool-test:
51-
if: ${{ false }}
5248
name: REST | User Pool Tests
5349
uses: ./.github/workflows/integ_test_api_rest_user_pool.yml
5450
secrets: inherit

.github/workflows/integ_test_api_graphql_auth_directive.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,10 @@ jobs:
2828
exclude:
2929
- platform: ${{ github.event.inputs.ios == 'false' && 'iOS' || 'None' }}
3030
- platform: ${{ github.event.inputs.tvos == 'false' && 'tvOS' || 'None' }}
31+
- platform: ${{ github.event.inputs.watchos == 'false' && 'watchOS' || 'None' }}
3132
uses: ./.github/workflows/run_integration_tests.yml
3233
with:
33-
scheme: AWSAPIPluginGraphQLAuthDirectiveTests
34+
scheme: ${{ matrix.platform == 'watchOS' && 'AWSAPIPluginGraphQLAuthDirectiveTestsWatch' || 'AWSAPIPluginGraphQLAuthDirectiveTests' }}
3435
platform: ${{ matrix.platform }}
3536
project_path: ./AmplifyPlugins/API/Tests/APIHostApp
3637
resource_subfolder: api

.github/workflows/integ_test_api_graphql_iam.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,10 @@ jobs:
2828
exclude:
2929
- platform: ${{ github.event.inputs.ios == 'false' && 'iOS' || 'None' }}
3030
- platform: ${{ github.event.inputs.tvos == 'false' && 'tvOS' || 'None' }}
31+
- platform: ${{ github.event.inputs.watchos == 'false' && 'watchOS' || 'None' }}
3132
uses: ./.github/workflows/run_integration_tests.yml
3233
with:
33-
scheme: AWSAPIPluginGraphQLIAMTests
34+
scheme: ${{ matrix.platform == 'watchOS' && 'AWSAPIPluginGraphQLIAMTestsWatch' || 'AWSAPIPluginGraphQLIAMTests' }}
3435
platform: ${{ matrix.platform }}
3536
project_path: ./AmplifyPlugins/API/Tests/APIHostApp
3637
resource_subfolder: api

.github/workflows/integ_test_api_rest_user_pool.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,10 @@ jobs:
2828
exclude:
2929
- platform: ${{ github.event.inputs.ios == 'false' && 'iOS' || 'None' }}
3030
- platform: ${{ github.event.inputs.tvos == 'false' && 'tvOS' || 'None' }}
31+
- platform: ${{ github.event.inputs.watchos == 'false' && 'watchOS' || 'None' }}
3132
uses: ./.github/workflows/run_integration_tests.yml
3233
with:
33-
scheme: AWSAPIPluginRESTUserPoolTests
34+
scheme: ${{ matrix.platform == 'watchOS' && 'AWSAPIPluginRESTUserPoolTestsWatch' || 'AWSAPIPluginRESTUserPoolTests' }}
3435
platform: ${{ matrix.platform }}
3536
project_path: ./AmplifyPlugins/API/Tests/APIHostApp
3637
resource_subfolder: api

.github/workflows/issue_comment.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121

2222
adjust-labels:
2323
runs-on: ubuntu-latest
24-
if: ${{ github.event.issue.state == 'open' }}
24+
if: ${{ github.event.issue.state == 'open' && !github.event.issue.pull_request }}
2525
permissions:
2626
issues: write
2727
env:
@@ -30,7 +30,7 @@ jobs:
3030
REPOSITORY_NAME: ${{ github.event.repository.full_name }}
3131
steps:
3232
- name: remove pending-community-response when new comment received
33-
if: ${{ !contains(fromJSON('["MEMBER", "OWNER"]'), github.event.comment.author_association) && !github.event.issue.pull_request }}
33+
if: ${{ !contains(fromJSON('["MEMBER", "OWNER"]'), github.event.comment.author_association) }}
3434
shell: bash
3535
run: |
3636
gh issue edit $ISSUE_NUMBER --repo $REPOSITORY_NAME --remove-label "pending-community-response"

.github/workflows/swiftformat.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: SwiftFormat
2+
on:
3+
workflow_dispatch:
4+
workflow_call:
5+
inputs:
6+
identifier:
7+
required: true
8+
type: string
9+
10+
push:
11+
branches-ignore:
12+
- main
13+
- v1
14+
- release
15+
- release-v1
16+
17+
permissions:
18+
contents: read
19+
20+
concurrency:
21+
group: ${{ inputs.identifier || github.workflow }}-${{ github.event.pull_request.number || github.ref }}
22+
cancel-in-progress: ${{ github.ref_name != 'main'}}
23+
24+
jobs:
25+
run-swiftformat:
26+
runs-on: macos-latest
27+
steps:
28+
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 #v3.5.3
29+
with:
30+
persist-credentials: false
31+
32+
- name: SwiftFormat
33+
run: |
34+
swiftformat --lint . --reporter github-actions-log --swiftversion 5.9
35+
36+
confirm-pass:
37+
runs-on: macos-latest
38+
name: Confirm Passing SwiftFormat
39+
if: ${{ !cancelled() }}
40+
needs: [ run-swiftformat ]
41+
env:
42+
EXIT_CODE: ${{ contains(needs.*.result, 'failure') && 1 || 0 }}
43+
steps:
44+
- run: exit $EXIT_CODE

.swiftformat

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,17 @@
6565
--enable void
6666
--empty void
6767

68-
--disable wrapArguments
69-
--closingparen same-line
70-
--wraparguments after-first
68+
--enable wrapArguments
69+
--closingparen balanced
70+
--wraparguments before-first
7171
--wrapcollections before-first
72+
--wrapconditions preserve
7273

7374
# standalone rules
75+
--disable preferKeyPath
76+
--disable conditionalAssignment
77+
--disable wrapMultilineConditionalAssignment
78+
--disable wrapMultilineStatementBraces
7479
--disable andOperator
7580
--disable anyObjectProtocol
7681
--disable blankLinesAroundMark
@@ -114,4 +119,4 @@
114119
--enable strongifiedSelf
115120
--disable todos
116121
--enable typeSugar
117-
--enable yodaConditions
122+
--enable yodaConditions

.swiftpm/xcode/xcshareddata/xcschemes/AWSCloudWatchLoggingPlugin.xcscheme

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,11 @@
6262
BlueprintName = "AWSCloudWatchLoggingPluginTests"
6363
ReferencedContainer = "container:">
6464
</BuildableReference>
65+
<SkippedTests>
66+
<Test
67+
Identifier = "AWSCloudWatchLoggingMonitorTests/testDelegateIsInvokedOnInterval()">
68+
</Test>
69+
</SkippedTests>
6570
</TestableReference>
6671
</Testables>
6772
</TestAction>

.swiftpm/xcode/xcshareddata/xcschemes/AWSS3StoragePlugin.xcscheme

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,14 @@
4848
BlueprintName = "AWSS3StoragePluginTests"
4949
ReferencedContainer = "container:">
5050
</BuildableReference>
51+
<SkippedTests>
52+
<Test
53+
Identifier = "DefaultStorageTransferDatabaseTests/testLoadPersistableTasks()">
54+
</Test>
55+
<Test
56+
Identifier = "DefaultStorageTransferDatabaseTests/testPrepareForBackground()">
57+
</Test>
58+
</SkippedTests>
5159
</TestableReference>
5260
</Testables>
5361
</TestAction>

Amplify/Amplify.swift

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -37,63 +37,63 @@ public class Amplify: @unchecked Sendable {
3737

3838
/// - Tag: Amplify.Analytics
3939
private static let analyticsAtomic = AtomicValue<AnalyticsCategory>(initialValue: AnalyticsCategory())
40-
public static internal(set) var Analytics: AnalyticsCategory {
40+
public internal(set) static var Analytics: AnalyticsCategory {
4141
get { analyticsAtomic.get() }
4242
set { analyticsAtomic.set(newValue) }
4343
}
4444

4545
/// - Tag: Amplify.API
4646
private static let apiAtomic = AtomicValue<APICategory>(initialValue: APICategory())
47-
public static internal(set) var API: APICategory {
47+
public internal(set) static var API: APICategory {
4848
get { apiAtomic.get() }
4949
set { apiAtomic.set(newValue) }
5050
}
5151

5252
/// - Tag: Amplify.Auth
5353
private static let authAtomic = AtomicValue<AuthCategory>(initialValue: AuthCategory())
54-
public static internal(set) var Auth: AuthCategory {
54+
public internal(set) static var Auth: AuthCategory {
5555
get { authAtomic.get() }
5656
set { authAtomic.set(newValue) }
5757
}
5858

5959
/// - Tag: Amplify.DataStore
6060
private static let dataStoreAtomic = AtomicValue<DataStoreCategory>(initialValue: DataStoreCategory())
61-
public static internal(set) var DataStore: DataStoreCategory {
61+
public internal(set) static var DataStore: DataStoreCategory {
6262
get { dataStoreAtomic.get() }
6363
set { dataStoreAtomic.set(newValue) }
6464
}
6565

6666
/// - Tag: Amplify.Geo
6767
private static let geoAtomic = AtomicValue<GeoCategory>(initialValue: GeoCategory())
68-
public static internal(set) var Geo: GeoCategory {
68+
public internal(set) static var Geo: GeoCategory {
6969
get { geoAtomic.get() }
7070
set { geoAtomic.set(newValue) }
7171
}
7272

7373
/// - Tag: Amplify.Hub
7474
private static let hubAtomic = AtomicValue<HubCategory>(initialValue: HubCategory())
75-
public static internal(set) var Hub: HubCategory {
75+
public internal(set) static var Hub: HubCategory {
7676
get { hubAtomic.get() }
7777
set { hubAtomic.set(newValue) }
7878
}
7979

8080
/// - Tag: Amplify.Notifications
8181
private static let notificationsAtomic = AtomicValue<NotificationsCategory>(initialValue: NotificationsCategory())
82-
public static internal(set) var Notifications: NotificationsCategory {
82+
public internal(set) static var Notifications: NotificationsCategory {
8383
get { notificationsAtomic.get() }
8484
set { notificationsAtomic.set(newValue) }
8585
}
8686

8787
/// - Tag: Amplify.Predictions
8888
private static let predictionsAtomic = AtomicValue<PredictionsCategory>(initialValue: PredictionsCategory())
89-
public static internal(set) var Predictions: PredictionsCategory {
89+
public internal(set) static var Predictions: PredictionsCategory {
9090
get { predictionsAtomic.get() }
9191
set { predictionsAtomic.set(newValue) }
9292
}
9393

9494
/// - Tag: Amplify.Storage
9595
private static let storageAtomic = AtomicValue<StorageCategory>(initialValue: StorageCategory())
96-
public static internal(set) var Storage: StorageCategory {
96+
public internal(set) static var Storage: StorageCategory {
9797
get { storageAtomic.get() }
9898
set { storageAtomic.set(newValue) }
9999
}
@@ -102,7 +102,7 @@ public class Amplify: @unchecked Sendable {
102102
/// methods during setup & teardown of tests
103103
///
104104
/// - Tag: Amplify.Logging
105-
public static internal(set) var Logging: LoggingCategory {
105+
public internal(set) static var Logging: LoggingCategory {
106106
get {
107107
loggingAtomic.get()
108108
}
@@ -112,13 +112,15 @@ public class Amplify: @unchecked Sendable {
112112
}
113113
private static let loggingAtomic = AtomicValue<LoggingCategory>(initialValue: LoggingCategory())
114114

115+
// swiftlint:disable cyclomatic_complexity
116+
115117
/// Adds `plugin` to the category
116118
///
117119
/// See: [Category.removePlugin(for:)](x-source-tag://Category.removePlugin)
118120
///
119121
/// - Parameter plugin: The plugin to add
120122
/// - Tag: Amplify.add_plugin
121-
public static func add<P: Plugin>(plugin: P) throws {
123+
public static func add(plugin: some Plugin) throws {
122124
log.debug("Adding plugin: \(plugin))")
123125
switch plugin {
124126
case let plugin as AnalyticsCategoryPlugin:
@@ -144,8 +146,11 @@ public class Amplify: @unchecked Sendable {
144146
default:
145147
throw PluginError.pluginConfigurationError(
146148
"Plugin category does not exist.",
147-
"Verify that the library version is correct and supports the plugin's category.")
149+
"Verify that the library version is correct and supports the plugin's category."
150+
)
148151
}
152+
153+
// swiftlint:enable cyclomatic_complexity
149154
}
150155
}
151156

0 commit comments

Comments
 (0)