Skip to content

Commit

Permalink
fix: LiveQuery starter project fails to build (#1784)
Browse files Browse the repository at this point in the history
  • Loading branch information
dplewis committed Apr 28, 2024
1 parent fb1e164 commit 0821194
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 1 deletion.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ParseLiveQuery/Examples/LiveQueryDemo-ObjC/Room.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/

#import <Parse/Parse.h>
@import ParseCore;

NS_ASSUME_NONNULL_BEGIN

Expand Down
42 changes: 42 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -211,12 +211,54 @@ namespace :build do
end
end

namespace :live_query_starters do
task :all do
Rake::Task['build:live_query_starters:objc'].invoke
Rake::Task['build:live_query_starters:swift'].invoke
end

task :objc do
live_query_starter_folder = File.join(SCRIPT_PATH, 'ParseLiveQuery', 'Examples')
task = XCTask::BuildTask.new do |t|
t.directory = live_query_starter_folder
t.project = 'LiveQueryDemo-ObjC.xcodeproj'
t.scheme = 'LiveQueryDemo-ObjC'
t.configuration = 'Debug'
t.sdk = 'macosx'
t.actions = build_action
t.formatter = XCTask::BuildFormatter::XCPRETTY
end
unless task.execute
puts 'Live Query ObjC Starter Project Failed!'
exit(1)
end
end

task :swift do
live_query_starter_folder = File.join(SCRIPT_PATH, 'ParseLiveQuery', 'Examples')
task = XCTask::BuildTask.new do |t|
t.directory = live_query_starter_folder
t.project = 'LiveQueryDemo.xcodeproj'
t.scheme = 'LiveQueryDemo'
t.configuration = 'Debug'
t.sdk = 'macosx'
t.actions = build_action
t.formatter = XCTask::BuildFormatter::XCPRETTY
end
unless task.execute
puts 'Live Query Swift Starter Project Failed!'
exit(1)
end
end
end

desc 'Build all starters'
task :starters do
Rake::Task['build:tvos_starters:all'].invoke
Rake::Task['build:watchos_starters:all'].invoke
Rake::Task['build:ios_starters:all'].invoke
Rake::Task['build:macos_starters:all'].invoke
Rake::Task['build:live_query_starters:all'].invoke
end
end

Expand Down

0 comments on commit 0821194

Please sign in to comment.