6
6
# To see working Podspecs in the CocoaPods repo see https://github.com/CocoaPods/Specs/
7
7
#
8
8
9
- load 'build-support/dependencies.rb'
9
+ # Version definitions
10
+ $AMPLIFY_VERSION = '1.0.1'
11
+ $AMPLIFY_RELEASE_TAG = "v#{ $AMPLIFY_VERSION} "
12
+
13
+ $AWS_SDK_VERSION = '2.13.4'
14
+ $OPTIMISTIC_AWS_SDK_VERSION = "~> #{ $AWS_SDK_VERSION} "
10
15
11
16
Pod ::Spec . new do |s |
12
17
s . name = 'AmplifyPlugins'
@@ -18,7 +23,7 @@ Pod::Spec.new do |s|
18
23
s . homepage = 'https://github.com/aws-amplify/amplify-ios'
19
24
s . license = 'Apache License, Version 2.0'
20
25
s . author = { 'Amazon Web Services' => 'amazonwebservices' }
21
- s . source = { :git => 'https://github.com/aws-amplify/amplify-ios.git' , :tag => release_tag ( ) }
26
+ s . source = { :git => 'https://github.com/aws-amplify/amplify-ios.git' , :tag => $AMPLIFY_RELEASE_TAG }
22
27
23
28
s . platform = :ios , '11.0'
24
29
s . swift_version = '5.0'
@@ -27,7 +32,7 @@ Pod::Spec.new do |s|
27
32
28
33
# This is technically redundant, but adding it here allows Xcode to find it
29
34
# during initial indexing and prevent build errors after a fresh install
30
- s . dependency 'AWSCore' , optimistic_version ( $AWS_SDK_VERSION )
35
+ s . dependency 'AWSCore' , $OPTIMISTIC_AWS_SDK_VERSION
31
36
32
37
s . subspec 'AWSAPIPlugin' do |ss |
33
38
ss . source_files = 'AmplifyPlugins/API/AWSAPICategoryPlugin/**/*.swift'
@@ -37,11 +42,11 @@ Pod::Spec.new do |s|
37
42
38
43
s . subspec 'AWSCognitoAuthPlugin' do |ss |
39
44
ss . source_files = 'AmplifyPlugins/Auth/AWSCognitoAuthPlugin/**/*.swift'
40
- ss . dependency 'AWSMobileClient' , optimistic_version ( $AWS_SDK_VERSION )
45
+ ss . dependency 'AWSMobileClient' , $OPTIMISTIC_AWS_SDK_VERSION
41
46
42
47
# This is technically redundant, but adding it here allows Xcode to find it
43
48
# during initial indexing and prevent build errors after a fresh install
44
- s . dependency 'AWSAuthCore' , optimistic_version ( $AWS_SDK_VERSION )
49
+ s . dependency 'AWSAuthCore' , $OPTIMISTIC_AWS_SDK_VERSION
45
50
46
51
end
47
52
@@ -52,12 +57,12 @@ Pod::Spec.new do |s|
52
57
53
58
s . subspec 'AWSPinpointAnalyticsPlugin' do |ss |
54
59
ss . source_files = 'AmplifyPlugins/Analytics/AWSPinpointAnalyticsPlugin/**/*.swift'
55
- ss . dependency 'AWSPinpoint' , optimistic_version ( $AWS_SDK_VERSION )
60
+ ss . dependency 'AWSPinpoint' , $OPTIMISTIC_AWS_SDK_VERSION
56
61
end
57
62
58
63
s . subspec 'AWSS3StoragePlugin' do |ss |
59
64
ss . source_files = 'AmplifyPlugins/Storage/AWSS3StoragePlugin/**/*.swift'
60
- ss . dependency 'AWSS3' , optimistic_version ( $AWS_SDK_VERSION )
65
+ ss . dependency 'AWSS3' , $OPTIMISTIC_AWS_SDK_VERSION
61
66
end
62
67
63
68
end
0 commit comments