Conversation
Add TEAMID_SUFFIX repository variable to allow multiple unique Bundle IDs Add xcargs to change MAIN_APP_BUNDLE_IDENTIFIER when a suffix is used. Integrate TEAMID_SUFFIX into TEAM_ID variable
OverviewThanks for looking at this again. I'm still wondering if this is the "best" approach in that Trio / iAPS has one method and LoopFollow a second and this is yet a third method. (What you've done may be decided to be the best method.). I think an alternative that adds the suffix as an optional item in the code itself (similar to LoopFollow_Second, etc.) would be preferred because you could have 2 branches in the same fork supporting different bundle IDs. The simplicity of the branch idea is then only a single fork is required to get 2 bundle IDs. I think your current method requires a separate fork (with fork environment variable) to get the different bundle ids. As someone who actually builds two apps, I'm interested in your feedback on implementation. My thoughts above are theoretical. This topic is on my list of things to review. And I appreciate you working with me on this. Change RequestIf we do decide to do this, I would want the user to be able to run without modifying their normal configuration. As part of that, I would only want a message reporting if the variable is present - not if it is not present. In other works - the annotation indicated in the validate link below would not be there. TestThe test failed so I stopped testing until this is modified to work. Configuration
Test DetailsTest that all the yml files work without need for modification by the user.
Halted the test at this point. All the yml files need to work without modification required by the user. |
This change helps create multiple versions of Loop for distribution.
Steps:
Impact:
If TEAMID_SUFFIX variable does NOT exists in the repository, no change to the building steps.
If TEAMID_SUFFIX variable exists, and is formatted correctly (A-Z, 0-9, 1 to 5 characters long), the new TEAMID will have a format of: TEAMID-SUFFIX (ex. Z7P62XVNWC-ABC12)
Changes:
Add TEAMID_SUFFIX repository variable to allow multiple unique Bundle IDs
Add checks to formatting in Validate_Secrets
Pass xcargs in gym to change MAIN_APP_BUNDLE_IDENTIFIER when a suffix is used.
Append TEAMID_SUFFIX to TEAM_ID variable in fastlane and all GH actions.