Skip to content

Commit cba81af

Browse files
committed
Merge branch 'develop'
2 parents 22ea28d + 863f228 commit cba81af

File tree

7 files changed

+14
-209
lines changed

7 files changed

+14
-209
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
The changelog for `SuperwallKit`. Also see the [releases](https://github.com/superwall/Superwall-iOS/releases) on GitHub.
44

5+
## 4.12.3
6+
7+
### Fixes
8+
9+
- Removes contacts and location permission APIs to prevent App Store warnings.
10+
511
## 4.12.2
612

713
### Fixes

Sources/SuperwallKit/Misc/Constants.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ let sdkVersion = """
1818
*/
1919

2020
let sdkVersion = """
21-
4.12.2
21+
4.12.3
2222
"""

Sources/SuperwallKit/Permissions/Handlers/PermissionHandler+Contacts.swift

Lines changed: 0 additions & 44 deletions
This file was deleted.

Sources/SuperwallKit/Permissions/Handlers/PermissionHandler+Location.swift

Lines changed: 0 additions & 99 deletions
This file was deleted.

Sources/SuperwallKit/Permissions/LocationPermissionDelegate.swift

Lines changed: 0 additions & 54 deletions
This file was deleted.

Sources/SuperwallKit/Permissions/PermissionHandler.swift

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,11 @@ import UserNotifications
1212
final class PermissionHandler: PermissionHandling {
1313
lazy var notificationCenter = UNUserNotificationCenter.current()
1414
lazy var locationManager = CLLocationManager()
15-
var locationDelegate: LocationPermissionDelegate?
1615

1716
// Info.plist keys for each permission type
1817
enum PlistKey {
1918
static let camera = "NSCameraUsageDescription"
2019
static let photoLibrary = "NSPhotoLibraryUsageDescription"
21-
static let contacts = "NSContactsUsageDescription"
22-
static let locationWhenInUse = "NSLocationWhenInUseUsageDescription"
23-
static let locationAlways = "NSLocationAlwaysAndWhenInUseUsageDescription"
2420
}
2521

2622
func hasPlistKey(_ key: String) -> Bool {
@@ -32,13 +28,13 @@ final class PermissionHandler: PermissionHandling {
3228
case .notification:
3329
return await checkNotificationPermission()
3430
case .location:
35-
return checkLocationPermission()
31+
return .unsupported
3632
case .backgroundLocation:
37-
return checkBackgroundLocationPermission()
33+
return .unsupported
3834
case .readImages:
3935
return checkPhotosPermission()
4036
case .contacts:
41-
return checkContactsPermission()
37+
return .unsupported
4238
case .camera:
4339
return checkCameraPermission()
4440
}
@@ -49,13 +45,13 @@ final class PermissionHandler: PermissionHandling {
4945
case .notification:
5046
return await requestNotificationPermission()
5147
case .location:
52-
return await requestLocationPermission()
48+
return .unsupported
5349
case .backgroundLocation:
54-
return await requestBackgroundLocationPermission()
50+
return .unsupported
5551
case .readImages:
5652
return await requestPhotosPermission()
5753
case .contacts:
58-
return await requestContactsPermission()
54+
return .unsupported
5955
case .camera:
6056
return await requestCameraPermission()
6157
}

SuperwallKit.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Pod::Spec.new do |s|
22

33
s.name = "SuperwallKit"
4-
s.version = "4.12.2"
4+
s.version = "4.12.3"
55
s.summary = "Superwall: In-App Paywalls Made Easy"
66
s.description = "Paywall infrastructure for mobile apps :) we make things like editing your paywall and running price tests as easy as clicking a few buttons. superwall.com"
77

0 commit comments

Comments
 (0)