Trying to follow examples and docs from fastlane regarding env vars and dotenv files, but I cant get any ENV variables to work in fastlane. My Fastfile has this to test a variable usage:
lane :test do
var1 = ENV["CRASHLYTICS_API_TOKEN"]
puts "+++#{var1}"
end
My .env.default file sits in the same directory as the Fastfile and simply has this one line:
CRASHLYTICS_API_TOKEN="123abc"
What syntax am I missing here? When I run the test lane above, all that prints is +++. I am expecting +++123abc. Maybe a Ruby issue - I don't know Ruby. I tried explicitly installing the dotenv gem on Mac and it didn't make any difference.