fastlane: Wrong screengrab shots folder name

New Issue Checklist

Issue Description

I have strange issue while trying to make localized screenshots with Sccreengrab tool for Android. Everything works well except that Screengrab creates folders like “en-” instead of “en-US”, or “da-” instead of “da-DK”. So, if I want to use supply command, I always need to rename them by hand 😐

My screengrab file:

±---------------------------±-------------------------+ | Detected Values from ‘./fastlane/Screengrabfile’ | ±---------------------------±-------------------------+ | clear_previous_screenshots | true | | locales | [“da-DK”] | | ending_locale | da-DK | ±---------------------------±-------------------------+

Using this file i don’t even get “da-” folder created. In fastlane metadata folder only “en-” locale folder appears.


INFO [2017-03-31 11:15:51.30]: Installing app APK
INFO [2017-03-31 11:15:51.30]: $ adb -s emulator-5554 install -r app/build/outputs/apk/app_debug.apk
INFO [2017-03-31 11:16:09.95]: ▸ 1262 KB/s (23993029 bytes in 18.554s)
INFO [2017-03-31 11:16:11.49]: ▸ pkg: /data/local/tmp/app_debug.apk
INFO [2017-03-31 11:16:29.55]: ▸ Success
INFO [2017-03-31 11:16:30.22]: Installing tests APK
INFO [2017-03-31 11:16:30.22]: $ adb -s emulator-5554 install -r app/build/outputs/apk/app-debug-androidTest.apk
INFO [2017-03-31 11:16:31.46]: ▸ 1048 KB/s (1227488 bytes in 1.143s)
INFO [2017-03-31 11:16:33.90]: ▸ pkg: /data/local/tmp/app-debug-androidTest.apk
INFO [2017-03-31 11:16:37.12]: ▸ Success
INFO [2017-03-31 11:16:37.56]: Granting the permission necessary to change locales on the device
INFO [2017-03-31 11:16:37.56]: $ adb -s emulator-5554 shell pm grant com.takeout.whitelabel.market_dk_23_stage android.permission.CHANGE_CONFIGURATION
INFO [2017-03-31 11:16:39.22]: $ adb -s emulator-5554 shell getprop ro.build.version.sdk
INFO [2017-03-31 11:16:39.34]: ▸ 19
INFO [2017-03-31 11:16:39.35]: Running tests for locale: da-DK
INFO [2017-03-31 11:16:39.35]: $ adb -s emulator-5554 shell am instrument --no-window-animation -w \
-e testLocale da_DK \
-e endingLocale da_DK \
com.app.test/android.support.test.runner.AndroidJUnitRunner
INFO [2017-03-31 11:17:32.17]: ▸ com.app.Test1_Screengrab:.
INFO [2017-03-31 11:19:52.10]: ▸ Time: 175.182
INFO [2017-03-31 11:19:52.10]: ▸ OK (3 tests)
INFO [2017-03-31 11:19:52.68]: Pulling captured screenshots from the device
DEBUG [2017-03-31 11:19:52.68]: Starting screenshot count is: 0
INFO [2017-03-31 11:19:52.91]: ▸ /storage/sdcard/app/screengrab: No such file or directory
INFO [2017-03-31 11:19:53.09]: ▸ en-
INFO [2017-03-31 11:19:53.11]: $ adb -s emulator-5554 pull /data/data/app/app_screengrab /tmp/d20170331-9632-15s5a06
INFO [2017-03-31 11:19:53.21]: ▸ pull: building file list...
INFO [2017-03-31 11:19:53.43]: ▸ pull: /data/data/app/app_screengrab/en-/images/screenshots/5_checkout_1490959187888.png -> /tmp/d20170331-9632-15s5a06/en-/images/screenshots/5_checkout_1490959187888.png
INFO [2017-03-31 11:19:53.60]: ▸ pull: /data/data/app/app_screengrab/en-/images/screenshots/4_product_1490959179073.png -> /tmp/d20170331-9632-15s5a06/en-/images/screenshots/4_product_1490959179073.png
INFO [2017-03-31 11:19:54.29]: ▸ pull: /data/data/app/app_screengrab/en-/images/screenshots/3_restaurant_menu_expanded_1490959160435.png -> /tmp/d20170331-9632-15s5a06/en-/images/screenshots/3_restaurant_menu_expanded_1490959160435.png
INFO [2017-03-31 11:19:54.74]: ▸ pull: /data/data/app/app_screengrab/en-/images/screenshots/2_restaurant_menu_1490959152326.png -> /tmp/d20170331-9632-15s5a06/en-/images/screenshots/2_restaurant_menu_1490959152326.png
INFO [2017-03-31 11:19:55.15]: ▸ pull: /data/data/app/app_screengrab/en-/images/screenshots/1_login_screen_1490959048819.png -> /tmp/d20170331-9632-15s5a06/en-/images/screenshots/1_login_screen_1490959048819.png
INFO [2017-03-31 11:19:55.66]: ▸ 5 files pulled. 0 files skipped.
INFO [2017-03-31 11:19:55.66]: ▸ 824 KB/s (2064646 bytes in 2.446s)
INFO [2017-03-31 11:19:55.66]: Screenshots copied to fastlane/metadata/android/en-/images/phoneScreenshots
DEBUG [2017-03-31 11:19:55.66]: Ending screenshot count is: 5
INFO [2017-03-31 11:19:55.66]: Captured 5 screenshots! 📷✨

