Skip to content

Commit

Permalink
Update Rakefile
Browse files Browse the repository at this point in the history
  • Loading branch information
mtrezza committed Jan 27, 2025
1 parent dc9088b commit 5a8b8a0
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@ SCRIPT_PATH = File.expand_path(File.dirname(__FILE__))
starters_path = File.join(SCRIPT_PATH, 'ParseStarterProject')

ios_version = ENV.fetch('IOS_VERSION')
tvos_version = ENV.fetch('TV_OS_VERSION')
watchos_version = ENV.fetch('WATCH_OS_VERSION')
ios_device_model = ENV.fetch('IOS_DEVICE_MODEL')
tvos_version = ENV.fetch('TV_OS_VERSION')
tv_device_model = ENV.fetch('TV_DEVICE_MODEL')
watchos_version = ENV.fetch('WATCH_OS_VERSION')
watch_device_model = ENV.fetch('WATCH_DEVICE_MODEL')

puts "IOS_VERSION: #{ios_version}"
puts "TV_OS_VERSION: #{tvos_version}"
puts "WATCH_OS_VERSION: #{watchos_version}"
puts "IOS_DEVICE_MODEL: #{ios_device_model}"
puts "TV_OS_VERSION: #{tvos_version}"
puts "TV_DEVICE_MODEL: #{tv_device_model}"
puts "WATCH_OS_VERSION: #{watchos_version}"
puts "WATCH_DEVICE_MODEL: #{watch_device_model}"

ios_simulator = "platform=\"iOS Simulator\",name=\"#{ios_device_model}\",OS=\"#{ios_version}\""
Expand Down Expand Up @@ -115,6 +115,9 @@ namespace :build do
end

task :swift do
puts 'Running iOS Swift Starter Project'
puts "IOS_VERSION: #{ios_version}"
puts "IOS_DEVICE_MODEL: #{ios_device_model}"
project = 'ParseStarterProject-Swift'
ios_starters_path = File.join(starters_path, 'iOS', project)
task = XCTask::BuildTask.new do |t|
Expand All @@ -141,6 +144,7 @@ namespace :build do
end

task :objc do
puts 'Running macOS ObjC Starter Project'
macos_starter_folder = File.join(starters_path, 'OSX', 'ParseOSXStarterProject')
task = XCTask::BuildTask.new do |t|
t.directory = macos_starter_folder
Expand All @@ -158,6 +162,7 @@ namespace :build do
end

task :swift do
puts 'Running macOS Swift Starter Project'
macos_starter_folder = File.join(starters_path, 'OSX', 'ParseOSXStarterProject-Swift')
task = XCTask::BuildTask.new do |t|
t.directory = macos_starter_folder
Expand All @@ -183,6 +188,9 @@ namespace :build do
end

task :swift do
puts 'Running tvOS Swift Starter Project'
puts "TV_OS_VERSION: #{tvos_version}"
puts "TV_DEVICE_MODEL: #{tv_device_model}"
tvos_starter_folder = File.join(starters_path, 'tvOS', 'ParseStarterProject-Swift')
task = XCTask::BuildTask.new do |t|
t.directory = tvos_starter_folder
Expand All @@ -208,6 +216,9 @@ namespace :build do
end

task :swift do
puts 'Running watchOS Swift Starter Project'
puts "WATCH_OS_VERSION: #{watchos_version}"
puts "WATCH_DEVICE_MODEL: #{watch_device_model}"
watchos_starter_folder = File.join(starters_path, 'watchOS', 'ParseStarterProject-Swift')
task = XCTask::BuildTask.new do |t|
t.directory = watchos_starter_folder
Expand All @@ -232,6 +243,7 @@ namespace :build do
end

task :objc do
puts 'Running Live Query ObjC Starter Project'
live_query_starter_folder = File.join(SCRIPT_PATH, 'ParseLiveQuery', 'Examples')
task = XCTask::BuildTask.new do |t|
t.directory = live_query_starter_folder
Expand All @@ -249,6 +261,7 @@ namespace :build do
end

task :swift do
puts 'Running Live Query Swift Starter Project'
live_query_starter_folder = File.join(SCRIPT_PATH, 'ParseLiveQuery', 'Examples')
task = XCTask::BuildTask.new do |t|
t.directory = live_query_starter_folder
Expand Down

0 comments on commit 5a8b8a0

Please sign in to comment.