Summary: This PR adds the example flipper plugin in swift sample app. Example flipper plugin acts as an example for the plugin authors. The example flipper plugin was already added in an objective c example but the swift sample app didn't have it. Pull Request resolved: https://github.com/facebook/flipper/pull/329 Reviewed By: jknoxville Differential Revision: D13085611 Pulled By: priteshrnandgaonkar fbshipit-source-id: d86cca43e95592ecca8d9991d170e62170b8217b
27 lines
1.0 KiB
Ruby
27 lines
1.0 KiB
Ruby
project 'SampleSwift.xcodeproj'
|
|
source 'https://github.com/facebook/Sonar.git'
|
|
source 'https://github.com/CocoaPods/Specs'
|
|
swift_version = "4.1"
|
|
|
|
target 'SampleSwift' do
|
|
platform :ios, '9.0'
|
|
pod 'Flipper', :path => '../../Flipper.podspec'
|
|
pod 'FlipperKit', :path => '../../FlipperKit.podspec'
|
|
pod 'FlipperKit/SKIOSNetworkPlugin', :path => '../../FlipperKit.podspec'
|
|
pod 'FlipperKit/FlipperKitUserDefaultsPlugin', :path => '../../FlipperKit.podspec'
|
|
pod 'FlipperKit/FlipperKitExamplePlugin', :path => '../../FlipperKit.podspec'
|
|
# Layout and network plugins are not yet supported for swift projects
|
|
pod 'FlipperKit/FlipperKitLayoutComponentKitSupport', :path => '../../FlipperKit.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
|