-
Notifications
You must be signed in to change notification settings - Fork 0
[GCSI-515] update fastlane build actions android/ios #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
…ld path and + specs
lib/fastlane/plugin/instabug_stores_upload/helper/instabug_stores_upload_helper.rb
Outdated
Show resolved
Hide resolved
lib/fastlane/plugin/instabug_stores_upload/actions/instabug_build_android_app_action.rb
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work ya Youssef 👏
] | ||
build_keys.each do |build_key| | ||
build_path = lane_context[build_key] | ||
return build_path if build_path && !build_path.empty? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return build_path if build_path && !build_path.empty? | |
return build_path if build_path.present? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.present?
requires active support and we don't have Rails here.
So, I will keep the current implementation.
Fix issues while testing + extract error message
key = option.key | ||
unless INSTABUG_KEYS.include?(key) | ||
value = params[key] | ||
filtered_config[key] = value if value | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
key = option.key | |
unless INSTABUG_KEYS.include?(key) | |
value = params[key] | |
filtered_config[key] = value if value | |
end | |
key = option.key | |
filtered_config[key] = params[key] unless INSTABUG_KEYS.include?(key) |
I think the user can pass a key with value false
which will be excluded from the if case
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Applied.
build_keys = [ | ||
SharedValues::GRADLE_ALL_APK_OUTPUT_PATHS, | ||
SharedValues::GRADLE_APK_OUTPUT_PATH, | ||
SharedValues::GRADLE_ALL_AAB_OUTPUT_PATHS, | ||
SharedValues::GRADLE_AAB_OUTPUT_PATH | ||
] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This could return (array / string / nil).
And we should always send the build_path as an array to match the TDD.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Applied.
build_time = (Time.now - build_start_time).round | ||
|
||
# Extract IPA path from Fastlane environment | ||
build_path = Actions.lane_context[SharedValues::IPA_OUTPUT_PATH] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be an array instead of string.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Applied.
No description provided.