Last active
October 13, 2020 16:16
-
-
Save hasanaga/e730b06e8999154a0d1ff9a00d146242 to your computer and use it in GitHub Desktop.
For support Android Fastlane/FrameIt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Add Framefile.json, background images, fonts, languages folders with title.strings, keyword.strings into fastlane/frameit folder. | |
config_path = File.join(File.expand_path("../frameit", screenshot.path), "Framefile.json") | |
#Add this after above | |
config_path = File.join(File.expand_path("../../../../../../frameit", screenshot.path), "Framefile.json") unless File.exist?(config_path) | |
#... | |
strings_path = File.join(File.expand_path("..", screenshot.path), "#{type}.strings") | |
#Add this after above | |
localePath = File.basename(File.expand_path("../../../", screenshot.path)) | |
strings_path = File.join(File.expand_path("../../../../../../frameit/#{localePath}", screenshot.path), "#{type}.strings") unless File.exist?(strings_path) | |
#Add screenshot.rb | |
@language ||= Pathname.new(path).parent.parent.parent.basename.to_s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment