Sha256: 387568d4b2bded96bb7b4068d3836181f42fec0c58420a8b91b468920c084fe4
Contents?: true
Size: 1.12 KB
Versions: 10
Compression:
Stored size: 1.12 KB
Contents
module Pod class ConfigureSwift attr_reader :configurator def self.perform(options) new(options).perform end def initialize(options) @configurator = options.fetch(:configurator) $current_dir = @configurator.temp_path end def perform # keep_demo = configurator.ask_with_answers("Would you like to include a demo application with your library", ["Yes", "No"]).to_sym keep_demo = :yes Pod::ProjectManipulator.new({ :configurator => @configurator, # :xcodeproj_path => "templates/swift/Example/PROJECT.xcodeproj", :xcodeproj_path => "#{$current_dir}/templates/swift/Example/PROJECT.xcodeproj", :platform => :ios, :remove_demo_project => (keep_demo == :no), :prefix => @configurator.prefix }).run # There has to be a single file in the Classes dir # or a framework won't be created `touch #{$current_dir}/Pod/Classes/ReplaceMe.swift` `mv #{$current_dir}/templates/swift/* #{$current_dir}` # remove podspec for osx `rm #{$current_dir}/NAME-osx.podspec` end end end
Version data entries
10 entries across 10 versions & 2 rubygems