Skip to content

Commit adfd04c

Browse files
committed
Merge remote-tracking branch 'many-podspecs/main' into syspacfiles
2 parents c3769f5 + 57f25de commit adfd04c

10 files changed

Lines changed: 578 additions & 0 deletions

File tree

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
date: 2022-04-14
2+
vcs_tool: git
3+
vcs_repository: https://github.com/aws-amplify/amplify-ios
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
#
2+
# Be sure to run `pod spec lint Amplify.podspec' to ensure this is a
3+
# valid spec and to remove all comments including this before submitting the spec.
4+
#
5+
# To learn more about Podspec attributes see https://guides.cocoapods.org/syntax/podspec.html
6+
# To see working Podspecs in the CocoaPods repo see https://github.com/CocoaPods/Specs/
7+
#
8+
9+
# Version definitions
10+
$AMPLIFY_VERSION = '1.23.0'
11+
$AMPLIFY_RELEASE_TAG = "v#{$AMPLIFY_VERSION}"
12+
13+
$AWS_SDK_VERSION = '2.27.0'
14+
$OPTIMISTIC_AWS_SDK_VERSION = "~> #{$AWS_SDK_VERSION}"
15+
16+
Pod::Spec.new do |s|
17+
s.name = 'AWSPluginsCore'
18+
19+
s.version = $AMPLIFY_VERSION
20+
s.summary = 'Amazon Web Services Amplify for iOS.'
21+
22+
s.description = 'AWS Amplify for iOS provides a declarative library for application development using cloud services'
23+
24+
s.homepage = 'https://github.com/aws-amplify/amplify-ios'
25+
s.license = 'Apache License, Version 2.0'
26+
s.author = { 'Amazon Web Services' => 'amazonwebservices' }
27+
s.source = { :git => 'https://github.com/aws-amplify/amplify-ios.git', :tag => $AMPLIFY_RELEASE_TAG }
28+
29+
s.platform = :ios, '11.0'
30+
s.swift_version = '5.0'
31+
32+
s.source_files = 'AmplifyPlugins/Core/AWSPluginsCore/**/*.swift'
33+
34+
s.dependency 'Amplify', $AMPLIFY_VERSION
35+
s.dependency 'AWSCore', $OPTIMISTIC_AWS_SDK_VERSION
36+
37+
end
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Version definitions
2+
$AMPLIFY_VERSION = '1.23.0'
3+
$AMPLIFY_RELEASE_TAG = "v#{$AMPLIFY_VERSION}"
4+
5+
$AWS_SDK_VERSION = '2.27.0'
6+
$OPTIMISTIC_AWS_SDK_VERSION = "~> #{$AWS_SDK_VERSION}"
7+
8+
Pod::Spec.new do |s|
9+
s.name = 'AWSPredictionsPlugin'
10+
11+
s.version = $AMPLIFY_VERSION
12+
s.summary = 'Amazon Web Services Amplify for iOS.'
13+
14+
s.description = 'AWS Amplify for iOS provides a declarative library for application development using cloud services'
15+
16+
s.homepage = 'https://github.com/aws-amplify/amplify-ios'
17+
s.license = 'Apache License, Version 2.0'
18+
s.author = { 'Amazon Web Services' => 'amazonwebservices' }
19+
s.source = { :git => 'https://github.com/aws-amplify/amplify-ios.git', :tag => $AMPLIFY_RELEASE_TAG }
20+
21+
s.platform = :ios, '13.0'
22+
s.swift_version = '5.0'
23+
24+
s.source_files = 'AmplifyPlugins/Predictions/AWSPredictionsPlugin/**/*.swift'
25+
26+
s.dependency 'AWSComprehend', $OPTIMISTIC_AWS_SDK_VERSION
27+
s.dependency 'AWSPluginsCore', $AMPLIFY_VERSION
28+
s.dependency 'AWSPolly', $OPTIMISTIC_AWS_SDK_VERSION
29+
s.dependency 'AWSRekognition', $OPTIMISTIC_AWS_SDK_VERSION
30+
s.dependency 'AWSTextract', $OPTIMISTIC_AWS_SDK_VERSION
31+
s.dependency 'AWSTranscribeStreaming', $OPTIMISTIC_AWS_SDK_VERSION
32+
s.dependency 'AWSTranslate', $OPTIMISTIC_AWS_SDK_VERSION
33+
s.dependency 'CoreMLPredictionsPlugin', $AMPLIFY_VERSION
34+
35+
# This is technically redundant, but adding it here allows Xcode to find it
36+
# during initial indexing and prevent build errors after a fresh install
37+
s.dependency 'AWSCore', $OPTIMISTIC_AWS_SDK_VERSION
38+
39+
end
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
#
2+
# Be sure to run `pod spec lint Amplify.podspec' to ensure this is a
3+
# valid spec and to remove all comments including this before submitting the spec.
4+
#
5+
# To learn more about Podspec attributes see https://guides.cocoapods.org/syntax/podspec.html
6+
# To see working Podspecs in the CocoaPods repo see https://github.com/CocoaPods/Specs/
7+
#
8+
9+
# Version definitions
10+
$AMPLIFY_VERSION = '1.23.0'
11+
$AMPLIFY_RELEASE_TAG = "v#{$AMPLIFY_VERSION}"
12+
13+
Pod::Spec.new do |s|
14+
s.name = 'Amplify'
15+
s.version = $AMPLIFY_VERSION
16+
s.summary = 'Amazon Web Services Amplify for iOS.'
17+
18+
s.description = 'AWS Amplify for iOS provides a declarative library for application development using cloud services'
19+
20+
s.homepage = 'https://github.com/aws-amplify/amplify-ios'
21+
s.license = 'Apache License, Version 2.0'
22+
s.author = { 'Amazon Web Services' => 'amazonwebservices' }
23+
s.source = { :git => 'https://github.com/aws-amplify/amplify-ios.git', :tag => $AMPLIFY_RELEASE_TAG }
24+
25+
s.platform = :ios, '11.0'
26+
s.swift_version = '5.0'
27+
28+
s.source_files = 'Amplify/**/*.swift'
29+
s.default_subspec = 'Default'
30+
31+
# There appears to be a bug in Xcode < 12 where SwiftUI isn't properly
32+
# weak-linked even though system frameworks should be weak-linked by default.
33+
# Explicitly weak link it here until we upgrade Amplify's platform support
34+
# version to >= 13.0. https://github.com/aws-amplify/amplify-ios/issues/878
35+
s.weak_frameworks = 'SwiftUI'
36+
37+
s.subspec 'Default' do |default|
38+
default.preserve_path = 'AmplifyTools'
39+
default.script_phase = {
40+
:name => 'Default',
41+
:script => 'echo "no-op"',
42+
:execution_position => :before_compile
43+
}
44+
end
45+
46+
s.subspec 'Tools' do |ss|
47+
ss.preserve_path = 'AmplifyTools'
48+
ss.script_phase = {
49+
:name => 'AmplifyTools',
50+
:script => 'mkdir -p "${PODS_ROOT}/AmplifyTools"; cp -vf "${PODS_TARGET_SRCROOT}/AmplifyTools/amplify-tools.sh" "${PODS_ROOT}/AmplifyTools/."',
51+
:execution_position => :before_compile
52+
}
53+
end
54+
55+
end
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
#
2+
# Be sure to run `pod spec lint AWSS3StoragePlugin.podspec' to ensure this is a
3+
# valid spec and to remove all comments including this before submitting the spec.
4+
#
5+
# To learn more about Podspec attributes see https://guides.cocoapods.org/syntax/podspec.html
6+
# To see working Podspecs in the CocoaPods repo see https://github.com/CocoaPods/Specs/
7+
#
8+
9+
# Version definitions
10+
$AMPLIFY_VERSION = '1.23.0'
11+
$AMPLIFY_RELEASE_TAG = "v#{$AMPLIFY_VERSION}"
12+
13+
$AWS_SDK_VERSION = '2.27.0'
14+
$OPTIMISTIC_AWS_SDK_VERSION = "~> #{$AWS_SDK_VERSION}"
15+
16+
Pod::Spec.new do |s|
17+
s.name = 'AmplifyPlugins'
18+
s.version = $AMPLIFY_VERSION
19+
s.summary = 'Amazon Web Services Amplify for iOS.'
20+
21+
s.description = 'AWS Amplify for iOS provides a declarative library for application development using cloud services'
22+
23+
s.homepage = 'https://github.com/aws-amplify/amplify-ios'
24+
s.license = 'Apache License, Version 2.0'
25+
s.author = { 'Amazon Web Services' => 'amazonwebservices' }
26+
s.source = { :git => 'https://github.com/aws-amplify/amplify-ios.git', :tag => $AMPLIFY_RELEASE_TAG }
27+
28+
s.platform = :ios, '11.0'
29+
s.swift_version = '5.0'
30+
31+
s.dependency 'AWSPluginsCore', $AMPLIFY_VERSION
32+
33+
# This is technically redundant, but adding it here allows Xcode to find it
34+
# during initial indexing and prevent build errors after a fresh install
35+
s.dependency 'AWSCore', $OPTIMISTIC_AWS_SDK_VERSION
36+
37+
s.subspec 'AWSAPIPlugin' do |ss|
38+
ss.source_files = 'AmplifyPlugins/API/AWSAPICategoryPlugin/**/*.swift'
39+
ss.dependency 'AppSyncRealTimeClient', "~> 1.8"
40+
end
41+
42+
s.subspec 'AWSCognitoAuthPlugin' do |ss|
43+
ss.source_files = 'AmplifyPlugins/Auth/AWSCognitoAuthPlugin/**/*.swift'
44+
ss.dependency 'AWSMobileClient', $OPTIMISTIC_AWS_SDK_VERSION
45+
46+
# This is technically redundant, but adding it here allows Xcode to find it
47+
# during initial indexing and prevent build errors after a fresh install
48+
ss.dependency 'AWSAuthCore', $OPTIMISTIC_AWS_SDK_VERSION
49+
ss.dependency 'AWSCognitoIdentityProvider', $OPTIMISTIC_AWS_SDK_VERSION
50+
ss.dependency 'AWSCognitoIdentityProviderASF', $OPTIMISTIC_AWS_SDK_VERSION
51+
end
52+
53+
s.subspec 'AWSDataStorePlugin' do |ss|
54+
ss.source_files = 'AmplifyPlugins/DataStore/AWSDataStoreCategoryPlugin/**/*.swift'
55+
ss.dependency 'SQLite.swift', '0.13.2'
56+
end
57+
58+
s.subspec 'AWSLocationGeoPlugin' do |ss|
59+
ss.source_files = 'AmplifyPlugins/Geo/AWSLocationGeoPlugin/**/*.swift'
60+
ss.dependency 'AWSLocation', $OPTIMISTIC_AWS_SDK_VERSION
61+
end
62+
63+
s.subspec 'AWSPinpointAnalyticsPlugin' do |ss|
64+
ss.source_files = 'AmplifyPlugins/Analytics/AWSPinpointAnalyticsPlugin/**/*.swift'
65+
ss.dependency 'AWSPinpoint', $OPTIMISTIC_AWS_SDK_VERSION
66+
end
67+
68+
s.subspec 'AWSS3StoragePlugin' do |ss|
69+
ss.source_files = 'AmplifyPlugins/Storage/AWSS3StoragePlugin/**/*.swift'
70+
ss.dependency 'AWSS3', $OPTIMISTIC_AWS_SDK_VERSION
71+
end
72+
73+
end
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
#
2+
# Be sure to run `pod spec lint AmplifyTestCommon.podspec' to ensure this is a
3+
# valid spec and to remove all comments including this before submitting the spec.
4+
#
5+
# To learn more about Podspec attributes see https://guides.cocoapods.org/syntax/podspec.html
6+
# To see working Podspecs in the CocoaPods repo see https://github.com/CocoaPods/Specs/
7+
#
8+
9+
# Version definitions
10+
$AMPLIFY_VERSION = '1.23.0'
11+
$AMPLIFY_RELEASE_TAG = "v#{$AMPLIFY_VERSION}"
12+
13+
$AWS_SDK_VERSION = '2.27.0'
14+
$OPTIMISTIC_AWS_SDK_VERSION = "~> #{$AWS_SDK_VERSION}"
15+
16+
Pod::Spec.new do |s|
17+
s.name = "AmplifyTestCommon"
18+
s.version = $AMPLIFY_VERSION
19+
s.summary = "Test resources used by different targets"
20+
21+
s.description = "Provides different test resources and mock methods"
22+
23+
s.homepage = "hhttps://github.com/aws-amplify/amplify-ios"
24+
s.license = 'Apache License, Version 2.0'
25+
s.author = { 'Amazon Web Services' => 'amazonwebservices' }
26+
s.source = { :git => 'https://github.com/aws-amplify/amplify-ios.git', :tag => $AMPLIFY_RELEASE_TAG }
27+
28+
s.platform = :ios, '11.0'
29+
s.swift_version = '5.0'
30+
31+
s.source_files = 'AmplifyTestCommon/**/*.swift'
32+
33+
s.dependency 'Amplify', $AMPLIFY_VERSION
34+
s.dependency 'CwlPreconditionTesting', "~> 2.0"
35+
36+
s.pod_target_xcconfig = {
37+
'ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES' => 'YES',
38+
'ENABLE_TESTING_SEARCH_PATHS' => 'YES',
39+
'SYSTEM_FRAMEWORK_SEARCH_PATHS' => '$(CORRESPONDING_DEVICE_PLATFORM_DIR)/Developer/Library/Frameworks $(inherited)'
40+
}
41+
42+
s.script_phases = [
43+
{
44+
:name => 'Copy Configuration folder',
45+
:script => '
46+
TEMP_FILE=$HOME/.aws-amplify/amplify-ios/testconfiguration/.
47+
DEST_PATH="${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/testconfiguration/"
48+
49+
if [[ ! -d $TEMP_FILE ]] ; then
50+
echo "${TEMP_FILE} does not exist. Using empty configuration."
51+
exit 0
52+
fi
53+
54+
if [[ -f $DEST_PATH ]] ; then
55+
rm $DEST_PATH
56+
fi
57+
58+
cp -r $TEMP_FILE $DEST_PATH
59+
'
60+
}
61+
]
62+
s.subspec 'AWSPluginsTestCommon' do |ss|
63+
ss.source_files = 'AmplifyPlugins/Core/AWSPluginsTestCommon/**/*.swift'
64+
ss.dependency 'AWSPluginsCore', $AMPLIFY_VERSION
65+
ss.dependency 'AWSMobileClient', $OPTIMISTIC_AWS_SDK_VERSION
66+
ss.dependency 'AWSCore', $OPTIMISTIC_AWS_SDK_VERSION
67+
end
68+
69+
end
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Version definitions
2+
$AMPLIFY_VERSION = '1.23.0'
3+
$AMPLIFY_RELEASE_TAG = "v#{$AMPLIFY_VERSION}"
4+
5+
Pod::Spec.new do |s|
6+
s.name = 'CoreMLPredictionsPlugin'
7+
8+
s.version = $AMPLIFY_VERSION
9+
s.summary = 'Amazon Web Services Amplify for iOS.'
10+
11+
s.description = 'AWS Amplify for iOS provides a declarative library for application development using cloud services'
12+
13+
s.homepage = 'https://github.com/aws-amplify/amplify-ios'
14+
s.license = 'Apache License, Version 2.0'
15+
s.author = { 'Amazon Web Services' => 'amazonwebservices' }
16+
s.source = { :git => 'https://github.com/aws-amplify/amplify-ios.git', :tag => $AMPLIFY_RELEASE_TAG }
17+
18+
s.platform = :ios, '13.0'
19+
s.swift_version = '5.0'
20+
21+
s.source_files = 'AmplifyPlugins/Predictions/CoreMLPredictionsPlugin/**/*.swift'
22+
23+
s.dependency 'Amplify', $AMPLIFY_VERSION
24+
25+
end
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
load 'build-support/dependencies.rb'
2+
3+
platform :ios, "11.0"
4+
5+
target "Amplify" do
6+
# Comment the next line if you"re not using Swift and don"t want to use dynamic frameworks
7+
use_frameworks!
8+
9+
include_build_tools!
10+
11+
abstract_target "AmplifyTestConfigs" do
12+
include_test_utilities!
13+
14+
target "AmplifyTestCommon" do
15+
pod "AWSCore", $OPTIMISTIC_AWS_SDK_VERSION
16+
end
17+
18+
target "AmplifyTests" do
19+
end
20+
21+
target "AmplifyFunctionalTests" do
22+
end
23+
24+
end
25+
26+
target "AWSPluginsCore" do
27+
inherit! :complete
28+
use_frameworks!
29+
30+
pod "AWSCore", $OPTIMISTIC_AWS_SDK_VERSION
31+
32+
abstract_target "AWSPluginsTestConfigs" do
33+
include_test_utilities!
34+
35+
target "AWSPluginsCoreTests" do
36+
end
37+
38+
target "AWSPluginsTestCommon" do
39+
end
40+
end
41+
42+
end
43+
44+
end
45+
46+
target "AmplifyTestApp" do
47+
use_frameworks!
48+
include_test_utilities!
49+
end

0 commit comments

Comments
 (0)