Skip to content

Instantly share code, notes, and snippets.

@shoumikhin
Created August 19, 2019 02:53
Show Gist options
  • Save shoumikhin/b89dced8a598119713ddfdccc917e1e1 to your computer and use it in GitHub Desktop.
Save shoumikhin/b89dced8a598119713ddfdccc917e1e1 to your computer and use it in GitHub Desktop.
Pod::Spec.new do |s|
s.name = 'PromisesObjC'
s.version = '1.2.8'
s.authors = 'Google Inc.'
s.license = { :type => 'Apache', :file => 'LICENSE' }
s.homepage = 'https://github.com/google/promises'
s.source = { :git => 'https://github.com/google/promises.git', :tag => s.version }
s.summary = 'Synchronization construct for Objective-C'
s.description = <<-DESC
Promises is a modern framework that provides a synchronization construct for
Objective-C to facilitate writing asynchronous code.
DESC
s.ios.deployment_target = '8.0'
s.osx.deployment_target = '10.10'
s.tvos.deployment_target = '9.0'
s.watchos.deployment_target = '2.0'
s.module_name = 'FBLPromises'
s.module_map = "Sources/#{s.module_name}/include/framework.modulemap"
s.prefix_header_file = false
s.header_mappings_dir = "Sources/#{s.module_name}/include/"
s.public_header_files = "Sources/#{s.module_name}/include/**/*.h"
s.private_header_files = "Sources/#{s.module_name}/include/FBLPromisePrivate.h",
"Sources/#{s.module_name}/include/FBLPromise+Testing.h"
s.source_files = "Sources/#{s.module_name}/**/*.{h,m}"
s.xcconfig = {
'HEADER_SEARCH_PATHS' => "\"${PODS_TARGET_SRCROOT}/Sources/#{s.module_name}/include\""
}
s.test_spec 'Tests' do |ts|
ts.source_files = "Tests/#{s.module_name}Tests/*.m",
"Sources/#{s.module_name}TestHelpers/include/#{s.module_name}TestHelpers.h"
end
s.test_spec 'PerformanceTests' do |ts|
ts.source_files = "Tests/#{s.module_name}PerformanceTests/*.m",
"Sources/#{s.module_name}TestHelpers/include/#{s.module_name}TestHelpers.h"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment