Skip to content
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

Replace deprecated code with newer APIs #2112

Merged
merged 4 commits into from
Apr 24, 2022

Conversation

Eitot
Copy link
Contributor

@Eitot Eitot commented Apr 23, 2022

I ran the static analyser with the deployment target set to macOS 12.3 to see if any deprecation warnings show up. These commits address some of those warnings (e.g. not the C-based Keychain APIs) by using newer APIs where available.

Misc Checklist:

  • My change requires a documentation update on Sparkle's website repository
  • My change requires changes to generate_appcast, generate_keys, or sign_update

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:

  • Sparkle Test App
  • Unit Tests
  • My own app
  • Other (Clang-Analyser)

macOS version tested: 12.3.1

kUTType* constants are deprecated since macOS 12. The UniformTypeIdentifiers framework is available since the macOS 11 SDK.
@Eitot Eitot changed the title Deprecated code Replace deprecated code with newer APIs Apr 23, 2022
@zorgiepoo
Copy link
Member

Looks good besides one weak linkage concern. After that I will probably give it a basic test run on one of my VMs running < macOS 11.

@zorgiepoo zorgiepoo added this to the 2.2 milestone Apr 24, 2022
@zorgiepoo
Copy link
Member

Merge conflict from previous changes.

@zorgiepoo
Copy link
Member

Gave a run on macOS 10.12, seems good, thanks!

@zorgiepoo zorgiepoo merged commit 180f897 into sparkle-project:2.x Apr 24, 2022
@zorgiepoo
Copy link
Member

zorgiepoo commented Apr 25, 2022

(The deprecated keychain & security APIs are only used for DSA keys btw which we've deprecated ourselves).

@Eitot Eitot deleted the deprecated-code branch April 25, 2022 06:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants