Summary: This diff adds the support to automate iOS releases. This diff adds two scripts, one for updating all the `podspecs`, and `podfiles` with updated version number. The script also updates the version used in sample and getting started doc file. The second script publishes a github tag. Following will be the process for iOS release:- 1. From `fbobjc/Libraries/SonarKit/Scripts` run `sh public-ios-podspec-update.sh`, it will update all the podspecs, podfiles and docs with updated version number. Commit it and land this 2. Once the above changes are landed and synced to github, run `sh push-new-github-tag.sh` from `fbobjc/Libraries/SonarKit/Scripts` to push the tag on github As a follow up on this diff, ideally, we should trigger second script automatically when the 1st task changes are synced to github. Reviewed By: jknoxville Differential Revision: D8879958 fbshipit-source-id: 8f0dc9200e8f64578af33e1446629f09c16c43f2
23 lines
632 B
Ruby
23 lines
632 B
Ruby
project 'Sample.xcodeproj'
|
|
source 'https://github.com/facebook/Sonar.git'
|
|
source 'https://github.com/CocoaPods/Specs'
|
|
# Uncomment the next line to define a global platform for your project
|
|
swift_version = "4.1"
|
|
sonarkit_version = '0.6.12'
|
|
|
|
target 'Sample' do
|
|
|
|
pod 'SonarKit', '~>'+sonarkit_version
|
|
post_install do |installer|
|
|
|
|
installer.pods_project.targets.each do |target|
|
|
if ['YogaKit'].include? target.name
|
|
target.build_configurations.each do |config|
|
|
config.build_settings['SWIFT_VERSION'] = swift_version
|
|
end
|
|
end
|
|
end
|
|
end
|
|
|
|
end
|