precheck/lib/precheck/runner.rb in fastlane-2.170.0 vs precheck/lib/precheck/runner.rb in fastlane-2.171.0
- old
+ new
@@ -183,10 +183,10 @@
Spaceship::ConnectAPI::App.find(Precheck.config[:app_identifier])
end
def latest_app_version
platform = Spaceship::ConnectAPI::Platform.map(Precheck.config[:platform])
- @latest_version ||= app.get_edit_app_store_version(platform: platform)
+ @latest_version ||= Precheck.config[:use_live] ? app.get_live_app_store_version(platform: platform) : app.get_latest_app_store_version(platform: platform)
end
# Makes sure the current App ID exists. If not, it will show an appropriate error message
def ensure_app_exists!
return if app