Leanplum-iOS-SDK icon indicating copy to clipboard operation
Leanplum-iOS-SDK copied to clipboard

Upgrade to minimum iOS version 10.0

Open via-guy opened this issue 1 year ago • 7 comments

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 avatar Jul 12 '23 15:07 via-guy

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

via-guy avatar Sep 21 '23 16:09 via-guy

FYI: https://github.com/via-guy/mparticle-apple-integration-leanplum/actions/runs/6264835345/job/17012380706

via-guy avatar Sep 21 '23 17:09 via-guy

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

nzagorchev avatar Oct 23 '23 14:10 nzagorchev

@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 avatar Oct 25 '23 03:10 via-guy

@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.

via-guy avatar Oct 25 '23 03:10 via-guy

@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 avatar Dec 10 '23 15:12 via-guy

@nzagorchev any update?

via-guy avatar Mar 11 '24 23:03 via-guy