Skip to content

Commit

Permalink
Releases/v4.5.0 (#107)
Browse files Browse the repository at this point in the history
## Updated
* Add DRM Type to `MUXSDKCustomerViewData` so you can specify it from another source

## Deprecated
* `MUXSDKDispatcher`'s `handleBatch beaconCollectionDomain: osFamily: jsonDict: callback:` has been deprecated in favor of an overload that takes headers for requests to the collection domain
* `MUXSDKNetworkRequestBuilding` `buildRequestFromURL: eventsJsonDict: error:` has been deprecated in favor of an overload that takes headers for requests to the collection domain

## Improvements
* Performance + Reliability improvements during large events
  • Loading branch information
daytime-em authored Apr 24, 2023
1 parent 0f1dc06 commit 0460e6a
Show file tree
Hide file tree
Showing 31 changed files with 77 additions and 51 deletions.
3 changes: 2 additions & 1 deletion MUXCore.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"4.3.0": "https://github.com/muxinc/stats-sdk-objc/releases/download/v4.3.0/MUXCore.xcframework.zip",
"4.4.0": "https://github.com/muxinc/stats-sdk-objc/releases/download/v4.4.0/MUXCore.xcframework.zip",
"4.4.1": "https://github.com/muxinc/stats-sdk-objc/releases/download/v4.4.1/MUXCore.xcframework.zip",
"4.4.2": "https://github.com/muxinc/stats-sdk-objc/releases/download/v4.4.2/MUXCore.xcframework.zip"
"4.4.2": "https://github.com/muxinc/stats-sdk-objc/releases/download/v4.4.2/MUXCore.xcframework.zip",
"4.5.0": "https://github.com/muxinc/stats-sdk-objc/releases/download/v4.5.0/MUXCore.xcframework.zip"
}


2 changes: 1 addition & 1 deletion Mux-Stats-Core.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|
s.name = 'Mux-Stats-Core'

s.version = '4.4.2'
s.version = '4.5.0'

