Skip to content

Commit

Permalink
General Updates (#316)
Browse files Browse the repository at this point in the history
  • Loading branch information
bdlukaa authored Jan 17, 2025
2 parents 1259d58 + 4a430f9 commit 60d2f8f
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ post_install do |installer|
]
end
end
# https://pub.dev/packages/awesome_notifications#-configuring-ios-for-awesome-notifications
################ Awesome Notifications pod modification ###################
awesome_pod_file = File.expand_path(File.join('plugins', 'awesome_notifications', 'ios', 'Scripts', 'AwesomePodFile'), '.symlinks')
require awesome_pod_file
Expand Down
4 changes: 4 additions & 0 deletions ios/Runner/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,9 @@
</dict>
<key>UIApplicationSupportsIndirectInputEvents</key>
<true />
<key>NSFaceIDUsageDescription</key>
<string>Make sure only you can view your private information.</string>
<key>NSCameraUsageDescription</key>
<string>Make sure only you can view your private information.</string>
</dict>
</plist>
15 changes: 15 additions & 0 deletions lib/utils/app_links/app_links.dart
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ import 'package:bluecherry_client/providers/settings_provider.dart';
import 'package:bluecherry_client/utils/extensions.dart';
import 'package:flutter/material.dart';

// Video Player Options
import 'package:unity_video_player/unity_video_player.dart';
// ignore: depend_on_referenced_packages
import 'package:unity_video_player_flutter/unity_video_player_flutter.dart';

export 'app_links_stub.dart' if (dart.library.ffi) 'app_links_real.dart';

Future<void> handleArgs(
Expand Down Expand Up @@ -70,6 +75,10 @@ Future<void> handleArgs(
help: 'Cycle through the cameras in the layout',
defaultsTo: settings.kLayoutCycleEnabled.value,
)
..addFlag(
'mdk',
help: 'Whether to use MDK instead of MPV for video playback',
)
..addOption(
'layout',
abbr: 'l',
Expand Down Expand Up @@ -143,6 +152,12 @@ Future<void> handleArgs(
final cycle = results.flag('cycle');
settings.kLayoutCycleEnabled.value = cycle;
}
if (results.wasParsed('mdk')) {
final mdk = results.flag('mdk');
if (mdk) {
UnityVideoPlayerInterface.instance = UnityVideoPlayerFlutterInterface();
}
}

await onSplashScreen(isFullscreen);

Expand Down

0 comments on commit 60d2f8f

Please sign in to comment.