File tree Expand file tree Collapse file tree 8 files changed +180
-139
lines changed
Sources/AmplifyUtilsNotifications Expand file tree Collapse file tree 8 files changed +180
-139
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ name : Build and Test
2
+ on :
3
+ workflow_call :
4
+ workflow_dispatch :
5
+ push :
6
+ branches :
7
+ - main
8
+ pull_request :
9
+ branches :
10
+ - main
11
+
12
+ permissions :
13
+ contents : read
14
+
15
+ concurrency :
16
+ group : ${{ github.head_ref || github.run_id }}
17
+ cancel-in-progress : true
18
+
19
+ jobs :
20
+ build-test-ios :
21
+ runs-on : macos-latest
22
+ steps :
23
+ - name : Checkout repo
24
+ uses : actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
25
+ with :
26
+ persist-credentials : false
27
+
28
+ - name : Setup Ruby
29
+ uses : ruby/setup-ruby@250fcd6a742febb1123a77a841497ccaa8b9e939 # v1.152.0
30
+ with :
31
+ ruby-version : ' 3.2.1'
32
+ bundler-cache : true
33
+
34
+ - name : Run unit tests
35
+ run : bundle exec fastlane ios tests
36
+
37
+ - name : Run integration tests
38
+ run : bundle exec fastlane ios integration_tests
39
+
40
+ build-test-macos :
41
+ runs-on : macos-latest
42
+ steps :
43
+ - name : Checkout repo
44
+ uses : actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
45
+ with :
46
+ persist-credentials : false
47
+
48
+ - name : Setup Ruby
49
+ uses : ruby/setup-ruby@250fcd6a742febb1123a77a841497ccaa8b9e939 # v1.152.0
50
+ with :
51
+ ruby-version : ' 3.2.1'
52
+ bundler-cache : true
53
+
54
+ - name : Run unit tests
55
+ run : bundle exec fastlane mac tests
56
+
57
+ build-test-tvos :
58
+ runs-on : macos-latest
59
+ steps :
60
+ - name : Checkout repo
61
+ uses : actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
62
+ with :
63
+ persist-credentials : false
64
+
65
+ - name : Setup Ruby
66
+ uses : ruby/setup-ruby@250fcd6a742febb1123a77a841497ccaa8b9e939 # v1.152.0
67
+ with :
68
+ ruby-version : ' 3.2.1'
69
+ bundler-cache : true
70
+
71
+ - name : Run unit tests
72
+ run : bundle exec fastlane tvos tests
73
+
74
+ build-test-watchos :
75
+ runs-on : macos-latest
76
+ steps :
77
+ - name : Checkout repo
78
+ uses : actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
79
+ with :
80
+ persist-credentials : false
81
+
82
+ - name : Setup Ruby
83
+ uses : ruby/setup-ruby@250fcd6a742febb1123a77a841497ccaa8b9e939 # v1.152.0
84
+ with :
85
+ ruby-version : ' 3.2.1'
86
+ bundler-cache : true
87
+
88
+ - name : Run unit tests
89
+ run : bundle exec fastlane watchos tests
Original file line number Diff line number Diff line change
1
+ name : Dependency Review
2
+
3
+ on :
4
+ pull_request :
5
+ branches :
6
+ - main
7
+
8
+ permissions :
9
+ contents : read
10
+
11
+ jobs :
12
+ dependency-review :
13
+ name : Dependency Review
14
+ runs-on : ubuntu-latest
15
+ steps :
16
+ - name : Checkout Code
17
+ uses : actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
18
+ with :
19
+ persist-credentials : false
20
+
21
+ - name : Dependency Review
22
+ uses : actions/dependency-review-action@7d90b4f05fea31dde1c4a1fb3fa787e197ea93ab # v3.0.7
23
+ with :
24
+ config-file : aws-amplify/amplify-ci-support/.github/dependency-review-config.yml@main
Original file line number Diff line number Diff line change 1
- name : Release new version
1
+ name : Kick off new release
2
2
3
3
on :
4
4
workflow_dispatch
Original file line number Diff line number Diff line change
1
+ name : Release new version
2
+ on :
3
+ push :
4
+ branches :
5
+ - release
6
+
7
+ permissions :
8
+ id-token : write
9
+ contents : write
10
+ jobs :
11
+ build-and-test :
12
+ uses : ./.github/workflows/build-and-test.yml
13
+
14
+ release :
15
+ environment : Release
16
+ needs : [build-and-test]
17
+ runs-on : macos-latest
18
+ steps :
19
+ - name : Configure AWS credentials
20
+ uses : aws-actions/configure-aws-credentials@5fd3084fc36e372ff1fff382a39b10d03659f355 # v2
21
+ with :
22
+ role-to-assume : ${{ secrets.AWS_ROLE_TO_ASSUME }}
23
+ role-session-name : ${{ format('{0}.release', github.run_id) }}
24
+ aws-region : ${{ secrets.AWS_REGION }}
25
+
26
+ - id : retrieve-token
27
+ name : Retrieve Token
28
+ env :
29
+ DEPLOY_SECRET_ARN : ${{ secrets.DEPLOY_SECRET_ARN }}
30
+ run : |
31
+ PAT=$(aws secretsmanager get-secret-value \
32
+ --secret-id "$DEPLOY_SECRET_ARN" \
33
+ | jq -r ".SecretString | fromjson | .Credential")
34
+ echo "token=$PAT" >> $GITHUB_OUTPUT
35
+
36
+ - name : Checkout repo
37
+ uses : actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
38
+ with :
39
+ fetch-depth : 10
40
+ token : ${{steps.retrieve-token.outputs.token}}
41
+
42
+ - name : Setup Ruby
43
+ uses : ruby/setup-ruby@250fcd6a742febb1123a77a841497ccaa8b9e939 # v1.152.0
44
+ with :
45
+ ruby-version : ' 3.2.1'
46
+ bundler-cache : true
47
+
48
+ - name : Fetch tags
49
+ run : git fetch --tags origin
50
+
51
+ - name : Publish new version to cocoapods trunk
52
+ env :
53
+ COCOAPODS_SECRET_ARN : ${{ secrets.COCOAPODS_SECRET_ARN }}
54
+ GITHUB_EMAIL : aws-amplify-ops@amazon.com
55
+ GITHUB_USER : aws-amplify-ops
56
+ run : bundle exec fastlane ios release
57
+
58
+ - name : Publish documentation
59
+ run : bundle exec fastlane ios publish_doc
Original file line number Diff line number Diff line change 11
11
specs:
12
12
CFPropertyList (3.0.6 )
13
13
rexml
14
- activesupport (6.1.7.3 )
14
+ activesupport (6.1.7.6 )
15
15
concurrent-ruby (~> 1.0 , >= 1.0.2 )
16
16
i18n (>= 1.6 , < 2 )
17
17
minitest (>= 5.1 )
209
209
http-cookie (1.0.5 )
210
210
domain_name (~> 0.5 )
211
211
httpclient (2.8.3 )
212
- i18n (1.12.0 )
212
+ i18n (1.14.1 )
213
213
concurrent-ruby (~> 1.0 )
214
214
jazzy (0.14.3 )
215
215
cocoapods (~> 1.5 )
229
229
mini_magick (4.12.0 )
230
230
mini_mime (1.1.2 )
231
231
mini_portile2 (2.8.1 )
232
- minitest (5.18 .0 )
232
+ minitest (5.19 .0 )
233
233
molinillo (0.8.0 )
234
234
multi_json (1.15.0 )
235
235
multipart-post (2.0.0 )
300
300
rouge (~> 2.0.7 )
301
301
xcpretty-travis-formatter (1.0.1 )
302
302
xcpretty (~> 0.2 , >= 0.0.7 )
303
- zeitwerk (2.6.7 )
303
+ zeitwerk (2.6.11 )
304
304
305
305
PLATFORMS
306
306
ruby
Original file line number Diff line number Diff line change @@ -10,12 +10,12 @@ import UserNotifications
10
10
11
11
#if canImport(WatchKit)
12
12
import WatchKit
13
- #elseif canImport(AppKit)
14
- import AppKit
15
- typealias Application = NSApplication
16
13
#elseif canImport(UIKit)
17
14
import UIKit
18
15
typealias Application = UIApplication
16
+ #elseif canImport(AppKit)
17
+ import AppKit
18
+ typealias Application = NSApplication
19
19
#endif
20
20
21
21
@available ( iOSApplicationExtension, unavailable)
Original file line number Diff line number Diff line change @@ -4,10 +4,6 @@ PODSPEC_PATH = "AmplifyUtilsNotifications.podspec"
4
4
CHANGELOG_PATH = "CHANGELOG.md"
5
5
6
6
platform :ios do
7
- before_all do
8
- setup_circle_ci
9
- end
10
-
11
7
desc "Run all the tests on iOS"
12
8
lane :tests do
13
9
run_tests (
@@ -137,10 +133,6 @@ platform :ios do
137
133
end
138
134
139
135
platform :mac do
140
- before_all do
141
- setup_circle_ci
142
- end
143
-
144
136
desc "Run all the tests on macOS"
145
137
lane :tests do
146
138
run_tests (
@@ -156,10 +148,6 @@ platform :mac do
156
148
end
157
149
158
150
platform :tvos do
159
- before_all do
160
- setup_circle_ci
161
- end
162
-
163
151
desc "Run all the tests on tvOS"
164
152
lane :tests do
165
153
run_tests (
@@ -175,10 +163,6 @@ platform :tvos do
175
163
end
176
164
177
165
platform :watchos do
178
- before_all do
179
- setup_circle_ci
180
- end
181
-
182
166
desc "Run all the tests on watchOS"
183
167
lane :tests do
184
168
run_tests (
You can’t perform that action at this time.
0 commit comments