Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: LiveQuery starter project fails to build #1784

Merged
merged 2 commits into from
Apr 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

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
Loading