Skip to content

Commit ef68710

Browse files
authored
chore: kickoff v1 release
2 parents 0b47251 + a6898a4 commit ef68710

File tree

264 files changed

+1157
-426
lines changed

Some content is hidden

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

264 files changed

+1157
-426
lines changed

.circleci/config.yml

Lines changed: 58 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
version: 2.1
44

55
orbs:
6+
aws-cli: circleci/[email protected]
67
# Using inline orb for now
78
getting-started-smoke-test:
89
orbs:
@@ -325,6 +326,46 @@ jobs:
325326
command: bundle exec fastlane << parameters.lane >>
326327
no_output_timeout: 60m
327328

329+
fortify_scan:
330+
<<: *defaults
331+
steps:
332+
- *restore_repo
333+
- run:
334+
name: Make source directory
335+
command: |
336+
mkdir source
337+
cp -r Amplify source
338+
cp -r AmplifyPlugins source
339+
- aws-cli/setup:
340+
role-arn: 'arn:aws:iam::971028514469:role/CircleCiOIDC'
341+
role-session-name: 'aws-s3-session'
342+
- run:
343+
name: Download License
344+
command: |
345+
aws s3 cp s3://amplify-swift-fortify-prod/fortify.license fortify.license
346+
- run:
347+
name: Download Installer
348+
command: |
349+
aws s3 cp s3://amplify-swift-fortify-prod/Fortify_SCA_and_Apps_22.1.1_Mac.tar.gz Fortify_SCA_and_Apps_22.1.1_Mac.tar.gz
350+
tar -xvf Fortify_SCA_and_Apps_22.1.1_Mac.tar.gz
351+
unzip Fortify_SCA_and_Apps_22.1.1_osx_x64.app.zip
352+
- run:
353+
name: Download Scripts
354+
command: |
355+
aws s3 cp s3://amplify-swift-fortify-prod/amplify_swift_fortify_scan.sh fortify_scan.sh
356+
- run:
357+
name: Run Installer
358+
command: |
359+
Fortify_SCA_and_Apps_22.1.1_osx_x64.app/Contents/MacOS/installbuilder.sh --mode unattended --installdir Fortify --InstallSamples 0 --fortify_license_path fortify.license --MigrateSCA 0
360+
export PATH=~/amplify-swift/Fortify/bin:$PATH
361+
echo "export PATH=~/amplify-swift/Fortify/bin:\$PATH" >> "$BASH_ENV"
362+
fortifyupdate -acceptKey
363+
sourceanalyzer -version
364+
- run:
365+
name: Run Scan
366+
command: |
367+
sh ./fortify_scan.sh source
368+
328369
deploy_requires: &deploy_requires
329370
requires:
330371
- build_test_amplify
@@ -338,6 +379,7 @@ deploy_requires: &deploy_requires
338379
- unit_test_geo
339380
- unit_test_predictions
340381
- unit_test_storage
382+
- fortify_scan
341383

342384
workflows:
343385
build_test_deploy:
@@ -349,71 +391,76 @@ workflows:
349391
- install_gems:
350392
requires:
351393
- checkout_code
352-
- build_test_amplify:
394+
- fortify_scan:
395+
context:
396+
- amplify-swift-aws-s3-download
353397
requires:
354398
- install_gems
399+
- build_test_amplify:
400+
requires:
401+
- fortify_scan
355402
- build_test_aws_plugins_core:
356403
requires:
357-
- install_gems
404+
- fortify_scan
358405
- build_amplify_spm:
359406
requires:
360-
- install_gems
407+
- fortify_scan
361408
- plugin_unit_test:
362409
name: unit_test_analytics
363410
path: Analytics
364411
workspace: AnalyticsCategoryPlugin
365412
scheme: AWSPinpointAnalyticsPlugin
366413
requires:
367-
- install_gems
414+
- fortify_scan
368415
- plugin_unit_test:
369416
name: unit_test_api
370417
path: API
371418
workspace: APICategoryPlugin
372419
scheme: AWSAPICategoryPlugin
373420
requires:
374-
- install_gems
421+
- fortify_scan
375422
- plugin_unit_test:
376423
name: unit_test_auth
377424
path: Auth
378425
workspace: AWSCognitoAuthPlugin
379426
scheme: AWSCognitoAuthPlugin
380427
requires:
381-
- install_gems
428+
- fortify_scan
382429
- plugin_unit_test:
383430
name: unit_test_datastore
384431
path: DataStore
385432
workspace: DataStoreCategoryPlugin
386433
scheme: AWSDataStoreCategoryPlugin
387434
requires:
388-
- install_gems
435+
- fortify_scan
389436
- plugin_unit_test:
390437
name: unit_test_geo
391438
path: Geo
392439
workspace: GeoCategoryPlugin
393440
scheme: AWSLocationGeoPlugin
394441
requires:
395-
- install_gems
442+
- fortify_scan
396443
- plugin_unit_test:
397444
name: unit_test_core_ml
398445
path: Predictions
399446
workspace: PredictionsCategoryPlugin
400447
scheme: CoreMLPredictionsPlugin
401448
requires:
402-
- install_gems
449+
- fortify_scan
403450
- plugin_unit_test:
404451
name: unit_test_predictions
405452
path: Predictions
406453
workspace: PredictionsCategoryPlugin
407454
scheme: AWSPredictionsPlugin
408455
requires:
409-
- install_gems
456+
- fortify_scan
410457
- plugin_unit_test:
411458
name: unit_test_storage
412459
path: Storage
413460
workspace: StoragePlugin
414461
scheme: AWSS3StoragePlugin
415462
requires:
416-
- install_gems
463+
- fortify_scan
417464
- deploy:
418465
name: deploy unstable
419466
<<: *deploy_requires

