Skip to content

Commit f5a9f0c

Browse files
committed
release: SDK 1.19.5
1 parent 6c40e8e commit f5a9f0c

File tree

5 files changed

+20
-3
lines changed

5 files changed

+20
-3
lines changed

Package.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ let package = Package(
1818
targets: [
1919
.binaryTarget(
2020
name: "Batch",
21-
url: "https://download.batch.com/sdk/ios/spm/BatchSDK-ios_spm-xcframework-1.19.4.zip",
22-
checksum: "32b8ef5a122705f7df47054cab192cc85169bc1f98c4096fd5b640e851424608"
21+
url: "https://download.batch.com/sdk/ios/spm/BatchSDK-ios_spm-xcframework-1.19.5.zip",
22+
checksum: "9dec44e2163ac9ca28e8874985af8defb102c12ae8c7a98e6a51d83119b778cc"
2323
)
2424
]
2525
)

Sources/Batch/Modules/Core/BAApplicationLifecycle.h

+2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ NS_ASSUME_NONNULL_BEGIN
1111

1212
@interface BAApplicationLifecycle : NSObject
1313

14+
@property (class, readonly) BOOL applicationUsesSwiftUILifecycle;
15+
1416
@property (class, readonly) BOOL applicationUsesUIScene;
1517

1618
@property (class, readonly) BOOL applicationImplementsUNDelegate;

Sources/Batch/Modules/Core/BAApplicationLifecycle.m

+13
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,19 @@
1111

1212
@implementation BAApplicationLifecycle
1313

14+
+ (BOOL)applicationUsesSwiftUILifecycle {
15+
if (@available(iOS 13.0, *)) {
16+
UIScene *scene = UIApplication.sharedApplication.connectedScenes.allObjects.firstObject;
17+
id<UISceneDelegate> delegate = scene.delegate;
18+
if (delegate == nil) {
19+
return false;
20+
}
21+
// Expected name is SwiftUI.AppSceneDelegate but we expect it to change
22+
return [NSStringFromClass([delegate class]) hasPrefix:@"SwiftUI."];
23+
}
24+
return false;
25+
}
26+
1427
+ (BOOL)applicationUsesUIScene {
1528
if (@available(iOS 13.0, *)) {
1629
return [[NSBundle mainBundle] objectForInfoDictionaryKey:@"UIApplicationSceneManifest"] != nil;

Sources/Batch/Modules/Messaging/UI/BAMSGWebviewViewController.m

+2
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,8 @@ - (WKWebViewConfiguration *)webViewConfiguration {
368368

369369
WKWebViewConfiguration *config = [WKWebViewConfiguration new];
370370
config.userContentController = userContentController;
371+
config.allowsInlineMediaPlayback = true;
372+
config.mediaTypesRequiringUserActionForPlayback = WKAudiovisualMediaTypeAudio;
371373

372374
return config;
373375
}

Sources/Batch/Versions.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@
1111
Comments should not use the // form, as the plist preprocessor will include them
1212
*/
1313

14-
#define BASDKVersion 1.19.4
14+
#define BASDKVersion 1.19.5
1515
#define BAAPILevel 51
1616
#define BAMessagingAPILevel 12

0 commit comments

Comments
 (0)