Skip to content

Commit

Permalink
[Fix] AWSiOSSDK
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiopelosin committed May 30, 2012
1 parent 44814d8 commit 0c28b46
Showing 1 changed file with 38 additions and 10 deletions.
48 changes: 38 additions & 10 deletions AWSiOSSDK/1.2.2/AWSiOSSDK.podspec
Original file line number Diff line number Diff line change
@@ -1,12 +1,40 @@
Pod::Spec.new do |s|
s.name = 'AWSiOSSDK'
s.version = '1.2.2'
s.license = 'Apache 2.0'
s.summary = 'AWS SDK for iOS'
s.homepage = 'http://aws.amazon.com/sdkforios'
s.author = { 'Amazon Web Services' => 'amazonwebservices' }
s.source = { :git => 'https://github.com/amazonwebservices/aws-sdk-for-ios', :commit => 'f730a57586a7eb8a0e83e888ad06c954e25806ba'}
s.description = 'The AWS SDK for iOS provides a library, code samples, and documentation for developers to build connected mobile applications using AWS.'
s.platform = :ios
s.source_files = 'src'
s.name = 'AWSiOSSDK'
s.version = '1.2.2'
s.license = 'Apache 2.0'
s.summary = 'Amazon Web Services SDK for iOS.'
s.homepage = 'http://aws.amazon.com/sdkforios'
s.author = { 'Amazon Web Services' => 'amazonwebservices' }
s.source = { :git => 'https://github.com/amazonwebservices/aws-sdk-for-ios.git', :commit => 'f730a57586a7eb8a0e83e888ad06c954e25806ba'}
s.description = 'The AWS SDK for iOS provides a library, code samples, and documentation for developers to build connected mobile applications using AWS.'
s.platform = :ios

s.header_mappings_dir = 'src/include'

s.subspec 'DynamoDB' do |ss|
ss.source_files = "src/Amazon.DynamoDB/**/*.m", "src/include/DynamoDB/*.h"
ss.dependency 'AWSiOSSDK/Runtime'
end

s.subspec 'Runtime' do |ss|
ss.source_files = "src/Amazon.Runtime/**/*.m", "src/include/*.h"
ss.dependency 'AWSiOSSDK/DynamoDB'
ss.dependency 'AWSiOSSDK/GMT-Logger'
ss.dependency 'SBJson'
end

# TODO: GTM should be an external dependency.
s.subspec 'GMT-Logger' do |ss|
ss.source_files = 'src/ThirdParty/GTM*.{h,m}'
end



# S3 does not build because it needs a Constants.h file defined by clients
%w[ AutoScaling CloudWatch DynamoDB EC2 ElasticLoadBalancing S3 SES SNS QS STS SimpleDB ].each do |name|
s.subspec name do |ss|
ss.source_files = "src/Amazon.#{name}/**/*.m", "src/include/#{name}/*.h"
ss.dependency 'AWSiOSSDK/Runtime'
end
end
end

2 comments on commit 0c28b46

@fabiopelosin
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@alloy What do you think about creating subspecs dynamically?

@alloy
Copy link
Member

@alloy alloy commented on 0c28b46 May 30, 2012

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, looks good to me.

Please sign in to comment.