Skip to content

Commit

Permalink
[ISSUE-12] add xcparser for xcode 11
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexey committed Oct 30, 2019
1 parent 0cef390 commit 27ce807
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 12 deletions.
21 changes: 11 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,18 @@ Prerequisites:
--------

#### Global
- Install [imagemagick](http://brewformulas.org/Imagemagick).
$ brew install imagemagick

#### Android
- Install [SDK Tools](http://developer.android.com/sdk/installing/index.html?pkg=tools).
- SDK tools are added to your $PATH ([OSX](https://stackoverflow.com/posts/19764254/revisions)).
- Enable [USB Debugging](https://www.kingoapp.com/root-tutorials/how-to-enable-usb-debugging-mode-on-android.htm) on your device(s).
# Install [SDK Tools](http://developer.android.com/sdk/installing/index.html?pkg=tools).
# SDK tools are added to your $PATH ([OSX](https://stackoverflow.com/posts/19764254/revisions)).
# Enable [USB Debugging](https://www.kingoapp.com/root-tutorials/how-to-enable-usb-debugging-mode-on-android.htm) on your device(s).

#### iOS
- Install [Xcode](https://developer.apple.com/xcode/download/).
- Install [Xcode Command Line Tools](http://railsapps.github.io/xcode-command-line-tools.html).
- Install [ideviceinstaller](http://brewformulas.org/Ideviceinstaller).
# Install [Xcode](https://developer.apple.com/xcode/download/)
# Install [Xcode Command Line Tools](http://railsapps.github.io/xcode-command-line-tools.html)
$ brew install ideviceinstaller
$ brew install chargepoint/xcparse/xcparse

Installation:
------
Expand All @@ -32,16 +33,16 @@ Usage:
or
$ skeleton scan -p ios -b "your_app_bundle_id"
4. Open page with the generated screen objects on your favorite language

For more info use:
$ skeleton -h
$ skeleton scan -h

Demo:
------

![Skeleton example](docs/skeleton_example.png)

Docs:
------

Expand Down
3 changes: 2 additions & 1 deletion lib/skeleton/ios.rb
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,9 @@ def check_bundle

def save_screenshot
Log.info('Saving screenshot 📷')
png_path = "#{XCRESULTS_FOLDER}/Attachments/*.png"
png_path = "#{ATTACHMENTS_FOLDER}/*.png"
new_path = "#{ATTACHMENTS_FOLDER}/ios_#{TIMESTAMP}.png"
`xcparse screenshots #{XCRESULTS_FOLDER} #{ATTACHMENTS_FOLDER}`
screenshots = Dir[png_path].collect { |png| File.expand_path(png) }
FileUtils.cp(screenshots[0], new_path)
FileUtils.rm_rf(XCRESULTS_FOLDER)
Expand Down
2 changes: 1 addition & 1 deletion lib/skeleton/version.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module Skeleton
VERSION ||= '0.1.18'.freeze
VERSION ||= '0.1.19'.freeze
GEM_NAME ||= 'skeleton-ui'.freeze
end

0 comments on commit 27ce807

Please sign in to comment.