Skip to content

Add tvOS SDK/starters package creation to Rakefile. #633

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

Merged
merged 2 commits into from
Dec 9, 2015
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
6 changes: 3 additions & 3 deletions Parse/Resources/Parse-tvOS.Info.plist
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
Expand All @@ -15,11 +15,11 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>1.8.5</string>
<string>1.10.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.8.5</string>
<string>1.10.0</string>
<key>NSPrincipalClass</key>
<string></string>
</dict>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
Expand All @@ -15,11 +15,11 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<string>1.10.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1</string>
<string>1.10.0</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>UIMainStoryboardFile</key>
Expand Down
21 changes: 19 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,12 @@ module Constants
File.join(script_folder, 'Parse', 'Resources', 'Parse-iOS.Info.plist'),
File.join(script_folder, 'Parse', 'Resources', 'Parse-OSX.Info.plist'),
File.join(script_folder, 'Parse', 'Resources', 'Parse-watchOS.Info.plist'),
File.join(script_folder, 'Parse', 'Resources', 'Parse-tvOS.Info.plist'),
File.join(script_folder, 'ParseStarterProject', 'iOS', 'ParseStarterProject', 'Resources', 'Info.plist'),
File.join(script_folder, 'ParseStarterProject', 'iOS', 'ParseStarterProject-Swift', 'Resources', 'Info.plist'),
File.join(script_folder, 'ParseStarterProject', 'OSX', 'ParseOSXStarterProject', 'Resources', 'Info.plist'),
File.join(script_folder, 'ParseStarterProject', 'OSX', 'ParseOSXStarterProject-Swift', 'Resources', 'Info.plist'),
File.join(script_folder, 'ParseStarterProject', 'tvOS', 'ParseStarterProject-Swift', 'ParseStarter', 'Info.plist'),
File.join(script_folder, 'ParseStarterProject', 'watchOS', 'ParseStarterProject-Swift', 'ParseStarter', 'Info.plist'),
File.join(script_folder, 'ParseStarterProject', 'watchOS', 'ParseStarterProject-Swift', 'ParseStarter Extension', 'Info.plist'),
File.join(script_folder, 'ParseStarterProject', 'watchOS', 'ParseStarterProject-Swift', 'Resources', 'Info.plist'),
Expand Down Expand Up @@ -142,9 +144,11 @@ end
namespace :package do
package_ios_name = 'Parse-iOS.zip'
package_osx_name = 'Parse-OSX.zip'
package_tvos_name = 'Parse-tvOS.zip'
package_watchos_name = 'Parse-watchOS.zip'
package_starter_ios_name = 'ParseStarterProject-iOS.zip'
package_starter_osx_name = 'ParseStarterProject-OSX.zip'
package_starter_tvos_name = 'ParseStarterProject-tvOS.zip'
package_starter_watchos_name = 'ParseStarterProject-watchOS.zip'

task :prepare do
Expand Down Expand Up @@ -173,6 +177,14 @@ namespace :package do
[osx_framework_path, bolts_path],
package_osx_name)

## Build tvOS Framework
Rake::Task['build:tvos'].invoke
bolts_path = File.join(bolts_build_folder, 'tvOS', 'Bolts.framework')
tvos_framework_path = File.join(build_folder, 'Parse.framework')
make_package(release_folder,
[tvos_framework_path, bolts_path],
package_tvos_name)

## Build watchOS Framework
Rake::Task['build:watchos'].invoke
bolts_path = File.join(bolts_build_folder, 'watchOS', 'Bolts.framework')
Expand Down Expand Up @@ -200,6 +212,12 @@ namespace :package do
osx_framework_archive = File.join(release_folder, package_osx_name)
make_starter_package(release_folder, osx_starters, osx_framework_archive, package_starter_osx_name)

tvos_starters = [
File.join(script_folder, 'ParseStarterProject', 'tvOS', 'ParseStarterProject-Swift')
]
tvos_framework_archive = File.join(release_folder, package_tvos_name)
make_starter_package(release_folder, tvos_starters, tvos_framework_archive, package_starter_tvos_name)

watchos_starters = [
File.join(script_folder, 'ParseStarterProject', 'watchOS', 'ParseStarterProject-Swift')
]
Expand Down Expand Up @@ -304,7 +322,6 @@ namespace :test do

desc 'Run Deployment Tests'
task :deployment do |_|
Rake::Task['build:tvos'].invoke
Rake::Task['package:frameworks'].invoke
Rake::Task['package:starters'].invoke
end
Expand All @@ -316,8 +333,8 @@ namespace :test do
'ParseStarterProject-Swift']
osx_schemes = ['ParseOSXStarterProject',
'ParseOSXStarterProject-Swift']
watchos_schemes = ['ParseWatchStarter-watchOS']
tvos_schemes = ['ParseStarter-tvOS']
watchos_schemes = ['ParseWatchStarter-watchOS']

ios_schemes.each do |scheme|
task = XCTask::BuildTask.new do |t|
Expand Down