Skip to content

Instantly share code, notes, and snippets.

@hasanaga
Last active October 13, 2020 16:16
Show Gist options
  • Save hasanaga/e730b06e8999154a0d1ff9a00d146242 to your computer and use it in GitHub Desktop.
Save hasanaga/e730b06e8999154a0d1ff9a00d146242 to your computer and use it in GitHub Desktop.
For support Android Fastlane/FrameIt
#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