lib/appium_lib/driver.rb in appium_lib-0.3.12 vs lib/appium_lib/driver.rb in appium_lib-0.3.13
- old
+ new
@@ -73,10 +73,10 @@
@sauce_access_key = opts.fetch :sauce_access_key, ENV['SAUCE_ACCESS_KEY']
@port = opts.fetch :port, ENV['PORT'] || 4723
@os = :ios
- @os = :android if @app_path.end_with?('.apk') || @app_path.end_with?('.apk.zip')
+ @os = :android if @app_path.match /\.apk/i
# load common methods
extend Appium::Common
if @os == :android
raise 'APP_ACTIVITY must be set.' if @app_activity.nil?