Skip to content

Commit

Permalink
release: SDK 1.19.5
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaud-roland committed Apr 12, 2023
1 parent 6c40e8e commit f5a9f0c
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ let package = Package(
targets: [
.binaryTarget(
name: "Batch",
url: "https://download.batch.com/sdk/ios/spm/BatchSDK-ios_spm-xcframework-1.19.4.zip",
checksum: "32b8ef5a122705f7df47054cab192cc85169bc1f98c4096fd5b640e851424608"
url: "https://download.batch.com/sdk/ios/spm/BatchSDK-ios_spm-xcframework-1.19.5.zip",
checksum: "9dec44e2163ac9ca28e8874985af8defb102c12ae8c7a98e6a51d83119b778cc"
)
]
)
2 changes: 2 additions & 0 deletions Sources/Batch/Modules/Core/BAApplicationLifecycle.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ NS_ASSUME_NONNULL_BEGIN

@interface BAApplicationLifecycle : NSObject

@property (class, readonly) BOOL applicationUsesSwiftUILifecycle;

@property (class, readonly) BOOL applicationUsesUIScene;

@property (class, readonly) BOOL applicationImplementsUNDelegate;
Expand Down
13 changes: 13 additions & 0 deletions Sources/Batch/Modules/Core/BAApplicationLifecycle.m
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,19 @@

@implementation BAApplicationLifecycle

+ (BOOL)applicationUsesSwiftUILifecycle {
if (@available(iOS 13.0, *)) {
UIScene *scene = UIApplication.sharedApplication.connectedScenes.allObjects.firstObject;
id<UISceneDelegate> delegate = scene.delegate;
if (delegate == nil) {
return false;
}
// Expected name is SwiftUI.AppSceneDelegate but we expect it to change
return [NSStringFromClass([delegate class]) hasPrefix:@"SwiftUI."];
}
return false;
}

+ (BOOL)applicationUsesUIScene {
if (@available(iOS 13.0, *)) {
return [[NSBundle mainBundle] objectForInfoDictionaryKey:@"UIApplicationSceneManifest"] != nil;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,8 @@ - (WKWebViewConfiguration *)webViewConfiguration {

WKWebViewConfiguration *config = [WKWebViewConfiguration new];
config.userContentController = userContentController;
config.allowsInlineMediaPlayback = true;
config.mediaTypesRequiringUserActionForPlayback = WKAudiovisualMediaTypeAudio;

return config;
}
Expand Down
2 changes: 1 addition & 1 deletion Sources/Batch/Versions.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
Comments should not use the // form, as the plist preprocessor will include them
*/

#define BASDKVersion 1.19.4
#define BASDKVersion 1.19.5
#define BAAPILevel 51
#define BAMessagingAPILevel 12

0 comments on commit f5a9f0c

Please sign in to comment.