Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Add HockeySDK 2.5.0.

  • Loading branch information...
commit 5b33bd035d0e6c6fe14c497ca09f9e2264f46389 1 parent dbf4218
Eloy Durán alloy authored

Showing 1 changed file with 39 additions and 0 deletions. Show diff stats Hide diff stats

  1. +39 0 HockeySDK/2.5.0/HockeySDK.podspec
39 HockeySDK/2.5.0/HockeySDK.podspec
... ... @@ -0,0 +1,39 @@
  1 +Pod::Spec.new do |s|
  2 + s.name = 'HockeySDK'
  3 + s.version = '2.5.0'
  4 + s.license = 'MIT'
  5 + s.platform = :ios, '4.0'
  6 + s.summary = 'Distribute beta apps and collect crash reports with HockeyApp.'
  7 + s.homepage = 'http://hockeyapp.net/'
  8 + s.author = { 'Andreas Linde' => 'mail@andreaslinde.de', 'Thomas Dohmke' => "thomas@dohmke.de" }
  9 + s.source = { :git => 'https://github.com/bitstadium/HockeySDK-iOS.git', :tag => '2.5.0' }
  10 +
  11 + s.description = 'HockeyApp is a server to distribute beta apps and collect crash reports. ' \
  12 + 'It improves the testing process dramatically and can be used for both beta ' \
  13 + 'and App Store builds. Only beta builds will notify users about a new version ' \
  14 + 'NOTE: You will need to add a dependency on JSONKit, SBJson or YAJL yourself. If you ' \
  15 + 'want the framework to try again when a network is available, add a dependency ' \
  16 + 'on Reachability and send a notification with the name `BITHockeyNetworkDidBecomeReachable` ' \
  17 + 'yourself when the network becomse reachable.'
  18 +
  19 + s.source_files = 'Classes'
  20 + s.requires_arc = false
  21 + s.preserve_paths = 'Resources', 'Support', 'Vendor'
  22 + s.frameworks = 'QuartzCore', 'SystemConfiguration', 'CrashReporter', 'CoreGraphics', 'UIKit'
  23 + s.xcconfig = { 'FRAMEWORK_SEARCH_PATHS' => '"$(PODS_ROOT)/HockeySDK/Vendor"',
  24 + 'GCC_PREPROCESSOR_DEFINITIONS' => %{BITHOCKEY_VERSION="@\\"#{s.version}\\""} }
  25 +
  26 + def s.post_install(target_installer)
  27 + puts "\nGenerating HockeySDK resources bundle\n".yellow if config.verbose?
  28 + Dir.chdir File.join(config.project_pods_root, 'HockeySDK/Support') do
  29 + command = "xcodebuild -project HockeySDK.xcodeproj -target HockeySDKResources CONFIGURATION_BUILD_DIR=../Resources"
  30 + command << " 2>&1 > /dev/null" unless config.verbose?
  31 + unless system(command)
  32 + raise ::Pod::Informative, "Failed to generate HockeySDK resources bundle"
  33 + end
  34 + end
  35 + File.open(File.join(config.project_pods_root, target_installer.target_definition.copy_resources_script_name), 'a') do |file|
  36 + file.puts "install_resource 'HockeySDK/Resources/HockeySDKResources.bundle'"
  37 + end
  38 + end
  39 +end

0 comments on commit 5b33bd0

Please sign in to comment.
Something went wrong with that request. Please try again.