-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check iOS 13 is available at runtime (#21)
- Loading branch information
Showing
5 changed files
with
45 additions
and
7 deletions.
There are no files selected for viewing
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 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// | ||
// OperatingSystemUnsupportedError.swift | ||
// | ||
|
||
import Foundation | ||
|
||
/// Adapter implementations in this package are called at runtime, ignoring @available attributes. | ||
/// By checking the operating system version we can avoid calling UID code which is unavailable. | ||
let isOperatingSystemSupported = ProcessInfo.processInfo.isOperatingSystemAtLeast( | ||
.init( | ||
majorVersion: 13, | ||
minorVersion: 0, | ||
patchVersion: 0 | ||
) | ||
) | ||
|
||
/// Adapter called on an unsupported operating system version i.e. lower than UID2's deployment target. | ||
@objc(UID2GMAOperatingSystemUnsupported) | ||
public final class OperatingSystemUnsupportedError: NSError, @unchecked Sendable { | ||
|
||
convenience init() { | ||
self.init(domain: "UID", code: 2) | ||
} | ||
} |
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,13 +3,13 @@ | |
"summary": "A plugin for integrating UID2 and Google GMA into iOS applications.", | ||
"homepage": "https://unifiedid.com/", | ||
"license": "Apache License, Version 2.0", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"authors": { | ||
"David Snabel-Caunt": "[email protected]" | ||
}, | ||
"source": { | ||
"git": "https://github.com/IABTechLab/uid2-ios-plugin-google-gma.git", | ||
"tag": "v1.0.0" | ||
"tag": "v1.0.1" | ||
}, | ||
"platforms": { | ||
"ios": "12.0" | ||
|