Leanplum-iOS-SDK
Leanplum-iOS-SDK copied to clipboard
Upgrade to minimum iOS version 10.0
What | Where/Who |
---|---|
JIRA Issue | JIRA_TICKET_ID |
People Involved | @via-guy |
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
.
@nzagorchev how can I push this forward? I think it will clean up the code base significantly.
FYI: https://github.com/via-guy/mparticle-apple-integration-leanplum/actions/runs/6264835345/job/17012380706
Thank you @via-guy for this contribution. Is this blocking your integration? Are you integrating with mparticle and what is the impact?
@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.
@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 https://github.com/mparticle-integrations/mparticle-apple-integration-leanplum/pull/20 can be merged.
@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.
@nzagorchev any update?