s.source = { :git => 'https://github.com/muxinc/stats-sdk-objc.git',
:tag => "v#{s.version}" }
Expand Down
4 changes: 2 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import PackageDescription
let package = Package(
name: "MuxCore",
platforms: [
.iOS(.v9),
.tvOS(.v9)
.iOS(.v11),
.tvOS(.v11)
],
products: [
.library(name: "MuxCore", targets: ["MuxCore"])
Expand Down
12 changes: 6 additions & 6 deletions XCFramework/MuxCore.xcframework/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<array>
<dict>
<key>LibraryIdentifier</key>
<string>tvos-arm64_x86_64-simulator</string>
<string>ios-arm64_x86_64-maccatalyst</string>
<key>LibraryPath</key>
<string>MuxCore.framework</string>
<key>SupportedArchitectures</key>
Expand All @@ -15,9 +15,9 @@
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>tvos</string>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
<string>maccatalyst</string>
</dict>
<dict>
<key>LibraryIdentifier</key>
Expand Down Expand Up @@ -60,7 +60,7 @@
</dict>
<dict>
<key>LibraryIdentifier</key>
<string>ios-arm64_x86_64-maccatalyst</string>
<string>tvos-arm64_x86_64-simulator</string>
<key>LibraryPath</key>
<string>MuxCore.framework</string>
<key>SupportedArchitectures</key>
Expand All @@ -69,9 +69,9 @@
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<string>tvos</string>
<key>SupportedPlatformVariant</key>
<string>maccatalyst</string>
<string>simulator</string>
</dict>
</array>
<key>CFBundlePackageType</key>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
+ (void)dispatchGlobalDataEvent:(MUXSDKDataEvent *)event;
+ (void)dispatchEvent:(id<MUXSDKEventTyping>)event forPlayer:(NSString *)playerId;
+ (void)destroyPlayer:(NSString *)playerId;
+ (void)setDeviceId:(NSString *)deviceId forPlayer:(NSString *)playerId;
+ (void)setSentryEnabled:(BOOL)enabled;
+ (void)setBeaconCollectionDomain:(NSString *)collectionDomain forPlayer:(NSString *)playerId;
+ (void)setBeaconDomain:(NSString *)domain forPlayer:(NSString *)playerId __attribute__((deprecated("Please migrate to setBeaconCollectionDomain:forPlayer")));;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
@interface MUXSDKCustomerViewData : MUXSDKQueryData<MUXSDKUpsertable>

@property (nullable) NSString *viewSessionId;
@property (nullable) NSString *viewDrmType;

@end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,24 @@
@end

@protocol MUXSDKNetworkRequestBuilding
- (NSMutableURLRequest *) buildRequestFromURL:(NSURL *) url eventsJsonDict:(NSDictionary *) dict error:(NSError **) error;
- (NSMutableURLRequest *) buildRequestFromURL:(NSURL *) url eventsJsonDict:(NSDictionary *)dict requestHeaders:(NSDictionary *)headers error:(NSError **) error;
- (NSMutableURLRequest *) buildRequestFromURL:(NSURL *) url eventsJsonDict:(NSDictionary *) dict error:(NSError **) error __attribute__((deprecated("Please migrate to handleBatch:domain:osFamily:jsonDict:beaconHeaders:withCallback:")));
@end

@interface MUXSDKDispatcher : NSObject<MUXSDKEventHandling, MUXSDKNetworkRequestBuilding> {
}
- (void)handleBatch:(NSString *)envKey beaconCollectionDomain:(NSString *)collectionDomain osFamily:(NSString *)os jsonDict: (NSMutableDictionary *)jsonDict callback: (id<MUXSDKNetworkRequestsCompletion>) callback;

- (void)handleBatch:(NSString *)envKey beaconCollectionDomain:(NSString *)collectionDomain osFamily:(NSString *)os jsonDict:(NSMutableDictionary *)jsonDict beaconHeaders:(NSDictionary *)headers callback: (id<MUXSDKNetworkRequestsCompletion>) callback;

+ (void)handleException:(NSDictionary *)json pluginName:(NSString *)pluginName pluginVersion:(NSString *)pluginVerison;

#pragma mark Deprecated

- (void)handleBatch:(NSString *)envKey beaconCollectionDomain:(NSString *)collectionDomain osFamily:(NSString *)os jsonDict: (NSMutableDictionary *)jsonDict callback: (id<MUXSDKNetworkRequestsCompletion>) callback __attribute__((deprecated("Please migrate to handleBatch:domain:osFamily:jsonDict:beaconHeaders:withCallback:")));
- (void)handle:(id<MUXSDKEventTyping>)event __attribute__((deprecated("Please migrate to handleBatch:domain:osFamily:jsonDict:withCallback:")));
- (void)handleBatch:(NSString *)envKey osFamily:(NSString *)os withJson: (NSData *)json withCallback: (id<MUXSDKNetworkRequestsCompletion>) callback __attribute__((deprecated("Please migrate to handleBatch:domain:osFamily:jsonDict:withCallback:")));
- (void)handleBatch:(NSString *)envKey domain:(NSString *)domain osFamily:(NSString *)os withJson: (NSData *)json withCallback: (id<MUXSDKNetworkRequestsCompletion>) callback __attribute__((deprecated("Please migrate to handleBatch:domain:osFamily:jsonDict:withCallback:")));
- (void)handleBatch:(NSString *)envKey domain:(NSString *)domain osFamily:(NSString *)os jsonDict: (NSMutableDictionary *)jsonDict callback: (id<MUXSDKNetworkRequestsCompletion>) callback __attribute__((deprecated("Please migrate to handleBatch:beaconCollectionDomain:osFamily:jsonDict:withCallback:")));;
- (void)handleBatch:(NSString *)envKey osFamily:(NSString *)os withJson: (NSData *)json withCallback: (id<MUXSDKNetworkRequestsCompletion>) callback __attribute__((deprecated("Please migrate to handleBatch:domain:osFamily:jsonDict:beaconHeaders:withCallback:")));
- (void)handleBatch:(NSString *)envKey domain:(NSString *)domain osFamily:(NSString *)os withJson: (NSData *)json withCallback: (id<MUXSDKNetworkRequestsCompletion>) callback __attribute__((deprecated("Please migrate to handleBatch:domain:osFamily:jsonDict:beaconHeaders:withCallback:")));
- (void)handleBatch:(NSString *)envKey domain:(NSString *)domain osFamily:(NSString *)os jsonDict: (NSMutableDictionary *)jsonDict callback: (id<MUXSDKNetworkRequestsCompletion>) callback __attribute__((deprecated("Please migrate to handleBatch:beaconCollectionDomain:osFamily:jsonDict:beaconHeaders:withCallback:")));;
@end

#endif
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
+ (void)dispatchGlobalDataEvent:(MUXSDKDataEvent *)event;
+ (void)dispatchEvent:(id<MUXSDKEventTyping>)event forPlayer:(NSString *)playerId;
+ (void)destroyPlayer:(NSString *)playerId;
+ (void)setDeviceId:(NSString *)deviceId forPlayer:(NSString *)playerId;
+ (void)setSentryEnabled:(BOOL)enabled;
+ (void)setBeaconCollectionDomain:(NSString *)collectionDomain forPlayer:(NSString *)playerId;
+ (void)setBeaconDomain:(NSString *)domain forPlayer:(NSString *)playerId __attribute__((deprecated("Please migrate to setBeaconCollectionDomain:forPlayer")));;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
@interface MUXSDKCustomerViewData : MUXSDKQueryData<MUXSDKUpsertable>

@property (nullable) NSString *viewSessionId;
@property (nullable) NSString *viewDrmType;

@end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,24 @@
@end

@protocol MUXSDKNetworkRequestBuilding
- (NSMutableURLRequest *) buildRequestFromURL:(NSURL *) url eventsJsonDict:(NSDictionary *) dict error:(NSError **) error;
- (NSMutableURLRequest *) buildRequestFromURL:(NSURL *) url eventsJsonDict:(NSDictionary *)dict requestHeaders:(NSDictionary *)headers error:(NSError **) error;
- (NSMutableURLRequest *) buildRequestFromURL:(NSURL *) url eventsJsonDict:(NSDictionary *) dict error:(NSError **) error __attribute__((deprecated("Please migrate to handleBatch:domain:osFamily:jsonDict:beaconHeaders:withCallback:")));
@end

@interface MUXSDKDispatcher : NSObject<MUXSDKEventHandling, MUXSDKNetworkRequestBuilding> {
}
- (void)handleBatch:(NSString *)envKey beaconCollectionDomain:(NSString *)collectionDomain osFamily:(NSString *)os jsonDict: (NSMutableDictionary *)jsonDict callback: (id<MUXSDKNetworkRequestsCompletion>) callback;

- (void)handleBatch:(NSString *)envKey beaconCollectionDomain:(NSString *)collectionDomain osFamily:(NSString *)os jsonDict:(NSMutableDictionary *)jsonDict beaconHeaders:(NSDictionary *)headers callback: (id<MUXSDKNetworkRequestsCompletion>) callback;

+ (void)handleException:(NSDictionary *)json pluginName:(NSString *)pluginName pluginVersion:(NSString *)pluginVerison;

#pragma mark Deprecated

- (void)handleBatch:(NSString *)envKey beaconCollectionDomain:(NSString *)collectionDomain osFamily:(NSString *)os jsonDict: (NSMutableDictionary *)jsonDict callback: (id<MUXSDKNetworkRequestsCompletion>) callback __attribute__((deprecated("Please migrate to handleBatch:domain:osFamily:jsonDict:beaconHeaders:withCallback:")));
- (void)handle:(id<MUXSDKEventTyping>)event __attribute__((deprecated("Please migrate to handleBatch:domain:osFamily:jsonDict:withCallback:")));
- (void)handleBatch:(NSString *)envKey osFamily:(NSString *)os withJson: (NSData *)json withCallback: (id<MUXSDKNetworkRequestsCompletion>) callback __attribute__((deprecated("Please migrate to handleBatch:domain:osFamily:jsonDict:withCallback:")));
- (void)handleBatch:(NSString *)envKey domain:(NSString *)domain osFamily:(NSString *)os withJson: (NSData *)json withCallback: (id<MUXSDKNetworkRequestsCompletion>) callback __attribute__((deprecated("Please migrate to handleBatch:domain:osFamily:jsonDict:withCallback:")));
- (void)handleBatch:(NSString *)envKey domain:(NSString *)domain osFamily:(NSString *)os jsonDict: (NSMutableDictionary *)jsonDict callback: (id<MUXSDKNetworkRequestsCompletion>) callback __attribute__((deprecated("Please migrate to handleBatch:beaconCollectionDomain:osFamily:jsonDict:withCallback:")));;
- (void)handleBatch:(NSString *)envKey osFamily:(NSString *)os withJson: (NSData *)json withCallback: (id<MUXSDKNetworkRequestsCompletion>) callback __attribute__((deprecated("Please migrate to handleBatch:domain:osFamily:jsonDict:beaconHeaders:withCallback:")));
- (void)handleBatch:(NSString *)envKey domain:(NSString *)domain osFamily:(NSString *)os withJson: (NSData *)json withCallback: (id<MUXSDKNetworkRequestsCompletion>) callback __attribute__((deprecated("Please migrate to handleBatch:domain:osFamily:jsonDict:beaconHeaders:withCallback:")));
- (void)handleBatch:(NSString *)envKey domain:(NSString *)domain osFamily:(NSString *)os jsonDict: (NSMutableDictionary *)jsonDict callback: (id<MUXSDKNetworkRequestsCompletion>) callback __attribute__((deprecated("Please migrate to handleBatch:beaconCollectionDomain:osFamily:jsonDict:beaconHeaders:withCallback:")));;
@end

#endif
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>4.4.2</string>
<string>4.5.0</string>
<key>CFBundleSupportedPlatforms</key>
<array>
<string>MacOSX</string>
</array>
<key>CFBundleVersion</key>
<string>4.4.2</string>
<string>4.5.0</string>
<key>DTCompiler</key>
<string>com.apple.compilers.llvm.clang.1_0</string>
<key>DTPlatformBuild</key>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
+ (void)dispatchGlobalDataEvent:(MUXSDKDataEvent *)event;
+ (void)dispatchEvent:(id<MUXSDKEventTyping>)event forPlayer:(NSString *)playerId;
+ (void)destroyPlayer:(NSString *)playerId;
+ (void)setDeviceId:(NSString *)deviceId forPlayer:(NSString *)playerId;
+ (void)setSentryEnabled:(BOOL)enabled;
+ (void)setBeaconCollectionDomain:(NSString *)collectionDomain forPlayer:(NSString *)playerId;
+ (void)setBeaconDomain:(NSString *)domain forPlayer:(NSString *)playerId __attribute__((deprecated("Please migrate to setBeaconCollectionDomain:forPlayer")));;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
@interface MUXSDKCustomerViewData : MUXSDKQueryData<MUXSDKUpsertable>

@property (nullable) NSString *viewSessionId;
@property (nullable) NSString *viewDrmType;

@end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,24 @@
@end

@protocol MUXSDKNetworkRequestBuilding
- (NSMutableURLRequest *) buildRequestFromURL:(NSURL *) url eventsJsonDict:(NSDictionary *) dict error:(NSError **) error;
- (NSMutableURLRequest *) buildRequestFromURL:(NSURL *) url eventsJsonDict:(NSDictionary *)dict requestHeaders:(NSDictionary *)headers error:(NSError **) error;
- (NSMutableURLRequest *) buildRequestFromURL:(NSURL *) url eventsJsonDict:(NSDictionary *) dict error:(NSError **) error __attribute__((deprecated("Please migrate to handleBatch:domain:osFamily:jsonDict:beaconHeaders:withCallback:")));
@end

@interface MUXSDKDispatcher : NSObject<MUXSDKEventHandling, MUXSDKNetworkRequestBuilding> {
}
- (void)handleBatch:(NSString *)envKey beaconCollectionDomain:(NSString *)collectionDomain osFamily:(NSString *)os jsonDict: (NSMutableDictionary *)jsonDict callback: (id<MUXSDKNetworkRequestsCompletion>) callback;

- (void)handleBatch:(NSString *)envKey beaconCollectionDomain:(NSString *)collectionDomain osFamily:(NSString *)os jsonDict:(NSMutableDictionary *)jsonDict beaconHeaders:(NSDictionary *)headers callback: (id<MUXSDKNetworkRequestsCompletion>) callback;

+ (void)handleException:(NSDictionary *)json pluginName:(NSString *)pluginName pluginVersion:(NSString *)pluginVerison;

#pragma mark Deprecated

- (void)handleBatch:(NSString *)envKey beaconCollectionDomain:(NSString *)collectionDomain osFamily:(NSString *)os jsonDict: (NSMutableDictionary *)jsonDict callback: (id<MUXSDKNetworkRequestsCompletion>) callback __attribute__((deprecated("Please migrate to handleBatch:domain:osFamily:jsonDict:beaconHeaders:withCallback:")));
- (void)handle:(id<MUXSDKEventTyping>)event __attribute__((deprecated("Please migrate to handleBatch:domain:osFamily:jsonDict:withCallback:")));
- (void)handleBatch:(NSString *)envKey osFamily:(NSString *)os withJson: (NSData *)json withCallback: (id<MUXSDKNetworkRequestsCompletion>) callback __attribute__((deprecated("Please migrate to handleBatch:domain:osFamily:jsonDict:withCallback:")));
- (void)handleBatch:(NSString *)envKey domain:(NSString *)domain osFamily:(NSString *)os withJson: (NSData *)json withCallback: (id<MUXSDKNetworkRequestsCompletion>) callback __attribute__((deprecated("Please migrate to handleBatch:domain:osFamily:jsonDict:withCallback:")));
- (void)handleBatch:(NSString *)envKey domain:(NSString *)domain osFamily:(NSString *)os jsonDict: (NSMutableDictionary *)jsonDict callback: (id<MUXSDKNetworkRequestsCompletion>) callback __attribute__((deprecated("Please migrate to handleBatch:beaconCollectionDomain:osFamily:jsonDict:withCallback:")));;
- (void)handleBatch:(NSString *)envKey osFamily:(NSString *)os withJson: (NSData *)json withCallback: (id<MUXSDKNetworkRequestsCompletion>) callback __attribute__((deprecated("Please migrate to handleBatch:domain:osFamily:jsonDict:beaconHeaders:withCallback:")));
- (void)handleBatch:(NSString *)envKey domain:(NSString *)domain osFamily:(NSString *)os withJson: (NSData *)json withCallback: (id<MUXSDKNetworkRequestsCompletion>) callback __attribute__((deprecated("Please migrate to handleBatch:domain:osFamily:jsonDict:beaconHeaders:withCallback:")));
- (void)handleBatch:(NSString *)envKey domain:(NSString *)domain osFamily:(NSString *)os jsonDict: (NSMutableDictionary *)jsonDict callback: (id<MUXSDKNetworkRequestsCompletion>) callback __attribute__((deprecated("Please migrate to handleBatch:beaconCollectionDomain:osFamily:jsonDict:beaconHeaders:withCallback:")));;
@end

#endif
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
</data>
<key>Headers/MUXSDKCore.h</key>
<data>
a4xnQMA2zwcULSF5NX1JMJRuKck=
Dl/2U1Y3Hm1kCVRk9wPSAo7/sKQ=
</data>
<key>Headers/MUXSDKCustomData.h</key>
<data>
Expand All @@ -90,7 +90,7 @@
</data>
<key>Headers/MUXSDKCustomerViewData.h</key>
<data>
f+U2dHVue/nHZMA5nk6XX5vnscE=
SygULEWfXr0oNIJFW/T54f5HKx0=
</data>
<key>Headers/MUXSDKCustomerViewerData.h</key>
<data>
Expand All @@ -102,7 +102,7 @@
</data>
<key>Headers/MUXSDKDispatcher.h</key>
<data>
sLgiBrq/GUWoEpEJIS0Sjb+GqPI=
XS3uiIn8jFpyzMMCXXC533/2S04=
</data>
<key>Headers/MUXSDKEndedEvent.h</key>
<data>
Expand Down Expand Up @@ -218,7 +218,7 @@
</data>
<key>Info.plist</key>
<data>
Ui2OiB6rHtQocC+zYbbuqzy4+u0=
0qtcJhBs59XLwibLAsBXpVWbPiM=
</data>
<key>Modules/module.modulemap</key>
<data>
Expand Down Expand Up @@ -343,7 +343,7 @@
<dict>
<key>hash2</key>
<data>
ZQur4DMI83VLmFnH5LbNKYwS2zYWZWuVq6FEwSjqizA=
YNCf7KS9u2R1563Vyz9cY/G8vEIFc+ZYH726xJt3Kzc=
</data>
</dict>
<key>Headers/MUXSDKCustomData.h</key>
Expand Down Expand Up @@ -378,7 +378,7 @@
<dict>
<key>hash2</key>
<data>
Pl/8WmWdc01/0k5XlU0Uv45XCby2e7p7wC7MKjrqh+A=
M4Vp+UlIbOfuKOET7HZONKTWYAOMhCWZKooB8JCJOCM=
</data>
</dict>
<key>Headers/MUXSDKCustomerViewerData.h</key>
Expand All @@ -399,7 +399,7 @@
<dict>
<key>hash2</key>
<data>
KYFkUanymyn4wb9lYdO44WW6ZUwFqwtrTakMafDX94g=
fl37OBmBd4gb5EMrSs3AYQMTeJ0+4GwblPijX/BrzGg=
</data>
</dict>
<key>Headers/MUXSDKEndedEvent.h</key>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
+ (void)dispatchGlobalDataEvent:(MUXSDKDataEvent *)event;
+ (void)dispatchEvent:(id<MUXSDKEventTyping>)event forPlayer:(NSString *)playerId;
+ (void)destroyPlayer:(NSString *)playerId;
+ (void)setDeviceId:(NSString *)deviceId forPlayer:(NSString *)playerId;
+ (void)setSentryEnabled:(BOOL)enabled;
+ (void)setBeaconCollectionDomain:(NSString *)collectionDomain forPlayer:(NSString *)playerId;
+ (void)setBeaconDomain:(NSString *)domain forPlayer:(NSString *)playerId __attribute__((deprecated("Please migrate to setBeaconCollectionDomain:forPlayer")));;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
@interface MUXSDKCustomerViewData : MUXSDKQueryData<MUXSDKUpsertable>

@property (nullable) NSString *viewSessionId;
@property (nullable) NSString *viewDrmType;

@end

Expand Down
Loading

0 comments on commit 0460e6a

Please sign in to comment.