File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 3636#-------------------------------
3737
3838def user_entered_apk_path
39- ensure_apk_is_specified
39+ return nil if ARGV . first . nil?
40+
4041 File . expand_path ( ARGV . first )
4142end
4243
6263 when 'resign'
6364 require 'calabash-android/helpers'
6465 puts 'Resigning APK with Calabash-Android'
66+ ensure_apk_is_specified
6567 resign_apk ( user_entered_apk_path )
6668 when 'run'
6769 require File . join ( File . dirname ( __FILE__ ) , 'kraken_mobile_calabash_android' )
Original file line number Diff line number Diff line change @@ -29,6 +29,8 @@ def start
2929 # Helpers
3030 #-------------------------------
3131 def apk_path_for_process_id ( _process_id )
32+ raise 'ERROR: Invalid APK file path' if @apk_path . nil?
33+
3234 @apk_path
3335 end
3436
You can’t perform that action at this time.
0 commit comments