Skip to content

Add preference keys for 'Restrict allowed versions' & hide 'Support Xcodes'#632

Merged
MattKiazyk merged 1 commit intoXcodesOrg:mainfrom
abiligiri:feature/more_managed_preferences
Oct 29, 2024
Merged

Add preference keys for 'Restrict allowed versions' & hide 'Support Xcodes'#632
MattKiazyk merged 1 commit intoXcodesOrg:mainfrom
abiligiri:feature/more_managed_preferences

Conversation

@abiligiri
Copy link
Contributor

@abiligiri abiligiri commented Oct 20, 2024

  • Introduced a new preference keys allowedMajorVersions, hideSupportXcodes
  • allowedMajorVersions defaults to Int.max (ie allow all versions till date)
  • allowedMajorVersions is used to limit the number of major versions to as many as value set for this key. Eg: A value of 1 would allow the latest GA version and one major version before A value of 0 would allow only the latest GA version A value of 2 would allow the latest GA and previous two major versions
  • allowedMajorVersions does not have preference UI $ defaults write com.xcodesorg.xcodesapp allowedMajorVersions 2 #to limit to current GA and previous major $ defaults delete com.xcodesorg.xcodesapp allowedMajorVersions #to remove limits
  • Display buildNumber in bottom status bar

- Introduced a new preference keys allowedMajorVersions, hideSupportXcodes
- allowedMajorVersions defaults to Int.max (ie allow all versions till date)
- allowedMajorVersions is used to limit the number of major versions to as many as
    value set for this key. Eg: A value of 1 would allow the latest GA version and one major version before
    A value of 0 would allow only the latest GA version
    A value of 2 would allow the latest GA and previous two major versions
- allowedMajorVersions does not have preference UI
    $ defaults write com.xcodesorg.xcodesapp allowedMajorVersions 2 #to limit to current GA and previous major
    $ defaults delete com.xcodesorg.xcodesapp allowedMajorVersions  #to remove limits
- Display buildNumber in bottom status bar
@abiligiri abiligiri force-pushed the feature/more_managed_preferences branch from 94747ba to e3f996d Compare October 20, 2024 19:51
@MattKiazyk MattKiazyk changed the title Restrict allowed versions & hide 'Support Xcodes' Add preference keys for 'Restrict allowed versions' & hide 'Support Xcodes' Oct 29, 2024
@MattKiazyk MattKiazyk merged commit a75c54f into XcodesOrg:main Oct 29, 2024
@MattKiazyk MattKiazyk added the enhancement New feature or request label Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants