File tree 5 files changed +20
-3
lines changed
5 files changed +20
-3
lines changed Original file line number Diff line number Diff line change @@ -18,8 +18,8 @@ let package = Package(
18
18
targets: [
19
19
. binaryTarget(
20
20
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 "
23
23
)
24
24
]
25
25
)
Original file line number Diff line number Diff line change @@ -11,6 +11,8 @@ NS_ASSUME_NONNULL_BEGIN
11
11
12
12
@interface BAApplicationLifecycle : NSObject
13
13
14
+ @property (class , readonly ) BOOL applicationUsesSwiftUILifecycle;
15
+
14
16
@property (class , readonly ) BOOL applicationUsesUIScene;
15
17
16
18
@property (class , readonly ) BOOL applicationImplementsUNDelegate;
Original file line number Diff line number Diff line change 11
11
12
12
@implementation BAApplicationLifecycle
13
13
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
+
14
27
+ (BOOL )applicationUsesUIScene {
15
28
if (@available (iOS 13.0 , *)) {
16
29
return [[NSBundle mainBundle ] objectForInfoDictionaryKey: @" UIApplicationSceneManifest" ] != nil ;
Original file line number Diff line number Diff line change @@ -368,6 +368,8 @@ - (WKWebViewConfiguration *)webViewConfiguration {
368
368
369
369
WKWebViewConfiguration *config = [WKWebViewConfiguration new ];
370
370
config.userContentController = userContentController;
371
+ config.allowsInlineMediaPlayback = true ;
372
+ config.mediaTypesRequiringUserActionForPlayback = WKAudiovisualMediaTypeAudio ;
371
373
372
374
return config;
373
375
}
Original file line number Diff line number Diff line change 11
11
Comments should not use the // form, as the plist preprocessor will include them
12
12
*/
13
13
14
- #define BASDKVersion 1.19.4
14
+ #define BASDKVersion 1.19.5
15
15
#define BAAPILevel 51
16
16
#define BAMessagingAPILevel 12
You can’t perform that action at this time.
0 commit comments