Skip to content

Commit

Permalink
fixed issue 6 on real device video record
Browse files Browse the repository at this point in the history
  • Loading branch information
isonic1 committed Aug 19, 2016
1 parent 04883db commit b101d90
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bin/flick
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
require_relative '../lib/flick'
require 'commander/import'

program :version, '0.2.1'
program :version, '0.2.2'
program :description, 'A CLI to capture screenshots, video, logs, and device info for Android (Devices & Emulators) and iOS (Devices).'

command :video do |c|
Expand Down
7 changes: 5 additions & 2 deletions lib/flick/android.rb
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,11 @@ def log name
end

def recordable?
#%x(adb -s #{udid} shell "ls /system/bin/screenrecord").strip == "/system/bin/screenrecord"
!(udid.include? "emulator" or info[:manufacturer] == "Genymotion")
if info[:manufacturer] == "Genymotion"
return false
else
%x(adb -s #{udid} shell "ls /system/bin/screenrecord").strip == "/system/bin/screenrecord"
end
end

def screenrecord name
Expand Down
2 changes: 1 addition & 1 deletion lib/flick/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Flick
VERSION = "0.2.1"
VERSION = "0.2.2"
end

0 comments on commit b101d90

Please sign in to comment.