Skip to content

Commit

Permalink
[Fix] HockeySDK post install hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiopelosin committed Mar 20, 2013
1 parent 4bc4ff5 commit b3449be
Show file tree
Hide file tree
Showing 7 changed files with 44 additions and 9 deletions.
7 changes: 6 additions & 1 deletion HockeySDK/2.5.0/HockeySDK.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,12 @@ Pod::Spec.new do |s|
raise ::Pod::Informative, "Failed to generate HockeySDK resources bundle"
end
end
File.open(File.join(config.project_pods_root, target_installer.target_definition.copy_resources_script_name), 'a') do |file|
if Version.new(Pod::VERSION) >= Version.new('0.16.999')
script_path = target_installer.target_definition.copy_resources_script_name
else
script_path = File.join(config.project_pods_root, target_installer.target_definition.copy_resources_script_name)
end
File.open(script_path, 'a') do |file|
file.puts "install_resource 'HockeySDK/Resources/HockeySDKResources.bundle'"
end
end
Expand Down
7 changes: 6 additions & 1 deletion HockeySDK/2.5.1/HockeySDK.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,12 @@ Pod::Spec.new do |s|
raise ::Pod::Informative, "Failed to generate HockeySDK resources bundle"
end
end
File.open(File.join(config.project_pods_root, target_installer.target_definition.copy_resources_script_name), 'a') do |file|
if Version.new(Pod::VERSION) >= Version.new('0.16.999')
script_path = target_installer.target_definition.copy_resources_script_name
else
script_path = File.join(config.project_pods_root, target_installer.target_definition.copy_resources_script_name)
end
File.open(script_path, 'a') do |file|
file.puts "install_resource 'HockeySDK/Resources/HockeySDKResources.bundle'"
end
end
Expand Down
7 changes: 6 additions & 1 deletion HockeySDK/2.5.2/HockeySDK.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,12 @@ Pod::Spec.new do |s|
raise ::Pod::Informative, "Failed to generate HockeySDK resources bundle"
end
end
File.open(File.join(config.project_pods_root, target_installer.target_definition.copy_resources_script_name), 'a') do |file|
if Version.new(Pod::VERSION) >= Version.new('0.16.999')
script_path = target_installer.target_definition.copy_resources_script_name
else
script_path = File.join(config.project_pods_root, target_installer.target_definition.copy_resources_script_name)
end
File.open(script_path, 'a') do |file|
file.puts "install_resource 'HockeySDK/Resources/HockeySDKResources.bundle'"
end
end
Expand Down
7 changes: 6 additions & 1 deletion HockeySDK/2.5.3/HockeySDK.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,12 @@ Pod::Spec.new do |s|
raise ::Pod::Informative, "Failed to generate HockeySDK resources bundle"
end
end
File.open(File.join(config.project_pods_root, target_installer.target_definition.copy_resources_script_name), 'a') do |file|
if Version.new(Pod::VERSION) >= Version.new('0.16.999')
script_path = target_installer.target_definition.copy_resources_script_name
else
script_path = File.join(config.project_pods_root, target_installer.target_definition.copy_resources_script_name)
end
File.open(script_path, 'a') do |file|
file.puts "install_resource 'HockeySDK/Resources/HockeySDKResources.bundle'"
end
end
Expand Down
7 changes: 6 additions & 1 deletion HockeySDK/2.5.4/HockeySDK.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,12 @@ Pod::Spec.new do |s|
raise ::Pod::Informative, "Failed to generate HockeySDK resources bundle"
end
end
File.open(File.join(config.project_pods_root, target_installer.target_definition.copy_resources_script_name), 'a') do |file|
if Version.new(Pod::VERSION) >= Version.new('0.16.999')
script_path = target_installer.target_definition.copy_resources_script_name
else
script_path = File.join(config.project_pods_root, target_installer.target_definition.copy_resources_script_name)
end
File.open(script_path, 'a') do |file|
file.puts "install_resource 'HockeySDK/Resources/HockeySDKResources.bundle'"
end
end
Expand Down
7 changes: 6 additions & 1 deletion HockeySDK/2.5.5/HockeySDK.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,12 @@ Pod::Spec.new do |s|
raise ::Pod::Informative, "Failed to generate HockeySDK resources bundle"
end
end
File.open(File.join(config.project_pods_root, target_installer.target_definition.copy_resources_script_name), 'a') do |file|
if Version.new(Pod::VERSION) >= Version.new('0.16.999')
script_path = target_installer.target_definition.copy_resources_script_name
else
script_path = File.join(config.project_pods_root, target_installer.target_definition.copy_resources_script_name)
end
File.open(script_path, 'a') do |file|
file.puts "install_resource 'HockeySDK/Resources/HockeySDKResources.bundle'"
end
end
Expand Down
11 changes: 8 additions & 3 deletions HockeySDK/3.0.0/HockeySDK.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ Pod::Spec.new do |s|
s.source = { :git => 'https://github.com/bitstadium/HockeySDK-iOS.git', :tag => '3.0.0' }

s.description = 'HockeyApp is a server to distribute beta apps, collect crash reports and ' \
'communicate with your app users.' \
'communicate with your app users.' \
'It improves the testing process dramatically and can be used for both beta ' \
'and App Store builds. Only beta builds will notify users about a new version. ' \
'NOTE: If you want the framework to try again when a network is available, add a dependency ' \
'on Reachability and send a notification with the name `BITHockeyNetworkDidBecomeReachable` ' \
'yourself when the network becomse reachable.'
'yourself when the network becomes reachable.'

s.source_files = 'Classes'
s.requires_arc = true
Expand All @@ -32,7 +32,12 @@ Pod::Spec.new do |s|
raise ::Pod::Informative, "Failed to generate HockeySDK resources bundle"
end
end
File.open(File.join(config.project_pods_root, target_installer.target_definition.copy_resources_script_name), 'a') do |file|
if Version.new(Pod::VERSION) >= Version.new('0.16.999')
script_path = target_installer.target_definition.copy_resources_script_name
else
script_path = File.join(config.project_pods_root, target_installer.target_definition.copy_resources_script_name)
end
File.open(script_path, 'a') do |file|
file.puts "install_resource 'HockeySDK/Resources/HockeySDKResources.bundle'"
end
end
Expand Down

0 comments on commit b3449be

Please sign in to comment.