-
Notifications
You must be signed in to change notification settings - Fork 8
Add configuration item for .xcconfig file in ios_get_app_version
#445
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
Add configuration item for .xcconfig file in ios_get_app_version
#445
Conversation
lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_get_app_version.rb
Outdated
Show resolved
Hide resolved
e9ad618 to
1b6f330
Compare
AliSoftware
left a comment
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.
Looking good, assuming we land iangmaia#1 on top of it as planned, to refine/improve the way the xcconfig file is read in the way you did in that other PR)
Actually, I just created and pushed a new branch called |
|
Dammit, now we have a conflict on the |
…o that the same name can be reused across actions
9de38e1 to
fce43b3
Compare
Done! |
|
CI took its time (Friday evening UTC is usually quite a busy period 😅 ) but finally went thru, all green and merged! |
What does it do?
This PR fixes #380 by adding a configuration item in the action
ios_get_app_version, to be used instead of the environment variableENV['PUBLIC_CONFIG_FILE'].1️⃣ Adds the parameter
public_version_xcconfig_fileas a ConfigItem to the actionios_get_app_version.The new parameter will be used to extract the app version, without relying on environment variables and deprecating the method that still does.
In order to to that, I've created a parameterised copy of the method
Ios::VersionHelper.get_public_version(), which I calledIos::VersionHelper.get_xcconfig_public_version, also marking the original version as deprecated, and eventually we should stop using it.Please note that there are still many uses in the codebase of the
ENV['PUBLIC_CONFIG_FILE'](as well asENV['INTERNAL_CONFIG_FILE']), not only directly in the actions but by their dependencies. These should be addressed in follow up Pull Requests.2️⃣ Adds basic tests to
ios_get_app_versionBasic tests to the action functionality. These tests are gonna be extended in the next PR, where I'll also improve some of the related code in
Ios::VersionHelper.Related PRs
ios_get_app_versionChecklist before requesting a review
bundle exec rubocopto test for code style violations and recommendationsspecs/*_spec.rb) if applicablebundle exec rspecto run the whole test suite and ensure all your tests passCHANGELOG.mdfile to describe your changes under the approprioate existing###subsection of the existing## Trunksection.