Skip to content

Commit

Permalink
fix: iOS Build (#270)
Browse files Browse the repository at this point in the history
  • Loading branch information
bdlukaa authored Sep 23, 2024
2 parents 1b30981 + b2de396 commit f669ed3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 4 additions & 0 deletions ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ post_install do |installer|
installer.pods_project.targets.each do |target|
flutter_additional_ios_build_settings(target)
target.build_configurations.each do |config|
xcconfig_path = config.base_configuration_reference.real_path
xcconfig = File.read(xcconfig_path)
xcconfig_mod = xcconfig.gsub(/DT_TOOLCHAIN_DIR/, "TOOLCHAIN_DIR")
File.open(xcconfig_path, "w") { |file| file << xcconfig_mod }
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= [
'$(inherited)',
'PERMISSION_NOTIFICATIONS=1'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ flutter:
windows:
default_package: unity_video_player_main
web:
default_package: unity_video_player_flutter
default_package: unity_video_player_main
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,4 @@ flutter:
macos:
dartPluginClass: UnityVideoPlayerFlutterInterface
linux:
dartPluginClass: UnityVideoPlayerFlutterInterface
web:
pluginClass: UnityVideoPlayerMediaKitInterface
fileName: unity_video_player_flutter.dart
dartPluginClass: UnityVideoPlayerFlutterInterface

0 comments on commit f669ed3

Please sign in to comment.