-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Reduce code size and make codebase more consistent #2305
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This change deprecates -[SPUUpdater setFeedURL:] and logs warnings when the updater detects that feed URLs from user defaults are still being used. This change also logs a warning when checkForUpdatesInBackground is used incorrectly if Sparkle is configured to ask the user's permission to check for updates but a check is done when automatic update checking is NO.
Ignoring unrecognized preprocessor definitions may be harmful.
I may need to revisit the practicalness of this test at some later point.
This can save a lot on code size surprisingly.
danielpunkass
added a commit
to danielpunkass/Sparkle
that referenced
this pull request
Feb 27, 2023
…s on my branch. * commit '362f50a8a19cfb1a18202c5912ce4ce6f94d0190': (60 commits) Exit with an error if generate_appcast cannot sign an update (sparkle-project#2322) Update SUVersionDisplay to allow including build versions and update information (sparkle-project#2321) Update Package management files for version 2.3.2 Update CHANGELOG for 2.3.2 Remove unnecessary min macro checks (sparkle-project#2318) Add support for plain text release notes view (sparkle-project#2315) Don't construct appcast item if enclosure URL is invalid (sparkle-project#2317) Finnish localization grammar fixes (sparkle-project#2311) Reduce code size and make codebase more consistent (sparkle-project#2305) Add delegate method to hide showing version history option (sparkle-project#2303) Update Package management files for version 2.3.1 Update CHANGELOG for 2.3.1 Add deprecations/warnings for incorrect feed & update checking usage (sparkle-project#2295) Log the URL that failed to download correctly (sparkle-project#2296) Remove duplicate Sparkle localization strings in Updater app (sparkle-project#2288) Ask permission for automatically downloading and installing new updates (sparkle-project#2285) Upgrade CI to default to using Xcode 14.1 (sparkle-project#2287) Enable deployment post processing for Release configurations (sparkle-project#2286) Fix update permission alert title text overlapping with question text (sparkle-project#2284) Update Czech translation (sparkle-project#2275) ...
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This (big cleanup) reduces Sparkle's code size and makes the code style more consistent by:
__typeof__(self)
of when doing strong/weak self dancenonatomic
for Obj-C properties whenever possible-Wcustom-atomic-properties
and-Wimplicit-atomic-properties
warnings-Wdirect-ivar-access
@available
checks based on configured deployment targetSmallest Sparkle (with UI bits removed and no localizations): ~1.5 MB
Standard Sparkle: ~2.8 MB
Standard Sparkle with XPC Services removed: ~2.3 MB
Standard Sparkle in 2.3.1: ~5 MB for comparison
Misc Checklist
Only bug fixes to regressions or security fixes are being backported to the 1.x (master) branch now. If you believe your change is significant enough to backport, please also create a separate pull request against the master branch.
Testing
I tested and verified my change by using one or multiple of these methods:
Tested running Unit tests and tested this with my own app and the test app. Testing this in CI now.
macOS version tested: 10.14 VM, 13.0.1 (22A400)