.github/CODEOWNERS

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1 @@
11
* @aws-amplify/amplify-ios
2-
3-
# This covers
4-
# - Amplify/Categories/DataStore/**
5-
# - Amplify/Categories/API/**
6-
# - AmplifyPlugins/DataStore/**
7-
# - AmplifyPlugins/API/**
8-
# - AmplifyPlugins/Core/AWSPuginsCore/**
9-
# - AmplifyTests/CategoryTests/DataStore/**
10-
# - AmplifyTestCommon/Models
11-
**/DataStore/** @aws-amplify/amplify-data @aws-amplify/amplify-ios
12-
**/API/** @aws-amplify/amplify-data @aws-amplify/amplify-ios
13-
**/Core/** @aws-amplify/amplify-data @aws-amplify/amplify-ios
14-
/AmplifyTestCommon/Models/** @aws-amplify/amplify-data @aws-amplify/amplify-ios
15-
/.circleci @aws-amplify/amplify-data @aws-amplify/amplify-ios
16-
/.github @aws-amplify/amplify-data @aws-amplify/amplify-ios

AWSPluginsCore.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
# Version definitions
1010
$AMPLIFY_VERSION = '1.29.0'
11-
$AMPLIFY_RELEASE_TAG = "v#{$AMPLIFY_VERSION}"
11+
$AMPLIFY_RELEASE_TAG = "#{$AMPLIFY_VERSION}"
1212

1313
$AWS_SDK_VERSION = '2.30.1'
1414
$OPTIMISTIC_AWS_SDK_VERSION = "~> #{$AWS_SDK_VERSION}"

AWSPredictionsPlugin.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Version definitions
22
$AMPLIFY_VERSION = '1.29.0'
3-
$AMPLIFY_RELEASE_TAG = "v#{$AMPLIFY_VERSION}"
3+
$AMPLIFY_RELEASE_TAG = "#{$AMPLIFY_VERSION}"
44

55
$AWS_SDK_VERSION = '2.30.1'
66
$OPTIMISTIC_AWS_SDK_VERSION = "~> #{$AWS_SDK_VERSION}"

Amplify.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
# Version definitions
1010
$AMPLIFY_VERSION = '1.29.0'
11-
$AMPLIFY_RELEASE_TAG = "v#{$AMPLIFY_VERSION}"
11+
$AMPLIFY_RELEASE_TAG = "#{$AMPLIFY_VERSION}"
1212

1313
Pod::Spec.new do |s|
1414
s.name = 'Amplify'

Amplify/Categories/API/Interceptor/URLRequestInterceptor.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import Foundation
1919
/// plugin.
2020
public protocol URLRequestInterceptor {
2121

22+
// swiftlint:disable:next todo
2223
// TODO: turn async https://github.com/aws-amplify/amplify-ios/issues/73
2324
/// Inspect and optionally modify the request, returning either the original
2425
/// unmodified request or a modified copy.

Amplify/Categories/API/Operation/GraphQLOperation.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ open class GraphQLOperation<R: Decodable>: AmplifyOperation<
1212
APIError
1313
> { }
1414

15-
1615
/// GraphQL Subscription Operation
1716
open class GraphQLSubscriptionOperation<R: Decodable>: AmplifyInProcessReportingOperation<
1817
GraphQLOperationRequest<R>,

Amplify/Categories/API/Request/GraphQLOperationRequest.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public struct GraphQLOperationRequest<R: Decodable>: AmplifyOperationRequest {
4646
}
4747
}
4848

49-
// MARK: GraphQLOperationRequest + Options
49+
// MARK: GraphQLOperationRequest + Options
5050
public extension GraphQLOperationRequest {
5151
struct Options {
5252
public let pluginOptions: Any?

Amplify/Categories/API/Request/GraphQLRequest.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ public struct GraphQLRequest<R: Decodable> {
4444
}
4545
}
4646

47-
4847
// MARK: GraphQLRequest + Options
4948

5049
public extension GraphQLRequest {

Amplify/Categories/Auth/Request/AuthChangePasswordRequest.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ public extension AuthChangePasswordRequest {
3232

3333
struct Options {
3434

35+
// swiftlint:disable:next todo
3536
// TODO: Move this metadata to plugin options. All other request has the metadata
3637
// inside the plugin options.
3738

0 commit comments

Comments
 (0)