Skip to content

Commit 096cc12

Browse files
committed
Trying to automate play store upload screenshots
1 parent 883f933 commit 096cc12

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

apps/app/android/fastlane/Fastfile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,15 @@ end
3838
private_lane :populate_metadata do
3939
metadata_path = "metadata"
4040

41+
metadata_full_path = File.expand_path(metadata_path, Dir.pwd)
42+
4143
unless File.exist?(metadata_path)
42-
UI.message("Running 'fastlane supply init' to initialize supply metadata...")
44+
UI.message("Running 'fastlane supply init' from android folder...")
4345

44-
# Run supply init in the correct context
45-
sh("fastlane supply init --metadata_path #{metadata_path}")
46+
# Change directory to android and run init there
47+
Dir.chdir("android") do
48+
sh("fastlane supply init --metadata_path #{metadata_path}")
49+
end
4650
else
4751
UI.message("✅ Supply metadata already initialized.")
4852
end

0 commit comments

Comments
 (0)