2016-04-25 08:12:57 +03:00
|
|
|
require 'json'
|
|
|
|
|
|
|
|
package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
|
|
|
|
|
2016-01-30 01:15:41 +03:00
|
|
|
Pod::Spec.new do |s|
|
2016-06-08 20:28:19 +03:00
|
|
|
s.name = 'CodePush'
|
2017-03-02 10:51:26 +03:00
|
|
|
s.version = package['version'].gsub(/v|-beta/, '')
|
2016-06-19 20:16:58 +03:00
|
|
|
s.summary = package['description']
|
|
|
|
s.author = package['author']
|
|
|
|
s.license = package['license']
|
|
|
|
s.homepage = package['homepage']
|
2020-06-26 13:29:00 +03:00
|
|
|
s.source = { :git => 'https://github.com/microsoft/react-native-code-push.git', :tag => "v#{s.version}"}
|
2024-09-09 11:53:47 +03:00
|
|
|
s.ios.deployment_target = '15.5'
|
|
|
|
s.tvos.deployment_target = '15.5'
|
2016-06-08 20:28:19 +03:00
|
|
|
s.preserve_paths = '*.js'
|
|
|
|
s.library = 'z'
|
2018-04-02 19:11:20 +03:00
|
|
|
s.source_files = 'ios/CodePush/*.{h,m}'
|
|
|
|
s.public_header_files = ['ios/CodePush/CodePush.h']
|
2016-06-08 20:28:19 +03:00
|
|
|
|
2018-04-02 19:11:20 +03:00
|
|
|
# Note: Even though there are copy/pasted versions of some of these dependencies in the repo,
|
|
|
|
# we explicitly let CocoaPods pull in the versions below so all dependencies are resolved and
|
|
|
|
# linked properly at a parent workspace level.
|
2020-10-19 16:54:53 +03:00
|
|
|
s.dependency 'React-Core'
|
2024-09-09 11:53:47 +03:00
|
|
|
s.dependency 'SSZipArchive', '~> 2.5.5'
|
2020-06-03 19:40:33 +03:00
|
|
|
s.dependency 'JWT', '~> 3.0.0-beta.12'
|
2018-04-02 19:11:20 +03:00
|
|
|
s.dependency 'Base64', '~> 1.1'
|
2017-05-03 16:02:17 +03:00
|
|
|
end
|