Environment

Please run fastlane env and copy the output below. This will help us help you 👍 If you used --capture_output option please remove this block - as it is already included there.

🚫 fastlane environment 🚫

Stack

Key Value
OS 10.12.3
Ruby 2.3.3
Bundler? false
Git git version 2.10.1 (Apple Git-78)
Installation Source /usr/local/bin/fastlane
Host Mac OS X 10.12.3 (16D32)
Ruby Lib Dir /usr/local/Cellar/ruby/2.3.3/lib
OpenSSL Version OpenSSL 1.0.2j 26 Sep 2016
Is contained false
Is homebrew false
Is installed via Fabric.app false
Xcode Path /Applications/Xcode.app/Contents/Developer/
Xcode Version 8.2.1

System Locale

Error
No Locale with UTF8 found 🚫

fastlane files:

`./Fastfile`
# Customise this file, documentation can be found here:
# https://github.com/fastlane/fastlane/tree/master/fastlane/docs
# All available actions: https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Actions.md
# can also be listed using the `fastlane actions` command

# Change the syntax highlighting to Ruby
# All lines starting with a # are ignored when running `fastlane`

# If you want to automatically update fastlane if a new version is available:
# update_fastlane

# This is the minimum version number required.
# Update this, if you use features of a newer version
fastlane_version "1.99.0"

default_platform :android

platform :android do
  before_all do
    # ENV["SLACK_URL"] = "https://hooks.slack.com/services/..."
  end

    desc "Make screenshots"
    lane :screens do
        # Screens are made in developDebug flavor
        gradle(task: "assembleDevelopDebug assembleDevelopDebugAndroidTest")
        screengrab
    end

    desc "Submit AutoDeployed version to Fabric"
    lane :fabric_autodeploy do |options|
        gradle(task: "assembleAutodeployRelease")
        fabric(name: options[:name])
    end

    desc "Submit Development version to Fabric"
    lane :fabric_test do
        gradle(task: "assembleDevelopRelease")
        fabric(name: "Android Develop WhiteLabel")
    end

end


# More information about multiple platforms in fastlane: https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Platforms.md
# All available actions: https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Actions.md

# fastlane reports which actions are used
# No personal data is sent or shared. Learn more at https://github.com/fastlane/enhancer

No Appfile found

fastlane gems

Gem Version Update-Status
fastlane 2.24.0 ✅ Up-To-Date

Loaded fastlane plugins:

No plugins Loaded

Loaded gems
Gem Version
did_you_mean 1.0.0
slack-notifier 1.5.1
rouge 1.11.1
xcpretty 0.2.4
terminal-notifier 1.7.1
terminal-table 1.7.3
plist 3.2.0
addressable 2.5.0
multipart-post 2.0.0
word_wrap 1.0.0
tty-screen 0.5.0
babosa 1.0.2
colored 1.2
highline 1.7.8
commander-fastlane 4.4.4
excon 0.54.0
unf_ext 0.0.7.2
unf 0.1.4
domain_name 0.5.20161129
http-cookie 1.0.3
faraday-cookie_jar 0.0.6
fastimage 2.0.1
mini_magick 4.5.1
multi_json 1.12.1
multi_xml 0.6.0
rubyzip 1.2.0
security 0.1.3
xcpretty-travis-formatter 0.0.4
i18n 0.7.0
json 1.8.3
thread_safe 0.3.5
tzinfo 1.2.2
activesupport 4.2.7.1
io-console 0.4.6
faraday 0.11.0
faraday_middleware 0.11.0.1
little-plugger 1.1.4
logging 2.1.0
jwt 1.5.6
memoist 0.15.0
os 0.9.6
signet 0.7.3
googleauth 0.5.1
uber 0.0.15
representable 2.3.0
retriable 2.1.0
mime-types-data 3.2016.0521
mime-types 3.1
hurley 0.2
httpclient 2.8.3
google-api-client 0.9.26
public_suffix 2.0.5
claide 1.0.1
nanaimo 0.2.3
xcodeproj 1.4.2
bundler 1.14.3
unicode-display_width 1.1.3

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 20 (8 by maintainers)

Most upvoted comments

I am using v1.0.2

P.s. sorry for closing and reopening issue - wrong click…