Class: BITHockeyManagerLauncher

Inherits:
Object
  • Object
show all
Defined in:
lib/motion/project/launcher.rb,
lib/motion/project/launcher-deviceid.rb

Instance Method Summary collapse

Instance Method Details

#customDeviceIdentifierForUpdateManager(updateManager) ⇒ Object



3
4
5
6
7
8
9
# File 'lib/motion/project/launcher-deviceid.rb', line 3

def customDeviceIdentifierForUpdateManager(updateManager)
  if UIDevice.currentDevice.respond_to?('uniqueIdentifier')
    UIDevice.currentDevice.uniqueIdentifier
  else
    nil
  end
end

#start(&block) ⇒ Object



8
9
10
11
12
13
14
15
16
17
18
# File 'lib/motion/project/launcher.rb', line 8

def start(&block)
  return if !Object.const_defined?('BITHockeyManager') || UIDevice.currentDevice.model.include?('Simulator')
  (@plist = NSBundle.mainBundle.objectForInfoDictionaryKey('HockeySDK')) && (@plist = @plist.first)
  return unless @plist
  BITHockeyManager.sharedHockeyManager.configureWithBetaIdentifier(@plist['beta_id'], liveIdentifier:@plist['live_id'], delegate:self)

  BITHockeyManager.sharedHockeyManager.crashManager.crashManagerStatus = BITCrashManagerStatusAutoSend
  block.call if !block.nil?
  BITHockeyManager.sharedHockeyManager.startManager
  true
end