Skip to content

Commit 9082648

Browse files
update framework (#10)
1 parent 165caf3 commit 9082648

File tree

23 files changed

+4034
-2944
lines changed

23 files changed

+4034
-2944
lines changed

MixpanelSessionReplay.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "MixpanelSessionReplay"
3-
s.version = "1.0.0"
3+
s.version = "1.1.0"
44
s.summary = "Mixpanel Session Replay library for iOS (Swift)"
55
s.homepage = "https://mixpanel.com"
66
s.license = 'Apache License, Version 2.0'
Binary file not shown.

MixpanelSessionReplay.xcframework/ios-arm64/MixpanelSessionReplay.framework/Modules/MixpanelSessionReplay.swiftmodule/arm64-apple-ios.abi.json

Lines changed: 287 additions & 49 deletions
Large diffs are not rendered by default.

MixpanelSessionReplay.xcframework/ios-arm64/MixpanelSessionReplay.framework/Modules/MixpanelSessionReplay.swiftmodule/arm64-apple-ios.private.swiftinterface

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ public enum MPAutoMaskedViews : Swift.String, Swift.Codable {
2828
}
2929
public struct MPSessionReplayConfig : Swift.Codable {
3030
public var wifiOnly: Swift.Bool
31-
public var autoStartRecordingSessionsPercent: Swift.Double
31+
public var recordingSessionsPercent: Swift.Double
3232
public var autoStartRecording: Swift.Bool
3333
public var autoMaskedViews: Swift.Set<MixpanelSessionReplay.MPAutoMaskedViews>
3434
public var flushInterval: Foundation.TimeInterval
3535
public var enableLogging: Swift.Bool
36-
public init(wifiOnly: Swift.Bool = true, autoMaskedViews: Swift.Set<MixpanelSessionReplay.MPAutoMaskedViews> = [.image, .text, .web, .map], autoStartRecording: Swift.Bool = true, autoStartRecordingSessionsPercent: Swift.Double = 100, enableLogging: Swift.Bool = false, flushInterval: Foundation.TimeInterval = 10)
36+
public init(wifiOnly: Swift.Bool = true, autoMaskedViews: Swift.Set<MixpanelSessionReplay.MPAutoMaskedViews> = [.image, .text, .web, .map], autoStartRecording: Swift.Bool = true, recordingSessionsPercent: Swift.Double = 100, enableLogging: Swift.Bool = false, flushInterval: Foundation.TimeInterval = 10)
3737
public func encode(to encoder: any Swift.Encoder) throws
3838
public init(from decoder: any Swift.Decoder) throws
3939
}
@@ -48,9 +48,12 @@ public enum GzipError : Swift.Error {
4848
extension Foundation.Data {
4949
public func gzipCompressed(level: Swift.Int32 = Z_DEFAULT_COMPRESSION) throws -> Foundation.Data
5050
}
51+
public enum MPSessionReplayError : Swift.Error {
52+
case failedToInitialize
53+
case disabledByRemoteSetting(message: Swift.String)
54+
}
5155
@_hasMissingDesignatedInitializers open class MPSessionReplay {
52-
@discardableResult
53-
open class func initialize(token: Swift.String, distinctId: Swift.String, config: MixpanelSessionReplay.MPSessionReplayConfig = MPSessionReplayConfig()) -> MixpanelSessionReplay.MPSessionReplayInstance?
56+
open class func initialize(token: Swift.String, distinctId: Swift.String, config: MixpanelSessionReplay.MPSessionReplayConfig = MPSessionReplayConfig(), completion: @escaping (Swift.Result<MixpanelSessionReplay.MPSessionReplayInstance?, any Swift.Error>) -> Swift.Void = {_ in })
5457
open class func getInstance() -> MixpanelSessionReplay.MPSessionReplayInstance?
5558
open class func getReplayId() -> Swift.String?
5659
@objc deinit
@@ -76,7 +79,7 @@ public struct ServerProxyResource {
7679
get
7780
set
7881
}
79-
public func startRecording(recordSessionsPercent: Swift.Double = 100.0)
82+
public func startRecording(sessionsPercent: Swift.Double = 100.0)
8083
public func captureScreenshot()
8184
public func captureScreenshot(withTouchEvent event: UIKit.UIEvent)
8285
public func identify(distinctId: Swift.String, completion: @escaping () -> Swift.Void = {})

MixpanelSessionReplay.xcframework/ios-arm64/MixpanelSessionReplay.framework/Modules/MixpanelSessionReplay.swiftmodule/arm64-apple-ios.swiftinterface

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ public enum MPAutoMaskedViews : Swift.String, Swift.Codable {
2828
}
2929
public struct MPSessionReplayConfig : Swift.Codable {
3030
public var wifiOnly: Swift.Bool
31-
public var autoStartRecordingSessionsPercent: Swift.Double
31+
public var recordingSessionsPercent: Swift.Double
3232
public var autoStartRecording: Swift.Bool
3333
public var autoMaskedViews: Swift.Set<MixpanelSessionReplay.MPAutoMaskedViews>
3434
public var flushInterval: Foundation.TimeInterval
3535
public var enableLogging: Swift.Bool
36-
public init(wifiOnly: Swift.Bool = true, autoMaskedViews: Swift.Set<MixpanelSessionReplay.MPAutoMaskedViews> = [.image, .text, .web, .map], autoStartRecording: Swift.Bool = true, autoStartRecordingSessionsPercent: Swift.Double = 100, enableLogging: Swift.Bool = false, flushInterval: Foundation.TimeInterval = 10)
36+
public init(wifiOnly: Swift.Bool = true, autoMaskedViews: Swift.Set<MixpanelSessionReplay.MPAutoMaskedViews> = [.image, .text, .web, .map], autoStartRecording: Swift.Bool = true, recordingSessionsPercent: Swift.Double = 100, enableLogging: Swift.Bool = false, flushInterval: Foundation.TimeInterval = 10)
3737
public func encode(to encoder: any Swift.Encoder) throws
3838
public init(from decoder: any Swift.Decoder) throws
3939
}
@@ -48,9 +48,12 @@ public enum GzipError : Swift.Error {
4848
extension Foundation.Data {
4949
public func gzipCompressed(level: Swift.Int32 = Z_DEFAULT_COMPRESSION) throws -> Foundation.Data
5050
}
51+
public enum MPSessionReplayError : Swift.Error {
52+
case failedToInitialize
53+
case disabledByRemoteSetting(message: Swift.String)
54+
}
5155
@_hasMissingDesignatedInitializers open class MPSessionReplay {
52-
@discardableResult
53-
open class func initialize(token: Swift.String, distinctId: Swift.String, config: MixpanelSessionReplay.MPSessionReplayConfig = MPSessionReplayConfig()) -> MixpanelSessionReplay.MPSessionReplayInstance?
56+
open class func initialize(token: Swift.String, distinctId: Swift.String, config: MixpanelSessionReplay.MPSessionReplayConfig = MPSessionReplayConfig(), completion: @escaping (Swift.Result<MixpanelSessionReplay.MPSessionReplayInstance?, any Swift.Error>) -> Swift.Void = {_ in })
5457
open class func getInstance() -> MixpanelSessionReplay.MPSessionReplayInstance?
5558
open class func getReplayId() -> Swift.String?
5659
@objc deinit
@@ -76,7 +79,7 @@ public struct ServerProxyResource {
7679
get
7780
set
7881
}
79-
public func startRecording(recordSessionsPercent: Swift.Double = 100.0)
82+
public func startRecording(sessionsPercent: Swift.Double = 100.0)
8083
public func captureScreenshot()
8184
public func captureScreenshot(withTouchEvent event: UIKit.UIEvent)
8285
public func identify(distinctId: Swift.String, completion: @escaping () -> Swift.Void = {})

MixpanelSessionReplay.xcframework/ios-arm64/MixpanelSessionReplay.framework/PrivacyInfo.xcprivacy

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,15 @@
3434
</dict>
3535
</array>
3636
<key>NSPrivacyAccessedAPITypes</key>
37-
<array />
37+
<array>
38+
<dict>
39+
<key>NSPrivacyAccessedAPIType</key>
40+
<string>NSPrivacyAccessedAPICategoryUserDefaults</string>
41+
<key>NSPrivacyAccessedAPITypeReasons</key>
42+
<array>
43+
<string>1C8F.1</string>
44+
</array>
45+
</dict>
46+
</array>
3847
</dict>
3948
</plist>

0 commit comments

Comments
 (0)