Summary: Before this PR, travis used to build sample app which used a tagged release of SonarKit and Sonar. So travis used to never check the source code in master branch. This PR, instead uses local podspecs, which refers to the local source code, and thus travis would be testing the local source code. Solves #237 Pull Request resolved: https://github.com/facebook/flipper/pull/244 Reviewed By: passy Differential Revision: D9394955 Pulled By: priteshrnandgaonkar fbshipit-source-id: 7109a8baaeb8ff7e14d19ebe1d7c3bcb7e4bebd2
24 lines
830 B
Ruby
24 lines
830 B
Ruby
project 'SampleSwift.xcodeproj'
|
|
source 'https://github.com/facebook/Sonar.git'
|
|
source 'https://github.com/CocoaPods/Specs'
|
|
swift_version = "4.1"
|
|
|
|
target 'SampleSwift' do
|
|
pod 'SonarKit', :path => '../../SonarKit.podspec'
|
|
pod 'SonarKit/SKIOSNetworkPlugin', :path => '../../SonarKit.podspec'
|
|
pod 'Sonar', :path => '../../Sonar.podspec'
|
|
# Layout and network plugins are not yet supported for swift projects
|
|
#pod 'SonarKit/SonarKitLayoutComponentKitSupport', :path => '../../SonarKit.podspec'
|
|
|
|
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
|