Skip to content

Commit 4f80d5c

Browse files
committed
Add live query to release build
1 parent ab190eb commit 4f80d5c

File tree

3 files changed

+37
-20
lines changed

3 files changed

+37
-20
lines changed

ParseLiveQuery/ParseLiveQuery-tvOS/Info.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
<key>CFBundlePackageType</key>
1616
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>$(MARKETING_VERSION)</string>
18+
<string>2.2.0</string>
1919
<key>CFBundleVersion</key>
20-
<string>$(CURRENT_PROJECT_VERSION)</string>
20+
<string>2.2.0</string>
2121
</dict>
2222
</plist>

ParseLiveQuery/ParseLiveQuery-watchOS/Info.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
<key>CFBundlePackageType</key>
1616
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>$(MARKETING_VERSION)</string>
18+
<string>2.2.0</string>
1919
<key>CFBundleVersion</key>
20-
<string>$(CURRENT_PROJECT_VERSION)</string>
20+
<string>2.2.0</string>
2121
</dict>
2222
</plist>

Rakefile

Lines changed: 33 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ namespace :build do
157157
task :ios do
158158
task = XCTask::BuildFrameworkTask.new do |t|
159159
t.directory = script_folder
160-
t.build_directory = build_folder
160+
t.build_directory = File.join(build_folder, 'iOS')
161161
t.framework_type = XCTask::FrameworkType::IOS
162162
t.framework_name = 'ParseLiveQuery.framework'
163163
t.workspace = 'Parse.xcworkspace'
@@ -171,38 +171,38 @@ namespace :build do
171171
end
172172
end
173173

174-
desc 'Build watchOS LiveQuery framework.'
175-
task :watchos do
174+
desc 'Build macOS LiveQuery framework.'
175+
task :macos do
176176
task = XCTask::BuildFrameworkTask.new do |t|
177177
t.directory = script_folder
178-
t.build_directory = build_folder
179-
t.framework_type = XCTask::FrameworkType::WATCHOS
178+
t.build_directory = File.join(build_folder, 'macOS')
179+
t.framework_type = XCTask::FrameworkType::OSX
180180
t.framework_name = 'ParseLiveQuery.framework'
181181
t.workspace = 'Parse.xcworkspace'
182-
t.scheme = 'ParseLiveQuery-watchOS'
182+
t.scheme = 'ParseLiveQuery-OSX'
183183
t.configuration = 'Release'
184184
end
185185
result = task.execute
186186
unless result
187-
puts 'Failed to build watchOS LiveQuery Framework.'
187+
puts 'Failed to build macOS LiveQuery Framework.'
188188
exit(1)
189189
end
190190
end
191191

192-
desc 'Build macOS LiveQuery framework.'
193-
task :macos do
192+
desc 'Build watchOS LiveQuery framework.'
193+
task :watchos do
194194
task = XCTask::BuildFrameworkTask.new do |t|
195195
t.directory = script_folder
196-
t.build_directory = build_folder
197-
t.framework_type = XCTask::FrameworkType::OSX
198-
t.framework_name = 'ParseLiveQuery.framework'
196+
t.build_directory = File.join(build_folder, 'watchOS')
197+
t.framework_type = XCTask::FrameworkType::WATCHOS
198+
t.framework_name = 'ParseLiveQuery_watchOS.framework'
199199
t.workspace = 'Parse.xcworkspace'
200-
t.scheme = 'ParseLiveQuery-macOS'
200+
t.scheme = 'ParseLiveQuery-watchOS'
201201
t.configuration = 'Release'
202202
end
203203
result = task.execute
204204
unless result
205-
puts 'Failed to build macOS LiveQuery Framework.'
205+
puts 'Failed to build watchOS LiveQuery Framework.'
206206
exit(1)
207207
end
208208
end
@@ -211,9 +211,9 @@ namespace :build do
211211
task :tvos do
212212
task = XCTask::BuildFrameworkTask.new do |t|
213213
t.directory = script_folder
214-
t.build_directory = build_folder
214+
t.build_directory = File.join(build_folder, 'tvOS')
215215
t.framework_type = XCTask::FrameworkType::TVOS
216-
t.framework_name = 'ParseLiveQuery.framework'
216+
t.framework_name = 'ParseLiveQuery_tvOS.framework'
217217
t.workspace = 'Parse.xcworkspace'
218218
t.scheme = 'ParseLiveQuery-tvOS'
219219
t.configuration = 'Release'
@@ -434,6 +434,23 @@ namespace :package do
434434
make_package(release_folder,
435435
[parseui_framework_path],
436436
package_parseui_name)
437+
438+
Rake::Task['build:parse_live_query:ios'].invoke
439+
ios_lq_framework_path = File.join(build_folder, 'iOS', 'ParseLiveQuery.framework')
440+
make_package(release_folder, [ios_lq_framework_path], 'ParseLiveQuery-iOS.zip')
441+
442+
Rake::Task['build:parse_live_query:macos'].invoke
443+
macos_lq_utils_framework_path = File.join(build_folder, 'macOS', 'ParseLiveQuery.framework')
444+
make_package(release_folder, [macos_lq_utils_framework_path], 'ParseLiveQuery-OSX.zip')
445+
446+
Rake::Task['build:parse_live_query:watchos'].invoke
447+
watchos_lq_fb_utils_framework_path = File.join(build_folder, 'watchOS', 'ParseLiveQuery_watchOS.framework')
448+
make_package(release_folder, [watchos_lq_fb_utils_framework_path], 'ParseLiveQuery-watchOS.zip')
449+
450+
Rake::Task['build:parse_live_query:tvos'].invoke
451+
tvos_lq_framework_path = File.join(build_folder, 'tvOS', 'ParseLiveQuery_tvOS.framework')
452+
make_package(release_folder, [tvos_lq_framework_path], 'ParseLiveQuery-tvOS.zip')
453+
437454
end
438455

439456
desc 'Build and package all starter projects for the release'

0 commit comments

Comments
 (0)