Skip to content

Commit

Permalink
Merge pull request #27 from hboon/takeoff-on-launch-only
Browse files Browse the repository at this point in the history
 Only invoke TestFlight.takeOff when app launches instead of every time when app becomes active
  • Loading branch information
Watson1978 committed Apr 21, 2014
2 parents 3d46947 + bb40de7 commit a837cc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/motion/project/testflight.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def create_launcher
# This file is automatically generated. Do not edit.
if Object.const_defined?('TestFlight') and !UIDevice.currentDevice.model.include?('Simulator')
NSNotificationCenter.defaultCenter.addObserverForName(UIApplicationDidBecomeActiveNotification, object:nil, queue:nil, usingBlock:lambda do |notification|
NSNotificationCenter.defaultCenter.addObserverForName(UIApplicationDidFinishLaunchingNotification, object:nil, queue:nil, usingBlock:lambda do |notification|
#{'TestFlight.setDeviceIdentifier(UIDevice.currentDevice.uniqueIdentifier)' if identify_testers}
TestFlight.takeOff('#{app_token || team_token}')
end)
Expand Down

0 comments on commit a837cc9

Please sign in to comment.