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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to minimum iOS version 10.0 #568

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

via-guy
Copy link

@via-guy via-guy commented Jul 12, 2023

What Where/Who
JIRA Issue JIRA_TICKET_ID
People Involved @via-guy

Notes on PR descriptions

Background

Sorry, I can't open tickets or anything, I just needed to create this change for our project and was hoping we could update directly at the source.

I had a compilation issue but it was with an older version of Leanplum-iOS-SDK and it looked like a good idea to upgrade the project to min SDK iOS 10. Seems that wasn't really necessary, but if you'd like to do it then here's how. 馃し

Implementation

  • Deleted any code that was marked as deprecated in iOS 10.0
  • Deleted any code that supported pre-iOS 10.0
  • Removed redundant markings of API_AVAILABLE(ios(10.0))
  • Updated podspec and project files to iOS 10.0 deployment target

Testing steps

N/A

Is this change backwards-compatible?

No, hence incrementing the major version in sdk-version.txt.

@via-guy
Copy link
Author

via-guy commented Sep 21, 2023

@nzagorchev how can I push this forward? I think it will clean up the code base significantly.

@nzagorchev
Copy link
Contributor

Thank you @via-guy for this contribution. Is this blocking your integration? Are you integrating with mparticle and what is the impact?

@via-guy
Copy link
Author

via-guy commented Oct 25, 2023

@nzagorchev no, it's not blocking me anymore. I thought that it was, originally, but I managed to resolve the issue. Still, seems a bit unnecessary to continue backwards-supporting so far.

The original issue itself was in NotificationsProxy.swift with

@objc @available(iOS 10.0, *)
public lazy var pushNotificationPresentationOption:UNNotificationPresentationOptions = []

Some compiler didn't like the combination of @available with lazy var. Upgrading the minimum target seemed like the easiest solution.

@via-guy
Copy link
Author

via-guy commented Oct 25, 2023

@nzagorchev the only thing we're blocked with is upgrading to a newer version of Leanplum. Using the mParticle integration we're stuck on 4.1. We need this fix implemented and released so that mparticle-integrations/mparticle-apple-integration-leanplum#20 can be merged.

@via-guy
Copy link
Author

via-guy commented Dec 10, 2023

@nzagorchev seems it's not blocking us anymore. I think it'll still be nice to upgrade anyway, just to clean the code. Supporting iOS 9 is pretty excessive at this point.

@via-guy
Copy link
Author

via-guy commented Mar 11, 2024

@nzagorchev any update?

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.

None yet

2 participants