Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[Fix] HockeySDK post install hooks

  • Loading branch information...
commit b3449be4a308871648872c15098b5ae24d677dd7 1 parent 4bc4ff5
Fabio Pelosin fabiopelosin authored
7 HockeySDK/2.5.0/HockeySDK.podspec
View
@@ -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
7 HockeySDK/2.5.1/HockeySDK.podspec
View
@@ -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
7 HockeySDK/2.5.2/HockeySDK.podspec
View
@@ -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
7 HockeySDK/2.5.3/HockeySDK.podspec
View
@@ -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
7 HockeySDK/2.5.4/HockeySDK.podspec
View
@@ -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
7 HockeySDK/2.5.5/HockeySDK.podspec
View
@@ -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
11 HockeySDK/3.0.0/HockeySDK.podspec
View
@@ -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
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.